/*
 * sd/packages — the package cards in their tray, with the pay switch above and the "in every
 * package" strip along the foot. Owns the cards' look as well as the row: sd/package-card renders
 * inside it.
 *
 * The rules are the service page's pricing rules (.sd-pay, .sd-pricing__tray, .sd-plan in
 * src/css/primitives/service-page.css), carried here value for value under the component's own
 * names. The switch well, the raised key, the sticker and the card shadows were tuned by eye and
 * approved as they are. Where a theme token holds the value it is used; the rest have no token.
 *
 * Most rules carry two classes on purpose: the component has to look the same inside a service
 * page section (where `.sd-svc p` and `.sd-svc li` set the type) and outside one.
 */
.sd-packages,
.sd-package-card {
	--sd-packages-ink: var(--wp--preset--color--sd-deep-midnight);
	--sd-packages-soft: color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 72%, transparent);
	--sd-packages-faint: color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 12%, transparent);
	--sd-packages-accent: var(--wp--preset--color--sd-flamingo);
	--sd-packages-pad: clamp(24px, 2.4vw, 36px);
	--sd-packages-radius: 14px;
}

.sd-packages {
	position: relative;
	display: grid;
	gap: clamp(16px, 1.6vw, 24px);
	color: var(--sd-packages-ink);
}

/* ---- Pay switch ----
   A pair of radio buttons, so it works without scripting; the cards below show the price for
   whichever is chosen. Drawn as a physical switch: a well sunk into the page, with the chosen side
   a raised key. */
.sd-packages__pay {
	display: grid;
	min-width: 0;
}

/* Each radio button lies unseen over the whole of its side, so the side itself is what is pressed. */
.sd-packages .sd-packages__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	appearance: none;
	opacity: 0;
	cursor: pointer;
}

.sd-packages .sd-packages__option-text {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	text-wrap: inherit;
	color: inherit;
}

.sd-packages__switch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	width: min(100%, 21rem);
	padding: 4px;
	border-radius: var(--sd-packages-radius);
	background: color-mix(in srgb, var(--wp--preset--color--sd-deep-midnight) 5%, transparent);
	box-shadow: var(--wp--custom--shadow--well);
	position: relative;
	isolation: isolate;
}

/* The raised key is one piece that slides from side to side, under the words. It starts on the
   upfront side (also what the block editor's canvas shows, where the switch is not live). */
.sd-packages__switch::before {
	content: "";
	position: absolute;
	inset: 4px auto 4px 4px;
	z-index: -1;
	width: calc(50% - 6px);
	border-radius: calc(var(--sd-packages-radius) - 4px);
	background: linear-gradient(rgb(255 255 255 / 0.1), rgb(255 255 255 / 0) 70%), var(--wp--preset--color--sd-flamingo);
	box-shadow: var(--wp--custom--shadow--raised-accent);
}

.sd-packages__switch:has(.sd-packages__input[value="monthly"]:checked)::before {
	translate: calc(100% + 4px) 0;
}

.sd-packages .sd-packages__option {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	border-radius: calc(var(--sd-packages-radius) - 4px);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	color: var(--sd-packages-soft);
	cursor: pointer;
}

.sd-packages .sd-packages__option:hover {
	color: var(--sd-packages-ink);
}

/* The second selector is the block editor's canvas, where the switch is not live: the upfront
   side, the one a visitor starts on, is drawn as chosen. */
.sd-packages .sd-packages__option:has(.sd-packages__input:checked),
.sd-packages .sd-packages__option.block-editor-block-list__block:first-child {
	color: var(--wp--preset--color--white);
	text-shadow: none;
}

.sd-packages__option:has(.sd-packages__input:focus-visible) {
	outline: 2px solid var(--sd-packages-ink);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.sd-packages__option {
		transition: color 200ms ease;
	}

	/* The key slides across with a little overshoot, squashing slightly as it travels, as a pressed
	   switch does; the price it brings in rises into place. */
	.sd-packages__switch::before {
		transition: translate 320ms cubic-bezier(0.3, 1.35, 0.5, 1), scale 320ms ease;
	}

	.sd-packages__switch:active::before {
		scale: 0.97 0.94;
	}

	.sd-package-card :is(.sd-package-card__upfront, .sd-package-card__monthly) {
		animation: sd-packages-price-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
	}
}

@keyframes sd-packages-price-in {
	from {
		opacity: 0;
		translate: 0 8px;
	}
}

