/*
 * enitan hope: site shell (A2).
 * G-01 announcement bar · G-02 header · G-02c mobile menu · G-03 footer · C-09 Back to top.
 * Tokens only (theme.json presets and --wp--custom--eh--*). Section codes match the canvas.
 */

/* ---------- Blocksy ↔ theme.json bridge (A4 fix) ----------
 * Blocksy's own typography/button settings (system font stack, bold headings)
 * were overriding theme.json. Point Blocksy's variables at our tokens.
 * html:root beats Blocksy's inline :root rules. */
html:root {
	--theme-font-family: var(--wp--preset--font-family--sans);
	--theme-line-height: 1.7;
	--theme-button-font-family: var(--wp--preset--font-family--sans);
	--theme-button-font-size: 12px;
	--theme-button-font-weight: 500;
	--theme-button-letter-spacing: 0.14em;
	--theme-button-text-transform: uppercase;
	--theme-button-min-height: var(--wp--custom--eh--control);
	--theme-button-padding: 0 30px;
	--theme-button-border-radius: 0;
}
/* Past the end of the page (iPad/iPhone Safari bounce, or a page shorter than the screen) the
   browser shows the root background. Match the G-03 footer (warm paper) so there is no white
   band under it; the page itself stays white. Checkout's slim footer is white, so it stays white. */
html:root { background-color: var(--wp--preset--color--paper); }
html:root body { background-color: var(--wp--preset--color--white); }
html:root:has(body.eh-checkout-shell) { background-color: var(--wp--preset--color--white); }
html:root :is(h1, h2, h3, h4, h5, h6) {
	--theme-font-family: var(--wp--preset--font-family--serif);
	--theme-font-weight: 500;
	--theme-line-height: 1.1;
	--theme-letter-spacing: -0.01em;
}
html:root h1 { --theme-font-size: var(--wp--preset--font-size--h-1); --theme-line-height: 1; }
html:root h2 { --theme-font-size: var(--wp--preset--font-size--h-2); }
html:root h3 { --theme-font-size: var(--wp--preset--font-size--h-3); }

/* ---------- Shared ---------- */
.eh-cap {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* ---------- G-01 Announcement bar (inc/announce.php; drawn at the top of <body>) ----------
 * Fixed look whatever the editor picks: brand yellow, ink, caps label style, centred. */
.eh-g01 { position: relative; z-index: 2; background: var(--wp--preset--color--yellow) !important; color: var(--wp--preset--color--ink) !important; }
.eh-g01__in { max-width: var(--wp--style--global--wide-size, 1320px); margin: 0 auto; padding: 12px 16px; box-sizing: border-box; }
.eh-g01__line {
	margin: 0 !important; text-align: center !important;
	font-family: var(--wp--preset--font-family--sans) !important; font-size: var(--wp--preset--font-size--label) !important;
	font-weight: 500 !important; line-height: 1.4 !important; letter-spacing: 0.2em !important; text-transform: uppercase !important;
	color: var(--wp--preset--color--ink) !important; background: none !important;
}
.eh-g01__line :is(strong, em, span) { color: inherit !important; background: none !important; font: inherit !important; }
.eh-g01 a, .eh-g01 a:visited {
	color: var(--wp--preset--color--ink) !important; text-decoration: none !important;
	border-bottom: 1px solid var(--wp--preset--color--ink); background: none !important;
}
@media (hover: hover) and (pointer: fine) { .eh-g01 a:hover { border-bottom-width: 2px; } }
.eh-g01 a:focus-visible { outline: var(--wp--custom--eh--focus); outline-offset: 2px; }
.eh-g01__line--mobile { display: none; }
@media (max-width: 689.98px) {
	.eh-g01__in { padding: 12px; }
	.eh-g01__line { font-size: 10px !important; }
	.eh-g01__line--desktop { display: none; }
	.eh-g01__line--mobile { display: block; }
	/* 44px tap height for links without changing the bar's height. */
	.eh-g01 a { position: relative; }
	.eh-g01 a::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--wp--custom--eh--tap); transform: translateY(-50%); }
}

