/**
 * Site layer (CLAUDE-SPRINT-01, D-SITE): the polish every page shares, the
 * footer, and the pages outside the menu (About & Contact, the legal pages,
 * 404, the classic checkout and the order-received page).
 *
 * Loads on every page after wordpress.css, so equal-specificity rules here win.
 * Type follows 07 §3 (mobile → desktop, interpolated from 390 to 1366 px wide);
 * spacing uses the 4/8/12/16/24/32/48/64 scale.
 */

:root {
	--bs-type-hero: clamp(44px, calc(32.8px + 2.87vw), 72px);
	--bs-type-section: clamp(28px, calc(23.2px + 1.23vw), 40px);
	/* Headings inside cards and panels sit between the card title and the section title. */
	--bs-type-sub: clamp(20px, calc(18.4px + 0.41vw), 24px);
	--bs-type-card: clamp(16px, calc(15.6px + 0.1vw), 17px);
	--bs-type-body: clamp(15px, calc(14.6px + 0.1vw), 16px);
	--bs-type-small: clamp(12px, calc(11.6px + 0.1vw), 13px);
	/* The menu's sticky category bar: 12 px padding, a 44 px pill, 12 px padding, 1 px border. */
	--bs-cats-h: 69px;
	--bs-focus-ring: var(--bs-black-900);
}

/* ==========================================================================
   1. Global polish
   ========================================================================== */

/* Longhands only: the text-wrap shorthand would reset nowrap card titles to wrap. */
h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap-style: balance;
}

/* `pretty` costs extra layout work per paragraph, so it is kept to long-form text: the legal pages,
   other WordPress pages and the thank-you note. The 58 one/two-line menu descriptions don't need it. */
:is(.bs-legal__body, .bs-prose, .bs-thankyou-card) :is(p, li, dt, dd, blockquote, figcaption) {
	text-wrap-style: pretty;
}

/* Display lines set as paragraphs read better as even lines than as a long line plus a short one. */
.bs-footer__slogan,
.bs-hq-hero__slogan,
.bs-thankyou__quote,
.bs-404-card p {
	text-wrap-style: balance;
}

/* One focus ring everywhere: 2 px black with a 2 px gap, yellow on dark surfaces. */
.bs-footer,
.bs-ticker,
.bs-hero__card,
.bs-hq-hero,
.bs-stage {
	--bs-focus-ring: var(--bs-yellow-400);
}

:focus-visible,
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.bs-card__add-btn:focus-visible,
.bs-card--deal:focus-visible,
.bs-card--list:focus-visible,
.bs-card-d2:focus-visible,
.bs-rail__item:focus-visible .bs-rail__icon-wrap,
.woocommerce #bs_mode_field input[type="radio"]:focus-visible + label.radio {
	outline: 2px solid var(--bs-focus-ring);
	outline-offset: 2px;
	box-shadow: none;
}

.bs-card:has(.bs-card__add-btn:focus-visible),
.bs-toggle-switch label:has(input:focus-visible),
.bs-size-tile:has(input:focus-visible),
.bs-chip-btn:has(input:focus-visible),
.bs-flavour-item:has(input:focus-visible) {
	outline: 2px solid var(--bs-focus-ring);
	outline-offset: 2px;
	box-shadow: none;
}

/* The card ring already marks the focused "+"; a second ring inside it is noise. */
.bs-card:has(.bs-card__add-btn:focus-visible) .bs-card__add-btn:focus-visible {
	outline: none;
}

/* :focus-within also fires on mouse clicks; the :has(:focus-visible) rule above covers the keyboard. */
.bs-toggle-switch label:focus-within {
	outline: none;
}

/* "transition: all" (blackstar.css) also faded the ring in from a 3 px currentColor outline.
   Listing what actually animates makes the ring appear at once. */
.bs-cats__pill,
.bs-choice,
.bs-toggle-switch label,
.bs-opt-chip,
.bs-size-tile,
.bs-chip-btn,
.bs-flavour-item,
.bs-geo-btn,
.bs-social-btn {
	transition-property: background-color, border-color, color, box-shadow, transform, opacity;
}

