/**
 * Golbaroon — store styles.
 *
 * Loaded only on WooCommerce pages.
 *
 * Contents
 *   1.  Notices
 *   2.  Shop layout & toolbar
 *   3.  Filters (sidebar + drawer)
 *   4.  Product grid & cards
 *   5.  Single product
 *   6.  Delivery fields
 *   7.  Cart
 *   8.  Checkout
 *   9.  Order received & My Account
 *   10. Mini-cart drawer
 */

/* ------------------------------------------------------------------ *
 * 1. Notices
 * ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ *
 * 0. Store page shell
 *
 * The cart, checkout and My Account screens are ordinary WordPress pages
 * rendering a shortcode, so page.php wraps them in `.gb-store-page`. That
 * wrapper — not the individual templates — supplies the max width and the
 * side gutter, because WooCommerce emits the login toggle, the coupon
 * toggle and the notices *before* any template container exists.
 *
 * Templates keep their own `.gb-container` for when they are rendered
 * elsewhere, so those are flattened here rather than removed.
 * ------------------------------------------------------------------ */

.gb-store-page {
	width: 100%;
	max-width: var(--gb-container);
	margin-inline: auto;
	padding-inline: var(--gb-gutter);
}

.gb-store-page .gb-container,
.gb-container .gb-container {
	max-width: none;
	padding-inline: 0;
}

/* A narrow container still constrains when nested — it is a reading-width
   choice, not a gutter. */
.gb-store-page .gb-container--narrow,
.gb-container .gb-container--narrow {
	max-width: var(--gb-container-narrow);
	margin-inline: auto;
}

.woocommerce-notices-wrapper:not(:empty) {
	max-width: var(--gb-container);
	margin: var(--gb-space-5) auto 0;
	padding-inline: var(--gb-gutter);
}

/* Already inside the padded shell — do not gutter it twice. */
.gb-store-page .woocommerce-notices-wrapper:not(:empty) {
	max-width: none;
	padding-inline: 0;
}

/*
 * All three notices share one grid: the icon keeps its own column and the
 * message lines up against it.
 *
 * A wrapping flexbox cannot do this. WooCommerce writes the message as a bare
 * text node, which becomes an anonymous flex item sized to its max-content
 * width — wider than a phone-width notice, so it wrapped onto its own line and
 * stranded the 20px icon alone on the line above, with the action button
 * dropped below both.
 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	column-gap: var(--gb-space-3);
	row-gap: var(--gb-space-3);
	margin: 0 0 var(--gb-space-4);
	padding: var(--gb-space-4) var(--gb-space-5);
	border: 1px solid transparent;
	border-left-width: 4px;
	border-radius: var(--gb-radius);
	background: var(--gb-white);
	font-size: var(--gb-text-sm);
	list-style: none;
}

.woocommerce-message {
	background: var(--gb-success-wash);
	border-color: var(--gb-success);
	color: #1f4c31;
}

.woocommerce-info {
	background: var(--gb-teal-wash);
	border-color: var(--gb-teal);
	color: var(--gb-teal-deep);
}

/*
 * An error notice is a <ul> and can hold several problems at once. They sit
 * closer together than a message and its action button do, so it retunes the
 * shared row gap.
 */
.woocommerce-error {
	row-gap: var(--gb-space-1);
	background: var(--gb-error-wash);
	border-color: var(--gb-error);
	color: #8a2530;
}

.woocommerce-message > *,
.woocommerce-info > *,
.woocommerce-error > * {
	grid-column: 2;
}

.woocommerce-error li {
	margin: 0;
}

/*
 * WooCommerce puts an icon on every notice with an absolutely positioned
 * pseudo-element drawn from its own webfont:
 *
 *   .woocommerce-info::before { font-family: WooCommerce; content: "\e028";
 *                               position: absolute; top: 1em; left: 1.5em }
 *
 * It relies on the default `padding-left: 3.5em` to sit in — and the theme
 * uses a tighter, symmetrical padding, so the glyph lands on top of the
 * content. There is a second rule giving both pseudo-elements
 * `content:" "; display:table` as a clearfix, which in a grid container turns
 * them into stray grid items. Both are switched off and replaced with a real
 * grid item carrying the theme's own icon.
 */
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
	display: none;
	content: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: static;
	width: 20px;
	height: 20px;
	/* The top margin nudges the icon onto the first line's baseline rather
	   than its box top. */
	margin: 1px 0 0;
	padding: 0;
	font-family: inherit;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	display: block;
	content: "";
}

.woocommerce-message::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232f6b46' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.woocommerce-info::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233a6f77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.8v.2'/%3E%3C/svg%3E");
}

.woocommerce-error::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ab2f3c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.2M12 16.2v.2'/%3E%3C/svg%3E");
}

/*
 * WooCommerce renders the action button before the message text. Reading
 * order should be message-then-action, so `order` moves it to the end and it
 * is placed in the message column, under the text.
 *
 * The selectors are element-qualified on purpose. The theme's base button rule
 * in main.css is `.woocommerce a.button` at (0,2,1); a plain
 * `.woocommerce-message .button` sits at (0,2,0) and lost every declaration
 * the two rules share, so the notice button kept the full 48px page-button
 * size. Matching that specificity is enough to win, because this file is
 * enqueued after main.css.
 */
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
	order: 1;
	grid-column: 2;
	justify-self: start;
	min-height: 40px;
	padding: 0.4rem 1.1rem;
	font-size: var(--gb-text-xs);
	white-space: nowrap;
}

/*
 * Once there is room, a notice that carries an action reads as one line: icon,
 * message, action. The third track is opened only when there is a button to
 * put in it, or its column gap would leave dead space down the right of every
 * notice that has none. Without `:has()` the notice keeps the stacked layout,
 * which is the mobile one and stands on its own.
 */
@media (min-width: 560px) {
	.woocommerce-message:has(a.button),
	.woocommerce-info:has(a.button),
	.woocommerce-error:has(a.button) {
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
	}

	.woocommerce-message:has(a.button)::before,
	.woocommerce-info:has(a.button)::before,
	.woocommerce-error:has(a.button)::before {
		margin-top: 0;
	}

	.woocommerce-message a.button,
	.woocommerce-info a.button,
	.woocommerce-error a.button {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}
}

/*
 * A notice is a passive announcement, not a control, but it does get focused
 * so a screen reader reads it out — assets/js/checkout.js does exactly that to
 * the error notice, and something on the product page does it to the message
 * notice too. The global `:focus-visible` ring in main.css then drew a second
 * border right around the box, offset outside the one the notice already has.
 * Roving focus on a non-interactive element does not need a ring.
 */
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-message:focus-visible,
.woocommerce-info:focus-visible,
.woocommerce-error:focus-visible {
	outline: none;
}

/* ------------------------------------------------------------------ *
 * 2. Shop layout & toolbar
 * ------------------------------------------------------------------ */

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

.gb-shop__layout {
	display: grid;
	gap: var(--gb-space-6);
	align-items: start;
}

@media (min-width: 1000px) {
	.gb-shop__layout--sidebar {
		grid-template-columns: 268px minmax(0, 1fr);
		gap: var(--gb-space-7);
	}
}

/*
 * The results column holds a grid of cards; without min-width: 0 a single wide
 * product title would stretch the column and push the page sideways.
 */
.gb-shop__results,
.gb-cart-main,
.gb-cart-sidebar,
.gb-cart-item__details {
	min-width: 0;
}

.gb-shop-hero {
	background: var(--gb-mist);
	padding-block: var(--gb-space-7);
	text-align: center;
}

.gb-shop-hero__title {
	margin-bottom: var(--gb-space-2);
}

.gb-shop-hero__text {
	color: var(--gb-ink-soft);
	max-width: 58ch;
	margin-inline: auto;
	margin-bottom: 0;
}

.gb-breadcrumb {
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-faint);
	padding-block: var(--gb-space-3);
}

.gb-breadcrumb a {
	color: var(--gb-ink-soft);
	text-decoration: none;
}

.gb-breadcrumb a:hover {
	color: var(--gb-teal-deep);
	text-decoration: underline;
}

.gb-breadcrumb__sep {
	margin-inline: var(--gb-space-2);
	color: var(--gb-line-strong);
}

/* Toolbar: result count, sorting and the mobile filter trigger. */
.gb-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gb-space-3);
	padding-bottom: var(--gb-space-4);
	margin-bottom: var(--gb-space-5);
	border-bottom: 1px solid var(--gb-line);
}

/*
 * WooCommerce gives both the result count and the sorting form a 1em bottom
 * margin (`.woocommerce .woocommerce-result-count { margin: 0 0 1em }`).
 * Inside a centred flex row that margin belongs to the item's margin box, so
 * their text lands ~8px above the filter button's centre. Reset it, and win
 * the specificity contest by matching WooCommerce's `.woocommerce` prefix.
 */
.woocommerce .gb-shop-toolbar .woocommerce-result-count,
.woocommerce .gb-shop-toolbar .woocommerce-ordering,
.gb-shop-toolbar .woocommerce-result-count,
.gb-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

.woocommerce .gb-shop-toolbar .woocommerce-result-count {
	font-size: var(--gb-text-sm);
	color: var(--gb-ink-soft);
	/* Pushes the filter button and sorting control to the right. */
	margin-right: auto;
}

.gb-shop-toolbar .woocommerce-ordering {
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
}

/* One shared control height, so the row reads as a single line. */
.gb-shop-toolbar .gb-filter-trigger,
.gb-shop-toolbar .woocommerce-ordering select {
	height: 44px;
	min-height: 44px;
	padding-block: 0;
}

.woocommerce-ordering label {
	font-size: var(--gb-text-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gb-ink-soft);
	margin: 0;
	white-space: nowrap;
}

.woocommerce-ordering select {
	min-height: 44px;
	min-width: 190px;
	font-size: var(--gb-text-sm);
	border-radius: var(--gb-radius-pill);
}

.gb-filter-trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--gb-space-2);
	min-height: 44px;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--gb-line-strong);
	border-radius: var(--gb-radius-pill);
	background: var(--gb-white);
	font-size: var(--gb-text-sm);
	font-weight: 600;
}

.gb-filter-trigger__count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding-inline: 5px;
	border-radius: var(--gb-radius-pill);
	background: var(--gb-teal);
	color: var(--gb-white);
	font-size: 11px;
}

@media (min-width: 1000px) {
	.gb-shop__layout--sidebar .gb-filter-trigger {
		display: none;
	}
}

/* Active filter chips */
.gb-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gb-space-2);
	list-style: none;
	margin: 0 0 var(--gb-space-5);
	padding: 0;
}

.gb-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--gb-space-2);
	padding: 0.3rem 0.5rem 0.3rem 0.8rem;
	border: 1px solid var(--gb-teal-soft);
	border-radius: var(--gb-radius-pill);
	background: var(--gb-teal-wash);
	color: var(--gb-teal-deep);
	font-size: var(--gb-text-xs);
	font-weight: 600;
	text-decoration: none;
}

.gb-chip:hover {
	background: var(--gb-mist-deep);
	color: var(--gb-teal-deep);
}

.gb-chip .gb-icon {
	width: 14px;
	height: 14px;
}

.gb-active-filters__clear {
	font-size: var(--gb-text-xs);
	font-weight: 600;
	color: var(--gb-ink-soft);
}

/* ------------------------------------------------------------------ *
 * 3. Filters
 * ------------------------------------------------------------------ */

.gb-filters {
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	padding: var(--gb-space-5);
}

.gb-filters__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gb-space-3);
	font-family: var(--gb-font-body);
	font-size: var(--gb-text-sm);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: var(--gb-space-4);
}

