/*
 Theme Name:   Zoe's Candles
 Description:  Child theme of Bricks for zoescandles.com: sitewide CSS, icons and small front-end scripts. Business logic lives in the zoes-core plugin.
 Author:       Zoe's Candles
 Template:     bricks
 Version:      1.1
 Text Domain:  zoes-candles
*/

/*
 * Zoe's Candles — sitewide rules that Bricks controls cannot express.
 * Tokens (--zc-*) are Bricks global variables/palette colors; see DESIGN.md.
 */

/* Signature accent: an italic phrase inside a headline turns berry. Editors only italicise. */
:is(h1, h2, h3, h4) :is(em, i) {
	font-style: italic;
	font-weight: 400;
	color: var(--zc-berry);
}

/*
 * Sticky header that stays in the document flow (Bricks' own sticky mode uses
 * position: fixed, which makes the header cover the top of every page).
 */
#brx-header {
	position: sticky;
	top: 0;
	z-index: 998;
}

.admin-bar #brx-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/*
 * Markup produced by zoes-core dynamic tags ({zc_scent_formats}, {zc_scent_notes_full}).
 */
.zc-formats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.zc-format {
	display: inline-block;
	padding: 4px 11px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-pill);
	background-color: var(--zc-background);
	color: var(--zc-text);
	font-size: var(--zc-text-label);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.zc-format:hover {
	border-color: var(--zc-text);
}

.zc-notes {
	display: grid;
	gap: 10px;
	margin: 0;
}

.zc-notes__row {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid color-mix(in srgb, var(--zc-text) 12%, transparent);
}

.zc-notes dt {
	font-size: var(--zc-text-label);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--zc-muted);
	padding-top: 3px;
}

.zc-notes dd {
	margin: 0;
	font-family: "Literata", Georgia, serif;
	font-size: 1.1875rem;
}

/* Headings inside a heading row align with the note/link on the right. */
.zc-heading-row :is(h1, h2, h3) {
	margin-bottom: 0;
}

/* Card titles that are links keep the text colour. */
.zc-card__title a,
.zc-tile__title a {
	color: inherit;
	text-decoration: none;
}

.zc-card__title a:hover {
	color: var(--zc-berry);
}

/* Whole card is clickable through its single title link (one accessible link per card).
   Other links inside the card (format pills) stay clickable above it. */
.zc-card {
	position: relative;
}

.zc-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.zc-card .zc-formats {
	position: relative;
	z-index: 2;
}

.zc-card__media img {
	transition: transform 0.5s ease;
}

.zc-card:hover .zc-card__media img {
	transform: scale(1.03);
}

/* Anchored season bands should not hide under the sticky header. */
[id="spring"],
[id="summer"],
[id="autumn"],
[id="winter"] {
	scroll-margin-top: 90px;
}

/* ==========================================================================
   WooCommerce (classic markup) → design tokens. Checkout logic is untouched.
   ========================================================================== */

/* Buttons */
.woocommerce :is(button.button, a.button, input.button, #respond input#submit),
.woocommerce-page :is(button.button, a.button, input.button),
.single_add_to_cart_button,
.woocommerce #place_order,
.wc-proceed-to-checkout .checkout-button,
.brxe-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 28px;
	border: 1px solid var(--zc-primary);
	border-radius: var(--zc-radius-pill);
	background-color: var(--zc-primary);
	color: var(--zc-background);
	font-family: "Karla", system-ui, sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.woocommerce :is(button.button, a.button, input.button):hover,
.single_add_to_cart_button:hover,
.woocommerce #place_order:hover,
.wc-proceed-to-checkout .checkout-button:hover,
.brxe-form button[type="submit"]:hover {
	background-color: color-mix(in srgb, var(--zc-primary) 88%, white);
	border-color: color-mix(in srgb, var(--zc-primary) 88%, white);
	color: var(--zc-background);
}

.woocommerce :is(button.button, a.button):disabled,
.single_add_to_cart_button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Secondary-looking buttons (e.g. "Update cart", "Apply coupon") */
.woocommerce .cart :is(button[name="update_cart"], button[name="apply_coupon"]) {
	background-color: transparent;
	color: var(--zc-text);
	border-color: var(--zc-text);
}

/* Inputs, selects, textareas */
.woocommerce :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea),
.woocommerce-page :is(input.input-text, select, textarea),
.brxe-form :is(input[type="text"], input[type="email"], textarea) {
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-md);
	background-color: var(--zc-background);
	color: var(--zc-text);
	font-family: "Karla", system-ui, sans-serif;
	font-size: 1rem;
}

.woocommerce :is(input.input-text, select, textarea):focus,
.brxe-form :is(input, textarea):focus {
	border-color: var(--zc-text);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--zc-primary) 15%, transparent);
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label,
.brxe-form .form-group > label {
	margin-bottom: 6px;
	font-size: var(--zc-text-label);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--zc-text);
}

/* Quantity: one pill with − / number / + (Bricks adds the − and + controls). */
.woocommerce .quantity .qty {
	width: 4.5rem;
	text-align: center;
}

.woocommerce .quantity:has(.action) {
	display: inline-flex;
	flex: 0 0 auto;
	width: auto !important;
	align-items: center;
	height: 48px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-pill);
	background: var(--zc-background);
	overflow: hidden;
}

.woocommerce .quantity:has(.action) .action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 100%;
	border: 0 !important;
	background: none !important;
	color: var(--zc-text);
	cursor: pointer;
}

.woocommerce .quantity:has(.action) .action svg {
	width: 16px;
	height: 16px;
}

