/**
 * TB POS — the pricing block, on somebody's own website.
 *
 * This renders inside whatever theme the site runs, so the rules are written
 * the same way the guest pages' skin is: scoped under `.tb-pricing`, winning on
 * specificity rather than on `!important`, and inheriting the theme's typeface
 * instead of importing one. A price list that arrives in a different font is a
 * price list that looks pasted in.
 *
 * The one colour it does insist on is the accent, because a price list with no
 * emphasis reads as a spreadsheet. It is a variable on the block, so a site
 * with its own palette overrides it in one line:
 *
 *     .tb-pricing { --tb-pricing-accent: #0f4f56; }
 */

.tb-pricing {
	--tb-pricing-accent: #dd9933;
	--tb-pricing-accent-deep: #8a5c12;
	--tb-pricing-ink: #222;
	--tb-pricing-muted: #6b6b73;
	--tb-pricing-line: rgba(18, 18, 25, 0.12);
	--tb-pricing-alt: #f7f7f8;

	font-family: inherit;
	color: var(--tb-pricing-ink);
	font-size: 16px;
	line-height: 1.6;
	max-width: 1040px;
	margin: 0 auto;
	text-align: left;
}

.tb-pricing,
.tb-pricing * {
	box-sizing: border-box;
}

.tb-pricing .tb-pricing__h {
	font-family: inherit;
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--tb-pricing-ink);
	margin: 48px 0 6px;
}

.tb-pricing > .tb-pricing__h:first-child {
	margin-top: 0;
}

.tb-pricing h3 {
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	text-transform: none;
	color: var(--tb-pricing-ink);
	margin: 0 0 4px;
}

.tb-pricing p {
	margin: 0 0 14px;
}

.tb-pricing .tb-pricing__lede {
	font-size: 1.0625rem;
	color: var(--tb-pricing-muted);
	max-width: 64ch;
}

.tb-pricing .tb-pricing__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tb-pricing-accent-deep);
}

.tb-pricing .tb-pricing__note {
	font-size: 0.875rem;
	color: var(--tb-pricing-muted);
}

/* The three headline figures. */
.tb-pricing .tb-pricing__fee {
	background: var(--tb-pricing-alt);
	border: 1px solid var(--tb-pricing-line);
	border-radius: 6px;
	padding: 26px;
	margin: 22px 0;
}

.tb-pricing .tb-pricing__fee-row {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
}

.tb-pricing .tb-pricing__fee-row > div {
	flex: 1 1 220px;
}

.tb-pricing .tb-pricing__fee b {
	display: block;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
}

.tb-pricing .tb-pricing__fee .tb-pricing__note {
	margin: 6px 0 0;
}

/* Packages. */
.tb-pricing .tb-pricing__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 22px 0 10px;
}

.tb-pricing .tb-pricing__card {
	display: flex;
	flex-direction: column;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--tb-pricing-line);
	border-radius: 6px;
}

.tb-pricing .tb-pricing__card--feature {
	border-color: var(--tb-pricing-accent);
	box-shadow: 0 2px 14px rgba(221, 153, 51, 0.14);
}

.tb-pricing .tb-pricing__price {
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.1;
	margin: 10px 0 2px;
}

.tb-pricing .tb-pricing__price small {
	display: block;
	margin-top: 4px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tb-pricing-muted);
}

/* A theme's list styling turns these into bulleted lists indented off the
   card, so they are rebuilt rather than inherited. */
.tb-pricing ul {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.tb-pricing ul li {
	position: relative;
	margin: 0 0 7px;
	padding: 0 0 0 20px;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.tb-pricing ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tb-pricing-accent);
}

/* Tables. */
.tb-pricing .tb-pricing__table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0 10px;
	font-size: 0.9375rem;
}

.tb-pricing .tb-pricing__table th,
.tb-pricing .tb-pricing__table td {
	text-align: left;
	padding: 11px 14px;
	border-bottom: 1px solid var(--tb-pricing-line);
}

.tb-pricing .tb-pricing__table thead th {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tb-pricing-muted);
	background: var(--tb-pricing-alt);
}

.tb-pricing .tb-pricing__table .num {
	text-align: right;
	white-space: nowrap;
}

.tb-pricing .tb-pricing__table tbody tr:last-child td {
	border-bottom: 0;
}

.tb-pricing .tb-pricing__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
}

/* The button. Ink on the accent, not white: white on #dd9933 is 2.42:1. */
.tb-pricing .tb-pricing__cta {
	display: inline-block;
	margin: 10px 0 0;
	padding: 14px 30px;
	background: var(--tb-pricing-accent);
	color: #12181e;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.tb-pricing .tb-pricing__cta:hover,
.tb-pricing .tb-pricing__cta:focus {
	background: #c4852a;
	color: #12181e;
	text-decoration: none;
}

.tb-pricing .tb-pricing__terms {
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--tb-pricing-line);
	font-size: 0.875rem;
	color: var(--tb-pricing-muted);
}

.tb-pricing .tb-pricing__terms li {
	font-size: 0.875rem;
}

.tb-pricing .tb-pricing__terms li::before {
	background: var(--tb-pricing-line);
}

/* Shown to administrators only, when there is no rate to publish. */
.tb-pricing .tb-pricing__admin {
	margin: 18px 0;
	padding: 14px 16px;
	background: #fdf4e6;
	border: 1px solid var(--tb-pricing-accent);
	border-radius: 4px;
	font-size: 0.9375rem;
}

@media (max-width: 900px) {
	.tb-pricing .tb-pricing__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tb-pricing .tb-pricing__grid,
	.tb-pricing .tb-pricing__cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-pricing .tb-pricing__table {
		font-size: 0.875rem;
	}

	.tb-pricing .tb-pricing__table th,
	.tb-pricing .tb-pricing__table td {
		padding: 9px 10px;
	}
}