.gb-filter-group {
	padding-block: var(--gb-space-4);
	border-top: 1px solid var(--gb-line);
}

.gb-filter-group:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.gb-filter-group__title {
	font-family: var(--gb-font-body);
	font-size: var(--gb-text-sm);
	font-weight: 600;
	margin: 0 0 var(--gb-space-3);
}

/* Collapsible group on small screens uses <details>. */
.gb-filter-group summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gb-space-2);
	font-size: var(--gb-text-sm);
	font-weight: 600;
	padding: var(--gb-space-1) 0;
}

.gb-filter-group summary::-webkit-details-marker {
	display: none;
}

.gb-filter-group summary .gb-icon {
	transition: transform var(--gb-duration) var(--gb-ease);
	color: var(--gb-ink-faint);
}

.gb-filter-group[open] summary .gb-icon {
	transform: rotate(90deg);
}

.gb-filter-options {
	list-style: none;
	margin: var(--gb-space-3) 0 0;
	padding: 0;
	display: grid;
	gap: var(--gb-space-1);
	/* Tall enough that a typical occasion or flower-type list shows in full;
	   longer lists scroll rather than pushing the grid off screen. */
	max-height: 26rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.gb-filter-option {
	display: flex;
	align-items: center;
	gap: var(--gb-space-3);
	padding: var(--gb-space-2);
	border-radius: var(--gb-radius-sm);
	font-size: var(--gb-text-sm);
	color: var(--gb-ink);
	text-decoration: none;
	transition: background-color var(--gb-duration) var(--gb-ease);
}

.gb-filter-option:hover {
	background: var(--gb-mist);
	color: var(--gb-teal-deep);
}

.gb-filter-option__box {
	position: relative;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border: 1.5px solid var(--gb-line-strong);
	border-radius: 5px;
	background: var(--gb-white);
	color: transparent;
	transition: background-color var(--gb-duration) var(--gb-ease),
		border-color var(--gb-duration) var(--gb-ease);
}

.gb-filter-option[aria-pressed="true"] .gb-filter-option__box,
.gb-filter-option.is-active .gb-filter-option__box {
	background: var(--gb-teal);
	border-color: var(--gb-teal);
	color: var(--gb-white);
}

.gb-filter-option__box .gb-icon {
	width: 13px;
	height: 13px;
	stroke-width: 3;
}

.gb-filter-option__label {
	flex: 1;
}

.gb-filter-option.is-active .gb-filter-option__label {
	font-weight: 600;
	color: var(--gb-teal-deep);
}

.gb-filter-option__count {
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-faint);
}

/* Colour swatches */
.gb-filter-options--colour {
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	display: grid;
	gap: var(--gb-space-2);
	max-height: none;
}

.gb-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gb-space-1);
	padding: var(--gb-space-2);
	border: 1px solid transparent;
	border-radius: var(--gb-radius);
	font-size: var(--gb-text-xs);
	text-decoration: none;
	color: var(--gb-ink-soft);
}

.gb-swatch:hover {
	background: var(--gb-mist);
}

.gb-swatch.is-active {
	border-color: var(--gb-teal);
	background: var(--gb-teal-wash);
	color: var(--gb-teal-deep);
	font-weight: 600;
}

.gb-swatch__dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--gb-line-strong);
	box-shadow: inset 0 -3px 6px rgba(34, 43, 45, 0.08);
}

/* Price inputs */
.gb-price-filter {
	display: flex;
	align-items: flex-end;
	gap: var(--gb-space-2);
}

.gb-price-filter .gb-field {
	flex: 1;
	margin: 0;
}

.gb-price-filter input {
	min-height: 44px;
}

.gb-price-filter__hint {
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-faint);
	margin-top: var(--gb-space-2);
}

.gb-filters__actions {
	display: grid;
	gap: var(--gb-space-2);
	margin-top: var(--gb-space-5);
	padding-top: var(--gb-space-4);
	border-top: 1px solid var(--gb-line);
}

/* Filters inside the mobile drawer */
.gb-drawer--filters .gb-filters {
	border: 0;
	padding: 0;
	background: transparent;
}

@media (max-width: 999px) {
	.gb-shop__sidebar {
		display: none;
	}
}

.gb-shop__layout--drawer .gb-shop__sidebar {
	display: none;
}

/* ------------------------------------------------------------------ *
 * 4. Product grid & cards
 * ------------------------------------------------------------------ */

/*
 * Product grid.
 *
 * WooCommerce's float layout is dequeued in inc/woocommerce.php, but a plugin
 * can re-enqueue `woocommerce-layout.css`. Its column rules are scoped with a
 * `columns-N` class — `.woocommerce ul.products.columns-3 li.product` — giving
 * them four classes of specificity, which a plain three-class reset cannot
 * beat. The `[data-gb-products]` attribute the theme stamps onto every loop
 * (see golbaroon_product_loop_start) plus the `columns-` attribute match take
 * these selectors to five, so the theme's layout wins outright either way.
 */
.woocommerce ul.products,
.woocommerce-page ul.products,
.gb-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--gb-space-5);
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products[data-gb-products][class*="columns-"],
.woocommerce-page ul.products[data-gb-products][class*="columns-"] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--gb-space-5);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[data-gb-products][class*="columns-"] li.product,
.woocommerce-page ul.products[data-gb-products][class*="columns-"] li.product {
	width: 100%;
	max-width: none;
	/* Grid items default to min-width:auto, which lets a long product name
	   stretch its track and unbalance the row. */
	min-width: 0;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
}

.gb-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	overflow: hidden;
	transition: transform var(--gb-duration) var(--gb-ease),
		box-shadow var(--gb-duration) var(--gb-ease),
		border-color var(--gb-duration) var(--gb-ease);
}

.gb-product-card:hover,
.gb-product-card:focus-within {
	transform: translateY(-3px);
	border-color: var(--gb-mist-deep);
	box-shadow: var(--gb-shadow);
}

.gb-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--gb-mist);
	overflow: hidden;
}

/*
 * `.woocommerce ul.products li.product a img` is (0,3,4) and sets
 * `height: auto; margin: 0 0 1em`. That stopped the image filling its square
 * frame — a non-square photo left a strip of background below it — and added
 * a stray gap inside the media link. Naming the theme class reaches (0,4,3),
 * which outranks it.
 */
.gb-product-card__media img,
.woocommerce ul.products li.product .gb-product-card__media img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: opacity 320ms var(--gb-ease), transform 520ms var(--gb-ease);
}

.gb-product-card__image--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.gb-product-card:hover .gb-product-card__image--hover,
.gb-product-card:focus-within .gb-product-card__image--hover {
	opacity: 1;
}

.gb-product-card:hover .gb-product-card__media img {
	transform: scale(1.04);
}

.gb-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--gb-space-2);
	padding: var(--gb-space-4);
}

.gb-product-card__cat {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gb-ink-faint);
	margin: 0;
}

/*
 * `.woocommerce ul.products li.product h3` is (0,3,3) and forces
 * `font-size: 1em` plus `padding: .5em 0`, flattening the display type and
 * adding vertical space the card layout did not account for.
 */
.gb-product-card__title,
.woocommerce ul.products li.product h3.gb-product-card__title {
	font-family: var(--gb-font-display);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}

.gb-product-card__title a {
	color: var(--gb-ink);
	text-decoration: none;
}

/* Stretch the title link over the whole card so the entire tile is
   clickable, while the add-to-cart button stays independently focusable. */
.gb-product-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.gb-product-card__title a:hover {
	color: var(--gb-teal-deep);
}

.gb-product-card__rating {
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
	min-height: 20px;
}

.gb-product-card__excerpt {
	font-size: var(--gb-text-sm);
	color: var(--gb-ink-soft);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
}

.gb-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gb-space-3);
	margin-top: auto;
	padding-top: var(--gb-space-2);
}

.gb-product-card__price {
	font-size: var(--gb-text-lg);
	font-weight: 600;
	color: var(--gb-ink);
}

.gb-product-card__price del,
.woocommerce ul.products li.product .gb-product-card__price del {
	font-size: var(--gb-text-sm);
	font-weight: 400;
	color: var(--gb-ink-faint);
	margin-right: var(--gb-space-2);
	/* WooCommerce dims this to .7; the muted colour already does that job. */
	opacity: 1;
	display: inline;
}

.gb-product-card__price ins {
	text-decoration: none;
	color: var(--gb-teal-deep);
}

.gb-product-card__actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
}

/* Compact add-to-cart on the card. */
.gb-product-card .gb-btn {
	min-height: 42px;
	padding: 0.45rem 1rem;
	font-size: var(--gb-text-xs);
	white-space: nowrap;
}

/*
 * After an AJAX add, WooCommerce injects a "View cart" link straight after the
 * button and shows it with `.woocommerce a.added_to_cart { display:inline-block }`
 * — (0,2,1), which outranks a two-class hide rule. The link then became a
 * second row inside the actions column and pushed the price out of line with
 * the button.
 *
 * It is redundant here anyway: adding to the cart opens the cart drawer (see
 * main.js) which carries its own View cart and Checkout buttons.
 */
.woocommerce .gb-product-card .added_to_cart,
.woocommerce-page .gb-product-card .added_to_cart {
	display: none;
}

/*
 * WooCommerce dims a loading button to `opacity: .25` at (0,3,1), which is too
 * faint to read on the small card button. Its spinner glyph and the right-hand
 * gutter it needs are left alone.
 */
.woocommerce .gb-product-card .gb-btn.loading,
.woocommerce .gb-product-card .gb-btn.is-loading,
.gb-product-card .gb-btn.loading,
.gb-product-card .gb-btn.is-loading {
	pointer-events: none;
	opacity: 0.7;
}

.gb-product-card__stems {
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-faint);
}

/* Load more */
.gb-load-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gb-space-3);
	margin-top: var(--gb-space-7);
}

.gb-load-more__status {
	font-size: var(--gb-text-sm);
	color: var(--gb-ink-soft);
	margin: 0;
}

.gb-load-more__progress {
	width: min(280px, 60vw);
	height: 4px;
	border-radius: var(--gb-radius-pill);
	background: var(--gb-mist-deep);
	overflow: hidden;
}

.gb-load-more__progress span {
	display: block;
	height: 100%;
	background: var(--gb-teal);
	border-radius: inherit;
	transition: width 320ms var(--gb-ease);
}


/* ------------------------------------------------------------------ *
 * 5. Single product
 * ------------------------------------------------------------------ */

.gb-single-product {
	padding-block: var(--gb-space-6) var(--gb-space-8);
}

.woocommerce div.product {
	display: grid;
	gap: var(--gb-space-6) var(--gb-space-8);
}

@media (min-width: 900px) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		align-items: start;
	}

	/*
	 * The gallery is deliberately left in normal flow. `align-items: start`
	 * above is the only thing holding it level with the summary, so it must
	 * not be given a `top` offset.
	 *
	 * This block used to read `position: sticky` plus a `top` of one header
	 * height. WooCommerce sets `position: relative` on the more specific
	 * `div.images.woocommerce-product-gallery`, which won, so the gallery was
	 * never sticky — but `top` had nothing competing with it and applied
	 * anyway. Against `relative` that is not a sticky threshold, it is a flat
	 * 92px shove downwards, which is what knocked the images out of line.
	 * Reinstating sticky means matching that selector's specificity and
	 * accepting a gallery that follows the scroll; leaving it alone means
	 * top alignment that stays put.
	 */

	/* Anything after the gallery/summary pair runs the full width. */
	.woocommerce div.product .woocommerce-tabs,
	.woocommerce div.product .related,
	.woocommerce div.product .upsells,
	.woocommerce div.product .woocommerce-product-gallery ~ *:not(.summary) {
		grid-column: 1 / -1;
	}
}