.woocommerce .quantity:has(.action) .action:hover {
	background: var(--zc-surface) !important;
}

.woocommerce .quantity:has(.action) .qty {
	order: 0;
	width: 40px;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
}

.woocommerce .quantity:has(.action) .qty::-webkit-inner-spin-button,
.woocommerce .quantity:has(.action) .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce .quantity:has(.action) .minus {
	order: -1;
}

.woocommerce .quantity:has(.action) .plus {
	order: 1;
}

.woocommerce table.shop_table.cart .quantity:has(.action) {
	width: auto !important;
	height: 40px;
}

.woocommerce table.shop_table.cart .quantity:has(.action) .action {
	width: 36px;
}

form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* Variation picker (scent) */
form.variations_form table.variations,
form.variations_form table.variations :is(tbody, tr) {
	display: block;
	width: 100%;
	margin-bottom: 4px;
	border: 0;
}

form.variations_form table.variations :is(th, td) {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

form.variations_form table.variations label {
	font-size: var(--zc-text-label);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--zc-muted);
}

form.variations_form table.variations select {
	width: 100%;
	margin: 6px 0 4px;
}

/* Bricks label swatches (scent picker) as pill chips */
ul.bricks-variation-swatches.bricks-swatch-label {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 4px;
	padding: 0;
	list-style: none;
}

ul.bricks-swatch-label li {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-pill);
	background-color: var(--zc-background);
	color: var(--zc-text);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

ul.bricks-swatch-label li:hover {
	border-color: var(--zc-text);
}

ul.bricks-swatch-label li.bricks-swatch-selected {
	border-color: var(--zc-primary);
	background-color: var(--zc-primary);
	color: var(--zc-background);
}

ul.bricks-swatch-label li:has(> button[aria-disabled="true"]) {
	opacity: 0.4;
	text-decoration: line-through;
	cursor: not-allowed;
}

form.variations_form .reset_variations {
	font-size: var(--zc-text-small);
	color: var(--zc-muted);
}

.woocommerce-variation-price .price {
	font-size: 1.375rem;
	font-weight: 500;
}

/* Gallery thumbnails */
.woocommerce div.product .flex-control-thumbs img,
.brxe-product-gallery .woocommerce-product-gallery__image img {
	border-radius: var(--zc-radius-md);
}

/* Frame the visible gallery area: the slider viewport when there are several
   images, otherwise the wrapper (the wrapper is the wide slide track). */
.brxe-product-gallery .flex-viewport,
.brxe-product-gallery .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-lg);
}

/* Tables: attributes, cart, order review */
.brxe-product-additional-information {
	width: 100%;
}

.woocommerce table.shop_attributes,
.woocommerce table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

.woocommerce table.shop_attributes :is(th, td),
.woocommerce table.shop_table :is(th, td) {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--zc-rule);
	background: none;
	text-align: left;
	font-style: normal;
	vertical-align: middle;
}

.woocommerce table.shop_attributes th {
	width: 40%;
	font-size: var(--zc-text-label);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--zc-muted);
}

.woocommerce table.shop_attributes td p {
	margin: 0;
}

.woocommerce table.shop_table thead th {
	font-size: var(--zc-text-label);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--zc-muted);
}

.woocommerce table.shop_table img {
	width: 72px;
	border-radius: var(--zc-radius-sm);
}

.woocommerce table.shop_table .product-name a {
	font-family: "Literata", Georgia, serif;
	font-size: 1.125rem;
	color: var(--zc-text);
	text-decoration: none;
}

.woocommerce a.remove {
	color: var(--zc-muted) !important;
	font-weight: 400;
}

.woocommerce a.remove:hover {
	background: var(--zc-surface);
	color: var(--zc-berry) !important;
}

/* Cart totals + checkout order review panel */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
	padding: 24px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-lg);
	background-color: var(--zc-surface);
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout h3 {
	font-family: "Literata", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 500;
}

.woocommerce-checkout #payment {
	border-radius: var(--zc-radius-md);
	background: var(--zc-background);
}

.woocommerce-checkout #payment div.payment_box {
	background: var(--zc-surface);
	color: var(--zc-text);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--zc-surface);
}

/* Notices: white card, hairline, one berry dot */
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
.woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	position: relative; /* anchors the berry dot */
	padding: 14px 18px 14px 40px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-md);
	background: var(--zc-background);
	color: var(--zc-text);
	list-style: none;
}

.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 18px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--zc-berry);
}

.woocommerce :is(.woocommerce-message, .woocommerce-info) .button {
	min-height: 0;
	padding: 6px 14px;
	font-size: var(--zc-text-label);
}

/* WooCommerce moves focus to notices it adds; no ring on that programmatic focus. */
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)[tabindex="-1"]:focus {
	outline: none;
}

/* ==========================================================================
   Cart and checkout refinements (desktop + mobile)
   ========================================================================== */

/* "(optional)" next to optional checkout fields. */
.woocommerce form .form-row label .optional {
	display: inline;
	visibility: visible;
	color: var(--zc-muted);
	font-weight: 400;
	letter-spacing: 0;
}

/* Larger checkboxes in berry. */
.woocommerce :is(form, .cart-collaterals) input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--zc-berry);
	vertical-align: middle;
}

/* "Ship to a different address?" as a simple checkbox row. */
.woocommerce-checkout h3#ship-to-different-address {
	margin: 24px 0 8px;
	font-size: 1.125rem !important;
	line-height: 1.4;
}

.woocommerce-checkout h3#ship-to-different-address :is(label, span) {
	font-size: inherit !important;
	font-weight: 500;
	line-height: inherit;
}