::selection {
	background-color: var(--bs-black-900);
	color: var(--bs-cream-50);
}

.bs-footer ::selection,
.bs-ticker ::selection,
.bs-hero__card ::selection,
.bs-hq-hero ::selection,
.bs-stage ::selection {
	background-color: var(--bs-yellow-400);
	color: var(--bs-ink-900);
}

/* Anchors and keyboard focus stop 8 px below the sticky header. On the menu page the category bar
   (a direct child of <body>) stays stuck under the header down to the footer, so there the offset
   covers both bars: a #cat-… link lands exactly where a category pill click scrolls. header.php marks
   that page with html.bs-has-menu-bar: a class, not :has(), which the browser would re-check on every
   node the parser inserts. The fixed
   mobile dock and cart bar get the same treatment at the bottom (WCAG 2.4.11). */
html {
	scroll-padding-top: calc(var(--bs-header-h) + var(--bs-sp-2));
}

html.bs-has-menu-bar {
	scroll-padding-top: calc(var(--bs-header-h) + var(--bs-cats-h) + var(--bs-sp-2));
}

@media (max-width: 767px) {
	html {
		scroll-padding-bottom: calc(var(--bs-dock-h) + var(--bs-sp-2));
	}

	html:has(> body.bs-mobile-cart-visible) {
		scroll-padding-bottom: calc(var(--bs-dock-h) + 82px);
	}

	html:has(> body.woocommerce-checkout) {
		scroll-padding-bottom: 0;
	}
}

@media (min-width: 768px) and (max-width: 1099px) {
	html:has(> body.bs-mobile-cart-visible:not(.woocommerce-checkout)) {
		scroll-padding-bottom: 82px;
	}
}

/* Ticker: wide screens show one centred line. Below 1024 px the line (about 940 px) overflows,
   so it loops: two identical groups slide by exactly one group width. A hover or a tap pauses it
   (WCAG 2.2.2); with reduced motion it stays still and can be swiped. */
.bs-ticker__group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--bs-sp-3);
}

.bs-ticker__group[aria-hidden="true"] {
	display: none;
}