/* Same specificity match as above: WooCommerce's `div.images` rules set
 * `float: left`, `width: 48%` and `margin-bottom: 2em`, all of which outrank a
 * lone `.woocommerce-product-gallery`. The grid already neutralises the float
 * and the width, but the margin was getting through. */
.woocommerce div.product div.images.woocommerce-product-gallery {
	width: 100%;
	float: none;
	margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper {
	border-radius: var(--gb-radius-lg);
	overflow: hidden;
	background: var(--gb-mist);
}

.woocommerce div.product .woocommerce-product-gallery img {
	border-radius: var(--gb-radius-lg);
}

/*
 * Gallery thumbnails.
 *
 * WooCommerce floats these at a fixed quarter width:
 *
 *   .woocommerce div.product div.images .flex-control-thumbs li
 *       { width: 25%; float: left }                              (0,4,3)
 *
 * Inside a CSS Grid track that collapses every thumbnail to a quarter of its
 * cell — around 19px. These rules add `.woocommerce-product-gallery` to the
 * chain, reaching (0,5,3), so the grid layout wins. The rule lives in
 * `woocommerce.css`, which the theme keeps on purpose because the gallery,
 * star ratings and form controls all depend on it.
 */
.woocommerce div.product .woocommerce-product-gallery.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: var(--gb-space-2);
	margin: var(--gb-space-3) 0 0;
	padding: 0;
	list-style: none;
	overflow: visible;
}

.woocommerce div.product .woocommerce-product-gallery.images .flex-control-thumbs li {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
	list-style: none;
}

.woocommerce div.product .woocommerce-product-gallery.images .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: auto;
	/* Square crops keep the row even when the source images differ in ratio. */
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: var(--gb-radius-sm);
	opacity: 0.7;
	transition: opacity var(--gb-duration) var(--gb-ease),
		border-color var(--gb-duration) var(--gb-ease);
}

.woocommerce div.product .woocommerce-product-gallery.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product .woocommerce-product-gallery.images .flex-control-thumbs li img:hover,
.woocommerce div.product .woocommerce-product-gallery.images .flex-control-thumbs li img:focus-visible {
	opacity: 1;
	border-color: var(--gb-teal);
}

/* Specificity matched to WooCommerce's `div.summary` for the same reason as
 * the gallery above: its `float: right`, `width: 48%` and `margin-bottom: 2em`
 * all outrank a lone `.summary`. The grid neutralises the float and the width,
 * but the margin was getting through and padding out the bottom of the row. */
.woocommerce div.product div.summary {
	float: none;
	width: 100%;
	margin: 0;
}

.woocommerce div.product .summary .gb-badges {
	position: static;
	margin-bottom: var(--gb-space-3);
}

.woocommerce div.product .product_title {
	font-size: var(--gb-text-3xl);
	margin-bottom: var(--gb-space-3);
}

.woocommerce div.product .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
	margin-bottom: var(--gb-space-4);
	font-size: var(--gb-text-sm);
}

.woocommerce div.product .woocommerce-product-rating .woocommerce-review-link {
	color: var(--gb-ink-soft);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-family: var(--gb-font-body);
	font-size: 1.65rem;
	font-weight: 600;
	color: var(--gb-ink);
	margin-bottom: var(--gb-space-4);
	display: flex;
	align-items: baseline;
	gap: var(--gb-space-3);
	flex-wrap: wrap;
}

.woocommerce div.product p.price del {
	font-size: 1.1rem;
	font-weight: 400;
	color: var(--gb-ink-faint);
	opacity: 1;
}

.woocommerce div.product p.price ins {
	text-decoration: none;
	color: var(--gb-teal-deep);
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--gb-ink-soft);
	font-size: var(--gb-text-lg);
	margin-bottom: var(--gb-space-4);
}

/* Delivery promise list */
.gb-promise {
	list-style: none;
	margin: 0 0 var(--gb-space-5);
	padding: var(--gb-space-4);
	display: grid;
	gap: var(--gb-space-3);
	background: var(--gb-lilac-wash);
	border-radius: var(--gb-radius);
	font-size: var(--gb-text-sm);
}

.gb-promise li {
	display: flex;
	gap: var(--gb-space-3);
	align-items: flex-start;
}

.gb-promise .gb-icon {
	color: var(--gb-lilac);
	margin-top: 2px;
}

.gb-promise strong {
	display: block;
}

/* Variations */
.woocommerce div.product form.cart {
	margin: 0;
	display: grid;
	gap: var(--gb-space-4);
}

.woocommerce div.product form.cart .variations {
	width: 100%;
	margin: 0;
	border: 0;
}

.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	text-align: left;
}

.woocommerce div.product form.cart .variations th.label label {
	font-size: var(--gb-text-sm);
	font-weight: 600;
	margin-bottom: var(--gb-space-2);
}

.woocommerce div.product form.cart .variations td.value {
	margin-bottom: var(--gb-space-4);
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: var(--gb-space-2);
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-soft);
}

.woocommerce div.product .woocommerce-variation-price {
	margin-bottom: var(--gb-space-3);
}

/* Quantity + add to cart row */
.gb-cart-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gb-space-3);
	align-items: stretch;
}

.quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--gb-line-strong);
	border-radius: var(--gb-radius-pill);
	background: var(--gb-white);
	overflow: hidden;
}

.quantity__button {
	display: grid;
	place-items: center;
	width: 44px;
	border: 0;
	background: transparent;
	color: var(--gb-ink-soft);
	transition: background-color var(--gb-duration) var(--gb-ease);
}

.quantity__button:hover {
	background: var(--gb-mist);
	color: var(--gb-teal-deep);
}

.quantity .qty,
.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty {
	width: 56px;
	min-height: 46px;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: center;
	font-weight: 600;
	appearance: textfield;
	-moz-appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.quantity .qty:focus {
	box-shadow: none;
	outline-offset: -3px;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	flex: 1 1 200px;
	min-height: 48px;
}

.gb-buy-now {
	flex: 1 1 160px;
}

.gb-buy-now__hint {
	flex-basis: 100%;
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-faint);
	margin: 0;
}

.gb-single-trust {
	padding-top: var(--gb-space-4);
	margin-top: var(--gb-space-2);
	border-top: 1px solid var(--gb-line);
}

.woocommerce div.product .product_meta {
	margin-top: var(--gb-space-5);
	padding-top: var(--gb-space-4);
	border-top: 1px solid var(--gb-line);
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-faint);
	display: grid;
	gap: var(--gb-space-1);
}

.woocommerce div.product .product_meta a {
	color: var(--gb-ink-soft);
}

.woocommerce .stock {
	font-size: var(--gb-text-sm);
	font-weight: 600;
}

.woocommerce .stock.in-stock {
	color: var(--gb-success);
}

.woocommerce .stock.out-of-stock {
	color: var(--gb-error);
}

/* Tabs */
/*
 * The grid's own row gap already separates this from the gallery/summary row,
 * so this margin is the second half of that gap, not the whole of it. Kept in
 * step with .gb-product-panel below: the two render the same slot, one with a
 * tab strip and one without, and the content should not shift down when a
 * second tab appears.
 */
.woocommerce div.product .woocommerce-tabs {
	margin-top: var(--gb-space-6);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gb-space-2);
	margin: 0 0 var(--gb-space-5);
	padding: 0 0 var(--gb-space-3);
	border-bottom: 1px solid var(--gb-line);
	list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: var(--gb-radius-pill);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.55rem 1.2rem;
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-pill);
	color: var(--gb-ink-soft);
	font-size: var(--gb-text-sm);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	background: var(--gb-teal);
	border-color: var(--gb-teal);
	color: var(--gb-white);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: 72ch;
	margin: 0;
	padding: 0;
}

/*
 * A lone tab is rendered without the tab strip — see
 * woocommerce/single-product/tabs/tabs.php. It carries none of the tab
 * classes, so it needs the measure and the spacing the strip used to give it.
 * The full-width grid placement it already inherits from the
 * `.woocommerce-product-gallery ~ *:not(.summary)` rule above.
 */
.woocommerce div.product .gb-product-panel {
	max-width: 72ch;
	margin: var(--gb-space-6) 0 0;
	padding: 0;
}

/* Related / upsells */
.woocommerce div.product .related,
.woocommerce div.product .upsells,
.woocommerce .cross-sells {
	padding-top: var(--gb-space-7);
	border-top: 1px solid var(--gb-line);
}

/*
 * No margin on the two inside div.product: they are grid items, so the grid's
 * own row gap already sits above the rule, and the padding below it carries
 * the rest of the separation. A margin here would be a third helping.
 *
 * .cross-sells is styled with them but lives in the cart's collaterals rather
 * than the product grid, with no row gap to inherit, so it keeps its own.
 */
.woocommerce .cross-sells {
	margin-top: var(--gb-space-8);
}

.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2,
.woocommerce .cross-sells > h2 {
	font-size: var(--gb-text-2xl);
	margin-bottom: var(--gb-space-5);
}

/* Reviews */
.woocommerce #reviews #comments ol.commentlist {
	padding: 0;
	display: grid;
	gap: var(--gb-space-4);
}

.woocommerce #reviews #comments ol.commentlist li {
	margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius);
	padding: var(--gb-space-4);
	margin-left: 68px;
	background: var(--gb-white);
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
	width: 52px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: var(--gb-mist);
}

.woocommerce #review_form #respond textarea {
	min-height: 130px;
}

/* ------------------------------------------------------------------ *
 * 6. Delivery fields
 * ------------------------------------------------------------------ */

/*
 * The delivery question lives only on the checkout page — see
 * .gb-checkout-block--delivery below. Nothing on the product page asks for a
 * date, so there is no fieldset to style here.
 */

/* ------------------------------------------------------------------ *
 * 7. Cart
 * ------------------------------------------------------------------ */

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

.gb-cart-layout {
	display: grid;
	gap: var(--gb-space-6);
	align-items: start;
}

@media (min-width: 900px) {
	.gb-cart-layout {
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: var(--gb-space-7);
	}
}

/*
 * Strip WooCommerce's table chrome ONLY where the theme draws its own frame:
 * the cart totals card and the checkout order summary. `shop_table` is shared
 * by eight templates — orders, payment methods and order details
 * among them — so a blanket reset here leaves those with no border and no
 * bottom margin.
 */
.woocommerce .cart_totals table.shop_table,
.woocommerce table.woocommerce-checkout-review-order-table {
	border: 0;
	border-radius: 0;
	margin: 0;
}

/* The cart is rebuilt as a list of cards rather than a data table so it
   reads well on a phone. */
.gb-cart-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--gb-space-4);
}

.gb-cart-item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: var(--gb-space-4);
	padding: var(--gb-space-4);
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	transition: opacity var(--gb-duration) var(--gb-ease);
}

.gb-cart-item.is-updating {
	opacity: 0.5;
	pointer-events: none;
}

@media (min-width: 640px) {
	.gb-cart-item {
		grid-template-columns: 120px minmax(0, 1fr) auto;
		align-items: start;
	}
}

.gb-cart-item__media img {
	width: 100%;
	border-radius: var(--gb-radius);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--gb-mist);
}

.gb-cart-item__title {
	font-family: var(--gb-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 var(--gb-space-1);
}

.gb-cart-item__title a {
	color: var(--gb-ink);
	text-decoration: none;
}

.gb-cart-item__meta {
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-soft);
	margin: 0 0 var(--gb-space-3);
}

.gb-cart-item__meta dl {
	margin: 0;
	display: grid;
	gap: 2px;
}