.woocommerce-checkout #ship-to-different-address label {
	display: flex !important;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	width: auto !important;
	cursor: pointer;
}

.woocommerce-checkout #ship-to-different-address input[type="checkbox"] {
	transform: none !important; /* WooCommerce nudges it up 9px for its own layout */
	position: static !important;
	order: -1;
	float: none !important;
	margin: 0 !important;
}

/* "Returning customer? Click here to login" / coupon toggles: one line of text, wrapping naturally. */
.woocommerce-checkout :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) .woocommerce-info {
	display: block !important;
}

/* ==========================================================================
   Cart page: items left, sticky order summary right (desktop);
   items, summary, extras (mobile). Classic WooCommerce markup.
   ========================================================================== */
.woocommerce-cart .brxe-post-content > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	column-gap: 56px;
	align-items: start;
}

.woocommerce-cart .brxe-post-content > .woocommerce > :not(.woocommerce-cart-form, .cart-collaterals) {
	grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce-cart-form {
	grid-column: 1;
	grid-row: 2;
}

.woocommerce .cart-collaterals {
	display: contents;
}

.woocommerce .cart-collaterals .cart_totals {
	grid-column: 2;
	grid-row: 2 / span 2;
	position: sticky;
	top: 110px;
	float: none;
	width: auto;
}

.woocommerce .cart-collaterals .cross-sells {
	grid-column: 1;
	grid-row: 3;
	float: none;
	width: auto;
	margin-top: 40px;
}

@media (max-width: 991px) {
	.woocommerce-cart .brxe-post-content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Items, then the summary with the checkout button, then the extras. */
	.woocommerce-cart .woocommerce-cart-form {
		order: 1;
	}

	.woocommerce .cart-collaterals .cart_totals {
		order: 2;
	}

	.woocommerce .cart-collaterals .cross-sells {
		order: 3;
	}

	.woocommerce-cart .woocommerce-cart-form,
	.woocommerce .cart-collaterals .cart_totals,
	.woocommerce .cart-collaterals .cross-sells {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}

	.woocommerce .cart-collaterals .cart_totals {
		margin-top: 24px;
	}
}

/* Items as cards on every screen size: photo | name + unit price | quantity | total | remove. */
.woocommerce table.shop_table.cart {
	border: 0;
}

.woocommerce table.shop_table.cart thead {
	display: none;
}

.woocommerce table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto auto 32px;
	grid-template-areas: "thumb name qty subtotal remove";
	column-gap: 20px;
	row-gap: 8px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--zc-rule);
}

.woocommerce table.shop_table.cart tr.cart_item :is(td, th) {
	display: block;
	padding: 0;
	border: 0;
	background: none !important;
	text-align: left !important;
}

.woocommerce table.shop_table.cart tr.cart_item :is(td, th)::before {
	content: none !important;
	display: none !important;
}

.woocommerce table.shop_table.cart .product-thumbnail {
	grid-area: thumb;
	display: block !important;
}

.woocommerce table.shop_table.cart .product-thumbnail img {
	width: 88px;
	border-radius: var(--zc-radius-md);
}

.woocommerce table.shop_table.cart .product-name {
	grid-area: name;
	font-weight: 400;
}

.woocommerce table.shop_table.cart .product-name a {
	font-size: 1.1875rem;
}

.woocommerce table.shop_table.cart .product-name dl.variation {
	margin: 4px 0 0;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
}

.woocommerce table.shop_table.cart .product-price {
	display: none !important;
}

.woocommerce table.shop_table.cart .product-quantity {
	grid-area: qty;
}

.woocommerce table.shop_table.cart .product-subtotal {
	grid-area: subtotal;
	min-width: 80px;
	text-align: right !important;
	font-weight: 600;
}

.woocommerce table.shop_table.cart .product-remove {
	grid-area: remove;
	text-align: right !important;
}

@media (max-width: 767px) {
	.woocommerce table.shop_table.cart tr.cart_item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb name remove"
			"thumb qty subtotal";
		column-gap: 14px;
	}

	.woocommerce table.shop_table.cart .product-thumbnail img {
		width: 72px;
	}
}

/* Actions row: discount code (collapsed behind a toggle) and the hidden auto "Update cart". */
.woocommerce table.shop_table.cart tr:not(.cart_item) td.actions {
	display: block;
	padding: 16px 0 0;
	border: 0;
	text-align: left;
}

.woocommerce table.shop_table.cart td.actions::before {
	display: none;
}

.zc-coupon-toggle {
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--zc-text);
	font-size: var(--zc-text-small);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.woocommerce .cart .actions .coupon {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 8px;
	align-items: stretch;
	float: none !important;
	width: 100% !important;
	max-width: 440px;
	margin-top: 10px;
}

.woocommerce .cart .actions .coupon[hidden] {
	display: none !important;
}

.woocommerce .cart .actions .coupon :is(.input-text, .button) {
	height: 48px;
	min-height: 48px;
	margin: 0;
}

.woocommerce .cart .actions .coupon .input-text {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
}

.woocommerce .cart .actions .coupon .button {
	flex: 0 0 auto;
	width: auto !important;
	padding: 0 22px;
	background: transparent !important;
	color: var(--zc-text) !important;
	border-color: var(--zc-text) !important;
}

/* With JavaScript, quantities update by themselves (zoes-core cart-page.js). */
.zc-cart-js .woocommerce .cart .actions button[name="update_cart"] {
	display: none !important;
}

.woocommerce .cart .actions button[name="update_cart"] {
	float: none;
	margin-top: 12px;
	background: transparent !important;
	color: var(--zc-text) !important;
	border-color: var(--zc-text) !important;
}