/* Wide screens: the switch keeps its full width and sits at the right, over the last card. */
@media (width >= 62rem) {
	.sd-packages__pay {
		justify-self: end;
	}

	.sd-packages__switch {
		width: 21rem;
	}
}

/* Centred: for a section whose heading and intro are centred, so the switch sits under them. */
@media (width >= 62rem) {
	.sd-packages--switch-centred .sd-packages__pay {
		justify-self: center;
	}
}

/* Raised: lifted out of the row to sit beside the text above, one gap clear of the tray. For a
   section whose intro is kept to a narrow column, as on the service pages; only once the screen
   is wide enough for that column (46rem) and the switch to sit side by side. */
@media (width >= 80rem) {
	.sd-packages--switch-raised .sd-packages__pay {
		position: absolute;
		right: 0;
		bottom: calc(100% + clamp(16px, 1.6vw, 24px));
	}
}

/* Raised, under a heading in the same Stack: the switch goes up beside the heading itself, at the
   right, level with its line. The Stack becomes the frame it is placed in. */
@media (width >= 80rem) {
	.wp-block-stronger-stack:has(> .wp-block-stronger-stack > .wp-block-heading):has(.sd-packages--switch-raised) {
		position: relative;
	}

	.wp-block-stronger-stack:has(> .wp-block-stronger-stack > .wp-block-heading) .sd-packages.sd-packages--switch-raised {
		position: static;
	}

	.wp-block-stronger-stack:has(> .wp-block-stronger-stack > .wp-block-heading) .sd-packages--switch-raised .sd-packages__pay {
		inset: var(--sd-packages-switch-top, 1rem) 0 auto auto;
	}
}

/* Each card carries both prices; the switch decides which one is on show. A card with no monthly
   price keeps its upfront price whichever side is chosen. */
.sd-package-card .sd-package-card__monthly,
.sd-packages:has(.sd-packages__input[value="monthly"]:checked) .sd-package-card__upfront:has(+ .sd-package-card__monthly) {
	display: none;
}

.sd-packages:has(.sd-packages__input[value="monthly"]:checked) .sd-package-card__monthly {
	display: block;
}

/* ---- Tray ----
   The cards sit in a recessed tray, as in the printed brochure, with what every package includes
   along its foot. */
.sd-packages__tray {
	min-width: 0;
	padding: clamp(6px, 0.8vw, 10px);
	border-radius: calc(var(--sd-packages-radius) + 8px);
	background: color-mix(in srgb, var(--sd-packages-ink) 6%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-packages-ink) 7%, transparent);
}

.sd-packages__cards {
	display: grid;
	gap: clamp(6px, 0.8vw, 10px);
	align-items: stretch;
}

/* ---- Card ---- white paper with the soft paper shadow and a hairline edge. */
.sd-package-card {
	position: relative;
	min-width: 0;
	padding: var(--sd-packages-pad);
	border: 1px solid rgb(1 29 43 / 0.06);
	border-radius: var(--sd-packages-radius);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--custom--shadow--paper);
	color: var(--sd-packages-ink);
}

/* Side by side, the cards share their rows, so names, prices, the rule and the lists line up
   whatever the length of a card's one-line pitch. One column per card, however many there are. */
@media (width >= 62rem) {
	.sd-packages__cards {
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		grid-template-rows: repeat(7, auto);
	}

	/* In the block editor each card sits in a wrapper (.stronger-component-content), which is then
	   the grid item: it takes the seven rows and hands them on to the card inside it. */
	.sd-package-card,
	.sd-packages__cards .stronger-component-content {
		display: grid;
		grid-row: span 7;
		grid-template-rows: subgrid;
		row-gap: 0;
		align-content: start;
	}
}

.sd-packages__cards .stronger-component-content {
	min-width: 0;
	margin: 0;
}

/* Featured: the same white card, picked out by a midnight ring and a deeper shadow under it.
   With the tag and the one filled button, that is all that sets it apart. */
.sd-package-card--featured {
	border-color: transparent;
	box-shadow: 0 0 0 2px var(--wp--preset--color--sd-deep-midnight), 0 8px 16px -10px rgb(1 29 43 / 0.3);
}

/* A drawn mark in the card's top corner, if one is chosen; the name and pitch keep clear of it. */
.sd-package-card .sd-package-card__mark {
	position: absolute;
	top: var(--sd-packages-pad);
	right: var(--sd-packages-pad);
	width: 92px;
	height: auto;
	rotate: 4deg;
	opacity: 0.9;
}