.gb-cart-item__meta dt {
	display: inline;
	font-weight: 600;
}

.gb-cart-item__meta dt::after {
	content: ": ";
}

.gb-cart-item__meta dd {
	display: inline;
	margin: 0;
}

.gb-cart-item__meta p {
	margin: 0;
	display: inline;
}

.gb-cart-item__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gb-space-3);
}

/*
 * WooCommerce's own button and link classes land on markup the theme never
 * renders — the cart's "Proceed to checkout" comes from
 * woocommerce_button_proceed_to_checkout(), not from a template we override —
 * so the theme has to meet them on their own selectors.
 * ------------------------------------------------------------------ */

/*
 * `.alt` is WooCommerce's "this is the primary action" flag, and it repaints
 * the button in its own purple at (0,3,1) — above the theme's (0,2,1) button
 * rule. Every state has to be answered, or the button turns purple the moment
 * it is hovered or disabled.
 */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt.disabled,
.woocommerce a.button.alt:disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce input.button.alt.disabled,
.woocommerce input.button.alt:disabled {
	background-color: var(--gb-teal);
	border-color: var(--gb-teal);
	color: var(--gb-white);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background-color: var(--gb-teal-deep);
	border-color: var(--gb-teal-deep);
	color: var(--gb-white);
}

/*
 * A disabled button — "Update cart" until a quantity changes — is dimmed to
 * opacity .5 and given WooCommerce's own padding, which collapses the pill.
 * Keep the theme's shape and dim it a little more gently.
 */
.woocommerce a.button.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled,
.woocommerce input.button.disabled,
.woocommerce input.button:disabled {
	padding: 0.75rem 1.6rem;
	opacity: 0.55;
	cursor: not-allowed;
}

.woocommerce a.button.disabled:hover,
.woocommerce a.button:disabled:hover,
.woocommerce button.button.disabled:hover,
.woocommerce button.button:disabled:hover,
.woocommerce input.button.disabled:hover,
.woocommerce input.button:disabled:hover {
	background-color: var(--btn-bg);
	color: var(--btn-fg);
}

/*
 * WooCommerce styles `a.remove` as a 1em round × button, in red, with
 * `color: … !important`. The theme's remove control is a labelled link, so at
 * 1em wide the word "Remove" wraps to one letter per line. The `!important` on
 * the colour has to be answered in kind.
 */
.woocommerce a.remove.gb-cart-item__remove,
.woocommerce a.remove.gb-mini-item__remove {
	display: inline-flex;
	width: auto;
	height: auto;
	font-size: var(--gb-text-xs);
	line-height: 1.2;
	text-align: left;
	border-radius: var(--gb-radius-sm);
	color: var(--gb-ink-soft) !important;
}

.woocommerce a.remove.gb-cart-item__remove:hover,
.woocommerce a.remove.gb-mini-item__remove:hover {
	background: none;
	color: var(--gb-error) !important;
}

.woocommerce a.remove.gb-mini-item__remove {
	font-size: 1.1rem;
	line-height: 1;
	text-align: center;
}

/*
 * "Change address" carries a glyph from WooCommerce's icon font, which renders
 * as a stray box wherever that font has not loaded.
 */
.woocommerce-cart .cart-collaterals .shipping-calculator-button::after,
.woocommerce-checkout .cart-collaterals .shipping-calculator-button::after {
	display: none;
	content: none;
}

.gb-cart-item__remove {
	display: inline-flex;
	align-items: center;
	gap: var(--gb-space-1);
	font-size: var(--gb-text-xs);
	font-weight: 600;
	color: var(--gb-ink-soft);
	text-decoration: none;
	background: none;
	border: 0;
	padding: var(--gb-space-2);
}

.gb-cart-item__remove:hover {
	color: var(--gb-error);
}

.gb-cart-item__price {
	font-size: var(--gb-text-lg);
	font-weight: 600;
	white-space: nowrap;
	text-align: right;
}

.gb-cart-item__unit {
	display: block;
	font-size: var(--gb-text-xs);
	font-weight: 400;
	color: var(--gb-ink-faint);
}

/* Coupon + actions bar */
/*
 * The discount code moved to checkout, so all that is left here is the no-JS
 * update button — which JavaScript hides. No border or padding, or an empty
 * bordered strip is drawn under the last item for everyone with JavaScript on.
 */
.gb-cart-actions-bar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gb-space-3);
	align-items: flex-end;
	justify-content: flex-end;
	margin-top: var(--gb-space-4);
}

/* Totals card */
.gb-cart-totals,
.woocommerce .cart_totals {
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	padding: var(--gb-space-5);
	width: 100%;
	float: none;
}

@media (min-width: 900px) {
	/*
	 * The whole sidebar sticks, not the totals card alone. Sticking the card
	 * by itself slides it down over the reassurance list sitting below it in
	 * normal flow — the card has a background, so it simply covers the text.
	 * Everything in the column travels together instead.
	 */
	.gb-cart-sidebar {
		position: sticky;
		top: calc(var(--gb-header-height) + var(--gb-space-4));
	}
}

.gb-cart-totals h2,
.woocommerce .cart_totals h2 {
	font-size: var(--gb-text-xl);
	margin-bottom: var(--gb-space-4);
}

.woocommerce .cart_totals table,
.gb-cart-totals table,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table,
.woocommerce-checkout .cart-collaterals .cart_totals table.shop_table,
#add_payment_method .cart-collaterals .cart_totals table.shop_table {
	border: 0;
	border-collapse: collapse;
	margin: 0 0 var(--gb-space-4);
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td,
.gb-cart-totals table th,
.gb-cart-totals table td {
	padding: var(--gb-space-3) 0;
	border: 0;
	border-bottom: 1px solid var(--gb-line);
	font-size: var(--gb-text-sm);
	vertical-align: top;
}

/*
 * Padding only, and on its own, because it needs a specificity the rest of
 * this block must not have. The generic `shop_table` cell rule at the foot of
 * this file outranks the short selectors above and would put 16px back on
 * either side of cells that are meant to sit flush with the card's own
 * padding. Everything else stays where it is: the stacked mobile layout
 * clears these cells' borders with three classes, and a rule this specific
 * carrying a `border-bottom` would draw them straight back in.
 */
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td,
.woocommerce-checkout .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-checkout .cart-collaterals .cart_totals table.shop_table td,
#add_payment_method .cart-collaterals .cart_totals table.shop_table th,
#add_payment_method .cart-collaterals .cart_totals table.shop_table td {
	padding-inline: 0;
}

.woocommerce .cart_totals table th,
.gb-cart-totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-checkout .cart-collaterals .cart_totals table.shop_table th,
#add_payment_method .cart-collaterals .cart_totals table.shop_table th {
	font-weight: 500;
	color: var(--gb-ink-soft);
	text-align: left;
	width: 45%;
}

.woocommerce .cart_totals table td,
.gb-cart-totals table td {
	text-align: right;
	font-weight: 600;
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td,
.gb-cart-totals .order-total th,
.gb-cart-totals .order-total td {
	border-bottom: 0;
	font-size: var(--gb-text-lg);
	font-weight: 700;
	color: var(--gb-ink);
	padding-top: var(--gb-space-4);
}

.woocommerce .cart_totals ul#shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--gb-space-2);
	text-align: left;
	font-weight: 400;
}

.woocommerce .cart_totals ul#shipping_method li {
	display: flex;
	align-items: baseline;
	gap: var(--gb-space-2);
	margin: 0;
	padding: 0;
}

.woocommerce .cart_totals .woocommerce-shipping-destination {
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-faint);
	text-align: left;
}

/*
 * The shipment cell holds right-aligned figures, but the address and the link
 * that edits it are prose — they belong on the left margin with the rest of
 * the cell's text, not floating off to the right on their own. The link lives
 * inside WooCommerce's own <form class="woocommerce-shipping-calculator">.
 */
.woocommerce .cart_totals .woocommerce-shipping-calculator {
	text-align: left;
	margin-top: var(--gb-space-2);
}

.woocommerce .cart_totals .shipping-calculator-button {
	display: inline-block;
	font-size: var(--gb-text-xs);
	font-weight: 600;
}

.wc-proceed-to-checkout,
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-checkout .wc-proceed-to-checkout,
#add_payment_method .wc-proceed-to-checkout {
	padding: 0;
	margin-top: var(--gb-space-4);
}

.wc-proceed-to-checkout .checkout-button {
	width: 100%;
	min-height: 52px;
	font-size: var(--gb-text-base);
}

.gb-cart-reassure {
	list-style: none;
	margin: var(--gb-space-4) 0 0;
	padding: 0;
	display: grid;
	gap: var(--gb-space-2);
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-soft);
}

.gb-cart-reassure li {
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
}

.gb-cart-reassure .gb-icon {
	color: var(--gb-lilac);
}

/* Empty cart */
.gb-cart-empty {
	text-align: center;
	max-width: 560px;
	margin-inline: auto;
	padding-block: var(--gb-space-8);
}

.gb-cart-empty__art {
	position: relative;
	width: 160px;
	height: 160px;
	margin: 0 auto var(--gb-space-6);
	border-radius: 50%;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 34% 32%, rgba(194, 164, 200, 0.55), transparent 52%),
		radial-gradient(circle at 70% 62%, rgba(129, 99, 148, 0.35), transparent 55%),
		var(--gb-mist);
	color: var(--gb-teal-deep);
}

.gb-cart-empty__art .gb-icon {
	width: 60px;
	height: 60px;
	stroke-width: 1.2;
}

.gb-cart-empty__title {
	font-size: var(--gb-text-2xl);
	margin-bottom: var(--gb-space-3);
}

.gb-cart-empty__text {
	color: var(--gb-ink-soft);
	margin-bottom: var(--gb-space-6);
}

.gb-cart-empty__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gb-space-3);
	justify-content: center;
	margin-bottom: var(--gb-space-7);
}

/* ------------------------------------------------------------------ *
 * 8. Checkout
 * ------------------------------------------------------------------ */

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

/*
 * The four steps stay on one line at every width.
 *
 * Wrapping put "Confirmation" alone on a second row, where a centred label
 * under a row of three reads as a step of a different kind rather than the
 * fourth of four. There is no width at which four labels of this length fit at
 * a fixed size, so the type and the spacing scale with the viewport instead:
 * `clamp` caps them at the desktop values and eases them down on a phone,
 * which keeps the row intact without a breakpoint to maintain.
 *
 * `nowrap` is the guarantee. Without it the clamped sizes merely make wrapping
 * less likely — a longer translation of "Confirmation" would still break the
 * row, and silently.
 */
.gb-checkout-steps {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: clamp(0.35rem, 2vw, var(--gb-space-4));
	list-style: none;
	margin: 0 0 var(--gb-space-6);
	padding: 0;
	font-size: clamp(0.5rem, 2.6vw, var(--gb-text-xs));
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gb-ink-faint);
}

.gb-checkout-steps li {
	display: flex;
	align-items: center;
	gap: clamp(0.25rem, 1vw, var(--gb-space-2));
	/* A label that breaks mid-word costs more than the row it was saving. */
	white-space: nowrap;
}

.gb-checkout-steps li::before {
	content: "";
	flex-shrink: 0;
	width: clamp(6px, 1.4vw, 8px);
	height: clamp(6px, 1.4vw, 8px);
	border-radius: 50%;
	background: var(--gb-line-strong);
}

.gb-checkout-steps .is-current {
	color: var(--gb-teal-deep);
	font-weight: 700;
}

.gb-checkout-steps .is-current::before {
	background: var(--gb-teal);
}