.zc-continue {
	margin: 20px 0 0;
	font-size: var(--zc-text-small);
}

.zc-continue a {
	color: var(--zc-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Order summary panel. */
.woocommerce .cart-collaterals .cart_totals h2 {
	margin: 0 0 12px;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table {
	margin: 0;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table :is(th, td) {
	padding: 12px 0;
	vertical-align: top;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table td {
	text-align: right;
}

.woocommerce .cart-collaterals .cart_totals .order-total :is(th, td) {
	border-bottom: 0;
	font-size: 1.125rem;
}

.woocommerce .cart-collaterals .cart_totals .woocommerce-shipping-destination,
.woocommerce .cart-collaterals .cart_totals .woocommerce-shipping-contents {
	margin: 4px 0 0;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
}

.woocommerce .cart-collaterals .cart_totals ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout {
	padding: 8px 0 0;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	min-height: 56px;
	margin: 0 0 16px;
	font-size: 1.0625rem;
}

.zc-reassurance--cart {
	padding-top: 16px;
}

.zc-payment-marks {
	display: block;
	width: auto;
	height: 22px;
	margin-top: 16px;
	filter: grayscale(1);
	opacity: 0.75;
}

/* Suggestions ("Add a little extra"). */
.woocommerce .cart-collaterals .cross-sells > h2 {
	margin: 0 0 16px;
	font-size: 1.375rem;
}

.woocommerce .cart-collaterals .cross-sells ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
}

.woocommerce .cart-collaterals .cross-sells ul.products::before,
.woocommerce .cart-collaterals .cross-sells ul.products::after {
	display: none;
}

.woocommerce .cart-collaterals .cross-sells ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce .cart-collaterals .cross-sells ul.products li.product img {
	border-radius: var(--zc-radius-md);
}

.woocommerce .cart-collaterals .cross-sells .woocommerce-loop-product__title {
	margin: 10px 0 2px;
	font-size: 1.0625rem;
	line-height: 1.3;
}

.woocommerce .cart-collaterals .cross-sells .button {
	min-height: 40px;
	padding: 8px 18px;
	font-size: var(--zc-text-small);
}

@media (max-width: 767px) {
	.woocommerce .cart-collaterals .cross-sells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Empty cart: message, then "Shop the candles" and "Find your season" side by side. */
.woocommerce-cart .woocommerce:has(.cart-empty) {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.woocommerce-cart .woocommerce:has(.cart-empty) > * {
	margin: 0;
}

.woocommerce-cart .woocommerce:has(.cart-empty) > :is(.woocommerce-notices-wrapper, .cart-empty, .wc-empty-cart-message) {
	flex: 0 0 100%;
}

.woocommerce-cart .woocommerce:has(.cart-empty) .return-to-shop {
	order: 1;
}

.woocommerce-cart .woocommerce:has(.cart-empty) .zc-empty-cart-season {
	order: 2;
}

.woocommerce .zc-btn-secondary.button {
	background: transparent !important;
	color: var(--zc-text) !important;
	border-color: var(--zc-text) !important;
}

/* ==========================================================================
   Checkout page (zoes-core checkout-page.php)
   ========================================================================== */

/* "Returning customer?" / "Have a coupon?" as quiet text lines, not cards. */
.woocommerce-checkout :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) .woocommerce-info {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
}

.woocommerce-checkout :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) .woocommerce-info::before {
	display: none;
}

.woocommerce-checkout :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) .woocommerce-info a {
	color: var(--zc-text);
}

.woocommerce-checkout .woocommerce-form-coupon-toggle {
	margin-bottom: 24px;
}

/* Error notices WooCommerce adds above the form span the full width, so the
   form keeps its columns (the Bricks checkout form is a two-column grid). */
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

/* Order summary stays in view on desktop. */
@media (min-width: 992px) {
	.woocommerce-checkout #order_review {
		position: sticky;
		top: 110px;
	}
}

/* Outline icons ({zc_icon_*}): Bricks fills icon SVGs by default. */
svg[fill="none"][stroke="currentColor"] {
	fill: none !important;
}

/* Product photos in "Your order", with "× 1" on the same line. */
.woocommerce-checkout-review-order-table td.product-name {
	display: flex;
	align-items: center;
	gap: 6px;
}

.woocommerce-checkout-review-order-table .product-quantity {
	color: var(--zc-muted);
	font-weight: 400;
	white-space: nowrap;
}

.zc-review-item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.zc-review-thumb {
	flex: 0 0 auto;
	width: 48px !important;
	height: 48px;
	border-radius: var(--zc-radius-sm);
	object-fit: cover;
}

/* "Add a note to your order". */
.zc-note-toggle {
	margin-top: 8px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--zc-text);
	font-size: var(--zc-text-small);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.woocommerce-checkout #zc-order-notes {
	margin-top: 10px;
}

.woocommerce-checkout #place_order {
	width: 100%;
	min-height: 56px;
	font-size: 1.0625rem;
}

.zc-reassurance--checkout {
	margin-top: 16px;
}

/* ==========================================================================
   Thank-you page and "View order" (WooCommerce order details)
   ========================================================================== */
.woocommerce-order .woocommerce-thankyou-order-received {
	margin: 0 0 24px;
	padding: 18px 22px;
	border-radius: var(--zc-radius-md);
	background: var(--zc-cream);
	color: var(--zc-text);
	font-size: 1.125rem;
	text-align: left;
}

.woocommerce-order ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin: 0 0 24px;
	padding: 20px 22px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-md);
	list-style: none;
}

