/* Woo surfaces: product cards, shop, PDP, checkout, thank-you */

/* ---- Product cards ---- */

ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gutter);
}

@media (max-width: 64rem) {
	ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 34rem) {
	ul.products {
		grid-template-columns: 1fr;
	}
}

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	overflow: hidden;
	transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.product-card:hover {
	box-shadow: var(--shadow-card);
	transform: translateY(-2px);
}

.product-card__link {
	flex: 1;
	display: block;
	text-decoration: none;
}

.product-card__head {
	display: block;
	padding: var(--space-5) var(--space-5) 0;
	margin-bottom: var(--space-3);
}

.product-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: var(--text-l);
	font-weight: 600;
	letter-spacing: var(--tracking-tight);
	line-height: 1.15;
	/* Reserve two lines so 1- and 2-line names align every image identically. */
	min-height: 2.3em;
}

.product-card__descriptor {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: var(--space-1);
	font-size: var(--text-xs);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--gray);
}

/* Narrow 2-up columns wrap descriptors — reserve two lines so every image
   still starts at the same height, without truncating the text. */
@media (max-width: 64rem) {
	.product-card__descriptor {
		-webkit-line-clamp: 2;
		min-height: 2.7em;
	}
}

.product-card__media {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__from {
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	opacity: 0.75;
}

.product-card__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	border-top: 1px solid var(--line);
}

.product-card__price {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	background: var(--green-deep);
	color: var(--white);
	font-weight: 600;
	font-size: var(--text-s);
	padding: var(--space-4) var(--space-3);
}

.product-card__price .woocommerce-Price-amount {
	color: var(--white);
}

.product-card__atc {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	text-decoration: none;
	background: var(--white);
	transition: background 0.2s var(--ease-out);
}

.product-card__atc svg {
	width: 18px;
	height: 18px;
}

.product-card__atc:hover {
	background: var(--bg);
}

/* ---- Shop ---- */

.shop-hero {
	position: relative;
	min-height: clamp(22rem, 42vw, 34rem);
	display: flex;
	align-items: center;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.shop-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: -2;
}

/* Left scrim so the copy reads over the photo; the vials on the right stay clear. */
.shop-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(28 22 16 / 0.74) 0%, rgb(28 22 16 / 0.5) 30%, rgb(28 22 16 / 0.12) 52%, transparent 66%);
	z-index: -1;
}

.shop-hero__inner {
	position: relative;
	padding: clamp(2rem, 4vw, 4.5rem);
	max-width: 44rem;
}

.shop-hero__eyebrow {
	color: rgb(255 255 255 / 0.75);
}

.shop-hero__title {
	font-size: var(--text-hero);
	font-weight: 650;
	color: #fff;
	margin-bottom: var(--space-4);
	text-shadow: 0 2px 24px rgb(0 0 0 / 0.3);
}

.shop-hero__desc {
	color: rgb(255 255 255 / 0.88);
	margin: 0;
	max-width: 34rem;
}

.shop-page {
	padding-block: var(--space-5) var(--space-8);
}

.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	margin-bottom: var(--space-6);
	flex-wrap: wrap;
}

/* Single scrollable row (Peaked-style) — never stacks, slim pills. */
.shop-filter {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--space-2);
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.shop-filter::-webkit-scrollbar {
	display: none;
}

.shop-filter__pill {
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	text-decoration: none;
	border: 1.5px solid var(--pill-color, var(--line));
	border-radius: var(--radius-pill);
	padding: var(--space-2) var(--space-4);
	background: var(--white);
	transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.shop-filter__pill:hover {
	background: var(--card);
}

.shop-filter__pill.is-active {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}

.shop-search {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: var(--space-3) var(--space-5);
	min-width: min(22rem, 100%);
	color: var(--gray);
}

.shop-search svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.shop-search input {
	border: 0;
	outline: none;
	background: none;
	width: 100%;
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--ink);
}

/* ---- Notices ---- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: var(--white);
	padding: var(--space-4);
	margin: 0 0 var(--space-5);
}

.woocommerce-error {
	border-color: #9c3f2f;
	color: #9c3f2f;
}

/* ---- PDP ---- */

.pdp {
	padding-block: var(--space-6) var(--space-8);
}

.pdp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: start;
}

/* Desktop: main image full-width on top, four placeholders in a 2-col grid. */
.pdp-gallery__track {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gutter);
}

.pdp-gallery__slide {
	margin: 0;
	border-radius: var(--radius-m);
	overflow: hidden;
	background: #eef1f4;
}

.pdp-gallery__slide--main {
	grid-column: 1 / -1;
}

.pdp-gallery__slide img,
.pdp-gallery__video {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.pdp-gallery__dots {
	display: none;
}

.pdp-gallery__thumbs {
	display: none;
}

/* Sticky buy column while the tall gallery scrolls (Peaked-style). */
.pdp-buy {
	position: sticky;
	top: calc(var(--space-3) + 5rem);
}

.pdp-title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-3);
}

.pdp-desc {
	color: var(--gray);
	max-width: 46ch;
}

.pdp-price-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-block: var(--space-4) var(--space-2);
}

.pdp-price {
	font-size: var(--text-xl);
	font-weight: 650;
	letter-spacing: var(--tracking-tight);
	margin: 0;
}

.pdp-guarantee {
	color: var(--gray);
	font-size: var(--text-s);
	margin-bottom: var(--space-5);
}

.pdp-label {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--gray);
	margin: var(--space-5) 0 var(--space-3);
}

/* Format + size rows — inline label left, pills right (Peaked "DOSAGE" row) */

.pdp-variation {
	border: 0;
	padding: 0;
	margin: 0 0 var(--space-4);
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.pdp-variation__label {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--gray);
	padding: 0;
	margin: 0;
	min-width: 4.5rem;
	flex: none;
}

.pdp-variation__pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.pdp-variation__pill {
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--white);
	padding: 0.75em 1.3em;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: all 0.2s var(--ease-out);
}

.pdp-variation__pill:hover {
	border-color: var(--ink);
}

.pdp-variation__pill.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--white);
}

/* Tier pricing cards */

.tier-cards {
	display: grid;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.tier-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: var(--white);
	padding: var(--space-4) var(--space-5);
	cursor: pointer;
	transition: border-color 0.2s var(--ease-out);
}