/*
 * A completed step is a way back, so its label becomes a button — see
 * setMarkerControl in assets/js/checkout.js. It has to read as the same kind
 * of thing as "Your cart" beside it, which is a plain anchor, so the button
 * gives up everything that would mark it out as a button and inherits the row's
 * own type.
 */
.gb-checkout-steps__control {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.gb-checkout-steps__control:hover {
	color: var(--gb-teal-deep);
}

/* Steps already behind you: legible, but not competing with the current one. */
.gb-checkout-steps .is-done {
	color: var(--gb-ink-soft);
}

.gb-checkout-steps .is-done::before {
	background: var(--gb-teal-soft);
}

.woocommerce .checkout {
	display: grid;
	gap: var(--gb-space-6);
	align-items: start;
}

/*
 * checkout.js prepends validation errors *inside* the form — both
 * submit_error() and the order-review refresh do
 * `$form.prepend( '<div class="woocommerce-NoticeGroup">…' )`. In a two-column
 * grid that notice becomes a third item: it takes column one and shunts the
 * form itself into the summary column.
 *
 * So nothing is left to auto-placement. Anything the plugin injects spans the
 * full width, and the two real columns are positioned by name.
 */
.woocommerce .checkout > * {
	grid-column: 1 / -1;
}

/* The notice group brings its own trailing margin; the grid gap is enough. */
.woocommerce .checkout > .woocommerce-NoticeGroup > :last-child {
	margin-bottom: 0;
}

@media (min-width: 900px) {
	.woocommerce .checkout {
		grid-template-columns: minmax(0, 1fr) 400px;
		gap: var(--gb-space-7);
	}

	.woocommerce .checkout > .gb-checkout__main {
		grid-column: 1;
	}

	.woocommerce .checkout > .gb-checkout__summary {
		grid-column: 2;
	}
}

.gb-checkout__main {
	display: grid;
	gap: var(--gb-space-5);
	min-width: 0;
}

/*
 * Checkout steps.
 *
 * Both steps are rendered; the script hides all but one. Until it runs they
 * are stacked in normal flow, which is exactly the no-JavaScript fallback —
 * one long form that still submits.
 */
/*
 * Block flow with margins between siblings, rather than a grid with a gap: the
 * payment heading and the payment box are two elements that have to read as
 * one card, and a pair can drop a margin where it cannot drop a gap.
 */
.gb-step {
	min-width: 0;
}

.gb-step > * + * {
	margin-top: var(--gb-space-5);
}

.gb-step[hidden] {
	display: none;
}

/*
 * Only the bottom margin is reset. These are paragraphs, so they arrive with a
 * UA margin on both sides, but zeroing the pair also cancelled the `* + *`
 * rule above — same specificity, later in the file — and left the button
 * sitting flush against the bottom edge of the card before it. Both of these
 * always follow the step's content, never open it, so the sibling rule is
 * always the one setting their top margin.
 */
.gb-step__actions {
	margin-bottom: 0;
}

.gb-step__actions--back {
	text-align: center;
}

/* Width and centring come from `.gb-btn--wide` in main.css. */
.gb-step__actions .gb-btn {
	justify-content: center;
}

/* The step headings take focus when a step opens; never draw a resting ring. */
.gb-step h3[tabindex="-1"]:focus:not(:focus-visible) {
	outline: none;
}

/*
 * Every block in a checkout step is a card. `.woocommerce-account-fields` is
 * the easiest of them to forget: WooCommerce prints it only for a logged-out
 * visitor when guest registration is on, so it is absent from most of the
 * pages this stylesheet gets checked against. Left out, the "Create an
 * account?" checkbox sits bare on the page background between the billing
 * card and the order-notes card.
 */
.gb-checkout-block,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-account-fields,
.woocommerce-additional-fields {
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	padding: var(--gb-space-5);
}

.gb-checkout-block__title,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
	font-family: var(--gb-font-display);
	font-size: 1.45rem;
	margin-bottom: var(--gb-space-4);
}

.gb-checkout-block__title .gb-icon,
#order_review_heading .gb-icon {
	color: var(--gb-teal);
}

.gb-checkout-block__intro {
	font-size: var(--gb-text-sm);
	color: var(--gb-ink-soft);
	margin-bottom: var(--gb-space-4);
}

/*
 * The two things about this order that are easy to get wrong: whose clock the
 * date is read against, and the earliest we can actually be there. Set apart
 * from the prose so they are not skimmed past.
 */
.gb-checkout-block__note {
	display: flex;
	align-items: flex-start;
	gap: var(--gb-space-3);
	margin: calc(var(--gb-space-2) * -1) 0 var(--gb-space-4);
	padding: var(--gb-space-3) var(--gb-space-4);
	border-radius: var(--gb-radius);
	background: var(--gb-teal-wash);
	color: var(--gb-teal-deep);
	font-size: var(--gb-text-sm);
	line-height: 1.55;
}

.gb-checkout-block__note .gb-icon {
	flex: none;
	/* Optically centred on the first line rather than its box. */
	margin-top: 2px;
}

.woocommerce form .form-row {
	padding: 0;
	margin-bottom: var(--gb-space-4);
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
	width: 100%;
	float: none;
}

@media (min-width: 560px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.gb-checkout-block--delivery {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 var(--gb-space-4);
	}

	/*
	 * Same rule as the checkout form itself: nothing is left to auto-placement.
	 * Everything in the delivery block spans both columns unless it is one of
	 * the paired half-width fields, so a heading, a note, or anything a plugin
	 * adds cannot end up sharing a row with the date picker.
	 */
	.gb-checkout-block--delivery > * {
		grid-column: 1 / -1;
	}

	.woocommerce form .form-row-wide {
		grid-column: 1 / -1;
	}

	.woocommerce form .form-row-first,
	.gb-checkout-block--delivery > .form-row-first {
		grid-column: 1;
	}

	.woocommerce form .form-row-last,
	.gb-checkout-block--delivery > .form-row-last {
		grid-column: 2;
	}
}

.woocommerce form .form-row label.checkbox,
.woocommerce form .form-row .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: var(--gb-space-3);
	font-weight: 500;
	cursor: pointer;
}

/*
 * The box itself, matching `.gb-checkbox` in main.css.
 *
 * The global control rule there lists input types one by one and deliberately
 * omits `checkbox`, so without this WooCommerce's checkboxes — create an
 * account, accept the terms, and the ones on the account forms — are the only
 * controls on the site drawn by the browser rather than by the theme. The
 * default margins are cleared too: they sit on top of the flex `gap` above and
 * push the label away from a box it is supposed to read as attached to.
 */
.woocommerce .woocommerce-form__input-checkbox,
.woocommerce form .form-row input[type="checkbox"] {
	width: 20px;
	height: 20px;
	min-height: 0;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: var(--gb-teal);
	cursor: pointer;
}

/*
 * WooCommerce sets `visibility: hidden` on this at the same specificity, so
 * the required asterisk survives only by source order — and would vanish
 * outright if the plugin ever nudged its selector. Say it out loud.
 */
.woocommerce form .form-row .required {
	color: var(--gb-error);
	text-decoration: none;
	visibility: visible;
	border: 0;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid textarea {
	border-color: var(--gb-error);
	background: var(--gb-error-wash);
}

.woocommerce form .form-row.woocommerce-validated input.input-text {
	border-color: var(--gb-success);
}

.woocommerce form .form-row .gb-field__error,
.woocommerce form .form-row [role="alert"] {
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
	margin-top: var(--gb-space-2);
	font-size: var(--gb-text-sm);
	font-weight: 500;
	color: var(--gb-error);
}

.select2-container--default .select2-selection--single {
	height: 48px;
	border: 1px solid var(--gb-line-strong);
	border-radius: var(--gb-radius-sm);
	background: var(--gb-white);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 46px;
	padding-left: 0.9rem;
	color: var(--gb-ink);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 46px;
}

/*
 * Order summary column.
 *
 * The column and the card are two elements: the card is the "Your order" box,
 * and the coupon panel is a second block under it. Both travel together when
 * the column sticks.
 */
.gb-checkout__summary {
	position: sticky;
	top: calc(var(--gb-header-height) + var(--gb-space-4));
	display: grid;
	gap: var(--gb-space-4);
	align-content: start;
}

.gb-checkout__summary-card {
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	padding: var(--gb-space-5);
}

/* ------------------------------------------------------------------ *
 * Coupon panel
 *
 * Under the order box, and on the payment step only — a discount field at
 * the top of checkout sends people off to hunt for a code they do not have.
 * ------------------------------------------------------------------ */

.gb-checkout-coupon {
	background: var(--gb-white);
	border: 1px dashed var(--gb-line-strong);
	border-radius: var(--gb-radius-lg);
	padding: var(--gb-space-4);
}

.gb-checkout-coupon[hidden] {
	display: none;
}

.gb-checkout-coupon__toggle {
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
	flex-wrap: wrap;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: var(--gb-text-sm);
	text-align: left;
	color: var(--gb-ink);
	cursor: pointer;
}

.gb-checkout-coupon__toggle .gb-icon {
	color: var(--gb-lilac);
	flex: none;
}

.gb-checkout-coupon__label {
	font-weight: 700;
}

/* The part that reads as the link, because it is the part being offered. */
.gb-checkout-coupon__cue {
	color: var(--gb-teal-deep);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gb-checkout-coupon__toggle:hover .gb-checkout-coupon__cue {
	text-decoration: none;
}

.gb-checkout-coupon__fields {
	margin-top: var(--gb-space-4);
}

.gb-checkout-coupon__fields[hidden] {
	display: none;
}

.gb-checkout-coupon__fields .form-row {
	margin-bottom: var(--gb-space-3);
	padding: 0;
}

.gb-checkout-coupon__fields .form-row:last-of-type {
	margin-bottom: 0;
}

.gb-checkout-coupon__fields label {
	display: block;
	margin-bottom: var(--gb-space-1);
	font-size: var(--gb-text-sm);
	font-weight: 600;
}

/* Codes are printed in capitals everywhere they are advertised. */
.gb-checkout-coupon__fields .input-text {
	text-transform: uppercase;
}

.gb-checkout-coupon__fields .gb-btn {
	width: 100%;
	justify-content: center;
}

/* Empty until there is something to report; no reserved gap either way. */
.gb-checkout-coupon__status:empty {
	display: none;
}

.gb-checkout-coupon__status {
	margin: var(--gb-space-3) 0 0;
	font-size: var(--gb-text-sm);
	line-height: 1.45;
}

.gb-checkout-coupon__status.is-success {
	color: var(--gb-success);
}

.gb-checkout-coupon__status.is-error {
	color: var(--gb-error);
}

.woocommerce-checkout-review-order-table {
	width: 100%;
	border: 0;
	margin-bottom: var(--gb-space-4);
}

/*
 * Written long on purpose. WooCommerce styles its cells through
 * `.woocommerce table.shop_table th|td` and its footer through
 * `table.shop_table tfoot th|td`, and this table carries `shop_table` too, so
 * a rule keyed on the review-order class alone loses every property they share
 * — padding above all. The card draws its own frame, so these cells sit flush
 * with the card's padding and take their rules from here.
 */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td {
	padding: var(--gb-space-3) 0;
	border: 0;
	border-bottom: 1px solid var(--gb-line);
	font-size: var(--gb-text-sm);
	text-align: left;
	vertical-align: top;
	line-height: 1.45;
}

/* The shipping cell spans the row, so it is not a value column — see below. */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td:last-child:not(.gb-shipping-row__cell),
.woocommerce table.shop_table.woocommerce-checkout-review-order-table th:last-child {
	text-align: right;
}

/*
 * Only the money is unbreakable. `nowrap` on the whole last column also caught
 * the shipping row, and that cell holds a sentence rather than a figure —
 * "Enter your address to view shipping options." An unbreakable sentence sets
 * the table's minimum width, so the table grew past the card by 155px and the
 * product name was squeezed into four lines to pay for it.
 */
.woocommerce-checkout-review-order-table .woocommerce-Price-amount {
	white-space: nowrap;
}

.woocommerce-checkout-review-order-table .product-name {
	font-weight: 600;
	padding-right: var(--gb-space-3);
}

.woocommerce-checkout-review-order-table .product-name .variation,
.woocommerce-checkout-review-order-table .product-name dl {
	margin: var(--gb-space-1) 0 0;
	font-size: var(--gb-text-xs);
	font-weight: 400;
	color: var(--gb-ink-soft);
}

.woocommerce-checkout-review-order-table .product-quantity {
	color: var(--gb-ink-faint);
	font-weight: 400;
}

/* Long again, and for the same reason: `shop_table tfoot th|td` forces 700. */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot th {
	font-weight: 500;
	color: var(--gb-ink-soft);
}

.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot td {
	font-weight: 600;
}

.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot .order-total td {
	border-bottom: 0;
	font-size: var(--gb-text-lg);
	font-weight: 700;
	color: var(--gb-ink);
}

/*
 * The shipping row spans both columns — see woocommerce/cart/cart-shipping.php
 * for why. Stacking it in CSS alone with `display: block` is the obvious idea
 * and it does not work: a block child of a table row is wrapped in an
 * anonymous cell, which lands in the first column and leaves the second one
 * standing empty beside it. The row needs a real `colspan`.
 */
/*
 * Matched against WooCommerce's own `table.shop_table tfoot td`, which sets
 * both the bold weight and — via the theme's right-aligned last column — the
 * alignment this cell has to shed. A bare class loses to both.
 */
/*
 * Both places this row appears: the checkout summary, where it sits in a
 * `tfoot`, and the cart totals card, where it sits in the implicit `tbody`.
 * Each context styles its cells through three-class selectors of its own — the
 * bold weight in one, the right alignment in the other — so the cell has to
 * meet them on their own terms.
 */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot td.gb-shipping-row__cell,
.woocommerce .cart_totals table.shop_table td.gb-shipping-row__cell {
	text-align: left;
	white-space: normal;
	font-weight: 400;
	color: var(--gb-ink-soft);
}

.gb-shipping-row__label {
	display: block;
	margin-bottom: var(--gb-space-1);
	font-weight: 500;
	color: var(--gb-ink-soft);
}

.gb-shipping-row .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--gb-space-2);
	color: var(--gb-ink);
}