.sd-package-card:has(.sd-package-card__mark) :is(.sd-package-card__name, .sd-package-card__tagline) {
	padding-right: 104px;
}

/*
 * The tag is a sticker pressed onto the card's top edge: a printed face with a faint sheen, its
 * bottom-right corner lifting to show the pale back, and a soft shadow under the whole thing.
 * The face and the lifted corner are drawn by the two pseudo-elements so the shadow follows them.
 */
.sd-package-card .sd-package-card__flag {
	--sd-packages-lift: 13px;
	position: absolute;
	top: 0;
	left: var(--sd-packages-pad);
	translate: 0 -55%;
	rotate: -3deg;
	z-index: 1;
	margin: 0;
	/* LORE sits high in its line box, so the top padding is the deeper one: the letters end up centred. */
	padding: 9px 18px 4px 15px;
	filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.25)) drop-shadow(0 3px 4px rgb(0 0 0 / 0.14));
	font-family: var(--wp--preset--font-family--script);
	font-size: 1.0625rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: pretty;
	color: var(--wp--preset--color--white);
	white-space: nowrap;
}

.sd-package-card__flag::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: 3px;
	background:
		linear-gradient(175deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 42%, rgb(0 0 0 / 0.1)),
		var(--sd-packages-accent);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--sd-packages-lift)), calc(100% - var(--sd-packages-lift)) 100%, 0 100%);
}

.sd-package-card__flag::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: var(--sd-packages-lift);
	height: var(--sd-packages-lift);
	border-top-left-radius: 3px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--sd-packages-accent) 30%, var(--wp--preset--color--white)) 0, color-mix(in srgb, var(--sd-packages-accent) 55%, var(--wp--preset--color--white)) 40%, rgb(0 0 0 / 0.28) 50%, transparent 50%);
}

.sd-package-card .sd-package-card__name {
	margin: 0 0 6px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 3vw, 3rem);
	font-style: normal;
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: balance;
	color: var(--sd-packages-ink);
}

.sd-package-card .sd-package-card__tagline {
	margin: 0 0 22px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.0625rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-wrap: pretty;
	color: var(--sd-packages-soft);
}

.sd-package-card .sd-package-card__price {
	margin: 0 0 20px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-wrap: pretty;
	color: var(--sd-packages-soft);
}

/* The price is four short paragraphs so each can be edited in place; the figure and its note
   run on one line, the two lines under them stack. */
.sd-package-card .sd-package-card__amount,
.sd-package-card .sd-package-card__gst,
.sd-package-card .sd-package-card__term,
.sd-package-card .sd-package-card__alt {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-wrap: inherit;
	color: inherit;
}

.sd-package-card .sd-package-card__amount {
	display: inline;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 4.2vw, 4rem);
	font-weight: 700;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
	color: var(--sd-packages-ink);
}

.sd-package-card .sd-package-card__gst {
	display: inline;
	font-weight: 600;
}

.sd-package-card .sd-package-card__term {
	margin-top: 6px;
	font-weight: 600;
	color: var(--sd-packages-ink);
}

/* Each card has its own way in, the full width of the card, with the rule under it. */
.sd-package-card__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0 0 22px;
	padding-bottom: 24px;
	/* The site's solid drawn divider, faint, in place of a ruled line. */
	border-bottom: 0;
	background: linear-gradient(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.7)) left bottom / 100% 10px no-repeat, url("../../assets/decorations/divider-drawn.svg") left bottom / 100% 10px no-repeat;
}

.sd-package-card__cta .wp-block-button,
.sd-package-card__cta .wp-block-button__link {
	width: 100%;
}

/* One filled button in the row: the Featured card's, in the pricing green. The others are the
   site's quiet button (white paper, a hairline, a soft shadow), so the eye lands on the green one.
   Raised edge, hover and press are the site's button rules (primitives/tactile.css), which read
   the three shadows named here; the green ones have no token, they are the flamingo set re-tinted. */
.sd-package-card__cta .wp-block-button__link {
	display: flex;
	justify-content: center;
	/* The hero buttons' height. */
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	border: 2px solid transparent;
	border-radius: var(--wp--custom--radius--md);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--fixed-18);
	font-style: normal;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: normal;
	text-decoration: none;
}