@keyframes bsTickerLoop {
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 1023px) {
	.bs-ticker__track {
		width: max-content;
		justify-content: flex-start;
		gap: 0;
		padding-inline: 0;
		animation: bsTickerLoop 30s linear infinite;
	}

	.bs-ticker__group {
		padding-inline: var(--bs-sp-4) var(--bs-sp-5);
	}

	.bs-ticker__group[aria-hidden="true"] {
		display: flex;
	}

	.bs-ticker:hover .bs-ticker__track,
	.bs-ticker.is-paused .bs-ticker__track {
		animation-play-state: paused;
	}
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
	.bs-ticker {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.bs-ticker::-webkit-scrollbar {
		display: none;
	}

	.bs-ticker__track {
		animation: none;
	}

	.bs-ticker__group[aria-hidden="true"] {
		display: none;
	}
}

/* Phones show the cart as an icon: keep "Cart" in the accessible name instead of dropping it. */
@media (max-width: 600px) {
	.bs-header__cart-btn span.bs-header__cart-label {
		position: absolute;
		width: 1px;
		height: 1px;
		display: block;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Without JavaScript the browser location button cannot work. */
html.no-js .bs-checkout-location {
	display: none;
}

.bs-noscript {
	margin-block: var(--bs-sp-6);
	padding: var(--bs-sp-4);
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius-card);
	background: var(--bs-cream-100);
	color: var(--bs-ink-900);
	font-weight: 600;
	text-align: center;
}

.bs-noscript .bs-btn-primary {
	width: min(100%, 280px);
}

/* ==========================================================================
   2. Footer
   ========================================================================== */
.bs-footer__inner {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--bs-sp-6) var(--bs-sp-5);
	padding-top: var(--bs-sp-6);
}

.bs-footer__brand,
.bs-footer__col--contact {
	grid-column: 1 / -1;
}

.bs-footer__brand {
	align-items: flex-start;
	gap: var(--bs-sp-3);
}

.bs-footer .bs-footer__logo {
	width: auto;
	max-width: none;
	height: 56px;
}

.bs-footer__slogan {
	font-size: var(--bs-type-sub);
	line-height: 1.05;
	letter-spacing: 0.01em;
}

.bs-footer__hours {
	display: grid;
	gap: var(--bs-sp-1);
	font-size: var(--bs-type-body);
	opacity: 1;
}

.bs-footer__label {
	color: rgb(250 246 236 / 72%);
	font-size: var(--bs-type-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bs-footer__hours-value {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bs-sp-2);
}

.bs-footer__heading {
	margin-bottom: var(--bs-sp-2);
	font-size: var(--bs-type-small);
	font-weight: 800;
	letter-spacing: 0.06em;
}

.bs-footer__links {
	gap: 0;
	font-size: var(--bs-type-body);
}

.bs-footer__link {
	min-height: 44px;
	gap: var(--bs-sp-2);
	color: rgb(250 246 236 / 88%);
	opacity: 1;
	overflow-wrap: anywhere;
}

.bs-footer__link:hover {
	color: var(--bs-yellow-400);
}

.bs-footer__icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bs-footer__whatsapp-btn {
	margin-top: var(--bs-sp-3);
	padding: var(--bs-sp-3) var(--bs-sp-5);
}

.bs-footer__whatsapp-btn img {
	flex: 0 0 auto;
}

.bs-footer__bottom {
	margin-top: var(--bs-sp-6);
	padding-top: var(--bs-sp-4);
	color: rgb(250 246 236 / 72%);
	font-size: var(--bs-type-small);
	opacity: 1;
	text-align: center;
}

.bs-footer__credit a {
	color: var(--bs-yellow-400);
	font-weight: 700;
	text-decoration: none;
}

.bs-footer__credit a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Checkout and order-received hide the dock, so the footer needs no room for it there. */
body.woocommerce-checkout .bs-footer {
	padding-bottom: var(--bs-sp-6);
}

@media (min-width: 768px) {
	.bs-footer__inner {
		grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
		column-gap: var(--bs-sp-6);
		padding-top: var(--bs-sp-7);
	}

	.bs-footer__col--contact {
		grid-column: auto;
	}

	.bs-footer .bs-footer__logo {
		height: 64px;
	}

	.bs-footer__bottom {
		margin-top: var(--bs-sp-7);
		text-align: left;
	}

	body.woocommerce-checkout .bs-footer {
		padding-bottom: var(--bs-sp-7);
	}
}

@media (min-width: 1024px) {
	.bs-footer__inner {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
	}

	.bs-footer__brand {
		grid-column: auto;
	}
}

/* ==========================================================================
   3. About & Contact ("Black Star HQ")
   ========================================================================== */
.bs-hq {
	padding-top: var(--bs-sp-3);
}

.bs-hq-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--bs-sp-4);
	padding: var(--bs-sp-5) var(--bs-sp-4);
	border: 0;
	border-radius: var(--bs-radius-modal);
	background-color: var(--bs-green-900);
	background-image: url('../img/brand/constellation.svg');
	background-position: center;
	background-size: 380px 190px;
	box-shadow: var(--bs-shadow-card);
	color: var(--bs-cream-50);
}

.bs-hq-hero__copy {
	display: grid;
	justify-items: start;
	gap: var(--bs-sp-2);
	min-width: 0;
}

.bs-hq-hero__tag {
	display: inline-flex;
	align-items: center;
	gap: var(--bs-sp-1);
	margin: 0;
	color: var(--bs-yellow-400);
	font-family: var(--bs-font-ui);
	font-size: var(--bs-type-small);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bs-hq-hero__title {
	margin: 0;
	font-size: var(--bs-type-hero);
	line-height: 0.95;
	letter-spacing: 0.01em;
}

.bs-hq-hero__slogan {
	margin: 0;
	font-size: var(--bs-type-body);
	letter-spacing: 0;
}

.bs-hq-hero__astro {
	width: auto;
	height: 120px;
	filter: none;
}

.bs-hq-actions,
.bs-hq-info {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bs-sp-4);
	max-width: none;
	margin: var(--bs-sp-4) 0 0;
	padding: 0;
}