/* ---------- G-02 Header ---------- */
#header [data-row*="middle"],
#header [data-row*="bottom"] {
	background: var(--wp--preset--color--white);
}
#header [data-device="desktop"] [data-row*="bottom"] {
	border-bottom: var(--wp--custom--eh--border);
}
#header [data-device="mobile"] [data-row*="bottom"] {
	border-bottom: var(--wp--custom--eh--border);
}

/* Underline search field (eh-search item). */
.eh-hsearch { width: 100%; }
#header [data-device="desktop"] .eh-hsearch { width: min(420px, 100%); }
.eh-hsearch__form {
	display: flex;
	align-items: center;
	gap: 10px;
	height: var(--wp--custom--eh--tap);
	border-bottom: var(--wp--custom--eh--border-strong);
	color: var(--wp--preset--color--ink);
}
.eh-hsearch__form:focus-within { border-bottom-width: 2px; }
.eh-hsearch__input {
	flex: 1;
	min-width: 0;
	height: var(--wp--custom--eh--tap);
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px; /* 16px stops iOS zoom (style guide: form inputs) */
	color: var(--wp--preset--color--ink);
}
#header .eh-hsearch .eh-hsearch__input { height: var(--wp--custom--eh--tap); --theme-form-field-height: var(--wp--custom--eh--tap); }
.eh-hsearch__input::placeholder { color: var(--wp--preset--color--stone); opacity: 1; }
.eh-hsearch__input:focus-visible { outline-offset: 4px; }
@media (min-width: 1000px) {
	.eh-hsearch__input { font-size: var(--wp--preset--font-size--small); }
}

/* Icon actions: basket, favourites, account (44px targets). */
.eh-hicon,
#header .ct-cart-item,
#header .ct-account-item {
	min-width: var(--wp--custom--eh--tap);
	min-height: var(--wp--custom--eh--tap);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--ink);
	transition: background-color var(--wp--custom--eh--motion);
}
@media (hover: hover) and (pointer: fine) { .eh-hicon:hover, #header .ct-cart-item:hover, #header .ct-account-item:hover { background: var(--wp--preset--color--studio-grey); } }
.eh-hicon:active,
#header .ct-cart-item:active,
#header .ct-account-item:active { background: var(--wp--preset--color--line); }
#header .ct-cart-item,
#header .ct-account-item { --theme-icon-color: var(--wp--preset--color--ink); --theme-icon-hover-color: var(--wp--preset--color--ink); }
#header .ct-cart-item .ct-dynamic-count-cart {
	--counter-background: var(--wp--preset--color--yellow);
	--counter-text: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

/* G-02 Account menu (eh-account item; canvas SiteHeader .acct-menu). Alpha cut-down. */
.eh-acct { position: relative; display: inline-flex; }
#header .eh-acct__btn {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

#header .eh-acct.is-open .eh-acct__btn { background: var(--wp--preset--color--studio-grey); }
@media (hover: hover) and (pointer: fine) { #header .eh-acct__btn:hover { background: var(--wp--preset--color--studio-grey); } }
#header .eh-acct__btn:active { background: var(--wp--preset--color--line); }
#header .eh-acct__btn:focus-visible { outline: var(--wp--custom--eh--focus); outline-offset: 2px; }
.eh-acct--here .eh-acct__btn::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 2px;
	height: 2px;
	background: var(--wp--preset--color--ink);
}
.eh-acct__menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 60;
	min-width: 220px;
	padding: 8px 0;
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--eh--border);
	box-shadow: var(--wp--preset--shadow--pop);
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity var(--wp--custom--eh--motion), transform var(--wp--custom--eh--motion), visibility var(--wp--custom--eh--motion);
}
/* Opening: visible at once (keyboard users can Tab in straight away), then fade in.
   Closing: fade out, then hidden. */