.woocommerce-order ul.woocommerce-order-overview li {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--zc-muted);
	font-size: var(--zc-text-label);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.woocommerce-order ul.woocommerce-order-overview li {
	min-width: 0;
}

/* A long email address gets more room and may wrap, instead of running into "Total". */
.woocommerce-order ul.woocommerce-order-overview li strong {
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	.woocommerce-order ul.woocommerce-order-overview li.woocommerce-order-overview__email {
		grid-column: span 2;
	}
}

.woocommerce-order ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	color: var(--zc-text);
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) :is(.woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-customer-details h2) {
	margin: 32px 0 12px;
	font-size: 1.5rem;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) .woocommerce-column__title {
	font-size: 1.25rem;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) table.order_details {
	overflow: hidden;
	border: 1px solid var(--zc-rule) !important;
	border-radius: var(--zc-radius-md);
	border-collapse: separate;
	border-spacing: 0;
	background: var(--zc-surface);
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) table.order_details tr {
	background: none !important;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) table.order_details :is(th, td) {
	padding: 14px 20px !important;
	background: none !important;
	vertical-align: middle;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) table.order_details tfoot :is(th, td) {
	font-weight: 400;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) table.order_details tfoot tr:last-child :is(th, td) {
	border-bottom: 0;
	font-weight: 600;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) table.order_details td:last-child,
:is(.woocommerce-order, .woocommerce-MyAccount-content) table.order_details th:last-child {
	text-align: right;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) table.order_details .product-name a {
	font-size: 1.0625rem;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) .woocommerce-customer-details .col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) .woocommerce-customer-details .col2-set::before,
:is(.woocommerce-order, .woocommerce-MyAccount-content) .woocommerce-customer-details .col2-set::after {
	display: none;
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) .woocommerce-customer-details .col2-set > .woocommerce-column {
	float: none;
	width: auto;
	max-width: none;
}

@media (max-width: 767px) {
	:is(.woocommerce-order, .woocommerce-MyAccount-content) .woocommerce-customer-details .col2-set {
		grid-template-columns: minmax(0, 1fr);
	}
}

:is(.woocommerce-order, .woocommerce-MyAccount-content) .woocommerce-customer-details address {
	padding: 18px 20px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-md);
	font-style: normal;
	line-height: 1.7;
}

/* ==========================================================================
   Product reviews (section shown when a product has reviews or from the
   review email) and back-in-stock sign-up (zoes-core reviews.php / stock-alerts.php)
   ========================================================================== */
.zc-reviews #reviews {
	margin: 0;
	padding: 0;
	border: 0;
}

.zc-reviews :is(.woocommerce-Reviews-title, .woocommerce-noreviews) {
	display: none;
}

.zc-reviews .commentlist {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.zc-reviews .commentlist li {
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--zc-rule);
}

.zc-reviews .commentlist .comment_container img.avatar {
	display: none;
}

.zc-reviews .commentlist .comment-text {
	margin: 0;
	padding: 0;
	border: 0;
}

.zc-reviews .woocommerce-review__verified {
	color: var(--zc-berry);
	font-style: normal;
	font-size: var(--zc-text-small);
}

.zc-reviews .comment-reply-title {
	display: block;
	margin: 8px 0 12px;
	font-family: "Literata", Georgia, serif;
	font-size: 1.25rem;
	font-weight: 500;
}

.woocommerce .star-rating,
.woocommerce .star-rating::before,
.woocommerce p.stars a,
.woocommerce p.stars a::before {
	color: var(--zc-berry);
}

.woocommerce p.stars a {
	width: 1.5em;
	height: 1.5em;
	font-size: 1.125rem;
}

/* Back-in-stock sign-up under "Out of stock". */
.zc-stock-alert {
	margin: 12px 0 0;
	padding: 16px 18px;
	border-radius: var(--zc-radius-md);
	background: var(--zc-cream);
}

.zc-stock-alert__title {
	margin: 0 0 10px;
	font-weight: 600;
}

.zc-stock-alert__row {
	display: flex;
	gap: 8px;
}

.zc-stock-alert__email {
	flex: 1 1 0;
	min-width: 0;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-md);
	background: var(--zc-background);
	font-family: "Karla", system-ui, sans-serif;
	font-size: 1rem;
}

.zc-stock-alert__email[aria-invalid="true"] {
	border-color: var(--zc-berry);
}

.zc-stock-alert__submit {
	flex: 0 0 auto;
	width: auto !important;
	min-width: 0 !important;
	padding-inline: 22px !important;
}

/* A sold-out scent: the sign-up replaces the greyed-out quantity and Add to cart. */
.single_variation_wrap:has(.zc-stock-alert) .woocommerce-variation-add-to-cart-disabled {
	display: none;
}

/*
 * Product page: two plain (white) sections in a row share one gap instead of
 * doubling it. Happens on variable products, which have no "The notes" band
 * between the buy box and "About". !important beats Bricks' per-element padding.
 */
.single-product #brx-content > .brxe-section:not([class*="zc-band"]) + .brxe-section:not([class*="zc-band"]) {
	padding-top: 0 !important;
}

/*
 * Product page, desktop: the photo stays in view while the buy box scrolls past,
 * so a long scent list or the sold-out sign-up doesn't leave an empty column.
 */
@media (min-width: 992px) {
	.single-product .brxe-block:has(> .brxe-product-gallery) {
		position: sticky;
		top: 96px;
		align-self: start;
	}

	.admin-bar.single-product .brxe-block:has(> .brxe-product-gallery) {
		top: calc(96px + var(--wp-admin--admin-bar--height, 32px));
	}
}