.gb-shipping-row .woocommerce-shipping-methods li {
	display: flex;
	align-items: baseline;
	gap: var(--gb-space-2);
	margin: 0;
}

.gb-shipping-row .woocommerce-shipping-destination,
.gb-shipping-row .woocommerce-shipping-contents {
	margin: var(--gb-space-2) 0 0;
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-faint);
}

.woocommerce-checkout-review-order-table thead th {
	font-size: var(--gb-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gb-ink-faint);
	font-weight: 700;
}

/* Accepted cards, sitting above the place-order button. */
.gb-checkout-payments {
	padding: var(--gb-space-4) 0 var(--gb-space-3);
	border-top: 1px solid var(--gb-line);
	margin-top: var(--gb-space-4);
}.woocommerce-checkout #payment,
#add_payment_method #payment {
	background: transparent;
	border-radius: 0;
}.woocommerce-checkout #payment ul.payment_methods,
#add_payment_method #payment ul.payment_methods {
	padding: 0;
	margin: 0 0 var(--gb-space-4);
	border: 0;
	list-style: none;
	display: grid;
	gap: var(--gb-space-2);
}.woocommerce-checkout #payment ul.payment_methods li,
#add_payment_method #payment ul.payment_methods li {
	margin: 0;
	padding: var(--gb-space-3) var(--gb-space-4);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius);
	background: var(--gb-white);
	transition: border-color var(--gb-duration) var(--gb-ease),
		background-color var(--gb-duration) var(--gb-ease);
}.woocommerce-checkout #payment ul.payment_methods li:has(input:checked),
#add_payment_method #payment ul.payment_methods li:has(input:checked) {
	border-color: var(--gb-teal);
	background: var(--gb-teal-wash);
}.woocommerce-checkout #payment ul.payment_methods li label,
#add_payment_method #payment ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	gap: var(--gb-space-2);
	font-weight: 600;
	font-size: var(--gb-text-sm);
	margin: 0;
	cursor: pointer;
}.woocommerce-checkout #payment ul.payment_methods li input[type="radio"],
#add_payment_method #payment ul.payment_methods li input[type="radio"] {
	width: 20px;
	height: 20px;
	min-height: 0;
	accent-color: var(--gb-teal);
	margin-right: var(--gb-space-1);
}.woocommerce-checkout #payment div.payment_box,
#add_payment_method #payment div.payment_box {
	background: transparent;
	color: var(--gb-ink-soft);
	font-size: var(--gb-text-sm);
	padding: var(--gb-space-3) 0 0;
	margin: var(--gb-space-2) 0 0;
	border-top: 1px dashed var(--gb-line);
}.woocommerce-checkout #payment div.payment_box::before,
#add_payment_method #payment div.payment_box::before {
	display: none;
}

/*
 * Payment panel.
 *
 * The heading and the box are siblings — the hook that carries the heading
 * fires just outside `#payment` — so the card is drawn across the two of them:
 * top half on the heading, bottom half on the box, and no margin between.
 */
.gb-step--payment .gb-checkout-payment-head {
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-bottom: 0;
	border-radius: var(--gb-radius-lg) var(--gb-radius-lg) 0 0;
	/*
	 * The gap under the heading is padding rather than the heading's own
	 * margin. With no bottom border and no bottom padding to stop it, that
	 * margin collapses out through the box and reappears as a gap *between*
	 * the two halves of the card — splitting the thing this rule exists to
	 * join.
	 */
	padding: var(--gb-space-5) var(--gb-space-5) var(--gb-space-4);
}

.gb-step--payment .gb-checkout-payment-head .gb-checkout-block__title {
	margin-bottom: 0;
}

.gb-step--payment #payment {
	margin-top: 0;
	/* Transparent while it lived inside the summary card; it is the card now. */
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-top: 0;
	border-radius: 0 0 var(--gb-radius-lg) var(--gb-radius-lg);
	padding: 0 var(--gb-space-5) var(--gb-space-5);
}

/*
 * Stripe's hosted card element.
 *
 * The gateway wraps the mount point and the save-card checkbox in bare
 * `<fieldset>` elements, which the theme never resets — so both arrive with
 * the browser's default `2px groove` border and padding, drawing a box around
 * Stripe's own framing. Stripe draws the field chrome itself (Optimized
 * Checkout is on, in accordion layout), so the fieldsets are stripped rather
 * than styled: a border here would only sit outside the one Stripe paints.
 */
#wc-stripe-upe-form,
#wc-stripe-upe-form ~ fieldset,
.payment_method_stripe .woocommerce-SavedPaymentMethods-saveNew {
	margin: 0;
	padding: 0;
	border: 0;
}

#wc-stripe-upe-form ~ fieldset {
	margin-top: var(--gb-space-3);
}

/*
 * Card element mount point. Matched on the class — the gateway emits
 * `<div class="wc-stripe-upe-element">`, never an id, so an `#` selector here
 * silently matches nothing.
 */
.wc-stripe-elements-field,
.wc-stripe-iban-element-field,
.wc-block-card-elements {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--gb-line-strong);
	border-radius: var(--gb-radius-sm);
	background: var(--gb-white);
	min-height: 48px;
}

.wc-stripe-elements-field.focused {
	border-color: var(--gb-teal);
	box-shadow: 0 0 0 3px rgba(58, 111, 119, 0.16);
}

#place_order {
	width: 100%;
	min-height: 54px;
	font-size: var(--gb-text-base);
	margin-top: var(--gb-space-2);
}

/*
 * Terms & conditions box and the shipping calculator.
 *
 * Both were laid out in `woocommerce-layout.css`, which the theme dequeues.
 * They only appear when the shop enables them, which is why they are easy to
 * miss — without these rules the T&C text dumps into the checkout unbounded,
 * and the calculator loses its framing.
 */
.woocommerce .woocommerce-terms-and-conditions {
	margin-bottom: var(--gb-space-4);
	padding: var(--gb-space-4);
	max-height: 220px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-sm);
	background: var(--gb-shell);
	font-size: var(--gb-text-sm);
}

.woocommerce .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: var(--gb-space-4);
}

.woocommerce .woocommerce-terms-and-conditions-checkbox-text {
	font-size: var(--gb-text-sm);
}

.woocommerce .shipping-calculator-form,
.woocommerce .cart-collaterals .shipping_calculator {
	width: 100%;
	float: none;
	clear: both;
	margin-top: var(--gb-space-3);
}

.woocommerce .shipping-calculator-button,
.woocommerce-cart .cart-collaterals .shipping-calculator-button,
.woocommerce-checkout .cart-collaterals .shipping-calculator-button,
#add_payment_method .cart-collaterals .shipping-calculator-button {
	display: inline-block;
	font-size: var(--gb-text-xs);
	font-weight: 600;
}

.woocommerce .shipping-calculator-form .form-row {
	margin-bottom: var(--gb-space-3);
}

.gb-reassurance {
	list-style: none;
	margin: var(--gb-space-4) 0 0;
	padding: 0;
	display: grid;
	gap: var(--gb-space-2);
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-soft);
	line-height: 1.5;
}

.gb-reassurance li {
	display: flex;
	align-items: flex-start;
	gap: var(--gb-space-2);
}

.gb-reassurance .gb-icon {
	color: var(--gb-lilac);
	margin-top: 1px;
}

/* Blocking overlay while WooCommerce updates the order review. */
.blockUI.blockOverlay {
	position: relative;
	background: rgba(247, 249, 250, 0.7) !important;
	opacity: 1 !important;
}

.blockUI.blockOverlay::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 3px solid var(--gb-teal-soft);
	border-right-color: transparent;
	border-radius: 50%;
	animation: gb-spin 640ms linear infinite;
}

.woocommerce form.checkout.processing {
	position: relative;
}

/*
 * Login toggle at the top of checkout. The coupon toggle that used to sit
 * beside it is gone — the theme unhooks WooCommerce's form and prints its own
 * panel under the order summary instead, styled further down.
 */
.woocommerce-form-login-toggle .woocommerce-info {
	margin-bottom: var(--gb-space-4);
}

/*
 * The shorthand, not just `margin-bottom`: WooCommerce sets `margin: 2em 0`
 * on these forms, and a longhand override leaves its 2em top margin behind.
 */
.woocommerce form.login,
.woocommerce form.register {
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	background: var(--gb-white);
	padding: var(--gb-space-5);
	margin: 0 0 var(--gb-space-5);
}

/*
 * WooCommerce floats the login submit and gives it a right margin, which
 * leaves a full-width button out of flow and its form unable to contain it.
 */
/*
 * Undo WooCommerce's floated submit button.
 *
 * `margin-inline: auto` rather than the `margin-right: 0` this used to carry:
 * both clear the float's right margin, but this selector is (0,3,0) and
 * `.gb-btn--wide` is (0,1,0), so the old declaration also quietly won the
 * centring the cap depends on — leaving the button hard left in its card while
 * the same class centred correctly at checkout.
 */
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce .woocommerce-form-register .woocommerce-form-register__submit {
	float: none;
	margin-inline: auto;
}