.tier-card:hover {
	border-color: var(--gray);
}

.tier-card.is-selected {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 1px var(--accent);
}

.tier-card__radio {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--accent);
}

.tier-card__label {
	font-weight: 600;
}

.tier-card__save {
	margin-left: var(--space-2);
}

.tier-card__each {
	display: block;
	font-size: var(--text-s);
	color: var(--gray);
}

.tier-card__prices {
	margin-left: auto;
	text-align: right;
}

.tier-card__price {
	font-weight: 650;
	font-size: var(--text-l);
}

.tier-card__compare {
	display: block;
	font-size: var(--text-s);
	color: var(--gray);
	text-decoration: line-through;
}

.tier-card__ribbon {
	position: absolute;
	top: -0.7rem;
	right: var(--space-4);
	background: var(--green-deep);
	color: var(--white);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: var(--radius-pill);
	padding: 0.3em 0.9em;
}

/* Subscribe & Save toggle — Peaked-style dashed opt-in below the tier cards. */

.subscribe-toggle {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	border: 1.5px dashed var(--gray);
	border-radius: var(--radius-m);
	padding: var(--space-4) var(--space-5);
	margin-bottom: var(--space-4);
	background: var(--card);
	cursor: pointer;
	transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.subscribe-toggle__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.subscribe-toggle__check {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.4rem;
	height: 1.4rem;
	border: 1.5px solid var(--gray);
	border-radius: 50%;
	background: var(--white);
	color: transparent;
	transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.subscribe-toggle__check svg {
	width: 0.8rem;
	height: 0.8rem;
}

.subscribe-toggle__title {
	display: block;
	font-weight: 650;
	color: var(--ink);
}

.subscribe-toggle__desc {
	display: block;
	font-size: var(--text-xs);
	color: var(--gray);
}

.subscribe-toggle.is-on {
	border-color: var(--accent);
	background: var(--accent-tint);
}

.subscribe-toggle.is-on .subscribe-toggle__check {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--white);
}

/* Buy-1 savings chip only exists once subscribed (combined % shown by JS). */
.tier-card__save--zero {
	display: none;
}

.tier-cards.is-subscribed .tier-card__save--zero {
	display: inline-flex;
}

/* Buy row */

.pdp-buy-row {
	display: flex;
	gap: var(--space-3);
	align-items: stretch;
	margin-block: var(--space-2) var(--space-4);
}

.pdp-form {
	margin-block: var(--space-4) var(--space-6);
}

.pdp-form .pdp-label {
	margin-top: var(--space-5);
}

.pdp-buy-row .quantity {
	display: flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: var(--white);
	overflow: hidden;
}

.pdp-buy-row .quantity input {
	width: 3.2rem;
	border: 0;
	text-align: center;
	font: inherit;
	font-weight: 600;
	appearance: textfield;
	-moz-appearance: textfield;
}

.pdp-buy-row .quantity input::-webkit-inner-spin-button {
	display: none;
}

.qty-btn {
	border: 0;
	background: none;
	padding: 0 var(--space-4);
	font-size: var(--text-l);
	color: var(--gray);
}

.pdp-form form.cart .single_add_to_cart_button {
	flex: 1;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--white);
	font: inherit;
	font-weight: 600;
	font-size: var(--text-m);
	padding: 1em 2em;
	transition: background 0.2s var(--ease-out);
}

.pdp-form form.cart .single_add_to_cart_button:hover {
	background: var(--accent-deep);
}

.woocommerce-variation-price {
	display: none; /* live price is shown in the title row + tier cards */
}

/* PDP accordions */

.pdp-accordions {
	border-top: 1px solid var(--line);
	margin-top: var(--space-6);
}

.pdp-acc {
	border-bottom: 1px solid var(--line);
}

.pdp-acc__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-5) 0;
	font-weight: 600;
	font-size: var(--text-l);
	letter-spacing: var(--tracking-tight);
	cursor: pointer;
	list-style: none;
}

.pdp-acc__q::-webkit-details-marker {
	display: none;
}

.pdp-acc__icon {
	color: var(--gray);
	font-weight: 400;
	font-size: 1.4rem;
	transition: transform 0.25s var(--ease-out);
}

.pdp-acc[open] .pdp-acc__icon {
	transform: rotate(45deg);
}

.pdp-acc__a {
	padding-bottom: var(--space-5);
	color: var(--gray);
}

.pdp-acc__a strong {
	color: var(--ink);
}

.pdp-acc__a ul {
	padding-left: 1.1em;
	display: grid;
	gap: var(--space-3);
	margin: 0;
}

/* Cross-sell row + collection button */

.routine-card {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: var(--white);
	padding: var(--space-3) var(--space-4);
	margin-bottom: var(--space-4);
}

.routine-card__thumb {
	width: 4rem;
	height: 4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	object-fit: cover;
	background: var(--bg);
}

.routine-card__name {
	font-weight: 600;
	margin: 0;
}

.routine-card__price {
	color: var(--gray);
	margin: 0;
	font-size: var(--text-s);
}

.routine-card__add {
	margin-left: auto;
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--white);
	font-size: 1.2rem;
	cursor: pointer;
	transition: background 0.2s var(--ease-out);
}

.routine-card__add:hover {
	background: var(--bg);
}

.pdp-collection-btn {
	display: block;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	padding: var(--space-4);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s var(--ease-out);
}

.pdp-collection-btn:hover {
	background: var(--white);
}

/* Purity banner */

.pdp-banner {
	background:
		radial-gradient(44rem 30rem at 12% 10%, rgb(164 199 230 / 0.55), transparent 60%),
		radial-gradient(40rem 28rem at 90% 90%, rgb(196 220 240 / 0.5), transparent 60%),
		#f6fafd;
	min-height: 34rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-6);
	color: var(--ink);
	padding: clamp(2rem, 4vw, 4rem);
}

.pdp-banner__title {
	font-size: var(--text-2xl);
	color: var(--ink);
	max-width: 24ch;
}

.pdp-banner__features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: var(--space-6);
	background: rgb(255 255 255 / 0.45);
	backdrop-filter: blur(18px) saturate(1.3);
	border: 1px solid rgb(255 255 255 / 0.65);
	border-radius: var(--radius-m);
	box-shadow: 0 16px 50px rgb(73 97 127 / 0.12);
	padding: clamp(1.5rem, 3vw, 3rem);
}