.zc-stock-alert__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.zc-stock-alert__note,
.zc-stock-alert__status {
	margin: 8px 0 0;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
}

.zc-stock-alert__status:empty {
	display: none;
}

.zc-stock-alert.is-done :is(.zc-stock-alert__row, .zc-stock-alert__note) {
	display: none;
}

.zc-stock-alert.is-done .zc-stock-alert__status {
	color: var(--zc-text);
}

/* Mini cart (flyout) quantity stepper (zoes-core mini-cart.php): always on its
   own line under the product name, clear of the remove (×) link. */
.cart-detail .woocommerce-mini-cart-item {
	padding-right: 36px;
}

.zc-mini-qty {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-size: var(--zc-text-small);
	color: var(--zc-muted);
}

.zc-mini-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--zc-rule);
	border-radius: 50%;
	background: var(--zc-background);
	color: var(--zc-text);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.zc-mini-qty__btn:hover:not(:disabled) {
	border-color: var(--zc-text);
}

.zc-mini-qty__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.zc-mini-qty__value {
	min-width: 1.5em;
	text-align: center;
	color: var(--zc-text);
	font-weight: 600;
}

.zc-mini-qty__price {
	margin-left: 6px;
}

.zc-mini-qty.is-updating {
	opacity: 0.6;
}

/* My Account navigation */
.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--zc-rule);
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--zc-rule);
	color: var(--zc-text);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li.is-active a {
	color: var(--zc-berry);
	font-weight: 600;
}

/* Respect the hidden attribute on Bricks layout elements (they set display: flex),
   e.g. the seasons hidden by the Scents by season filter. */
.brxe-section[hidden],
.brxe-container[hidden],
.brxe-block[hidden] {
	display: none !important;
}

/* ==========================================================================
   Text pages (Terms, Privacy, Cookies, Safety): template "Text page"
   ========================================================================== */
.zc-prose {
	max-width: 68ch;
	color: var(--zc-text);
	line-height: 1.75;
}

.zc-prose > * + * {
	margin-top: 1em;
}

.zc-prose :is(h1, h2) {
	margin: 2.75rem 0 0.75rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--zc-rule);
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
	line-height: 1.25;
}

.zc-prose > :is(h1, h2):first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.zc-prose :is(h3, h4, h5, h6) {
	margin: 1.75rem 0 0.5rem;
	font-size: 1.125rem;
	line-height: 1.35;
}

.zc-prose :is(h2, h3, h4, h5, h6) + * {
	margin-top: 0;
}

.zc-prose :is(ul, ol) {
	padding-left: 1.25em;
}

.zc-prose li + li {
	margin-top: 0.4em;
}

.zc-prose li::marker {
	color: var(--zc-berry);
}

.zc-prose a {
	color: var(--zc-berry);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Contents column only on pages with h2 sections (data-sections set server-side,
   so there is no layout shift). Bricks sets the base columns with an ID selector. */
@media (min-width: 768px) {
	.zc-text-grid[data-sections="1"] {
		grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) !important;
	}
}

.zc-toc .toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--zc-rule);
}

.zc-toc .toc-link {
	display: block;
	padding: 6px 0 6px 14px;
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
	line-height: 1.4;
	text-decoration: none;
}

.zc-toc .toc-link::before {
	display: none;
}

.zc-toc .toc-link:hover {
	color: var(--zc-text);
}

.zc-toc .toc-link.is-active-link {
	border-left-color: var(--zc-berry);
	color: var(--zc-text);
	font-weight: 600;
}

/* Reassurance list under the add-to-cart button (zoes-core {zc_product_reassurance}). */
.zc-reassurance {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--zc-rule);
	list-style: none;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
	line-height: 1.5;
}

.zc-reassurance li {
	position: relative;
	padding-left: 20px;
}

.zc-reassurance li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.45em;
	width: 9px;
	height: 5px;
	border-left: 1.5px solid var(--zc-berry);
	border-bottom: 1.5px solid var(--zc-berry);
	transform: rotate(-45deg);
}

.zc-reassurance a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Free-shipping progress in the cart and mini cart (zoes-core free-shipping.php). */
.zc-free-shipping {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: var(--zc-radius-md);
	background: var(--zc-cream);
}

.zc-free-shipping__text {
	margin: 0 0 8px;
	font-size: var(--zc-text-small);
	color: var(--zc-text);
}

.zc-free-shipping__bar {
	height: 4px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--zc-berry) 18%, white);
	overflow: hidden;
}

.zc-free-shipping__bar span {
	display: block;
	height: 100%;
	background: var(--zc-berry);
}

/* Home hero: vertical "Discover the collection" link along the photo's right edge. */
.zc-hero__vlink {
	position: absolute;
	right: clamp(12px, 2vw, 24px);
	bottom: clamp(24px, 5vw, 48px);
	writing-mode: vertical-rl;
	padding: 8px 4px;
	color: #ffffff;
	font-size: var(--zc-text-label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: 0 1px 6px rgb(0 0 0 / 0.45);
}

.zc-hero__vlink:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 767px) {
	.zc-hero__vlink {
		display: none;
	}
}

/* Chip for the page you're on (Bricks adds aria-current="page"); same look as .zc-chip--active. */
.zc-chip.brxe-text-link[aria-current="page"],
.zc-chip.brxe-text-link[aria-current="true"] {
	background-color: var(--zc-primary);
	border-color: var(--zc-primary);
	color: #ffffff;
}