/* The quiet button's hairline is 1px where the green one's edge is 2px: the pixel goes back on as
   padding, so the three buttons are one height. */
.sd-package-card__cta .is-style-quiet .wp-block-button__link {
	padding-block: var(--wp--preset--spacing--20);
}

.sd-package-card__cta .is-style-feature-button .wp-block-button__link {
	--sd-raised: 0 1px 2px rgb(0 60 30 / 0.3), 0 8px 18px -8px color-mix(in srgb, var(--wp--preset--color--pricing-action) 60%, transparent);
	--sd-raised-hover: 0 2px 4px rgb(0 60 30 / 0.3), 0 14px 26px -10px color-mix(in srgb, var(--wp--preset--color--pricing-action) 65%, transparent);
	--sd-pressed: inset 0 2px 4px rgb(0 40 20 / 0.35), 0 1px 2px rgb(0 60 30 / 0.2);
	background-color: var(--wp--preset--color--pricing-action);
	color: var(--wp--preset--color--white);
	text-shadow: 0 1px 0 rgb(0 60 30 / 0.35);
}

/* What the list below is: "What's included", or what this package adds to the one before. */
.sd-package-card .sd-package-card__includes {
	margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: pretty;
	color: inherit;
}

.sd-package-card__list {
	display: grid;
	gap: 10px;
	align-content: start;
	/* The site sets its lists a touch tight and medium; the rows take both from here. */
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* The brochure's green tick discs. */
.sd-package-card .sd-package-card__item {
	position: relative;
	margin: 0;
	padding-left: 32px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-style: normal;
	font-weight: inherit;
	line-height: 1.45;
	letter-spacing: inherit;
	text-wrap: pretty;
	color: inherit;
}

.sd-package-card__item::before {
	content: "";
	position: absolute;
	top: 0.1em;
	left: 0;
	width: 22px;
	height: 22px;
	background: url(../../assets/icons/checkmark-disc.svg) center / contain no-repeat;
}

/* The care that comes with the package, set apart under a rule at the card's foot. */
.sd-package-card__care {
	display: flex;
	align-items: center;
	gap: 10px;
	align-self: end;
	margin: 20px 0 0;
	/* Room for two lines on every card, so the dividers sit level across the row. */
	box-sizing: content-box;
	min-height: 2.625rem;
	padding-top: 26px;
	border-top: 0;
	background: linear-gradient(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.7)) left top / 100% 10px no-repeat, url("../../assets/decorations/divider-drawn.svg") left top / 100% 10px no-repeat;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: pretty;
	color: inherit;
}

.sd-package-card .sd-package-card__care-text {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	text-wrap: inherit;
	color: inherit;
}

.sd-package-card .sd-package-card__shield {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

/* ---- In every package ----
   Under the cards: a small label at the left, then one quiet card per item with its drawn mark, its
   name and a line saying what it is. They are lighter than the package cards above (no shadow, a
   hairline edge) so they read as a footnote to them, not a fourth package. */
.sd-packages__every {
	display: grid;
	gap: clamp(8px, 0.8vw, 12px);
	margin: 0;
	/* No side or foot padding: the row of cards runs the full width of the tray, so its outer edges
	   line up with the package cards above and it sits the same distance from the tray's edge. */
	--every-top: clamp(18px, 1.8vw, 26px);
	--every-inset: clamp(8px, 0.9vw, 14px);
	position: relative;
	padding: var(--every-top) 0 0;
	font-family: var(--wp--preset--font-family--sans);
}

/* The site's hand-drawn dashed rule crosses the row behind the label's pill, a little in from the
   cards' outer edges. */
.sd-packages__every::before {
	content: "";
	position: absolute;
	inset: calc(var(--every-top) + 13px) var(--every-inset) auto;
	height: 6px;
	background: url("../../assets/decorations/dashes-drawn.svg") left center / 320px 6px repeat-x;
	opacity: 0.55;
}

/* The label sits in one of the quiet raised pills (as the numbers on the About page do), over the
   start of the rule. */
.sd-packages .sd-packages__every-label {
	position: relative;
	z-index: 1;
	justify-self: start;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	height: 32px;
	margin: 0 0 0 var(--every-inset);
	padding: 1px 16px 0;
	border: 1px solid var(--wp--preset--color--paper-edge);
	border-radius: var(--wp--custom--radius--full);
	background: linear-gradient(var(--wp--preset--color--white), var(--wp--preset--color--sd-cream));
	box-shadow: var(--wp--custom--shadow--raised-quiet);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--sd-packages-ink);
}