.pdp-banner__features h3 {
	font-size: var(--text-l);
	color: var(--ink);
	margin: var(--space-4) 0 var(--space-2);
}

.pdp-banner__features p {
	font-size: var(--text-s);
	color: var(--gray);
	margin: 0;
}

.pdp-banner__features svg {
	width: 34px;
	height: 34px;
	color: var(--accent);
}

/* Sticky ATC */

.pdp-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	transform: translateY(130%);
	transition: transform 0.35s var(--ease-out);
	pointer-events: none;
}

.pdp-sticky.is-visible {
	transform: translateY(0);
}

/* Floating rounded card (Bluum-style): thumb + name/dosage + add-to-cart. */
.pdp-sticky__inner {
	pointer-events: auto;
	max-width: 56rem;
	margin: 0 auto var(--space-4);
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	box-shadow: 0 18px 44px rgb(19 21 19 / 0.16);
}

.pdp-sticky__thumb {
	flex: none;
}

.pdp-sticky__thumb img {
	display: block;
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: var(--radius-s);
	border: 1px solid var(--line);
}

.pdp-sticky__info {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
	margin-right: auto;
}

.pdp-sticky__name {
	font-weight: 650;
	font-size: var(--text-m);
	letter-spacing: var(--tracking-tight);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pdp-sticky__pills .pdp-variation__pills {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.4rem;
}

.pdp-sticky__pills .pdp-variation__pill {
	white-space: nowrap;
}

.pdp-sticky__pills .pdp-variation__pill {
	padding: 0.32em 0.85em;
	font-size: var(--text-xs);
	border-radius: var(--radius-s);
}

.pdp-sticky__buy {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: var(--text-s);
	padding: 0.95em 1.7em;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pdp-sticky__buy:hover {
	background: var(--accent-deep);
}

.pdp-sticky__buy-label {
	position: relative;
	padding-right: 0.75em;
}

.pdp-sticky__buy-label::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 1.15em;
	background: rgb(255 255 255 / 0.4);
}

.pdp-sticky__price {
	color: #fff;
	font-weight: 600;
}

.pdp-sticky__price .amount {
	color: #fff;
}

@media (max-width: 40rem) {
	/* Keep the full desktop-style bar (thumb + dosage + price) — just compact
	   it so it fits. The name is the only variable-width element that can
	   overflow, so drop it when dosage pills are present (you are already on
	   the product's own page). */
	.pdp-sticky__inner {
		gap: var(--space-2);
		padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
		margin-inline: var(--space-3);
		margin-bottom: var(--space-2);
		border-radius: var(--radius-m);
	}
	.pdp-sticky__thumb img {
		width: 44px;
		height: 44px;
	}
	.pdp-sticky__name {
		font-size: var(--text-s);
	}
	.pdp-sticky__info:has(.pdp-variation__pill) .pdp-sticky__name {
		display: none;
	}
	.pdp-sticky__pills .pdp-variation__pill {
		padding: 0.28em 0.7em;
	}
	.pdp-sticky__buy {
		padding: 0.85em 1.1em;
		gap: 0.5em;
	}
}

/* Very narrow phones: drop the thumbnail so the dosage selector + price never
   overflow. */
@media (max-width: 22rem) {
	.pdp-sticky__thumb {
		display: none;
	}
}

/* ---- Checkout ---- */

.checkout-page {
	padding-block: var(--space-6) var(--space-8);
}

.checkout-title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-6);
}

.checkout-grid {
	display: grid;
	grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
	gap: var(--space-7);
	align-items: start;
}

.checkout-section {
	margin-bottom: var(--space-6);
}

.checkout-section__title {
	font-size: var(--text-l);
	margin-bottom: var(--space-4);
}

.checkout-trust__note {
	font-size: var(--text-s);
	color: var(--gray);
	margin-top: var(--space-3);
}

.checkout-aside__inner {
	position: sticky;
	top: 5.5rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	padding: var(--space-5);
}

.woocommerce-checkout .form-row {
	margin: 0 0 var(--space-4);
	padding: 0;
	display: block;
}

.woocommerce-checkout .form-row label {
	display: block;
	font-size: var(--text-s);
	font-weight: 500;
	margin-bottom: var(--space-1);
}

.woocommerce-checkout .form-row .required {
	color: #9c3f2f;
	text-decoration: none;
}

.woocommerce-checkout .woocommerce-input-wrapper {
	display: block;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select {
	width: 100%;
	font: inherit;
	padding: 0.75em 1em;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--white);
	color: var(--ink);
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus {
	outline: none;
	border-color: var(--ink);
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: var(--space-3);
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

#ship-to-different-address {
	font-size: var(--text-m);
	font-weight: 500;
}

#ship-to-different-address .woocommerce-form__label-for-checkbox {
	display: flex;
	gap: var(--space-2);
	align-items: center;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
	background: var(--bg);
	border: 0;
	font-size: var(--text-s);
}

.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-s);
}

.review-item__row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding-block: var(--space-3);
	border-bottom: 1px solid var(--line);
}

.review-item__thumb {
	position: relative;
	flex: none;
}

.review-item__thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--radius-s);
	border: 1px solid var(--line);
}

.review-item__qty {
	position: absolute;
	top: -0.5rem;
	right: -0.5rem;
	display: grid;
	place-items: center;
	line-height: 1;
	min-width: 1.25rem;
	height: 1.25rem;
	padding-inline: 0.3rem;
	border-radius: var(--radius-pill);
	background: var(--green-deep);
	color: var(--white);
	font-size: var(--text-xs);
}

.review-item__meta {
	flex: 1;
}

.review-item__name {
	margin: 0;
	font-weight: 500;
}

.review-item__meta .variation {
	margin: 0;
	color: var(--gray);
	font-size: var(--text-xs);
	display: flex;
	gap: var(--space-1);
}

.review-item__meta .variation dt,
.review-item__meta .variation dd {
	margin: 0;
	display: inline;
}

.review-item__total {
	font-weight: 600;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
	padding: var(--space-2) 0;
	text-align: left;
}

.woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
}