/* Phones: each contact method is a compact row (icon, then title and value). */
.bs-hq-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	justify-items: start;
	gap: var(--bs-sp-1) var(--bs-sp-4);
	padding: var(--bs-sp-4);
	box-shadow: var(--bs-shadow-card);
	text-align: left;
}

.bs-hq-card:hover {
	transform: none;
	border-color: var(--bs-line);
	box-shadow: var(--bs-shadow-card);
}

.bs-hq-card--link:hover {
	transform: translateY(-2px);
	border-color: var(--bs-black-900);
	box-shadow: var(--bs-shadow-float);
}

.bs-hq-card--whatsapp,
.bs-hq-card--whatsapp:hover {
	border-color: var(--bs-line);
	background-color: var(--bs-green-100);
}

.bs-hq-card--whatsapp:hover {
	border-color: var(--bs-green-900);
}

.bs-hq-card__icon-wrap {
	grid-row: span 2;
	width: 48px;
	height: 48px;
}

.bs-hq-card__icon-wrap svg,
.bs-hq-card__icon-wrap img {
	width: 24px;
	height: 24px;
}

.bs-hq-card__title {
	align-self: end;
	font-size: var(--bs-type-sub);
	line-height: 1.05;
}

.bs-hq-card__val,
.bs-hq-card__phones {
	align-self: start;
}

.bs-hq-card__val {
	font-size: var(--bs-type-body);
	font-weight: 700;
	overflow-wrap: normal;
}

.bs-hq-card__phones {
	display: grid;
	justify-items: start;
	margin-left: calc(var(--bs-sp-3) * -1);
	list-style: none;
}

.bs-hq-card .bs-hq-card__phone {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding-inline: var(--bs-sp-3);
	border-radius: var(--bs-radius-pill);
	color: var(--bs-green-900);
	font-size: var(--bs-type-body);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: background-color var(--bs-dur-fast) var(--bs-ease-out);
}

.bs-hq-card .bs-hq-card__phone:hover {
	background-color: var(--bs-yellow-400);
	color: var(--bs-ink-900);
	text-decoration: none;
}

.bs-hq-hours-card,
.bs-hq-social {
	margin: 0;
	max-width: none;
	padding: var(--bs-sp-5) var(--bs-sp-4);
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius-card);
	background-color: var(--bs-white);
	box-shadow: var(--bs-shadow-card);
	text-align: left;
}

.bs-hq-hours-card {
	display: grid;
	align-content: start;
	gap: var(--bs-sp-3);
}

.bs-hq-hours-card__head h2,
.bs-hq-social h2 {
	margin: 0;
	color: var(--bs-green-900);
	font-family: var(--bs-font-display);
	font-size: var(--bs-type-sub);
	line-height: 1.05;
	text-transform: uppercase;
}

.bs-hq-hours-card__hours {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bs-sp-2);
	margin: 0;
	font-size: var(--bs-type-body);
}

.bs-hq-timeline .bs-timeline-bar {
	height: 16px;
	margin: var(--bs-sp-1) 0 var(--bs-sp-2);
}

.bs-hq-timeline .bs-timeline-slice {
	background-color: var(--bs-green-900);
}

.bs-hq-timeline .bs-timeline-labels {
	font-size: var(--bs-type-small);
	font-variant-numeric: tabular-nums;
}

.bs-hq-social {
	display: grid;
	align-content: start;
	gap: var(--bs-sp-3);
}

.bs-hq-social .bs-social-grid {
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: var(--bs-sp-3);
	margin: 0;
}

.bs-social-btn {
	min-height: 44px;
	padding: var(--bs-sp-2) var(--bs-sp-4);
	font-size: var(--bs-type-body);
}

.bs-social-btn svg {
	flex: 0 0 auto;
}