/* ------------------------------------------------------------------ *
 * 9. Order received & My Account
 * ------------------------------------------------------------------ */

.gb-thankyou {
	padding-block: var(--gb-space-7) var(--gb-space-8);
}

.gb-thankyou__hero {
	text-align: center;
	max-width: 640px;
	margin: 0 auto var(--gb-space-7);
}

.gb-thankyou__check {
	width: 92px;
	height: 92px;
	margin: 0 auto var(--gb-space-5);
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--gb-success-wash);
	color: var(--gb-success);
	animation: gb-pop 420ms var(--gb-ease) both;
}

.gb-thankyou__check .gb-icon {
	width: 44px;
	height: 44px;
	stroke-width: 2;
}

.gb-thankyou__check--error {
	background: var(--gb-error-wash);
	color: var(--gb-error);
}

@keyframes gb-pop {
	from {
		transform: scale(0.6);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.gb-thankyou__title {
	font-size: var(--gb-text-3xl);
	margin-bottom: var(--gb-space-3);
}

.gb-thankyou__text {
	color: var(--gb-ink-soft);
	font-size: var(--gb-text-lg);
}

.gb-thankyou__grid {
	display: grid;
	gap: var(--gb-space-5);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-bottom: var(--gb-space-7);
}

.gb-thankyou__stat {
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	padding: var(--gb-space-4);
	text-align: center;
}

.gb-thankyou__stat dt {
	font-size: var(--gb-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gb-ink-faint);
	margin-bottom: var(--gb-space-2);
	font-weight: 700;
}

.gb-thankyou__stat dd {
	margin: 0;
	font-size: var(--gb-text-lg);
	font-weight: 600;
}

.gb-order-delivery {
	background: var(--gb-lilac-wash);
	border-radius: var(--gb-radius-lg);
	padding: var(--gb-space-5);
	margin-bottom: var(--gb-space-6);
}

.gb-order-delivery__title {
	display: flex;
	align-items: center;
	gap: var(--gb-space-2);
	font-size: var(--gb-text-xl);
	margin-bottom: var(--gb-space-4);
}

.gb-order-delivery__title .gb-icon {
	color: var(--gb-lilac);
}

.woocommerce .woocommerce-order-details,
.woocommerce .woocommerce-customer-details {
	margin-bottom: var(--gb-space-6);
}

.woocommerce .woocommerce-order-details__title,
.woocommerce .woocommerce-column__title {
	font-size: var(--gb-text-xl);
	margin-bottom: var(--gb-space-4);
}

/*
 * Billing and shipping on the order pages.
 *
 * WooCommerce lays this pair out with the `.col2-set` floats in
 * woocommerce-layout.css, which the theme dequeues for the product loop's sake
 * — see golbaroon_dequeue_woocommerce_layout(). Without it the two columns are
 * plain blocks, and since WooCommerce gives the address box no bottom margin,
 * the "Shipping address" heading lands flush against the billing box above it.
 *
 * Same treatment as the My Account addresses further down, which never had the
 * problem because it was given a grid from the start.
 */
.woocommerce .woocommerce-columns--addresses {
	display: grid;
	gap: var(--gb-space-5);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/*
 * Data tables that keep a visible frame: order history, saved payment methods
 * and order details. `border-collapse: separate` is required for
 * border-radius to clip, which is why WooCommerce sets it.
 */
.woocommerce table.order_details,
.woocommerce table.woocommerce-table--order-details,
.woocommerce table.shop_table.woocommerce-orders-table,
.woocommerce table.shop_table.woocommerce-MyAccount-paymentMethods,
.woocommerce table.shop_table.my_account_orders {
	width: 100%;
	margin: 0 0 var(--gb-space-5);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--gb-white);
}

.woocommerce-MyAccount-content table.shop_table:last-child {
	margin-bottom: 0;
}

/*
 * Responsive tables.
 *
 * WooCommerce ships this behaviour in `woocommerce-smallscreen.css`, which the
 * theme dequeues because it also re-imposes a float grid on the product loop.
 * Re-implemented here using the `data-title` attribute WooCommerce already
 * puts on every cell, so narrow screens get stacked rows instead of a table
 * that scrolls off the side.
 */
@media (max-width: 600px) {
	.woocommerce table.shop_table_responsive thead {
		display: none;
	}

	.woocommerce table.shop_table_responsive,
	.woocommerce table.shop_table_responsive tbody,
	.woocommerce table.shop_table_responsive tr,
	.woocommerce table.shop_table_responsive td {
		display: block;
		width: 100%;
	}

	.woocommerce table.shop_table_responsive tr {
		padding: var(--gb-space-3) var(--gb-space-4);
		border-bottom: 1px solid var(--gb-line);
	}

	.woocommerce table.shop_table_responsive tr:last-child {
		border-bottom: 0;
	}

	.woocommerce table.shop_table_responsive tbody td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: var(--gb-space-3);
		padding: var(--gb-space-2) 0;
		border: 0;
		text-align: right;
	}

	/* The column heading, carried on each cell by WooCommerce. */
	.woocommerce table.shop_table_responsive tbody td::before {
		content: attr(data-title) ": ";
		flex-shrink: 0;
		font-size: var(--gb-text-xs);
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--gb-ink-soft);
		text-align: left;
	}

	/* Cells with no heading (action buttons) run full width. */
	.woocommerce table.shop_table_responsive tbody td:not([data-title])::before {
		content: none;
	}

	/*
	 * The shipping row is one cell spanning both columns (see
	 * woocommerce/cart/cart-shipping.php), so there is no value to push to the
	 * right — the flex treatment above would set the label and the rates side
	 * by side. It carries its own heading, so the `data-title` copy goes.
	 */
	.woocommerce table.shop_table_responsive tbody td.gb-shipping-row__cell {
		display: block;
		text-align: left;
	}

	.woocommerce table.shop_table_responsive tbody td.gb-shipping-row__cell::before {
		content: none;
	}

	/* Matched to the stacked headings beside it — in the stacked tables only.
	   The checkout summary is not one of them and keeps sentence case. */
	.woocommerce table.shop_table_responsive .gb-shipping-row__label {
		font-size: var(--gb-text-xs);
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	/*
	 * The cart totals label each row with a real <th>, which the stacking
	 * rules above left as a table-cell inside a block row — so it drew its own
	 * line and repeated the label the `data-title` had already written. Show
	 * the heading, drop the copy.
	 */
	.woocommerce table.shop_table_responsive tbody th {
		display: block;
		width: 100%;
		padding: 0;
		border: 0;
		font-size: var(--gb-text-xs);
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--gb-ink-soft);
		text-align: left;
	}

	.woocommerce .cart_totals table.shop_table_responsive tbody td::before {
		content: none;
	}

	/*
	 * Three classes to clear WooCommerce's `.cart-collaterals .cart_totals tr
	 * th { border-top }` (0,3,2), which otherwise draws a rule above every
	 * stacked heading.
	 */
	.woocommerce .cart_totals table.shop_table_responsive tbody th,
	.woocommerce .cart_totals table.shop_table_responsive tbody td {
		border: 0;
	}

	/*
	 * With the heading on its own line the cell no longer needs to hold a
	 * label opposite a figure, so it stops being a two-up row. The shipment
	 * cell in particular holds a method, an address and a link, which a
	 * space-between flex row spreads across the card.
	 */
	.woocommerce .cart_totals table.shop_table_responsive tbody td {
		display: block;
		padding-top: var(--gb-space-1);
		text-align: left;
	}

	.woocommerce table.shop_table_responsive tbody td.woocommerce-orders-table__cell-order-actions {
		justify-content: flex-start;
		flex-wrap: wrap;
		padding-top: var(--gb-space-3);
	}
}

/*
 * Data-table chrome for the plain `shop_table` templates — orders, payment
 * methods, order details. The checkout summary is excluded: the theme frames
 * that one itself inside a card (see the review-order rules above), and this
 * rule outranks them by a class, so without the exclusion it re-imposed 16px
 * of cell padding and a filled header band on a table designed to have
 * neither, leaving the table inset from everything else in the card.
 */
.woocommerce table.shop_table:not(.woocommerce-checkout-review-order-table) th,
.woocommerce table.shop_table:not(.woocommerce-checkout-review-order-table) td {
	padding: var(--gb-space-3) var(--gb-space-4);
	border-color: var(--gb-line);
	font-size: var(--gb-text-sm);
}

.woocommerce table.shop_table:not(.woocommerce-checkout-review-order-table) thead th {
	background: var(--gb-mist);
	font-size: var(--gb-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gb-ink-soft);
}

/* My Account */
.gb-account {
	padding-block: var(--gb-space-6) var(--gb-space-8);
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 100%;
	float: none;
	margin-bottom: var(--gb-space-5);
}

.woocommerce-account .woocommerce-MyAccount-content {
	width: 100%;
	float: none;
}

@media (min-width: 860px) {
	.gb-account__layout {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		gap: var(--gb-space-7);
		align-items: start;
	}

	.gb-account__layout .woocommerce-MyAccount-navigation {
		margin-bottom: 0;
		position: sticky;
		top: calc(var(--gb-header-height) + var(--gb-space-4));
	}
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: var(--gb-space-2);
	display: grid;
	gap: var(--gb-space-1);
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
}

.gb-account-nav__item a {
	display: block;
	padding: var(--gb-space-3) var(--gb-space-4);
	border-radius: var(--gb-radius);
	color: var(--gb-ink);
	font-size: var(--gb-text-sm);
	font-weight: 500;
	text-decoration: none;
}

.gb-account-nav__item a:hover {
	background: var(--gb-mist);
	color: var(--gb-teal-deep);
}

.woocommerce-MyAccount-navigation li.is-active > a {
	background: var(--gb-teal);
	color: var(--gb-white);
	font-weight: 600;
}

.woocommerce-MyAccount-content {
	background: var(--gb-white);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	padding: var(--gb-space-6);
	min-width: 0;
}

.woocommerce-MyAccount-content > p:first-child {
	margin-top: 0;
}

/*
 * Password fields with a show/hide toggle.
 *
 * WooCommerce styles this control in `woocommerce-layout.css`, which the theme
 * dequeues because that file also re-imposes a float grid on the product loop.
 * Without it the wrapper is not positioned and the button is not absolute, so
 * the toggle drops underneath the input as a stray box — and its icon, also
 * defined there, disappears entirely. Both are restored here.
 */
.woocommerce .password-input,
.woocommerce-page .password-input {
	display: block;
	position: relative;
}

.woocommerce .password-input input[type="password"],
.woocommerce .password-input input[type="text"] {
	/* Room for the toggle so it never sits on top of the value. */
	padding-right: 3rem;
}

.woocommerce .password-input input::-ms-reveal {
	display: none;
}

.woocommerce .password-input .show-password-input {
	position: absolute;
	top: 50%;
	right: 0.6rem;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--gb-ink-soft);
	cursor: pointer;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}

.woocommerce .password-input .show-password-input:hover {
	background: var(--gb-mist);
}

.woocommerce .password-input .show-password-input::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	/* Eye — click to reveal. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2351595b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 12S5.5 5 12 5s10.5 7 10.5 7-4 7-10.5 7S1.5 12 1.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
}

/* WooCommerce adds this class while the password is visible. */
.woocommerce .password-input .show-password-input.display-password::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233a6f77' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 10.6a3.2 3.2 0 0 0 4.3 4.3'/%3E%3Cpath d='M9.5 5.2A10.6 10.6 0 0 1 12 5c6.5 0 10.5 7 10.5 7a18 18 0 0 1-3 3.9M6.4 6.5A17.9 17.9 0 0 0 1.5 12S5.5 19 12 19a10.5 10.5 0 0 0 3.6-.6'/%3E%3C/svg%3E");
}