.woocommerce-checkout-review-order-table ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: right;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
	border-top: 1px solid var(--line);
	padding-top: var(--space-3);
	font-size: var(--text-m);
}

#payment {
	margin-top: var(--space-4);
}

.wc_payment_methods {
	list-style: none;
	margin: 0 0 var(--space-4);
	padding: 0;
	display: grid;
	gap: var(--space-2);
}

.wc_payment_method {
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	padding: var(--space-3) var(--space-4);
	background: var(--card);
}

.wc_payment_method:has(input:checked) {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}

.wc_payment_method > label {
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	cursor: pointer;
}

.wc_payment_method input[type="radio"] {
	accent-color: var(--ink);
}

.payment_box {
	font-size: var(--text-s);
	color: var(--gray);
	margin-top: var(--space-3);
}

.payment_box p:last-child {
	margin-bottom: 0;
}

/* WooPayments card form (Tabs/Shopify look): drop the nested fieldset box so
   the card fields sit directly inside the selected Card method. The fields
   themselves are Stripe iframes styled by Woo's appearance API. */
.payment_box .wcpay-upe-form {
	margin: 0;
}

.payment_box fieldset.wc-payment-form,
.payment_box .wc-payment-form {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.payment_box .wcpay-upe-element {
	margin: 0;
}

/* Save-card / any checkbox row inside the box: readable inline label. */
.payment_box label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-s);
	color: var(--ink);
	margin-top: var(--space-3);
}

.azoth-attestation {
	border: 1.5px dashed var(--green-deep);
	background: var(--green-tint);
	border-radius: var(--radius-m);
	padding: var(--space-4);
	margin-bottom: var(--space-4);
	font-size: var(--text-s);
}

.azoth-attestation label {
	display: flex;
	gap: var(--space-3);
	align-items: flex-start;
	cursor: pointer;
}

.azoth-attestation input {
	margin-top: 0.2em;
	accent-color: var(--green-deep);
}

.woocommerce-privacy-policy-text {
	font-size: var(--text-xs);
	color: var(--gray);
}

#place_order {
	display: block;
	width: 100%;
	text-align: center;
	padding: 1em;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--white);
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: var(--text-s);
}

#place_order:hover {
	background: var(--accent-deep);
}

.woocommerce-order {
	padding-block: var(--space-6);
}

.azoth-payment-instructions {
	border: 1.5px dashed var(--green-deep);
	background: var(--green-tint);
	border-radius: var(--radius-m);
	padding: var(--space-5);
	margin-block: var(--space-5);
}

.woocommerce-order-overview {
	list-style: none;
	margin: var(--space-5) 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-5);
	font-size: var(--text-s);
	color: var(--gray);
}

.woocommerce-order-overview strong {
	display: block;
	color: var(--ink);
	font-size: var(--text-m);
}

@media (max-width: 60rem) {
	.pdp-grid,
	.checkout-grid {
		grid-template-columns: 1fr;
	}

	.checkout-aside__inner {
		position: static;
	}

	.pdp-buy {
		position: static;
	}

	/* Gallery becomes a full-width swipe carousel with dot indicators. */
	.pdp-gallery__track {
		display: flex;
		grid-template-columns: none;
		gap: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.pdp-gallery__track::-webkit-scrollbar {
		display: none;
	}

	.pdp-gallery__slide {
		flex: 0 0 100%;
		scroll-snap-align: center;
	}

	.pdp-gallery__slide--main {
		grid-column: auto;
	}

	.pdp-gallery__dots {
		display: flex;
		justify-content: center;
		gap: 0.5rem;
		margin-top: var(--space-4);
	}

	.pdp-gallery__dot {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--line);
		cursor: pointer;
		transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
	}

	.pdp-gallery__dot.is-active {
		background: var(--accent);
		transform: scale(1.3);
	}

	/* Kannik-style filmstrip: dots replaced by a peeking thumbnail row. */
	.pdp-gallery__dots {
		display: none;
	}

	.pdp-gallery__thumbs {
		display: flex;
		gap: var(--space-2);
		margin-top: var(--space-3);
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
	}

	.pdp-gallery__thumbs::-webkit-scrollbar {
		display: none;
	}

	.pdp-gallery__thumb {
		flex: 0 0 22%;
		aspect-ratio: 1;
		padding: 0;
		border: 1px solid var(--line);
		border-radius: var(--radius-s);
		overflow: hidden;
		background: #eef1f4;
		cursor: pointer;
		scroll-snap-align: start;
		opacity: 0.55;
		transition: opacity 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
	}

	.pdp-gallery__thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	.pdp-gallery__thumb.is-active {
		opacity: 1;
		border-color: var(--accent);
	}
}

/* Format switch (vial <-> spray) */

.format-switch {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-bottom: var(--space-4);
}

.format-switch .pdp-variation__label {
	min-width: 4.5rem;
	flex: none;
}

.format-switch__link {
	text-decoration: none;
	color: var(--accent);
	border-style: dashed;
}

.format-switch__link:hover {
	border-color: var(--accent);
	background: var(--accent-tint);
}

/* ---- Lab results (Bluum-style lot cards) ---- */

.lab-results {
	margin-block: var(--space-5) var(--space-2);
}

.lot-card {
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: var(--white);
	overflow: hidden;
}

.lot-card__head {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
	cursor: pointer;
	list-style: none;
}

.lot-card__head::-webkit-details-marker {
	display: none;
}

.lot-card__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent-tint);
	border: 2px solid var(--accent);
}

.lot-card__meta {
	flex: 1;
	display: grid;
	gap: 2px;
	min-width: 0;
}

.lot-card__lot {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-weight: 600;
	font-size: var(--text-s);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-wrap: wrap;
}

.lot-card__chip {
	font-size: 0.6rem;
}

.lot-card__sub {
	font-size: var(--text-xs);
	color: var(--gray);
}

.lot-card__purity {
	font-weight: 650;
	font-size: var(--text-m);
}

.lot-card__caret {
	color: var(--gray);
	transition: transform 0.25s var(--ease-out);
}

.lot-card[open] .lot-card__caret {
	transform: rotate(180deg);
}

.lot-card__row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-5);
	border-top: 1px solid var(--line);
	text-decoration: none;
	font-size: var(--text-s);
	font-weight: 500;
	transition: background 0.2s var(--ease-out);
}