.bs-hq-cta {
	display: grid;
	justify-items: center;
	gap: var(--bs-sp-4);
	margin-top: var(--bs-sp-7);
	padding: var(--bs-sp-7) var(--bs-sp-4);
}

.bs-hq-cta h2 {
	margin: 0;
	font-size: var(--bs-type-section);
	line-height: 1;
}

.bs-hq-cta .bs-btn-primary {
	width: min(100%, 280px);
	max-width: none;
}

@media (min-width: 768px) {
	.bs-hq-hero {
		padding: var(--bs-sp-6) var(--bs-sp-7);
	}

	.bs-hq-hero__astro {
		height: 176px;
	}

	.bs-hq-actions,
	.bs-hq-info {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--bs-sp-5);
		margin-top: var(--bs-sp-5);
	}

	.bs-hq-hours-card {
		grid-column: span 2;
	}

	/* Three across: each card stacks centred, icon on top. The cards share one set of rows
	   (subgrid), so a title that wraps keeps every card's value on the same line. */
	.bs-hq-actions {
		grid-template-rows: repeat(3, auto);
	}

	.bs-hq-card {
		grid-row: span 3;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: subgrid;
		justify-items: center;
		gap: var(--bs-sp-2);
		padding: var(--bs-sp-5);
		text-align: center;
	}

	/* Same 44 px row as the phone links, so every value's first line sits at the same height. */
	.bs-hq-card__val {
		min-height: 44px;
		padding-block: calc((44px - 1.5em) / 2);
		line-height: 1.5;
	}

	.bs-hq-card__icon-wrap {
		grid-row: auto;
		width: 56px;
		height: 56px;
		margin-bottom: var(--bs-sp-1);
	}

	.bs-hq-card__icon-wrap svg,
	.bs-hq-card__icon-wrap img {
		width: 28px;
		height: 28px;
	}

	.bs-hq-card__phones {
		justify-items: center;
		margin-left: 0;
	}

	.bs-hq-hours-card,
	.bs-hq-social {
		padding: var(--bs-sp-5);
	}
}

/* ==========================================================================
   4. Legal pages (Privacy Policy, Terms)
   ========================================================================== */
.bs-legal-page {
	padding-block: var(--bs-sp-6) var(--bs-sp-8);
}

.bs-legal {
	max-width: 68ch;
	margin-inline: auto;
	font-size: var(--bs-type-body);
}

.bs-legal__header {
	display: grid;
	gap: var(--bs-sp-4);
}

.bs-legal__header:not(:last-child) {
	margin-bottom: var(--bs-sp-6);
	padding-bottom: var(--bs-sp-5);
	border-bottom: 1px solid var(--bs-line);
}

.bs-legal__title {
	color: var(--bs-green-900);
	font-family: var(--bs-font-display);
	font-size: var(--bs-type-section);
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.bs-legal__notice {
	display: flex;
	align-items: center;
	gap: var(--bs-sp-2);
	padding: var(--bs-sp-3) var(--bs-sp-4);
	border: 1px solid var(--bs-line);
	border-left: 4px solid var(--bs-green-900);
	border-radius: var(--bs-radius-md);
	background-color: var(--bs-white);
	color: var(--bs-ink-900);
	line-height: 1.4;
}

.bs-legal__notice svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--bs-green-900);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bs-legal__body {
	color: var(--bs-ink-900);
	line-height: 1.65;
}

.bs-legal__body > * + * {
	margin-top: var(--bs-sp-4);
}

.bs-legal__body h2 {
	margin-top: var(--bs-sp-7);
	color: var(--bs-green-900);
	font-size: clamp(18px, calc(17.2px + 0.2vw), 20px);
	font-weight: 800;
	line-height: 1.25;
}

.bs-legal__body h3 {
	margin-top: var(--bs-sp-6);
	font-size: var(--bs-type-card);
	font-weight: 700;
	line-height: 1.3;
}

.bs-legal__body > :first-child {
	margin-top: 0;
}

.bs-legal__body :is(h2, h3) + * {
	margin-top: var(--bs-sp-2);
}