/* Keep focused elements and in-page anchors clear of the sticky header (WCAG 2.4.11). */
html {
	scroll-padding-top: 96px;
}

/* "×" remove links in the cart and mini cart: at least a 24px target (WCAG 2.5.8). */
.woocommerce a.remove,
.cart-detail a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	min-height: 24px;
}

/* Visible keyboard focus everywhere. */
:focus-visible {
	outline: 2px solid var(--zc-primary);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* Swatch buttons inherit the chip look from their list item. */
ul.bricks-swatch-label .bricks-swatch-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: inherit;
}

/* "Undo?" link in the removed-item notice */
.woocommerce-message a.restore-item {
	padding: 0;
	background: none;
	color: var(--zc-berry);
	font-weight: 600;
	text-decoration: underline;
}

/* ==========================================================================
   My account: sign in, lost password, navigation, dashboard, orders, addresses
   ========================================================================== */

/* Sign-in and password boxes: one readable column, left-aligned like the page title. */
.woocommerce form:is(.login, .register, .lost_reset_password) {
	max-width: 480px;
	margin: 0 0 24px;
	padding: 32px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-lg);
	background: var(--zc-background);
	text-align: left;
}

/* Bricks lays .woocommerce out as a flex column with a 40px gap; keep heading and box together. */
.woocommerce-account .woocommerce:has(> form:is(.login, .lost_reset_password)) {
	gap: 0;
}

.woocommerce-account .woocommerce > form.lost_reset_password {
	margin-top: 24px;
}

.woocommerce-account .woocommerce > h2 {
	margin: 24px 0 16px;
	font-size: 1.5rem;
	text-align: left;
}

.woocommerce form:is(.login, .lost_reset_password) .form-row {
	width: 100%;
	margin: 0 0 16px;
}

.woocommerce form.login .form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.woocommerce form.login .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.woocommerce form:is(.login, .lost_reset_password) button[type="submit"] {
	width: 100%;
	margin: 0;
}

.woocommerce form.login .lost_password {
	margin: 0;
	font-size: var(--zc-text-small);
}

.woocommerce form.login .lost_password a {
	color: var(--zc-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce form.lost_reset_password > p:first-of-type {
	color: var(--zc-muted);
}

.zc-account-note {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--zc-rule);
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
}

/* Signed in: menu beside the content on desktop, a row of chips on mobile. */
.woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	gap: 32px;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	min-width: 0;
}

/* Reset Bricks' WooCommerce account menu (grey panel, 60px rows). */
.woocommerce-account .woocommerce-MyAccount-navigation {
	min-width: 0;
	border: 0;
	background: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-x: auto;
	list-style: none;
}

.woocommerce-MyAccount-navigation li {
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 16px;
	line-height: 1.4;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-pill);
	color: var(--zc-text);
	font-size: var(--zc-text-small);
	text-decoration: none;
	white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	border-color: var(--zc-text);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	border-color: var(--zc-primary);
	background: var(--zc-primary);
	color: #fff;
	font-weight: 600;
}

@media (min-width: 992px) {
	.woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 56px;
		align-items: start;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		gap: 2px;
		overflow: visible;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		border-color: transparent;
		border-radius: var(--zc-radius-md);
		font-size: 1rem;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
		border-color: transparent;
		background: var(--zc-surface);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
		border-color: transparent;
		background: var(--zc-surface);
		color: var(--zc-text);
	}

	.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 12px !important;
		padding-top: 12px;
		border-top: 1px solid var(--zc-rule);
	}
}

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

.woocommerce-MyAccount-content :is(h2, h3) {
	font-size: 1.5rem;
}

.woocommerce-MyAccount-content a:not(.button) {
	color: var(--zc-berry);
}

/* Dashboard link cards */
.zc-account-cards {
	display: grid;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

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

.zc-account-cards li {
	margin: 0;
}

.zc-account-cards a {
	display: grid;
	gap: 4px;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-lg);
	color: var(--zc-text) !important;
	text-decoration: none;
}

.zc-account-cards a:hover {
	border-color: var(--zc-text);
}

.zc-account-cards__title {
	font-family: "Literata", Georgia, serif;
	font-size: 1.25rem;
}

.zc-account-cards__text {
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
}

/* Orders table: row rules only; label/value pairs on mobile */
.woocommerce-account .woocommerce-orders-table {
	border: 0;
	border-collapse: collapse;
}

.woocommerce-account .woocommerce-orders-table :is(th, td) {
	padding: 14px 12px;
	border: 0;
	border-bottom: 1px solid var(--zc-rule);
	background: none !important;
	vertical-align: middle;
}