.lot-card__row:hover {
	background: var(--card);
}

.lot-card__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: var(--radius-s);
	background: var(--accent-tint);
	color: var(--accent);
}

.lot-card__icon svg {
	width: 15px;
	height: 15px;
}

.lot-card__ext {
	color: var(--gray);
	font-size: var(--text-xs);
}

.lot-card__value {
	margin-left: auto;
	font-weight: 600;
}

.lab-ruo {
	background: var(--card);
	border-radius: var(--radius-m);
	padding: var(--space-5);
	margin-top: var(--gutter);
	font-size: var(--text-s);
	color: var(--gray);
}

.lab-ruo__title {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: var(--space-2);
}

.lab-ruo p:last-child {
	margin: 0;
}

/* Shop hero mobile: photo banner with the copy overlaid at the bottom. */
@media (max-width: 48rem) {
	.shop-hero {
		min-height: clamp(18rem, 72vw, 26rem);
		align-items: flex-end;
	}

	.shop-hero__bg {
		object-position: 62% 45%;
	}

	.shop-hero::before {
		background: linear-gradient(to top, rgb(28 22 16 / 0.82) 0%, rgb(28 22 16 / 0.45) 45%, rgb(28 22 16 / 0.15) 100%);
	}

	.shop-hero__inner {
		padding-bottom: var(--space-5);
	}
}

/* Instant category filter: cards toggle without a page load (shop.js) */
.products .product-card.is-off {
	display: none;
}

.shop-empty {
	padding: var(--space-6) 0;
	color: var(--ink-soft);
	text-align: center;
}

/* ══════════ Mobile optimization pass ══════════ */

/* Checkout controls: native 13px radios/checkboxes are too small to tap. */
.woocommerce-checkout input[type="radio"],
.woocommerce-checkout input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--accent);
	flex-shrink: 0;
}

.woocommerce-shipping-methods li {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding-block: var(--space-1);
}

/* iOS zooms the page when a focused field is under 16px. */
.pdp-variation__native select {
	font-size: 16px;
}

@media (max-width: 48rem) {
	.shop-toolbar {
		gap: var(--space-4);
	}

	.shop-search {
		width: 100%;
	}

	.shop-search input {
		font-size: 16px;
		padding-block: var(--space-2);
	}
}

/* Product grid: 2-up on phones like every serious storefront; the split
   bar compacts to price + icon-only add button. */
@media (max-width: 34rem) {
	ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-3);
	}

	.product-card__title {
		font-size: var(--text-m);
	}

	.product-card__bar {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.product-card__price {
		font-size: var(--text-xs);
		padding-inline: var(--space-2);
	}

	.product-card__atc {
		font-size: 0;
		gap: 0;
		min-width: 44px;
		min-height: 44px;
	}

	.product-card__atc svg {
		width: 18px;
		height: 18px;
	}
}

/* PDP quantity controls: comfortable thumb targets. */
@media (max-width: 48rem) {
	.qty-btn {
		min-height: 44px;
		min-width: 44px;
	}

	.quantity .qty {
		min-height: 44px;
		font-size: 16px;
	}

	/* Sticky ATC clears the iPhone home indicator. */
	.pdp-sticky__inner {
		padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
	}
}

.woocommerce-form-coupon-toggle .showcoupon,
.woocommerce-privacy-policy-text a {
	display: inline-block;
	padding-block: 0.4rem;
}

/* PDP: Common Questions between the purity banner and related products. */
.pdp-faq {
	padding-block: var(--space-7);
}

.pdp-related {
	padding-block: var(--space-7) var(--space-8);
}

.pdp-faq .faq-cards {
	max-width: 56rem;
	margin-top: 0;
}

/* Free gift card — sits between the tier cards and the qty/ATC row. */
.gift-card {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-bottom: var(--space-4);
	padding: var(--space-3) var(--space-4);
	border: 1px solid #cfe0f0;
	border-radius: var(--radius-m);
	background: linear-gradient(135deg, #f2f8fd 0%, #ffffff 70%);
}

.gift-card__media {
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--radius-s);
	background: var(--white);
	border: 1px solid var(--line);
	overflow: hidden;
	display: grid;
	place-items: center;
}

.gift-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gift-card__body {
	display: grid;
	gap: 0.15rem;
}

.gift-card__eyebrow {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--accent);
}

.gift-card__name {
	font-weight: 600;
}

.gift-card__price {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.gift-card__price del {
	color: var(--gray);
	font-size: var(--text-s);
}

.gift-card__price strong {
	font-size: var(--text-s);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--accent);
}

.azoth-free-gift-label {
	color: var(--accent);
	letter-spacing: 0.06em;
}

/* ==========================================================================
   Checkout — high-converting one-page (Shopify-style)
   ========================================================================== */

/* Fulfillment promise strip across the top */
.checkout-promise {
	list-style: none;
	margin: 0 0 var(--space-6);
	padding: var(--space-4) var(--space-5);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-4) var(--space-7);
	background: var(--accent-tint);
	border-radius: var(--radius-m);
}

.checkout-promise__item {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-s);
	font-weight: 600;
	color: var(--accent-deep);
}

.checkout-promise__icon {
	display: inline-flex;
}

.checkout-promise__icon svg {
	width: 20px;
	height: 20px;
}

/* Summary panel: a soft tinted card that separates it from the white form */
.checkout-aside__inner {
	background: #f6f9fc;
	border-color: transparent;
	box-shadow: inset 0 0 0 1px rgb(73 97 127 / 0.08);
}

/* Upsells — "Add a best-seller to your order" */
.checkout-upsells {
	margin-top: var(--space-4);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
}

.checkout-upsells__title {
	text-align: center;
	font-weight: 600;
	font-size: var(--text-s);
	margin: 0 0 var(--space-3);
	color: var(--ink);
}

.checkout-upsell {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: var(--white);
	margin-bottom: var(--space-2);
	transition: opacity 0.25s ease;
}

.checkout-upsell.is-added {
	opacity: 0.5;
}

.checkout-upsell__thumb img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--radius-s);
	border: 1px solid var(--line);
}

.checkout-upsell__meta {
	flex: 1;
	min-width: 0;
}

.checkout-upsell__name {
	margin: 0 0 0.15rem;
	font-weight: 600;
	font-size: var(--text-s);
	line-height: 1.3;
}