.bs-legal__body :is(ul, ol) {
	display: grid;
	gap: var(--bs-sp-2);
	padding-left: 1.5em;
}

.bs-legal__body ul {
	list-style: disc;
}

.bs-legal__body ol {
	list-style: decimal;
}

.bs-legal__body li::marker {
	color: var(--bs-green-900);
	font-weight: 700;
}

.bs-legal__body li > :is(ul, ol) {
	margin-top: var(--bs-sp-2);
}

.bs-legal__body a {
	color: var(--bs-green-900);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bs-legal__body a:hover {
	text-decoration-thickness: 2px;
}

.bs-legal__body strong {
	font-weight: 700;
}

.bs-legal__body hr {
	border: 0;
	border-top: 1px solid var(--bs-line);
}

.bs-legal__body blockquote {
	padding-left: var(--bs-sp-4);
	border-left: 4px solid var(--bs-line);
	color: var(--bs-ink-600);
}

/* ==========================================================================
   5. 404
   ========================================================================== */
.bs-404-card {
	padding: var(--bs-sp-6) var(--bs-sp-5);
	box-shadow: var(--bs-shadow-card);
}

/* 07 §6 allows one short reveal, not a looping float. */
.bs-404__astro {
	height: 112px;
	margin-bottom: var(--bs-sp-3);
	animation: none;
}

.bs-404__numeral {
	font-size: var(--bs-type-hero);
}

.bs-404-card h1 {
	margin: var(--bs-sp-2) 0 0;
	font-size: var(--bs-type-section);
	line-height: 1.05;
}

.bs-404-card p {
	max-width: 34ch;
	margin: var(--bs-sp-3) auto var(--bs-sp-5);
	font-size: var(--bs-type-body);
	line-height: 1.5;
}

.bs-404-card .bs-btn-primary {
	width: min(100%, 260px);
	max-width: none;
}

@media (min-width: 768px) {
	.bs-404-card {
		padding: var(--bs-sp-7);
	}
}

/* ==========================================================================
   6. Classic checkout (the no-JavaScript fallback for the order panel)
   ========================================================================== */

/* The floating "View cart" bar would cover the form; the order summary is on the page. */
body.woocommerce-checkout .bs-mobile-cart-bar {
	display: none;
}

@media (max-width: 767px) {
	.bs-checkout-page {
		padding-block: var(--bs-sp-5) var(--bs-sp-7);
	}
}

@media (min-width: 768px) and (max-width: 1099px) {
	body.woocommerce-checkout.bs-mobile-cart-visible {
		padding-bottom: 0;
	}
}

.bs-checkout-page .bs-closed-banner {
	align-items: flex-start;
	gap: var(--bs-sp-3);
	margin-bottom: var(--bs-sp-5);
	padding: var(--bs-sp-3) var(--bs-sp-4);
	font-size: var(--bs-type-body);
	font-weight: 600;
	line-height: 1.5;
}

.bs-checkout-page .bs-closed-banner svg {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bs-checkout-page .bs-closed-banner .bs-ticker__badge {
	white-space: nowrap;
}

.bs-checkout-page .bs-form-title {
	font-size: var(--bs-type-section);
	line-height: 1;
}

.woocommerce .woocommerce-billing-fields h3,
.woocommerce .woocommerce-additional-fields h3,
.bs-checkout-summary h2 {
	font-size: var(--bs-type-sub);
	line-height: 1.05;
}

/* WooCommerce's ".form-row .input-text" outranks the theme's textarea rule, so the two textareas
   rendered white with a dark border. Match them to the other fields (focus restated: same specificity). */
.woocommerce form .form-row textarea.input-text {
	padding: 12px 14px;
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius-input);
	background-color: var(--bs-cream-50);
	color: var(--bs-ink-900);
	line-height: 1.4;
}

.woocommerce form .form-row textarea.input-text:focus {
	border-color: var(--bs-green-900);
	outline: 0;
	background-color: var(--bs-white);
	box-shadow: 0 0 0 3px rgb(20 17 15 / 15%);
}

/* 16 px stops iOS Safari from zooming the page when a field takes focus. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	font-size: 16px;
}

.woocommerce form .form-row label {
	font-size: var(--bs-type-small);
}

.woocommerce #billing_phone_field .description.bs-field-hint {
	font-size: var(--bs-type-small);
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
	font-variant-numeric: tabular-nums;
}

.woocommerce-checkout #payment {
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius-card);
	background: var(--bs-cream-100);
}

.woocommerce-checkout #payment ul.payment_methods {
	margin: 0;
	padding: var(--bs-sp-3) var(--bs-sp-4);
	border-bottom: 1px solid var(--bs-line);
}

.woocommerce-checkout #payment ul.payment_methods li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--bs-sp-2);
	line-height: 1.4;
}

.woocommerce-checkout #payment ul.payment_methods li input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--bs-green-900);
}

.woocommerce-checkout #payment ul.payment_methods li label {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	color: var(--bs-ink-900);
	font-size: var(--bs-type-body);
	font-weight: 700;
}

.woocommerce-checkout #payment div.payment_box {
	flex: 0 0 100%;
	margin: 0 0 var(--bs-sp-1);
	padding: var(--bs-sp-3);
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius-md);
	background-color: var(--bs-white);
	color: var(--bs-ink-600);
	font-size: var(--bs-type-small);
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #payment div.payment_box p {
	margin: 0;
}

.woocommerce-checkout #payment div.form-row {
	display: grid;
	gap: var(--bs-sp-4);
	margin: 0;
	padding: var(--bs-sp-4);
	color: var(--bs-ink-600);
	font-size: var(--bs-type-small);
	line-height: 1.5;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
	margin: 0;
}

/* Inline in its sentence again (the 44 px inline-flex box broke the line); vertical padding on an
   inline box enlarges the tap area to 44 px without moving any text. */
.woocommerce-checkout .woocommerce-privacy-policy-text .woocommerce-privacy-policy-link {
	min-height: 0;
	display: inline;
	padding-block: 15px;
	color: var(--bs-green-900);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* No-JavaScript only: WooCommerce's "Update totals" is a secondary action, not a second yellow button. */
.woocommerce-checkout #payment button[name="woocommerce_checkout_update_totals"] {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	margin-top: var(--bs-sp-3);
	padding: var(--bs-sp-2) var(--bs-sp-5);
	border: 2px solid var(--bs-green-900);
	border-radius: var(--bs-radius-pill);
	background-color: transparent;
	color: var(--bs-green-900);
	font-size: var(--bs-type-body);
	font-weight: 800;
}

.woocommerce-checkout #payment button[name="woocommerce_checkout_update_totals"]:hover {
	background-color: var(--bs-green-900);
	color: var(--bs-white);
}