.woocommerce-account .woocommerce-orders-table thead th {
	color: var(--zc-muted);
	font-size: var(--zc-text-label);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.woocommerce-account .woocommerce-orders-table .button {
	padding: 8px 18px;
	font-size: var(--zc-text-small);
}

@media (max-width: 767px) {
	.woocommerce-account .woocommerce-orders-table tr {
		display: block;
		padding: 8px 0;
		border-bottom: 1px solid var(--zc-rule);
	}

	.woocommerce-account .woocommerce-orders-table tbody tr:last-child {
		border-bottom: 0;
	}

	.woocommerce-account .woocommerce-orders-table :is(th, td) {
		display: block;
		padding: 6px 0;
		border: 0;
		text-align: right !important;
	}

	.woocommerce-account .woocommerce-orders-table :is(th, td)::before {
		float: left;
		color: var(--zc-muted);
		font-weight: 400;
		text-align: left;
	}
}

/* Addresses */
.woocommerce-account .woocommerce-Addresses {
	display: grid;
	gap: 16px;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	display: none;
}

@media (min-width: 768px) {
	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.woocommerce-account .woocommerce-Address {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	padding: 24px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-lg);
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.woocommerce-account .woocommerce-Address-title :is(h2, h3) {
	margin: 0;
	font-size: 1.25rem;
}

.woocommerce-account .woocommerce-Address-title .edit {
	font-size: var(--zc-text-small);
}

.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	line-height: 1.7;
}

/* View order: plain status sentence (WooCommerce wraps the values in <mark>) */
.woocommerce-MyAccount-content mark {
	padding: 0;
	background: none;
	color: inherit;
	font-weight: 600;
}

/* Account details: the password block */
.woocommerce-EditAccountForm fieldset {
	margin: 32px 0 24px;
	padding: 24px;
	border: 1px solid var(--zc-rule);
	border-radius: var(--zc-radius-lg);
}

.woocommerce-EditAccountForm legend {
	padding: 0 8px;
	font-family: "Literata", Georgia, serif;
	font-size: 1.25rem;
}

.woocommerce-EditAccountForm #account_display_name_description {
	display: block;
	margin-top: 6px;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
}

/* Season tiles are fully clickable through their title link. */
.zc-tile {
	position: relative;
}

.zc-tile__title a {
	color: inherit;
	text-decoration: none;
}

.zc-tile__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Links inside running text (FAQ answers, Contact, Our story, checkout footer) are underlined,
   so they don't rely on colour alone (WCAG 1.4.1). */
:is(.brxe-text-basic, .brxe-text) a:not(.button, .brxe-button) {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--zc-berry);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

:is(.brxe-text-basic, .brxe-text) a:not(.button, .brxe-button):hover {
	color: var(--zc-berry);
}

/* Our story: closing note from Zoe. */
.zc-quote {
	max-width: 38rem;
	margin: 8px auto 0;
	font-family: "Literata", Georgia, serif;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	font-style: italic;
	line-height: 1.5;
	text-align: center;
}

.zc-quote__sign {
	margin: 4px 0 16px;
	color: var(--zc-berry);
	font-family: "Literata", Georgia, serif;
	font-size: 1.25rem;
	font-style: italic;
	text-align: center;
}

/*
 * Header menu (Literata, set in the header template): the page you're on, or the
 * section it belongs to, gets a thin berry underline instead of a colour change.
 */
#brx-header .bricks-nav-menu > li > a,
#brx-header .bricks-nav-menu > li > .brx-submenu-toggle > a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
	transition: text-decoration-color 0.15s ease;
}

#brx-header .bricks-nav-menu > li > a:hover,
#brx-header .bricks-nav-menu > li > .brx-submenu-toggle > a:hover,
#brx-header .bricks-nav-menu > li > a[aria-current="page"],
#brx-header .bricks-nav-menu > .current-menu-ancestor > .brx-submenu-toggle > a {
	text-decoration-color: var(--zc-berry);
}

@media (prefers-reduced-motion: reduce) {
	#brx-header .bricks-nav-menu a {
		transition: none;
	}
}

/* Newsletter welcome popup: close "×" and the quiet "No thanks". */
.brx-popup .zc-popup-close {
	position: absolute;
	top: -28px;
	right: -20px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--zc-text);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.brx-popup .zc-popup-close:hover {
	background: var(--zc-surface);
}

.brx-popup .zc-popup-dismiss {
	align-self: center;
	padding: 6px 10px;
	border: 0;
	background: none;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* After signing up, only the thank-you message (with the code) stays. */
/* Also the "already on the list" message, which Bricks shows as an error but carries the code. */
.brx-popup .brxe-form :is(.message.success, .message.error) {
	padding: 16px 18px;
	border-radius: var(--zc-radius-md);
	background: var(--zc-cream);
	color: var(--zc-text);
	font-size: 1rem;
}

.brx-popup .brxe-form:has(.message.success) > .form-group,
.brx-popup-content:has(.message.success) .zc-popup-dismiss {
	display: none;
}

/* Popup: full-width submit button, so it lines up with "No thanks" centred below; the offer stands out. */
.brx-popup .brxe-form .submit-button-wrapper,
.brx-popup .brxe-form .submit-button-wrapper .bricks-button {
	width: 100%;
}

.brx-popup .brxe-form .submit-button-wrapper .bricks-button {
	justify-content: center;
}

.brx-popup strong {
	color: var(--zc-berry);
	font-weight: 700;
}

/* The welcome code in the popup's thank-you message. */
.brx-popup .zc-code {
	display: block;
	width: fit-content;
	margin: 12px auto;
	padding: 10px 22px;
	border: 2px dashed var(--zc-berry);
	border-radius: var(--zc-radius-md);
	background: var(--zc-background);
	color: var(--zc-berry);
	font-family: "Literata", Georgia, serif;
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	user-select: all;
}

.brx-popup .brxe-form :is(.message.success, .message.error) {
	text-align: center;
}

/*
 * Checkout: WooPayments' express buttons (Apple Pay, Google Pay, WooPay) sit at the start of
 * the checkout form, which Bricks lays out as a two-column grid. Give them their own full-width
 * row above "Delivery details", with the "— OR —" separator under them.
 */
.woocommerce-checkout form.checkout > .wcpay-express-checkout-wrapper {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 720px;
	margin: 0 0 8px;
}

.woocommerce-checkout form.checkout > .wcpay-express-checkout-wrapper #wcpay-express-checkout-button-separator {
	margin: 16px 0 8px;
	color: var(--zc-muted);
	font-size: var(--zc-text-small);
	text-align: center;
}