.eh-acct.is-open .eh-acct__menu { opacity: 1; visibility: visible; transform: none; transition-property: opacity, transform; }
.eh-acct__menu ul { list-style: none; margin: 0; padding: 0; }
.eh-acct__menu li { margin: 0; }
.eh-acct__hi {
	margin: 0;
	padding: 10px 20px 6px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--stone);
}
#header .eh-acct__menu a {
	display: flex;
	align-items: center;
	min-height: var(--wp--custom--eh--tap);
	padding: 0 20px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--wp--custom--eh--motion);
}
@media (hover: hover) and (pointer: fine) { #header .eh-acct__menu a:hover { background: var(--wp--preset--color--paper); } }
#header .eh-acct__menu a:active { color: var(--wp--preset--color--stone); }
#header .eh-acct__menu a:focus-visible { outline: var(--wp--custom--eh--focus); outline-offset: -2px; }
#header .eh-acct__menu a.eh-acct__first { font-weight: 600; }
.eh-acct__sep { height: 1px; margin: 6px 0; background: var(--wp--preset--color--line); }
@media (prefers-reduced-motion: reduce) {
	.eh-acct__menu { transition: none; }
}

/* 44px targets for the menu trigger and logo links (WCAG 2.2 target size). */
#header .ct-header-trigger {
	min-width: var(--wp--custom--eh--tap);
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
}
#header .site-logo-container,
.eh-footer__logo a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--eh--tap);
}

/* Main nav (Blocksy menu item, bottom row). Labels: Inter 500 caps, tracked. */
#header [data-id="menu"] > ul > li > a.ct-menu-link {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	position: relative;
}
#header [data-id="menu"] > ul > li > a.ct-menu-link::after {
	content: "";
	position: absolute;
	left: var(--menu-item-padding, 0);
	right: var(--menu-item-padding, 0);
	bottom: 30%;
	height: 2px;
	background: var(--wp--preset--color--yellow);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--wp--custom--eh--motion);
}

#header [data-id="menu"] > ul > li:focus-within > a.ct-menu-link::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { #header [data-id="menu"] > ul > li:hover > a.ct-menu-link::after { transform: scaleX(1); } }
#header [data-id="menu"] > ul > li > a.ct-menu-link:active { color: var(--wp--preset--color--stone); }
#header [data-id="menu"] > ul > li.current-menu-item > a.ct-menu-link::after,
#header [data-id="menu"] > ul > li > a.ct-menu-link[aria-current="page"]::after {
	transform: scaleX(1);
	background: var(--wp--preset--color--ink);
}

/* G-02d Occasions dropdown: 12 occasions in 3 columns + "Shop all occasions". */
#header [data-id="menu"] .menu-item-has-children > .sub-menu {
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--eh--border);
	box-shadow: var(--wp--preset--shadow--pop);
	border-radius: 0;
}
#header [data-id="menu"] li.eh-occasions > .sub-menu {
	width: 600px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: var(--wp--preset--spacing--m);
	padding: 28px 32px 16px;
}
#header [data-id="menu"] li.eh-occasions > .sub-menu > li > a {
	min-height: var(--wp--custom--eh--tap);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	border-bottom: var(--wp--custom--eh--border);
	padding: 0;
}
@media (hover: hover) and (pointer: fine) { #header [data-id="menu"] li.eh-occasions > .sub-menu > li > a:hover { color: var(--wp--preset--color--blue); } }
#header [data-id="menu"] li.eh-occasions > .sub-menu > li.eh-all {
	grid-column: 1 / -1;
}
#header [data-id="menu"] li.eh-occasions > .sub-menu > li.eh-all > a {
	border-bottom: 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- G-02c Mobile menu (Blocksy off-canvas) ---------- */
#offcanvas,
#offcanvas .ct-panel-inner { background-color: var(--wp--preset--color--white) !important; }
#offcanvas .ct-toggle-close { --theme-icon-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); }
#offcanvas [data-id="mobile-menu"] > ul > li > a,
#offcanvas [data-id="mobile-menu"] > ul > li > .ct-sub-menu-parent > a {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--wp--preset--color--ink);
	min-height: 56px;
}
#offcanvas [data-id="mobile-menu"] li { border-bottom: var(--wp--custom--eh--border); }
#offcanvas [data-id="mobile-menu"] .sub-menu {
	background: var(--wp--preset--color--paper);
}
#offcanvas [data-id="mobile-menu"] .sub-menu a {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	min-height: var(--wp--custom--eh--tap);
}
#offcanvas [data-id="mobile-menu"] li.eh-secondary > a {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	min-height: 48px;
}

