/**
 * Price cards: `mt-10 grid gap-6 md:grid-cols-3`, a card `rounded-lg border
 * border-border/60 bg-card p-6`; the label `text-sm font-medium` muted, the
 * price `mt-2 text-3xl font-bold tracking-tight`, the note `mt-2 text-sm
 * leading-relaxed` muted. Under the cards `mt-6 text-sm` muted.
 */

.sba-c-price-cards .sba-c-prices {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.sba-c-price-cards .sba-c-price {
	padding: 24px;
	border: 1px solid color-mix(in srgb, var(--sba-border) 60%, transparent);
	border-radius: var(--sba-radius);
	background-color: var(--sba-surface);
}

.sba-c-price-cards .sba-c-price > * {
	margin: 0;
}

.sba-c-price-cards .sba-c-price-label {
	color: var(--sba-slate);
	font-family: var(--sba-font-sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: var(--sba-heading-tracking);
	line-height: 20px;
}

.sba-c-price-cards .sba-c-price-value {
	margin-top: 8px;
	color: var(--sba-charcoal);
	font-size: 30px;
	font-weight: var(--sba-heading-weight);
	letter-spacing: var(--sba-heading-tracking);
	line-height: 36px;
}

.sba-c-price-cards .sba-c-price-note {
	margin-top: 8px;
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 1.625;
}

.sba-c-price-cards .sba-c-prices-note {
	margin-top: 24px;
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 20px;
}

.sba-c-price-cards .sba-c-prices-note p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* Price pairs and a button (since November 11, 2026): the pairs `mt-6
   space-y-4 border-t pt-6`, each under its label `mb-2 text-sm
   font-medium`, as on SBD's participation options; the card a column so
   the button sits at its foot, `mt-auto pt-8`. */
.sba-c-price-cards .sba-c-price:has(.sba-c-price-action) {
	display: flex;
	flex-direction: column;
}

.sba-c-price-cards .sba-c-price > .sba-c-price-pairs {
	display: grid;
	gap: 16px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--sba-border);
}

/* A card of price pairs names an offer rather than a rate: its label is
   the card's heading, `text-xl font-bold`, as an option's name on SBD. */
.sba-c-price-cards .sba-c-price:has(.sba-c-price-pairs) .sba-c-price-label {
	color: var(--sba-charcoal);
	font-size: 20px;
	font-weight: var(--sba-heading-weight);
	line-height: 28px;
}

.sba-c-price-cards .sba-c-price-label + .sba-c-price-pairs {
	margin-top: 16px;
}

.sba-c-price-cards .sba-c-price-pairs .sba-c-price-pair-label {
	margin: 0 0 8px;
	color: var(--sba-charcoal);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.sba-c-price-cards .sba-c-price > .sba-c-price-note {
	margin-top: 16px;
}

.sba-c-price-cards .sba-c-price > .sba-c-price-action {
	margin-top: auto;
	padding-top: 24px;
}

@media (min-width: 768px) {
	.sba-c-price-cards .sba-c-prices {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sba-c-price-cards .sba-c-prices.sba-c-prices-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* The ad's format drawn at the card's head (since November 12, 2026), its
   specification right under it, `mt-3 text-sm` muted, then the label as
   the card's heading. */
.sba-c-price-cards .sba-c-price > .sba-c-price-format {
	margin-bottom: 24px;
}

.sba-c-price-cards .sba-c-price-format-note {
	margin: 12px 0 0;
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 20px;
}

/* Sold out: the tag of SBD's participation options (white on
   --sba-red-dark, 14px at weight 500), over the drawing's top left, or in
   the card's flow without one. */
.sba-c-price-cards .sba-c-price.is-sold-out {
	position: relative;
}

.sba-c-price-cards .sba-c-price > .sba-c-price-sold-out {
	width: fit-content;
	margin: 0 0 16px;
	padding: 6px 12px;
	border-radius: var(--sba-radius-sm);
	background-color: var(--sba-red-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.sba-c-price-cards .sba-c-price > .sba-c-price-sold-out:has(+ .sba-c-price-format) {
	position: absolute;
	top: 36px;
	left: 36px;
	z-index: 1;
	margin: 0;
}

/* Cards with drawn formats share their rows, so a specification of two
   lines under one drawing does not push that card's heading and prices
   below the others': the drawing, the heading, the prices, the button. */
@media (min-width: 768px) {
	.sba-c-price-cards .sba-c-prices:has(.sba-c-price-format) > .sba-c-price {
		display: grid;
		grid-row: span 4;
		grid-template-rows: subgrid;
		row-gap: 0;
	}

	.sba-c-price-cards .sba-c-prices:has(.sba-c-price-format) > .sba-c-price > .sba-c-price-pairs {
		align-self: start;
	}
}