.sd-packages .sd-packages__every-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(6px, 0.8vw, 10px);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (width >= 40rem) {
	.sd-packages .sd-packages__every-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (width >= 72rem) {
	.sd-packages .sd-packages__every-list {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
	}
}

.sd-packages .sd-packages__every-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-content: start;
	gap: 6px 14px;
	margin: 0;
	padding: clamp(18px, 1.7vw, 24px) clamp(18px, 1.9vw, 28px) clamp(20px, 1.9vw, 26px);
	border-radius: var(--sd-packages-radius);
	background: color-mix(in srgb, var(--wp--preset--color--white) 70%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sd-packages-ink) 7%, transparent);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-wrap: pretty;
}

.sd-packages .sd-packages__every-text {
	margin: 0;
	align-self: center;
	font: inherit;
	letter-spacing: inherit;
	text-wrap: inherit;
	color: inherit;
}

.sd-packages .sd-packages__every-note {
	grid-column: 2;
	margin: 0;
	font-family: inherit;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: normal;
	text-wrap: pretty;
	color: var(--sd-packages-soft);
}

.sd-packages .sd-packages__every-mark {
	width: 22px;
	height: 22px;
}

/* ---- Tray: Well ----
   A deeper tray: warm grey, recessed, with more room round the cards, so the three packages sit in it
   as on a counter. What every package includes becomes a row of small raised paper tiles along its
   foot under a plain capitals label: no pill, no rule, no marks. */
.sd-packages--tray-well .sd-packages__tray {
	padding: clamp(12px, 1.5vw, 20px);
	border-radius: calc(var(--sd-packages-radius) + 14px);
	/* A solid colour of its own, so it looks the same on any band. */
	background: #f6f5f3;
	box-shadow: inset 0 2px 4px color-mix(in srgb, var(--sd-packages-ink) 8%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--sd-packages-ink) 5%, transparent), 0 1px 0 var(--wp--preset--color--white);
}

.sd-packages--tray-well .sd-packages__cards {
	gap: clamp(10px, 1.4vw, 20px);
}

.sd-packages--tray-well .sd-packages__every {
	--every-top: clamp(14px, 1.4vw, 20px);
	gap: var(--wp--preset--spacing--20);
}

.sd-packages--tray-well .sd-packages__every::before {
	content: none;
}

.sd-packages.sd-packages--tray-well .sd-packages__every-label {
	display: block;
	height: auto;
	margin: 0 0 0 var(--wp--preset--spacing--10);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: var(--wp--preset--font-size--fixed-12);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sd-packages-soft);
}

.sd-packages.sd-packages--tray-well .sd-packages__every-list {
	gap: clamp(8px, 0.9vw, 12px);
}

.sd-packages.sd-packages--tray-well .sd-packages__every-item {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--v-5-5);
	background: linear-gradient(var(--wp--preset--color--white), var(--wp--preset--color--sd-cream));
	box-shadow: var(--wp--custom--shadow--paper);
}

.sd-packages.sd-packages--tray-well .sd-packages__every-mark {
	display: none;
}

.sd-packages.sd-packages--tray-well .sd-packages__every-note {
	grid-column: 1;
}

/* ---- Block editor ----
   The switch is not live on the editing canvas, so a card shows both prices there, the monthly
   one under a small caption: otherwise there would be nowhere to edit it. The cards take an
   eighth row for it. None of this reaches the site (the class is the editor's own). */
.sd-package-card__monthly.block-editor-block-list__block {
	display: block;
}

.sd-package-card__monthly.block-editor-block-list__block::before {
	content: "On Pay monthly";
	display: block;
	margin-bottom: 10px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (width >= 62rem) {
	.sd-packages__cards.block-editor-block-list__block {
		grid-template-rows: repeat(8, auto);
	}

	.sd-packages__cards.block-editor-block-list__block :is(.stronger-component-content, .sd-package-card) {
		grid-row: span 8;
	}
}

/* Stacked, the cards need air between them: the "Most popular" tag stands proud of its card's top
   edge and would otherwise sit on the card above. */
@media (width < 62rem) {
	.sd-packages .sd-packages__cards {
		gap: var(--wp--preset--spacing--50);
	}
}