/* ---------- Nav items (inc/nav.php, follow-up 27 Nov 6c) ---------- */
/* Fit (6c): with Gift vouchers hidden until GA (Kayode, 27 Nov) the 8 items fit on one line from
 * 1000px, Our story included. When Gift vouchers returns at GA, check the fit again (the design's
 * fallback is Our story to the footer below 1200px: hide li.eh-nav-story there). */
/* "Coming soon" status tag (C-Tag) on Gift vouchers until GA. */
.eh-ntag {
	display: inline-flex; align-items: center; min-height: 20px; margin-left: 6px; padding: 0 6px; vertical-align: middle;
	background: var(--wp--preset--color--paper); border: var(--wp--custom--eh--border); color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans); font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
}
#offcanvas .eh-ntag { font-size: 10px; min-height: 22px; }
/* Mobile menu: search field (opens G-02b). */
#offcanvas [data-id="mobile-menu"] li.eh-msearch { border-bottom: 0; padding: 4px 0 12px; }
#offcanvas a.eh-msearch {
	display: flex !important; align-items: center; gap: 10px; min-height: var(--wp--custom--eh--tap) !important; padding: 0 !important;
	border-bottom: var(--wp--custom--eh--border-strong); color: var(--wp--preset--color--stone) !important;
	font-family: var(--wp--preset--font-family--sans) !important; font-size: 16px !important; font-weight: 400 !important; text-decoration: none;
}
#offcanvas a.eh-msearch svg { color: var(--wp--preset--color--ink); flex: none; }
/* Mobile menu: Membership block (G-02c · Membership). */
#offcanvas li.eh-mm { border-bottom: 0; }
.eh-mmb { margin: 16px 0; padding: 20px; background: var(--wp--preset--color--paper); display: flex; flex-direction: column; gap: 10px; }
.eh-mmb > * { margin: 0; }
.eh-mm__cap { color: var(--wp--preset--color--stone); }
.eh-mm__t { font-family: var(--wp--preset--font-family--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.eh-mm__p { font-size: 14px; line-height: 1.6; }
#offcanvas .eh-mmb a.eh-mm__more { min-height: var(--wp--custom--eh--tap); display: inline-flex; align-items: center; font-family: var(--wp--preset--font-family--sans); font-size: 14px; font-weight: 500; color: var(--wp--preset--color--ink); text-decoration: underline; text-underline-offset: 4px; }
/* Mobile menu: "More" label over the secondary group. */
#offcanvas [data-id="mobile-menu"] li.eh-secondary { border-bottom: 0; }
#offcanvas [data-id="mobile-menu"] li:not(.eh-secondary) + li.eh-secondary { margin-top: 20px; padding-top: 16px; border-top: var(--wp--custom--eh--border); }
#offcanvas [data-id="mobile-menu"] li:not(.eh-secondary) + li.eh-secondary::before {
	content: "More"; display: block; margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--stone);
}