/* Password strength feedback from WooCommerce's meter. */
.woocommerce .woocommerce-password-strength {
	margin-top: var(--gb-space-2);
	padding: var(--gb-space-2) var(--gb-space-3);
	border-radius: var(--gb-radius-sm);
	font-size: var(--gb-text-xs);
	font-weight: 600;
	text-align: left;
}

.woocommerce .woocommerce-password-strength.strong {
	background: var(--gb-success-wash);
	color: var(--gb-success);
}

.woocommerce .woocommerce-password-strength.good {
	background: var(--gb-lilac-wash);
	color: var(--gb-lilac);
}

.woocommerce .woocommerce-password-strength.short,
.woocommerce .woocommerce-password-strength.bad {
	background: var(--gb-warning-wash);
	color: var(--gb-gold);
}

.woocommerce .woocommerce-password-strength.error {
	background: var(--gb-error-wash);
	color: var(--gb-error);
}

.woocommerce .woocommerce-password-hint {
	display: block;
	margin-top: var(--gb-space-2);
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-soft);
}

/* Account details: first and last name share a row. */
@media (min-width: 560px) {
	.woocommerce-EditAccountForm {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 var(--gb-space-4);
		align-items: start;
	}

	.woocommerce-EditAccountForm > *:not(.form-row-first):not(.form-row-last) {
		grid-column: 1 / -1;
	}
}

/*
 * The password group, and the gap under it.
 *
 * The bottom margin is doing real work: the grid above sets `gap: 0 …`, so
 * rows are spaced by their own margins, and WooCommerce wraps the submit
 * button in a bare <p> with none. Without it the button sits against the
 * fieldset's bottom border, overlapping its rounded corner.
 */
.woocommerce-EditAccountForm fieldset {
	margin: var(--gb-space-4) 0 var(--gb-space-5);
	padding: var(--gb-space-5);
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius);
}

.woocommerce-EditAccountForm legend {
	padding-inline: var(--gb-space-2);
	font-size: var(--gb-text-sm);
	font-weight: 700;
}

.woocommerce-Addresses {
	display: grid;
	gap: var(--gb-space-5);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.woocommerce-Address {
	width: 100%;
	float: none;
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius);
	padding: var(--gb-space-4);
}

.woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gb-space-3);
	margin-bottom: var(--gb-space-3);
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	font-size: var(--gb-text-lg);
	margin: 0;
}

/* Login / register */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	border: 1px solid var(--gb-line);
	border-radius: var(--gb-radius-lg);
	background: var(--gb-white);
	padding: var(--gb-space-6);
	margin: 0;
}

.gb-account-columns {
	display: grid;
	gap: var(--gb-space-5);
	max-width: 980px;
	margin-inline: auto;
}

@media (min-width: 860px) {
	.gb-account-columns {
		grid-template-columns: 1fr 1fr;
	}
}

.gb-account-intro {
	text-align: center;
	max-width: 60ch;
	margin: 0 auto var(--gb-space-6);
	color: var(--gb-ink-soft);
}

/*
 * Order list.
 *
 * The compact sizing has to be written against `.woocommerce a.button`-shaped
 * selectors, for the same reason `.gb-btn--ghost` does — see the specificity
 * note beside it in main.css. The base button rule is (0,2,1); the plain
 * two-class selector this used to carry is (0,2,0), so every declaration in it
 * lost. The buttons kept the base `min-height: 48px` and `padding: 0.75rem
 * 1.6rem`, and three full-size pills do not fit across the Actions column —
 * they wrapped and their rounded corners collided.
 */
.woocommerce .woocommerce-orders-table__cell-order-actions a.button,
.woocommerce .woocommerce-orders-table__cell-order-actions button.button {
	min-height: 36px;
	padding: 0.35rem 0.95rem;
	font-size: var(--gb-text-xs);
	/* Right/bottom only: the row stays flush with the column's left edge. */
	margin: 2px 6px 2px 0;
}

/* ------------------------------------------------------------------ *
 * 10. Mini-cart drawer
 *
 * Markup comes from woocommerce/cart/mini-cart.php, which the theme
 * overrides so each row is a predictable three-column grid:
 *
 *     [ 64px thumbnail ] [ title / meta / quantity ] [ 28px remove ]
 *
 * SPECIFICITY NOTE
 * WooCommerce puts `.woocommerce` on <body> for store pages, so its widget
 * rules apply inside this drawer — and they are aggressive:
 *
 *     .woocommerce ul.cart_list li img  { float: right; width: 32px }   (0,2,4)
 *     .woocommerce ul.cart_list li dl   { border-left: 2px solid … }    (0,2,4)
 *     .woocommerce ul.cart_list li dl dt{ float: left; … }              (0,2,5)
 *     .woocommerce ul.cart_list li::before { content:" "; display:table }
 *
 * Every rule below therefore carries three classes
 * (`.widget_shopping_cart_content .gb-mini-cart .gb-mini-*`) so it outranks
 * all of them — and it does so whether or not <body> has `.woocommerce`,
 * which keeps the drawer identical on store and non-store pages.
 * ------------------------------------------------------------------ */

.gb-drawer--cart .gb-drawer__body {
	padding: 0;
	display: flex;
	flex-direction: column;
	/* The item list scrolls, so subtotal and buttons stay pinned. */
	overflow: hidden;
}

.widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

/* ---------------------------------------------------------- item list --- */

/*
 * `.cart_list` is on this element too, so it is written as a compound: the
 * list has to clear `.woocommerce ul.cart_list { padding: 0 }` (0,2,1), which
 * two classes alone do not. Without it the items sit flush against the drawer
 * edges — and only on store pages, where <body> carries `.woocommerce`.
 */
.widget_shopping_cart_content .gb-mini-cart.cart_list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	margin: 0;
	padding: var(--gb-space-4) var(--gb-space-5);
	display: block;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 28px;
	gap: var(--gb-space-3);
	align-items: start;
	list-style: none;
	margin: 0 0 var(--gb-space-4);
	padding: 0 0 var(--gb-space-4);
	border-bottom: 1px solid var(--gb-line);
	font-size: var(--gb-text-sm);
	line-height: 1.45;
}

/* WooCommerce's clearfix pseudo-elements would become extra grid items. */
.widget_shopping_cart_content .gb-mini-cart .gb-mini-item::before,
.widget_shopping_cart_content .gb-mini-cart .gb-mini-item::after {
	display: none;
	content: none;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item__media {
	display: block;
	width: 64px;
	font-weight: 400;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item__media img {
	width: 64px;
	height: 64px;
	max-width: none;
	margin: 0;
	float: none;
	object-fit: cover;
	border-radius: var(--gb-radius-sm);
	background: var(--gb-mist);
	box-shadow: none;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item__body {
	min-width: 0;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item__title {
	display: block;
	font-weight: 600;
	color: var(--gb-ink);
	text-decoration: none;
	line-height: 1.3;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item__title:hover {
	color: var(--gb-teal-deep);
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item__qty {
	display: block;
	margin-top: var(--gb-space-1);
	padding: 0;
	border: 0;
	background: none;
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-soft);
}

/* ----------------------------------- delivery date / window / message --- */

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item .variation {
	margin: var(--gb-space-1) 0 0;
	padding-left: 0;
	border-left: 0;
	font-size: var(--gb-text-xs);
	color: var(--gb-ink-soft);
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item .variation::before,
.widget_shopping_cart_content .gb-mini-cart .gb-mini-item .variation::after {
	display: none;
	content: none;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item .variation dt,
.widget_shopping_cart_content .gb-mini-cart .gb-mini-item .variation dd {
	display: inline;
	float: none;
	clear: none;
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: 1.5;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item .variation dt {
	font-weight: 600;
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item .variation dd p {
	display: inline;
	margin: 0;
}

/* Line break after each label/value pair. */
.widget_shopping_cart_content .gb-mini-cart .gb-mini-item .variation dd::after {
	content: "\A";
	white-space: pre;
}

/* --------------------------------------------------------- remove link --- */

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item__remove {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gb-mist);
	/* WooCommerce sets its remove colour with !important. */
	color: var(--gb-ink-soft) !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--gb-duration) var(--gb-ease),
		color var(--gb-duration) var(--gb-ease);
}

.widget_shopping_cart_content .gb-mini-cart .gb-mini-item__remove:hover {
	background: var(--gb-error);
	color: var(--gb-white) !important;
}

/* ------------------------------------------------- subtotal and buttons --- */

.widget_shopping_cart_content .gb-mini-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--gb-space-3);
	flex-shrink: 0;
	margin: 0;
	padding: var(--gb-space-4) var(--gb-space-5);
	border-top: 1px solid var(--gb-line);
	background: var(--gb-white);
	font-size: var(--gb-text-lg);
	font-weight: 700;
}

.widget_shopping_cart_content .gb-mini-cart__total strong {
	font-size: var(--gb-text-sm);
	font-weight: 500;
	color: var(--gb-ink-soft);
}

.widget_shopping_cart_content .gb-mini-cart__buttons {
	display: grid;
	gap: var(--gb-space-2);
	flex-shrink: 0;
	margin: 0;
	padding: 0 var(--gb-space-5) var(--gb-space-5);
	background: var(--gb-white);
}

.widget_shopping_cart_content .gb-mini-cart__buttons a {
	width: 100%;
	margin: 0;
}

/* Checkout is the primary action, so it leads. */
.widget_shopping_cart_content .gb-mini-cart__buttons a.checkout {
	order: -1;
}

/*
 * No colour overrides here: the ghost/primary treatment now comes from the
 * `gb-btn--ghost` / `gb-btn--primary` classes on the markup, so hover and
 * active states behave exactly as they do elsewhere. Overriding the custom
 * properties from this selector outranked every hover rule.
 */

/* --------------------------------------------------------- empty cart --- */

.widget_shopping_cart_content .gb-mini-cart__empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--gb-space-2);
	padding: var(--gb-space-8) var(--gb-space-5);
	text-align: center;
}

.gb-mini-cart__empty-art {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--gb-mist);
	color: var(--gb-teal-deep);
	margin-bottom: var(--gb-space-2);
}

.gb-mini-cart__empty-title {
	font-family: var(--gb-font-display);
	font-size: 1.4rem;
	font-weight: 600;
	margin: 0;
}

.gb-mini-cart__empty-text {
	font-size: var(--gb-text-sm);
	color: var(--gb-ink-soft);
	margin: 0 0 var(--gb-space-3);
}

/* Small-screen refinements */
@media (max-width: 600px) {
	/* Must match the specificity of the defensive grid rule above, or it
	   would never take effect. */
	.woocommerce ul.products,
	.gb-products,
	.woocommerce ul.products[data-gb-products][class*="columns-"],
	.woocommerce-page ul.products[data-gb-products][class*="columns-"] {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: var(--gb-space-3);
	}

	.gb-product-card__body {
		padding: var(--gb-space-3);
		gap: var(--gb-space-1);
	}

	.gb-product-card__title {
		font-size: 1.05rem;
	}

	.gb-product-card__excerpt {
		display: none;
	}

	.gb-product-card__footer {
		flex-direction: column;
		align-items: stretch;
		gap: var(--gb-space-2);
	}

	.gb-product-card__actions .gb-btn {
		width: 100%;
	}

	.gb-shop-toolbar {
		gap: var(--gb-space-2);
	}

	.woocommerce .gb-shop-toolbar .woocommerce-result-count {
		flex-basis: 100%;
		margin-right: 0;
	}

	.woocommerce-ordering select {
		min-width: 0;
	}
}