.checkout-upsell__price {
	margin: 0;
	font-size: var(--text-s);
	color: var(--ink);
}

.checkout-upsell__price del {
	color: var(--gray);
	opacity: 0.7;
	margin-right: 0.35em;
	font-weight: 400;
}

.checkout-upsell__price ins {
	text-decoration: none;
	color: var(--ink);
	font-weight: 600;
}

.checkout-upsell__add {
	flex: none;
	min-width: 4.4rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: var(--text-s);
	padding: 0.55em 1.3em;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.checkout-upsell__add:hover {
	background: var(--accent-deep);
}

.checkout-upsell__add.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.checkout-upsell__add.is-added {
	background: var(--accent-deep);
	pointer-events: none;
}

.checkout-upsell__add.is-added .checkout-upsell__add-label {
	display: none;
}

.checkout-upsell__add.is-added::after {
	content: "✓";
}

/* Guarantee badges: money-back + secure checkout */
.checkout-guarantee {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
	margin-top: var(--space-4);
	padding: var(--space-4);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: var(--white);
}

.checkout-guarantee__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-2);
}

.checkout-guarantee__icon {
	color: var(--accent);
}

.checkout-guarantee__icon svg {
	width: 26px;
	height: 26px;
}

.checkout-guarantee__label {
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--ink);
	line-height: 1.3;
}

@media (max-width: 40rem) {
	.checkout-promise {
		gap: var(--space-3) var(--space-5);
		padding: var(--space-4);
	}
	.checkout-promise__item {
		font-size: var(--text-xs);
	}
}

/* Free bacteriostatic-water opt-in (returning orders >= $400) */
.checkout-bac {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-top: var(--space-4);
	padding: var(--space-3) var(--space-4);
	border: 1px dashed var(--accent);
	border-radius: var(--radius-m);
	background: var(--accent-tint);
}

.checkout-bac__icon {
	flex: none;
	display: inline-flex;
	color: var(--accent-deep);
}

.checkout-bac__icon svg { width: 26px; height: 26px; }

.checkout-bac__meta { flex: 1; min-width: 0; }

.checkout-bac__title {
	margin: 0;
	font-weight: 600;
	font-size: var(--text-s);
	color: var(--ink);
}

.checkout-bac__desc {
	margin: 0.1rem 0 0;
	font-size: var(--text-xs);
	color: var(--gray);
	line-height: 1.35;
}

.checkout-bac__price {
	font-size: var(--text-s);
	white-space: nowrap;
}

.checkout-bac__price del { color: var(--gray); opacity: 0.7; margin-right: 0.3em; }
.checkout-bac__price strong { color: var(--accent-deep); }

.checkout-bac__btn {
	flex: none;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: var(--text-s);
	padding: 0.5em 1.2em;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.checkout-bac__btn:hover { background: var(--accent-deep); }
.checkout-bac__btn.is-loading { opacity: 0.6; pointer-events: none; }

/* Included state: clear "in your order" look (checkmark, outlined) — clicking
   again removes it. */
.checkout-bac__btn.is-added {
	background: transparent;
	color: var(--accent-deep);
	border-color: var(--accent);
}

.checkout-bac__btn.is-added::before {
	content: "✓ ";
}

.checkout-bac__btn.is-added:hover {
	background: rgb(73 97 127 / 0.08);
}

/* ==========================================================================
   Shopify-style checkout (distraction-free: logo-only header, no site footer)
   ========================================================================== */

.checkout-header {
	border-bottom: 1px solid var(--line);
	padding: var(--space-4) var(--gutter);
}

.checkout-header__logo {
	display: block;
	width: max-content;
	margin: 0 auto;
}

.checkout-header__logo img {
	height: 1.9rem;
	width: auto;
	display: block;
}

.checkout-cx__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
	padding-block: clamp(1.5rem, 3vw, 3rem) var(--space-8);
}

.checkout-cx__main {
	width: 100%;
}

.checkout-cx__summary-inner {
	position: sticky;
	top: var(--space-4);
	background: #f5f6f8;
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.checkout-cx__summary-title {
	margin-bottom: var(--space-4);
}

/* Collapsible summary bar — mobile only (hidden on desktop). */
.checkout-cx__summary-toggle {
	display: none;
}

.checkout-block {
	margin-bottom: var(--space-7);
}

.checkout-block__title {
	font-size: var(--text-l);
	font-weight: 650;
	letter-spacing: var(--tracking-tight);
	margin-bottom: var(--space-4);
}

.checkout-block__note {
	font-size: var(--text-s);
	color: var(--gray);
	margin: -0.4rem 0 var(--space-4);
}

/* Placeholder-driven fields: visually hide the field labels. */
.checkout-cx .form-row > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.checkout-cx .form-row {
	margin-bottom: var(--space-3);
}

.checkout-optin {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-3);
	font-size: var(--text-s);
	color: var(--ink);
	cursor: pointer;
}

.checkout-optin input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--accent);
}

.checkout-legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-4);
	padding-top: var(--space-5);
	margin-top: var(--space-5);
	border-top: 1px solid var(--line);
}

.checkout-legal a {
	font-size: var(--text-xs);
	color: var(--accent);
	text-decoration: underline;
}

@media (max-width: 60rem) {
	.checkout-cx__grid {
		grid-template-columns: 1fr;
		gap: var(--space-6);
	}
	.checkout-cx__main,
	.checkout-cx__summary-inner {
		max-width: none;
		margin: 0;
	}
	/* Same grey/blue boxed card as desktop, but collapsible. */
	.checkout-cx__summary-inner {
		position: static;
		padding: 0;
		background: #f5f6f8;
		border: 1px solid var(--line);
		border-radius: var(--radius-l);
		overflow: hidden;
	}

	/* Summary sits at the very top, collapsed behind a toggle bar. */
	.checkout-cx__summary {
		order: -1;
	}
	.checkout-cx__summary-title {
		display: none;
	}
	.checkout-cx__summary-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		gap: var(--space-3);
		padding: var(--space-4);
		background: none;
		border: 0;
		font: inherit;
		color: var(--ink);
		cursor: pointer;
	}
	.checkout-cx__summary.is-open .checkout-cx__summary-toggle {
		border-bottom: 1px solid var(--line);
	}
	.checkout-cx__summary-toggle-label {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2);
		font-size: var(--text-m);
		font-weight: 600;
	}
	.checkout-cx__summary-toggle-total {
		font-size: var(--text-l);
		font-weight: 700;
	}
	.checkout-cx__summary-chevron {
		width: 1.05rem;
		height: 1.05rem;
		color: var(--accent);
		transition: transform 0.25s var(--ease-out);
	}
	.checkout-cx__summary-toggle[aria-expanded="true"] .checkout-cx__summary-chevron {
		transform: rotate(180deg);
	}

	/* Collapsed by default; expands when open. */
	.checkout-cx__summary-body {
		display: none;
		padding: var(--space-5) var(--space-4) var(--space-4);
	}
	.checkout-cx__summary.is-open .checkout-cx__summary-body {
		display: block;
	}
}