/* ==========================================================================
   7. Order received (thank-you)
   ========================================================================== */
.bs-checkout-page .bs-thankyou-page {
	padding-block: 0;
}

.bs-thankyou-card {
	max-width: 620px;
	padding: var(--bs-sp-6) var(--bs-sp-4);
	box-shadow: var(--bs-shadow-card);
}

.woocommerce .bs-thankyou__astro {
	height: 96px;
	margin-bottom: var(--bs-sp-3);
	filter: none;
}

.bs-thankyou__title {
	font-size: var(--bs-type-section);
	line-height: 1.05;
}

.bs-thankyou__order-badge {
	font-size: var(--bs-type-body);
	font-variant-numeric: tabular-nums;
}

.bs-thankyou__quote {
	font-size: var(--bs-type-body);
	line-height: 1.4;
}

.bs-thankyou__note {
	margin-bottom: var(--bs-sp-3);
	font-size: var(--bs-type-body);
}

.bs-whatsapp-confirm {
	width: min(100%, 400px);
	margin-block: var(--bs-sp-2) 0;
	font-size: var(--bs-type-card);
}

.bs-whatsapp-confirm img {
	flex: 0 0 auto;
}

.bs-thankyou-details {
	margin-block: var(--bs-sp-5);
	border: 1px solid var(--bs-line);
}