/* ---------- G-03 Footer (synced pattern "G-03 Footer" in Blocksy footer) ---------- */
#footer .ct-footer [data-row],
#footer [data-row] { background: var(--wp--preset--color--paper); }
#footer [data-row*="middle"] > .ct-container { padding-top: 0; padding-bottom: 0; }
.eh-footer { color: var(--wp--preset--color--ink); font-size: 14px; line-height: 1.6; }
.eh-footer a { color: var(--wp--preset--color--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .eh-footer a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
.eh-footer a:active { color: var(--wp--preset--color--stone); }
.eh-footer .eh-muted,
.eh-footer .eh-muted a { color: var(--wp--preset--color--stone); }
/* The name in copy (handoff 1.5): bold is Inter 600, in the surrounding text colour. */
strong.eh-brand, .eh-legal__a strong { font-weight: 600; color: inherit; }
.eh-legal__a, .eh-legal__a:visited { color: inherit; }
.eh-footer__reassure {
	border-bottom: 1px solid var(--wp--preset--color--paper-line);
}
.eh-footer__reassure strong { font-weight: 600; }
.eh-footer__cols .eh-cap { color: var(--wp--preset--color--stone); }
.eh-footer__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.eh-footer .eh-soc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.eh-footer .eh-soc--icons { flex-direction: row; gap: 8px; padding-top: 12px; }
.eh-footer .eh-soc a { display: inline-flex; align-items: center; gap: 10px; min-height: var(--wp--custom--eh--tap); }
.eh-footer .eh-soc--icons a { min-width: var(--wp--custom--eh--tap); min-height: var(--wp--custom--eh--tap); justify-content: center; }
.eh-footer__legal a + a { margin-left: 20px; }
.eh-footer p { margin-top: 0; }
.eh-footer__brand > * + * { margin-top: 14px; }
.eh-footer .eh-soc svg { width: 20px; height: 20px; flex: none; transition: color var(--wp--custom--eh--motion); }
@media (hover: hover) and (pointer: fine) { .eh-footer .eh-soc a:hover svg { color: var(--wp--preset--color--blue); } }
.eh-footer__pay { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.eh-footer__pay li {
	min-width: 52px;
	height: 32px;
	padding: 0 8px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--paper-line);
	background: var(--wp--preset--color--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 500;
	color: var(--wp--preset--color--stone);
}
.eh-footer__legal { border-top: 1px solid var(--wp--preset--color--paper-line); font-size: 12px; }
.eh-footer__legal a { color: var(--wp--preset--color--stone); }
.eh-footer__logo img { height: 24px; width: auto; display: block; }

/* Mobile footer: accordions (core/details), legal row, brand block last. */
.eh-footer details { border-bottom: 1px solid var(--wp--preset--color--paper-line); }
.eh-footer details > summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 52px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.eh-footer details > summary::-webkit-details-marker { display: none; }
.eh-footer details > summary::after { content: "+"; }
.eh-footer details[open] > summary::after { content: "\2212"; }
.eh-footer details a { min-height: var(--wp--custom--eh--tap); display: flex; align-items: center; }
.eh-footer--mobile .eh-footer__legal a { min-height: var(--wp--custom--eh--tap); display: inline-flex; align-items: center; font-size: 13px; }
.eh-footer--mobile .eh-footer__logo img { height: 20px; }

.eh-footer--mobile { display: none; }
@media (max-width: 999.98px) {
	.eh-footer--desktop { display: none; }
	.eh-footer--mobile { display: block; }
}

/* ---------- C-09 Back to top ---------- */
/* Hidden until one screen of scrolling (assets/js/back-to-top.js adds .eh-past-fold). */
html:not(.eh-past-fold) .ct-back-to-top {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
.ct-back-to-top {
	width: 52px !important;
	height: 52px !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	--theme-icon-color: var(--wp--preset--color--white);
	--theme-icon-size: 14px;
}
.ct-back-to-top::after {
	content: "TOP";
	font-family: var(--wp--preset--font-family--sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1;
}
.ct-back-to-top {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
	border-radius: 0 !important;
}
@media (hover: hover) and (pointer: fine) { .ct-back-to-top:hover { background: var(--wp--preset--color--blue) !important; } }
.ct-back-to-top:active { background: var(--wp--preset--color--blue-pressed) !important; }

/* Skip link (step 25): on brand when it appears on focus; first stop on every page. */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	border-radius: 0;
	box-shadow: none;
	outline: var(--wp--custom--eh--focus);
	outline-offset: 2px;
}
/* Checkout prints its own skip link before G-04 (inc/basket-checkout.php); hide Blocksy's there. */
.eh-checkout-shell .skip-link:not(.eh-skip) { display: none; }

/* ---------- R-03 Grid (design updates v3, 2.6; style guide v0.4) ----------
 * Container 1320px = content up to 1208px + 56px margins; tablet (690–999px) 32px margins;
 * mobile 20px. Overrides Blocksy's 1290px and %-of-screen edge spacing (:root:root beats its
 * :root rules). % here resolves against the container's parent, so the scrollbar is excluded. */
:root:root {
	--theme-normal-container-max-width: var(--wp--style--global--content-size, 1208px);
	--theme-container-edge-spacing: calc(100% - 2 * var(--wp--custom--eh--margin));
	--theme-wide-offset: 0px; /* "wide" sections (Home H-codes, pages) line up with the 1208px content box, as on the canvas */
}
/* G-03 footer: its rows use the same 1208px content box. */
.eh-footer > * { max-width: var(--wp--style--global--content-size, 1208px) !important; }
/* Mobile footer: Blocksy's footer container already gives the 20px page margin (canvas SiteFooter
 * mobile), so the block's own side padding would double it. */
.eh-footer.eh-footer--mobile { padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 999.98px) { :root:root { --theme-container-edge-spacing: calc(100% - 2 * var(--wp--custom--eh--margin-tablet)); } }
@media (max-width: 689.98px) { :root:root { --theme-container-edge-spacing: calc(100% - 2 * var(--wp--custom--eh--margin-mobile)); } }

/* ---------- G-02 Mobile header, one row (design updates v3, 2.3) ----------
 * Logo left; Search (icon), Favourites, Basket, Menu on the right; 44px targets. The search
 * row under the header is gone, so the line moves to the middle row. */
#header [data-device="mobile"] [data-row*="middle"] { border-bottom: var(--wp--custom--eh--border); }
#header [data-device="mobile"] .eh-hsearch-btn,
#header [data-device="mobile"] .eh-fav,
#header [data-device="mobile"] .ct-cart-item { min-height: 48px; }
#header [data-device="mobile"] [data-row*="middle"] [data-column="end"] [data-items] > * { margin-left: 0; margin-right: 0; } /* icons sit edge to edge, as on the canvas */
#header [data-device="mobile"] .ct-header-trigger { justify-content: center; margin-right: -10px !important; }

/* ---------- G-02b Search overlay (mobile; inc/search.php) ---------- */
html.eh-sov-open { overflow: hidden; }
.eh-sov {
	position: fixed; inset: 0; z-index: 1000;
	width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
	display: none; flex-direction: column;
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
}
.eh-sov[open] { display: flex; }
.eh-sov::backdrop { background: var(--wp--preset--color--white); }
.eh-sov__bar { flex: none; display: flex; align-items: center; gap: 4px; height: 60px; padding: 6px 16px 6px 4px; box-sizing: border-box; border-bottom: var(--wp--custom--eh--border); }
.eh-sov__close { width: var(--wp--custom--eh--tap); height: 48px; padding: 0; border: 0; background: none; color: var(--wp--preset--color--ink); cursor: pointer; }
.eh-sov__form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: var(--wp--custom--eh--tap); margin: 0; border-bottom: var(--wp--custom--eh--border-strong); }
.eh-sov__form:focus-within { box-shadow: 0 1px 0 var(--wp--preset--color--ink); }
.eh-sov .eh-sov__in {
	flex: 1; min-width: 0; height: var(--wp--custom--eh--tap); padding: 0;
	border: 0 !important; background: transparent !important; box-shadow: none !important;
	font-family: var(--wp--preset--font-family--sans); font-size: 16px; /* stops iOS zoom */
	color: var(--wp--preset--color--ink);
}
.eh-sov__in::placeholder { color: var(--wp--preset--color--stone); opacity: 1; }
.eh-sov__in:focus-visible { outline: none; } /* the underline thickens instead */
.eh-sov__in::-webkit-search-cancel-button { display: none; }
.eh-sov__clear { width: var(--wp--custom--eh--tap); height: var(--wp--custom--eh--tap); margin-right: -12px; padding: 0; border: 0; background: none; color: var(--wp--preset--color--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.eh-sov__clear[hidden] { display: none; }
.eh-sov__body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 28px; }
.eh-sov__h { margin: 0 0 16px; color: var(--wp--preset--color--stone); }
.eh-sov__chips, .eh-sov__list { list-style: none; margin: 0; padding: 0; }
.eh-sov__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eh-sov__chips li, .eh-sov__list li { margin: 0; }
.eh-sov__chip {
	display: inline-flex; align-items: center; min-height: var(--wp--custom--eh--tap); padding: 0 18px; box-sizing: border-box;
	border: var(--wp--custom--eh--border); color: var(--wp--preset--color--ink); text-decoration: none;
	font-size: var(--wp--preset--font-size--small); font-weight: 500;
	transition: border-color var(--wp--custom--eh--motion), background-color var(--wp--custom--eh--motion);
}
@media (hover: hover) and (pointer: fine) { .eh-sov__chip:hover { border-color: var(--wp--preset--color--ink); } }
.eh-sov__chip:active { background: var(--wp--preset--color--paper); }
.eh-sov__row { display: flex; align-items: center; gap: 16px; min-height: var(--wp--custom--eh--tap); padding: 8px 10px; margin: 0 -10px; color: var(--wp--preset--color--ink); text-decoration: none; transition: background-color var(--wp--custom--eh--motion); }
@media (hover: hover) and (pointer: fine) { .eh-sov__row:hover { background: var(--wp--preset--color--paper); } }
.eh-sov__row:active { background: var(--wp--preset--color--paper-shade); }
.eh-sov__th { flex: none; width: 56px; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--wp--preset--color--studio-grey); }
.eh-sov__th img { width: 62%; height: auto; display: block; box-shadow: var(--wp--preset--shadow--pop); }
.eh-sov__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eh-sov__name { font-size: var(--wp--preset--font-size--small); line-height: 1.35; }
.eh-sov__meta { font-size: var(--wp--preset--font-size--meta); color: var(--wp--preset--color--stone); }
.eh-sov a:focus-visible, .eh-sov button:focus-visible { outline: var(--wp--custom--eh--focus); outline-offset: 2px; }
@media (min-width: 1000px) { .eh-sov { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .eh-sov * { transition: none !important; } }

/* ---------- G-02c account bar (AL-24, MenuAccountBarV3Mobile) ---------- */
/* The panel is a full-height column: actions, scrolling menu, then the bar pinned at the bottom. */
#offcanvas .eh-mab-host { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#offcanvas .eh-mab-host > .ct-panel-content[data-device="mobile"] { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.eh-mab { flex: none; box-sizing: border-box; padding: 16px 20px max(env(safe-area-inset-bottom, 0px), 28px); background: var(--wp--preset--color--white); border-top: var(--wp--custom--eh--border); font-family: var(--wp--preset--font-family--sans); color: var(--wp--preset--color--ink); }
.eh-mab[hidden] { display: none; }
.eh-mab__line { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--wp--preset--color--stone); }
.eh-mab__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eh-mab__btns .eh-btn { width: 100%; min-height: 48px; padding: 12px 8px; }
.eh-mab__btns .eh-btn--line { background: var(--wp--preset--color--white); }
.eh-mab__row { display: flex; align-items: center; gap: 12px; }
.eh-mab__me, .eh-mab__me:visited { flex: 1 1 auto; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 12px; color: var(--wp--preset--color--ink); text-decoration: none; }
.eh-mab__ini { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); font-size: 15px; font-weight: 600; }
.eh-mab__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.eh-mab__name { font-family: var(--wp--preset--font-family--serif); font-size: 22px; font-weight: 500; line-height: 1.1; }
.eh-mab__mail { font-size: 13px; color: var(--wp--preset--color--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eh-mab__me svg { flex: none; }
@media (hover: hover) and (pointer: fine) { .eh-mab__me:hover { color: var(--wp--preset--color--blue); } }
.eh-mab__out, .eh-mab__out:visited { flex: none; min-height: var(--wp--custom--eh--tap); display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--ink); text-decoration: underline; text-underline-offset: 4px; }
.eh-mab a:focus-visible { outline: var(--wp--custom--eh--focus); outline-offset: 2px; }
/* Membership box (guests): 24px 20px margin, 24px padding, 12px gap; no button (AL-24). */
#offcanvas .eh-mmb { margin: 24px 0 0; padding: 24px; gap: 12px; }
#offcanvas .eh-mmb .eh-mm__t { margin: 0; font-size: 28px; }