/* ---- Checkout refinements: promise strip, discount, rounded opt-in ---- */

.checkout-cx__top {
	padding-block: var(--space-4) 0;
}

.checkout-cx__top .checkout-promise {
	margin-bottom: 0;
}

/* Tight gap between the promise strip and the columns. */
.checkout-cx__grid {
	padding-block: var(--space-4) var(--space-8);
}

/* Rounded-square opt-in checkboxes (not circles) with a centered checkmark. */
.checkout-optin input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: var(--white);
	cursor: pointer;
	margin: 0;
	display: inline-grid;
	place-items: center;
}

.checkout-optin input[type="checkbox"]:checked {
	background: var(--accent);
	border-color: var(--accent);
}

.checkout-optin input[type="checkbox"]:checked::after {
	content: "";
	width: 0.32rem;
	height: 0.6rem;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translateY(-1px) rotate(45deg);
}

/* Discount code (Shopify-style) in the summary card. */
.checkout-discount {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
}

.checkout-discount__input {
	flex: 1 1 auto;
}

.checkout-discount__input {
	flex: 1;
	min-width: 0;
	padding: 0.75em 1em;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--white);
	font: inherit;
	color: var(--ink);
}

.checkout-discount__input:focus {
	outline: none;
	border-color: var(--ink);
}

.checkout-discount__apply {
	flex: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--card);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	font-size: var(--text-s);
	padding: 0 1.2em;
	cursor: pointer;
	transition: background 0.2s ease;
}

.checkout-discount__apply:hover {
	background: var(--bg);
}

/* Drawer: single subtotal + shipping note. */
.cart-drawer__taxnote {
	margin: var(--space-1) 0 var(--space-4);
	font-size: var(--text-xs);
	color: var(--gray);
}

/* ---- Shipping method selector (Shopify-style rounded radio boxes) ---- */
.checkout-shipping {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	overflow: hidden;
}

.checkout-ship {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: 0.95em 1.1em;
	cursor: pointer;
	font-size: var(--text-s);
	color: var(--ink);
	border-top: 1px solid var(--line);
}

.checkout-ship:first-child {
	border-top: 0;
	border-top-left-radius: var(--radius-s);
	border-top-right-radius: var(--radius-s);
}

.checkout-ship:last-child {
	border-bottom-left-radius: var(--radius-s);
	border-bottom-right-radius: var(--radius-s);
}

/* Selected row: flat highlight — the container's overflow:hidden clips the
   outer corners, so no rounded corners appear mid-list. */
.checkout-ship:has(input:checked) {
	background: var(--accent-tint);
	box-shadow: inset 0 0 0 1.5px var(--accent);
}

.checkout-ship:has(input:checked) + .checkout-ship {
	border-top-color: transparent;
}

.checkout-ship input[type="radio"] {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--accent);
	margin: 0;
}

.checkout-ship__name {
	flex: 1;
	font-weight: 600;
}

.checkout-ship__price {
	flex: none;
	font-weight: 600;
	color: var(--ink);
}

.checkout-shipping__empty {
	padding: 1em 1.1em;
	font-size: var(--text-s);
	color: var(--gray);
}

/* Per-size research-supply chip beside the PDP price (like the Bestseller chip). */
.pdp-supply.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	text-transform: none;
	letter-spacing: 0;
	background: var(--accent-tint);
	color: var(--accent-deep);
}

.pdp-supply__icon {
	width: 1.05em;
	height: 1.05em;
	flex: none;
}

/* ---- Shopify-style checkout validation (inline, no top error block) ---- */
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
	display: none !important;
}

.checkout-cx .form-row.azoth-invalid input,
.checkout-cx .form-row.azoth-invalid select,
.checkout-cx .form-row.azoth-invalid textarea {
	border-color: #c0392b;
	box-shadow: inset 0 0 0 1px #c0392b;
}

.azoth-field-error {
	margin: 0.4em 0 0;
	font-size: var(--text-xs);
	font-weight: 500;
	color: #c0392b;
}

.azoth-attestation.azoth-invalid {
	border-radius: var(--radius-s);
	box-shadow: 0 0 0 1.5px #c0392b;
}

/* Discount code result message (inline, under the field). */
.checkout-discount__msg {
	flex-basis: 100%;
	margin: 0.5em 0 0;
	font-size: var(--text-xs);
	font-weight: 500;
	color: var(--gray);
}

.checkout-discount__msg.is-error {
	color: #c0392b;
}

/* ============================================================================
   Shopify-style order-received (thank-you) page — .soc
   Two states via [data-status]: "processing" (on-hold/Zelle) and "confirmed".
   ============================================================================ */
.soc {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: var(--space-7);
	align-items: start;
	max-width: 64rem;
	margin: 0 auto;
	padding: var(--space-5) var(--space-5) var(--space-8);
}

.soc__head {
	display: flex;
	align-items: flex-start;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
}
.soc__check {
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	display: grid;
	place-items: center;
}
.soc__check svg { width: 1.3rem; height: 1.3rem; }
.soc[data-status="pending"] .soc__check { background: #c8891f; }
.soc__ordernum {
	color: var(--gray);
	font-size: var(--text-s);
	letter-spacing: .02em;
	margin: 0 0 var(--space-1);
}
.soc__title {
	font-family: var(--font-display);
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem);
	font-weight: 650;
	letter-spacing: var(--tracking-tight);
	margin: 0 0 var(--space-2);
	color: var(--ink);
}
.soc__sub { color: var(--gray); margin: 0; max-width: 48ch; line-height: 1.55; }

