/* Pricing editor - the live price list as one table per kind of product (uses the Features editor's .fe styles) */

.pe-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-bottom: 1rem;
}

.pe-stats > div {
	min-width: 150px;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--fe-line);
	border-radius: 0.5rem;
}

.pe-stats > div.warn {
	border-color: rgba(224, 161, 0, 0.35);
	background: var(--fe-amber-soft);
}

.pe-stats b {
	display: block;
	font-size: 1.25rem;
	font-weight: 600;
}

.pe-stats span {
	font-size: 0.8125rem;
	color: var(--fe-muted);
}

.pe-table {
	width: 100%;
	border-collapse: collapse;
}

.pe-table th {
	padding: 0.375rem 0.625rem;
	border-bottom: 1px solid var(--fe-line);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--fe-muted);
	text-align: left;
	white-space: nowrap;
}

.pe-table td {
	padding: 0.5rem 0.625rem;
	border-bottom: 1px solid var(--fe-line);
	vertical-align: middle;
}

.pe-table tr:last-child td {
	border-bottom: 0;
}

.pe-table tr.off td {
	opacity: 0.55;
}

.pe-table tr.unpriced td {
	background: var(--fe-amber-soft);
}

.pe-product b {
	font-weight: 500;
}

.pe-product small {
	display: block;
	color: var(--fe-muted);
}

.pe-subs {
	display: inline-block;
	margin-top: 0.15rem;
	padding: 0 0.45rem;
	border-radius: 99px;
	font-size: 0.75rem;
	background: var(--fe-soft);
	color: var(--fe-accent);
	cursor: help;
}

.pe-money {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--fe-line);
	border-radius: 0.375rem;
}

.pe-money span {
	padding: 0.3rem 0.45rem;
	border-right: 1px solid var(--fe-line);
	color: var(--fe-muted);
	font-size: 0.8125rem;
}

.pe-money input,
.pe-num {
	width: 5.5rem;
	padding: 0.3rem 0.5rem;
	border: 0;
	outline: 0;
	text-align: right;
	background: transparent;
	color: inherit;
}

.pe-num,
.pe-date {
	border: 1px solid var(--fe-line);
	border-radius: 0.375rem;
	background: transparent;
	color: inherit;
}

.pe-num {
	width: 4.75rem;
}

.pe-date {
	padding: 0.25rem 0.5rem;
}

.pe-money.chg,
.pe-num.chg,
.pe-date.chg,
.pe-seg.chg {
	border-color: rgba(224, 161, 0, 0.6);
	background: var(--fe-amber-soft);
}

.pe-chg .form-check-input {
	box-shadow: 0 0 0 3px var(--fe-amber-soft);
}

.pe-seg {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid var(--fe-line);
	border-radius: 0.375rem;
}

.pe-seg button {
	padding: 0.3rem 0.65rem;
	border: 0;
	border-right: 1px solid var(--fe-line);
	background: transparent;
	color: var(--fe-muted);
	font-size: 0.8125rem;
}

.pe-seg button:last-child {
	border-right: 0;
}

.pe-seg button.on {
	background: var(--fe-soft);
	color: var(--fe-accent);
	font-weight: 600;
}

.pe-free {
	display: inline-block;
	padding: 0.1rem 0.55rem;
	border-radius: 99px;
	font-size: 0.8125rem;
	background: var(--fe-green-soft);
	color: var(--fe-green);
}