.bs-thankyou-details__title {
	font-size: var(--bs-type-small);
	letter-spacing: 0.06em;
}

.bs-thankyou-details__list > div {
	align-items: baseline;
}

.bs-thankyou-details dt {
	flex: 0 0 auto;
	font-size: var(--bs-type-small);
	white-space: nowrap;
}

.bs-thankyou-details dd {
	min-width: 0;
	font-size: var(--bs-type-small);
	overflow-wrap: anywhere;
}

.bs-thankyou-details dd a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	margin-block: -14px;
	color: var(--bs-green-900);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bs-thankyou-details__total dt,
.bs-thankyou-details__total dd {
	color: var(--bs-ink-900);
	font-size: var(--bs-type-body);
	font-weight: 800;
}

.bs-thankyou-card > .bs-btn-primary {
	width: min(100%, 400px);
}

.bs-thankyou-page .woocommerce-order-details {
	max-width: 620px;
	margin: var(--bs-sp-5) auto 0;
	padding: var(--bs-sp-5) var(--bs-sp-4);
	border-radius: var(--bs-radius-modal);
	box-shadow: var(--bs-shadow-card);
}

.bs-thankyou-page .woocommerce-order-details__title {
	margin-bottom: var(--bs-sp-3);
	color: var(--bs-green-900);
	font-family: var(--bs-font-display);
	font-size: var(--bs-type-sub);
	line-height: 1.05;
	text-transform: uppercase;
}

.bs-thankyou-page .woocommerce-table--order-details {
	margin: 0;
	font-size: var(--bs-type-small);
	font-variant-numeric: tabular-nums;
}

.bs-thankyou-page .woocommerce-table--order-details :is(th, td) {
	padding-block: var(--bs-sp-3);
}

/* Item names and their options get the room; the totals column only needs a price. */
.bs-thankyou-page .woocommerce-table--order-details .product-name {
	width: 62%;
}

/* 44 px hit area without making the row taller. */
.bs-thankyou-page .woocommerce-table--order-details .product-name a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	margin-block: -12px;
	color: var(--bs-green-900);
	font-size: var(--bs-type-body);
	font-weight: 700;
}

.bs-thankyou-page .woocommerce-table--order-details td:last-child {
	padding-left: var(--bs-sp-4);
}

.bs-thankyou-page .woocommerce-table--order-details .woocommerce-Price-amount {
	white-space: nowrap;
}

.bs-thankyou-page .woocommerce-table--order-details .wc-item-meta {
	display: grid;
	gap: var(--bs-sp-1);
	margin: var(--bs-sp-2) 0 0;
	padding: 0;
	color: var(--bs-ink-600);
	list-style: none;
}

.bs-thankyou-page .woocommerce-table--order-details .wc-item-meta :is(strong, p) {
	display: inline;
	margin: 0;
	font-weight: 600;
}

.bs-thankyou-page .woocommerce-table--order-details .wc-item-meta strong {
	color: var(--bs-ink-900);
}

.bs-thankyou-page .woocommerce-table--order-details tfoot th {
	color: var(--bs-ink-600);
	font-weight: 600;
}

/* The card above already lists name, phone and address; WooCommerce's billing box would repeat them. */
.bs-thankyou-page .woocommerce-customer-details {
	display: none;
}

.bs-thankyou-page > .woocommerce-thankyou-order-received {
	max-width: 620px;
	margin-inline: auto;
	padding: var(--bs-sp-5) var(--bs-sp-4);
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius-modal);
	background-color: var(--bs-white);
	font-size: var(--bs-type-body);
	font-weight: 700;
	text-align: center;
}

.woocommerce-thankyou-order-failed-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--bs-sp-3);
	margin-top: var(--bs-sp-4);
}

@media (min-width: 768px) {
	.bs-thankyou-card {
		padding: var(--bs-sp-7);
	}

	.woocommerce .bs-thankyou__astro {
		height: 112px;
	}

	.bs-thankyou-page .woocommerce-order-details {
		padding: var(--bs-sp-6);
	}
}