.soc__pay {
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: var(--accent-tint);
	padding: var(--space-5) var(--space-6);
	margin-bottom: var(--space-6);
}
.soc__pay .azoth-payment-instructions {
	border: 0;
	background: transparent;
	border-radius: 0;
	padding: 0;
	margin: 0;
}
.soc__pay .azoth-payment-instructions h2 {
	font-family: var(--font-display);
	font-size: var(--text-l);
	margin: 0 0 var(--space-3);
	color: var(--ink);
}
.soc__pay .azoth-payment-instructions p { margin: 0 0 var(--space-2); color: var(--ink); line-height: 1.6; }
.soc__pay .azoth-payment-instructions p:last-child { margin-bottom: 0; }

.soc__details {
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	padding: var(--space-5) var(--space-6);
}
.soc__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5) var(--space-6);
}
.soc__field h3 {
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	color: var(--gray);
	margin: 0 0 var(--space-2);
	font-weight: 600;
}
.soc__field p,
.soc__field address {
	margin: 0;
	font-style: normal;
	line-height: 1.5;
	color: var(--ink);
	font-size: var(--text-s);
}

.soc__actions {
	margin-top: var(--space-6);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-4) var(--space-5);
}
.soc__help { color: var(--gray); font-size: var(--text-s); margin: 0; }

.soc__summary {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	padding: var(--space-5) var(--space-6) var(--space-6);
	position: sticky;
	top: 6rem;
}
.soc__summary-title {
	font-family: var(--font-display);
	font-size: var(--text-m);
	margin: 0 0 var(--space-5);
	color: var(--ink);
}
.soc__items { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.soc__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); }
.soc__thumb { position: relative; width: 3.5rem; height: 3.5rem; flex: none; }
.soc__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff; display: block; }
.soc__qty {
	position: absolute;
	top: -0.5rem;
	right: -0.5rem;
	min-width: 1.3rem;
	height: 1.3rem;
	padding: 0 0.35rem;
	background: var(--accent);
	color: #fff;
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
	font-weight: 600;
	display: grid;
	place-items: center;
	box-shadow: 0 0 0 2px var(--card);
}
.soc__item-name { font-size: var(--text-s); color: var(--ink); line-height: 1.35; }
.soc__item-price { font-size: var(--text-s); font-weight: 600; color: var(--ink); white-space: nowrap; }

.soc__totals { margin: 0; border-top: 1px solid var(--line); padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.soc__totals > div { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-s); color: var(--gray); }
.soc__totals dt, .soc__totals dd { margin: 0; }
.soc__total { border-top: 1px solid var(--line); padding-top: var(--space-3); margin-top: var(--space-2); }
.soc__total dt { color: var(--ink); font-weight: 600; font-size: var(--text-m); }
.soc__total dd { color: var(--ink); font-weight: 700; font-size: var(--text-l); }

@media (max-width: 60rem) {
	.soc { grid-template-columns: 1fr; gap: var(--space-6); padding-inline: var(--space-4); }
	.soc__summary { position: static; padding: var(--space-5); }
	.soc__grid { grid-template-columns: 1fr; gap: var(--space-5); }
	.soc__head { gap: var(--space-3); }
	.soc__check { width: 2.3rem; height: 2.3rem; }
	.soc__check svg { width: 1.15rem; height: 1.15rem; }
	.soc__title { font-size: 1.5rem; }
	.soc__pay, .soc__details { padding: var(--space-5); }
}

/* Zelle QR code shown with the payment instructions on the order page */
.azoth-zelle-qr { margin-top: var(--space-4); text-align: center; }
.azoth-zelle-qr img {
	display: inline-block;
	width: 210px; max-width: 100%; height: auto;
	border: 1px solid var(--line); border-radius: var(--radius-m);
	background: #fff;
}

/* ============================================================
   Loading feedback — add-to-cart buttons + order submission.
   Buttons keep their footprint; content fades to a spinner so a
   click gives immediate visual feedback before the drawer opens
   or the order posts. See drawer.js / checkout.js (is-loading).
   ============================================================ */

@keyframes azoth-spin { to { transform: rotate(360deg); } }

/* Shared button spinner: content hidden, centered ring drawn in ::after.
   Colour differs by button surface (white btn -> slate ring; slate btn ->
   white ring), set per-selector below. */
.product-card__atc.is-loading,
.pdp-form form.cart .single_add_to_cart_button.is-loading,
.pdp-sticky__buy.is-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.product-card__atc.is-loading > *,
.pdp-form form.cart .single_add_to_cart_button.is-loading > *,
.pdp-sticky__buy.is-loading > * {
	visibility: hidden;
}

.product-card__atc.is-loading::after,
.pdp-form form.cart .single_add_to_cart_button.is-loading::after,
.pdp-sticky__buy.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.15em;
	height: 1.15em;
	margin: -0.575em 0 0 -0.575em;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	animation: azoth-spin 0.6s linear infinite;
}

/* White-surfaced card button -> slate ring so it reads on light bg. */
.product-card__atc.is-loading::after {
	border-color: rgba(73, 97, 127, 0.25);
	border-top-color: var(--accent);
}

/* Order-submission overlay. Woo dims form.checkout with a faint blockUI layer
   but shows no spinner; this branded overlay sits above it (Place Order and
   the Zelle "Send Money" button both route through the same submit). */
.azoth-order-loading {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	background: rgba(248, 249, 251, 0.72);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.18s var(--ease-out, ease);
}

.azoth-order-loading.is-visible { opacity: 1; }

.azoth-order-loading__box {
	display: grid;
	justify-items: center;
	gap: 16px;
	text-align: center;
}

.azoth-order-loading__text {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--ink);
}

.azoth-spinner {
	display: inline-block;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 3px solid rgba(73, 97, 127, 0.2);
	border-top-color: var(--accent);
	animation: azoth-spin 0.7s linear infinite;
}

body.azoth-order-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.azoth-spinner,
	.product-card__atc.is-loading::after,
	.pdp-form form.cart .single_add_to_cart_button.is-loading::after,
	.pdp-sticky__buy.is-loading::after { animation-duration: 1.4s; }
}
