/* BUILD-V2-011 S1 — the shared V2 product lightbox stylesheet (PM ruling: option (a), a new shared stylesheet).
   Self-contained for the lightbox portal (.hnl-ppb-lightbox-portal-root.hnl-ppb2-lbx-root) and the body scroll lock
   (html/body.hnl-ppb-lightbox-open). Visual parity with accepted 0.25.60:
     part 1: builder.css's lightbox rules, copied VERBATIM in their original order (builder.css itself is frozen and
             still carries them for builder.js; on a Builder V2 page both copies are identical, so nothing changes).
             Only two shared selector lists are narrowed to the lightbox portal: the palette block and box-sizing
             (#hnl-pp-builder-root and the V1 drawer portal keep theirs in builder.css), and the mobile page guard
             drops its #hnl-pp-builder-root line (a builder rule, still in builder.css).
     part 2: builder-v2.css's lightbox rules, MOVED here unchanged (heading ink, the in-box line, the Waitlist button
             inside the lightbox). Loaded after builder.css and builder-v2.css. */

/* ---- part 1: builder.css lightbox rules (verbatim copy) ---- */
.hnl-ppb-lightbox-portal-root {
	/* R2 (A): locked HNL palette — replaces the prior beige/cream/green treatment entirely. */
	/* R1.1 (1A/1B): locked NEUTRAL/BLACK direction. The former red/pink palette is remapped so every
	   button, active-step circle/line, selected-state border/fill, and large accent that used
	   var(--hnl-red)/var(--hnl-red-soft) now renders BLACK / neutral-gray. #850000 is reserved for
	   ICONS ONLY and is exposed as --hnl-icon. (The variable NAMES are kept to avoid churn across ~35
	   references; only their VALUES changed. --hnl-red-soft, previously pink #FFF1F1, is now a neutral
	   light gray so all former pink fills — subscribe card, free-shipping box, savings pills, "add 1
	   more" callout, drawer/summary fills — become neutral.) */
	--hnl-red:#141414; --hnl-red-deep:#000000; --hnl-red-soft:#F3F3F3;
	/* R1.1.3 (item 6): #850000 is no longer icon-only — it is now the HNL brand accent, permitted for
	   small UI emphasis, active states, step indicators, and helper/subtitle text (never for primary
	   button/CTA/Add-to-cart fills, large background fills, selected-card fills, drawer/surface fills,
	   the validation alert, product prices, or the main H1 — those all stay black/neutral, unchanged).
	   --hnl-icon is now an ALIAS of --hnl-brand (one source of truth for the #850000 value) so existing
	   icon-color rules keep working unchanged. */
	--hnl-brand:#850000; --hnl-brand-soft:#dfb8b8; --hnl-brand-glow:#8500001a;
	--hnl-icon:var(--hnl-brand);
	--hnl-ink:#101010; --hnl-charcoal:#2E2E2E; --hnl-gray:#6B6B6B;
	--hnl-divider:#E5E5E5; --hnl-soft-gray:#F7F7F7; --hnl-white:#FFFFFF;
	/* legacy variable names kept as aliases so nothing downstream needs re-pointing */
	--ppb-ink:var(--hnl-ink); --ppb-soft:var(--hnl-gray); --ppb-line:var(--hnl-divider);
	--ppb-card:var(--hnl-white); --ppb-paper:var(--hnl-soft-gray);
	--ppb-forest:var(--hnl-red); --ppb-forest-2:var(--hnl-red-deep);
	--ppb-clay:var(--hnl-red); --ppb-clay-soft:var(--hnl-red-deep); --ppb-good:var(--hnl-red-deep);
	display:block; margin:14px 0 0; color:var(--ppb-ink); font-size:14px; }
.hnl-ppb-lightbox-portal-root * { box-sizing:border-box; }
/* R1P3 v0.25.12/13: the lightbox portal root is a body child; pin it to the viewport (fixed,
   inset:0, no margin) so the margin/flow that applies to #hnl-pp-builder-root can never offset the
   overlay it contains. v0.25.13: the root is ALSO the horizontal centering container — width:100dvw,
   overflow hidden, flex + justify-content:center — so the modal centers on the true viewport via
   margin:auto (see the mobile modal rule), NOT via transform/left which can inherit a shifted
   ancestor's containing block. Zero visual footprint when empty. */
.hnl-ppb-lightbox-portal-root {
	position:fixed; inset:0; margin:0;
	width:100dvw; max-width:100dvw;
	overflow:hidden;
	display:flex; justify-content:center; align-items:center;
	z-index:2147483000; pointer-events:none;
}
.hnl-ppb-lightbox-portal-root > * { pointer-events:auto; }

/* ============================================================================
   B-LBX-CSS-1 R1 (v0.25.19): PRODUCT LIGHTBOX LAYOUT ARCHITECTURE — single coherent model.
   Replaces the accumulated R1.1.x / R1P3 v0.25.11-15 layered overrides with ONE governing
   layout per breakpoint. Governing principle: exactly ONE scroll owner per breakpoint; every
   flex/grid child that must scroll has min-height:0; the modal never grows past the viewport;
   the CTA lives OUTSIDE the scroll body; the close button lives OUTSIDE the modal box.

   Two modes share the same base:
     - image-only  (no detail): modal is a flex column, stage + thumbnails, centered.
     - has-detail  (product):   desktop = 2-col grid (media | detail); mobile = stacked.

   SCROLL OWNER:
     desktop (>860px): the DETAIL BODY (.hnl-ppb-lbx-scroll) is the sole scroller. Overlay,
       modal, detail-column, media, and cta-footer never scroll.
     mobile (<=860px): the MODAL (.hnl-ppb-lightbox-has-detail) is the sole scroller. The
       detail-body wrapper dissolves (display:contents) so it can't create a second scroll.
   ============================================================================ */

/* ---- shared base (both breakpoints) ---- */
.hnl-ppb-lightbox-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.72); z-index:2147483000;
	display:flex; align-items:center; justify-content:center; }
.hnl-ppb-lightbox-modal { box-sizing:border-box; width:min(920px, calc(100vw - 32px));
	max-height:calc(100dvh - 48px); background:#ffffff; border-radius:12px;
	display:flex; flex-direction:column; overflow:hidden; }
/* Close button: fixed to the viewport corner, OUT of the modal layout flow — never affects the
   modal bounding box; always visible; same close path as accepted v0.25.15 (state.lightbox=null;
   unlockBodyScroll(); render()). Hardened literal colors (portal-safe). */
.hnl-ppb-lightbox-close { position:fixed;
	top:max(12px, env(safe-area-inset-top, 0px)); right:max(12px, env(safe-area-inset-right, 0px));
	width:44px; height:44px; border-radius:999px;
	border:1px solid rgba(0,0,0,0.12); background:#ffffff; color:#141414; opacity:1; font-size:22px; line-height:1;
	cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(0,0,0,0.18);
	z-index:2147483002; }
/* media (image) sub-elements — shared */
.hnl-ppb-lightbox-stage { position:relative; display:flex; align-items:center; justify-content:center;
	flex:1 1 auto; min-height:0; overflow:hidden; padding:24px; }
.hnl-ppb-lightbox-img { display:block; width:auto; height:auto; max-width:100%;
	max-height:calc(100dvh - 190px); object-fit:contain; border-radius:8px; }
.hnl-ppb-lightbox-nav { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%;
	border:1px solid var(--hnl-divider); background:rgba(255,255,255,0.92); color:var(--hnl-ink); font-size:22px; line-height:1;
	cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:2; box-shadow:0 2px 8px rgba(0,0,0,0.15); }
.hnl-ppb-lightbox-prev { left:6px; }
.hnl-ppb-lightbox-next { right:6px; }
.hnl-ppb-lightbox-count { position:absolute; bottom:8px; left:50%; transform:translateX(-50%);
	background:rgba(16,16,16,0.6); color:#fff; font-size:12px; padding:3px 10px; border-radius:999px; }
.hnl-ppb-lightbox-thumbs { flex:0 0 auto; display:flex; justify-content:center; gap:8px; overflow-x:auto;
	width:100%; max-width:100%; padding:12px 16px 16px; -webkit-overflow-scrolling:touch; }
.hnl-ppb-lightbox-thumb { flex:0 0 auto; width:54px; height:54px; padding:0; border-radius:7px; overflow:hidden;
	border:2px solid transparent; background:var(--hnl-soft-gray); cursor:pointer; }
.hnl-ppb-lightbox-thumb.is-active { border-color:var(--hnl-red); }
.hnl-ppb-lightbox-thumb img { width:100%; height:100%; max-height:none; border-radius:0; object-fit:cover; }

/* has-detail: wider modal; the grid/stack model is set per breakpoint below */
.hnl-ppb-lightbox-has-detail { width:min(1040px, calc(100vw - 32px)); }
.hnl-ppb-lightbox-media { display:flex; flex-direction:column; min-width:0; min-height:0; }
.hnl-ppb-lightbox-has-detail .hnl-ppb-lightbox-stage { padding:22px; }

/* detail column = flex COLUMN container (never scrolls itself); splits into body + footer */
.hnl-ppb-lightbox-detail { min-width:0; min-height:0; display:flex; flex-direction:column; }
/* detail BODY = the desktop scroll owner (set in the desktop block); base = flex column w/ spacing */
.hnl-ppb-lbx-scroll { display:flex; flex-direction:column; gap:14px; min-height:0; }
/* CTA footer = non-scrolling flex sibling OUTSIDE the body; treatment per breakpoint below */
.hnl-ppb-lbx-cta-wrap { flex:0 0 auto; }
.hnl-ppb-lbx-cta { display:block; width:100%; box-sizing:border-box; border:0; border-radius:9px;
	background:var(--hnl-red); color:var(--hnl-white); font:inherit; font-weight:700; font-size:15px;
	padding:14px 18px; text-align:center; cursor:pointer; }
.hnl-ppb-lbx-cta:disabled, .hnl-ppb-lbx-cta[aria-disabled="true"] { opacity:.55; cursor:default; }

/* detail typography / sections (shared) */
.hnl-ppb-lbx-name { font-size:24px; line-height:1.15; font-weight:800; color:var(--hnl-ink); letter-spacing:-0.01em; }
.hnl-ppb-lbx-price { font-size:21px; font-weight:800; color:var(--hnl-ink); } /* price stays black per palette rule */
.hnl-ppb-lbx-rating { display:flex; align-items:center; gap:8px; margin-top:-4px; }
.hnl-ppb-lbx-stars { font-size:15px; letter-spacing:1px; color:var(--hnl-brand); } /* text-glyph stars; no star SVG */
.hnl-ppb-lbx-rcount { font-size:13px; color:var(--hnl-gray); }
.hnl-ppb-lbx-story { font-size:14.5px; line-height:1.6; color:var(--hnl-charcoal); }
.hnl-ppb-lbx-story p, .hnl-ppb-lbx-sec-body p { margin:0 0 8px; }
.hnl-ppb-lbx-story p:last-child, .hnl-ppb-lbx-sec-body p:last-child { margin-bottom:0; }
.hnl-ppb-lbx-section { border-top:1px solid var(--hnl-divider); padding-top:12px; }
.hnl-ppb-lbx-sec-head { font-size:13.5px; font-weight:700; color:var(--hnl-ink); list-style:none;
	appearance:none; -webkit-appearance:none; background:none; border:0; outline:none; } /* never a form-field look */
/* B-LBX-CTA-1 R2.1 (v0.25.21): lightbox section headers use the brand accent #850000 (== --hnl-brand)
   on desktop AND mobile. Qualified selector (has-detail + summary.) so it beats the base --hnl-ink and
   is specific to the lightbox headers only. */
.hnl-ppb-lightbox-has-detail summary.hnl-ppb-lbx-sec-head,
.hnl-ppb-lightbox-has-detail .hnl-ppb-lbx-sec-head { color:#850000; }
.hnl-ppb-lbx-sec-head::-webkit-details-marker { display:none; }
.hnl-ppb-lbx-sec-head::marker { content:''; }
.hnl-ppb-lbx-sec-body { font-size:13.5px; line-height:1.55; color:var(--hnl-charcoal); margin-top:8px; }
.hnl-ppb-lbx-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.hnl-ppb-lbx-pill { display:inline-flex; align-items:center; font-size:12.5px; font-weight:600; color:var(--hnl-charcoal);
	background:var(--hnl-soft-gray); border:1px solid var(--hnl-divider); border-radius:999px; padding:6px 12px; max-width:100%; overflow-wrap:anywhere; }
.hnl-ppb-lbx-ingredients { font-size:13.5px; line-height:1.6; color:var(--hnl-charcoal); margin-top:10px; overflow-wrap:anywhere; }

/* ============================ DESKTOP ( >860px ) ============================
   2-col grid; detail body is the SOLE scroll owner; CTA footer is a non-scrolling sibling. */
@media (min-width:861px) {
	.hnl-ppb-lightbox-has-detail { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);
		grid-template-rows:minmax(0, 1fr); min-height:0; }
	/* the grid's single row is minmax(0,1fr) so both columns are bounded by the modal's max-height
	   (not content-sized). Combined with min-height:0 on the columns, this lets the detail BODY be
	   the thing that scrolls — the column and modal stay fixed to the viewport-derived max-height. */
	.hnl-ppb-lightbox-media { border-right:1px solid var(--hnl-divider); }
	.hnl-ppb-lightbox-has-detail .hnl-ppb-lightbox-img { max-height:calc(100dvh - 220px); }
	/* detail column does NOT scroll; it is the flex container split into body + footer */
	.hnl-ppb-lightbox-detail { overflow:hidden; padding:0; }
	/* detail BODY: the ONLY desktop scroller. flex:1 + min-height:0 lets it shrink & scroll. */
	.hnl-ppb-lightbox-detail .hnl-ppb-lbx-scroll { flex:1 1 auto; min-height:0; overflow-y:auto;
		padding:26px 28px 18px; }
	/* CTA FOOTER: flex:0 0 auto, outside the scroll — always visible, never clips, never covers
	   content (it is a sibling, not an overlay; the body's scroll area ends at the footer top). */
	.hnl-ppb-lbx-cta-wrap { flex:0 0 auto; background:var(--hnl-white); border-top:1px solid var(--hnl-divider);
		padding:14px 28px calc(env(safe-area-inset-bottom, 0px) + 18px); }
	/* sections always expanded on desktop; collapse toggle disabled (no caret, not clickable) */
	.hnl-ppb-lightbox-detail .hnl-ppb-lbx-sec-head { pointer-events:none; }
}

/* ============================ MOBILE ( <=860px ) ============================
   Stacked single column; the MODAL is the SOLE scroll owner; detail-body dissolves; CTA inline;
   close fixed/out-of-flow; both-axis centered; no horizontal scroll. */
@media (max-width:860px) {
	/* both-axis centering via overlay flex (matches accepted v0.25.15 reference) */
	.hnl-ppb-lightbox-overlay { display:flex; align-items:center; justify-content:center; overflow:hidden; padding:0; }
	.hnl-ppb-lightbox-modal { position:relative; margin:0;
		width:min(calc(100dvw - 24px), 420px); max-width:calc(100dvw - 24px); max-height:calc(100dvh - 24px);
		box-sizing:border-box; overflow-x:hidden; }
	/* MODAL is the single scroll owner */
	.hnl-ppb-lightbox-has-detail { display:block; overflow-y:auto; overflow-x:hidden;
		-webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
	/* detail-body wrapper dissolves so it doesn't create a 2nd scroll; sections flow in the modal */
	.hnl-ppb-lbx-scroll { display:contents; }
	.hnl-ppb-lightbox-detail { display:block; overflow:visible; padding:18px 18px 28px; }
	/* inner blocks width-capped so nothing exceeds the modal width */
	.hnl-ppb-lightbox-media, .hnl-ppb-lightbox-detail,
	.hnl-ppb-lbx-story, .hnl-ppb-lbx-sec-body, .hnl-ppb-lbx-pills, .hnl-ppb-lbx-ingredients { max-width:100%; box-sizing:border-box; }
	.hnl-ppb-lightbox-media { border-right:none; border-bottom:1px solid var(--hnl-divider); }
	.hnl-ppb-lightbox-has-detail .hnl-ppb-lightbox-img { max-width:100%; max-height:42dvh; }
	.hnl-ppb-lightbox-stage { max-width:100%; overflow:hidden; }
	.hnl-ppb-lightbox-thumbs { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
	.hnl-ppb-lbx-name { font-size:20px; }
	.hnl-ppb-lbx-price { font-size:18px; }
	/* CTA inline at bottom of the modal scroll — NOT sticky. Top divider + spacing. */
	.hnl-ppb-lbx-cta-wrap { margin-top:18px; padding-top:16px; border-top:1px solid var(--hnl-divider); }
	/* close stays fixed/out-of-flow (base rule already does this; explicit for the detail lightbox) */
	.hnl-ppb-lightbox-has-detail .hnl-ppb-lightbox-close { position:fixed;
		top:calc(env(safe-area-inset-top, 0px) + 12px); right:calc(env(safe-area-inset-right, 0px) + 12px);
		float:none; margin:0; width:44px; height:44px; z-index:2147483002; }
	/* mobile accordions: clean tappable header with chevron (not a form field).
	   R2.1: NO `font:inherit` — explicit font properties + brand accent #850000. Qualified selector
	   (has-detail + summary.) so it beats the base --hnl-ink and appears late enough in the cascade. */
	.hnl-ppb-lbx-sec-head { cursor:pointer; display:flex; align-items:center; justify-content:space-between;
		padding:2px 0; background:none; border:0; border-radius:0; appearance:none; -webkit-appearance:none; }
	.hnl-ppb-lightbox-has-detail summary.hnl-ppb-lbx-sec-head,
	.hnl-ppb-lightbox-has-detail .hnl-ppb-lbx-sec-head {
		font-family:inherit; font-size:14px; font-weight:700; line-height:1.25; color:#850000;
	}
	.hnl-ppb-lbx-sec-head::after { content:'\25be'; color:var(--hnl-gray); font-size:12px; transition:transform .15s ease; }
	.hnl-ppb-lbx-section[open] .hnl-ppb-lbx-sec-head::after { transform:rotate(180deg); }
}
/* page horizontal-scroll guard while the lightbox is open (mobile) */
@media (max-width:860px) {
	html.hnl-ppb-lightbox-open, body.hnl-ppb-lightbox-open { overflow-x:hidden; max-width:100%; }
}

/* R4 Addendum: background scroll lock while the lightbox is open. This CSS layer alone is
   sufficient on desktop; JS additionally applies a position:fixed technique for mobile Safari,
   where overflow:hidden alone does not reliably block touch-scroll. */
html.hnl-ppb-lightbox-open, body.hnl-ppb-lightbox-open { overflow:hidden !important; height:100%; }

/* ---- part 2: moved from builder-v2.css (unchanged) ---- */
/* ---- lightbox: the V1 layout and builder.css styling; only the section headings change to ink ---- */
.hnl-ppb2-lbx-root .hnl-ppb-lightbox-has-detail summary.hnl-ppb-lbx-sec-head,
.hnl-ppb2-lbx-root .hnl-ppb-lightbox-has-detail .hnl-ppb-lbx-sec-head { color: #141414; }
.hnl-ppb2-lbx-inbox { font-size: 13px; color: #5C5347; margin-bottom: 8px; }
/* ---- NOTIFY-2 R1: the CommerceKit Waitlist button in the lightbox (the card's stays in builder-v2.css) ---- */
.hnl-ppb2-lbx-root .hnl-ppb2-waitlist { display: block; width: 100%; min-height: 44px; box-sizing: border-box; border-radius: 8px; border: 1px solid #141414; background: #FFFFFF; color: #141414; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 0 12px; cursor: pointer; margin: 0; }
.hnl-ppb2-lbx-root .hnl-ppb2-waitlist.is-lbx { margin-top: 10px; }
.hnl-ppb2-lbx-root .hnl-ppb2-waitlist:focus-visible { outline: 2px solid #A05A2E; outline-offset: 2px; }

/* ---- BUILD-V2-012 D2: the Herb Guide view inside the same lightbox (additive; the details view is unchanged) ----
   Only [data-view] modals (guide, guide-image) and the Learn button are styled here. One breakpoint (860px), the S1
   geometry: desktop = the view body is the sole scroller, CTA footer a non-scrolling sibling; phone = the centred card
   is the sole scroller with a sticky header and footer. The close button stays the existing fixed control. */
.hnl-ppb-lbx-learn { display:block; width:100%; box-sizing:border-box; min-height:44px; margin:4px 0 0; padding:10px 14px;
	border:1.5px solid #141414; border-radius:9px; background:#FFFFFF; color:#141414; font:inherit; font-size:14px;
	font-weight:700; line-height:1.2; text-align:center; cursor:pointer; }
.hnl-ppb-lbx-learn:hover { background:#141414; color:#FFFFFF; }
.hnl-ppb-lbx-learn:focus-visible, .hnl-ppb-lbx-back:focus-visible, .hnl-ppb-lbx-gretry:focus-visible { outline:2px solid #850000; outline-offset:2px; }
.hnl-ppb-lightbox-modal[data-view] { width:min(1040px, calc(100vw - 32px)); }
.hnl-ppb-lbx-view { display:flex; flex-direction:column; min-height:0; min-width:0; flex:1 1 auto; }
.hnl-ppb-lbx-vhead { flex:0 0 auto; display:flex; flex-direction:column; align-items:flex-start; gap:6px;
	padding:20px 72px 14px 28px; border-bottom:1px solid var(--hnl-divider); background:#FFFFFF; } /* right: room for the fixed close */
.hnl-ppb-lbx-back { border:0; background:none; padding:4px 0; margin:0; color:#850000; font:inherit; font-size:13.5px;
	font-weight:700; cursor:pointer; }
.hnl-ppb-lbx-vtitle { margin:0; font-size:22px; line-height:1.2; font-weight:800; color:var(--hnl-ink); outline:none; }
.hnl-ppb-lbx-vbody { flex:1 1 auto; min-height:0; overflow-y:auto; padding:18px 28px 22px; overscroll-behavior:contain; }
.hnl-ppb-lbx-gstatus { font-size:14px; color:var(--hnl-charcoal); }
.hnl-ppb-lbx-gstatus:empty { display:none; }
.hnl-ppb-lbx-gstatus.is-error { color:#850000; font-weight:600; }
.hnl-ppb-lbx-gretry { margin-top:10px; min-height:44px; padding:0 18px; border:1.5px solid #141414; border-radius:9px;
	background:#FFFFFF; color:#141414; font:inherit; font-weight:700; cursor:pointer; }
.hnl-ppb-lbx-guide-node { min-width:0; }
/* No component script and no component stylesheet: every guide section stays readable (D1 --static). */
.hnl-ppb-lbx-guide-node .ingredacore-herb-guide--static [data-ihg-section][hidden] { display:block; }
@media (min-width:861px) {
	.hnl-ppb-lightbox-modal[data-view] { display:flex; flex-direction:column; min-height:0; }
}
@media (max-width:860px) {
	.hnl-ppb-lightbox-modal[data-view] { display:block; width:min(calc(100dvw - 24px), 420px); overflow-y:auto; overflow-x:hidden;
		-webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
	.hnl-ppb-lbx-view { display:block; }
	.hnl-ppb-lbx-vhead { position:sticky; top:0; z-index:1; padding:16px 64px 12px 18px; }
	.hnl-ppb-lbx-vtitle { font-size:19px; }
	.hnl-ppb-lbx-vbody { overflow:visible; padding:14px 18px 18px; }
	.hnl-ppb-lightbox-modal[data-view="guide"] .hnl-ppb-lbx-cta-wrap { position:sticky; bottom:0; z-index:1; background:#FFFFFF;
		margin-top:0; padding:12px 18px calc(env(safe-area-inset-bottom, 0px) + 14px); }
}

/* ---- 0.25.74 UX-001 R2: the guide's hero images, inside this dialog only (replaces the 0.25.73 hero block) ----
   The Bulk Herbs composition (herbsnlather.com/bulk-herbs/, owner-agreed 2026-11-09): a fixed-height stage of two equal
   columns. The first image (IngredaCore always sends the form image first) sits in a short slot, vertically centred; the
   second (the botanical) fills the full stage height, top-aligned. Both are whole (contain), never cropped. The stage starts
   right under the header line and tucks under the tiles, which are drawn on top. A single image takes the full stage height.
   Sizes are Bulk Herbs': desktop stage clamp(210px, 36vw, 340px), short slot clamp(88px, 13vw, 150px), 56px tuck; phone
   stage clamp(130px, 34vw, 170px), short slot clamp(58px, 14vw, 84px), 32px tuck. Bulk Herbs also pulls its stage 72px up
   into its header; here the header stays fixed (it carries the Back pill), so that part is not copied (decision A).
   Scoped to [data-view="guide"] (0,4,0 and above > IngredaCore's 0,2,0, whatever the stylesheet order). */
.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero {
	--hnl-hg-stage:clamp(210px, 36vw, 340px); --hnl-hg-short:clamp(88px, 13vw, 150px);
	position:relative; z-index:1; display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
	gap:clamp(8px, 1.2vw, 14px); height:var(--hnl-hg-stage); min-height:0; align-items:stretch;
	margin-top:-18px; margin-bottom:-56px; }
.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero-btn {
	position:relative; display:block; width:100%; height:100%; min-width:0; max-width:none; margin:0; padding:0;
	background:transparent; border:0; border-radius:10px; overflow:visible; cursor:zoom-in; }
.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero-btn:only-child { grid-column:1 / -1; }
.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero-img {
	position:absolute; left:0; top:0; display:block; width:100%; height:100%; max-width:none; max-height:none;
	aspect-ratio:auto; object-fit:contain; object-position:center top; border-radius:0; background:transparent;
	transition:transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease; }
.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero-btn:first-child:not(:only-child) .ingredacore-hg-hero-img {
	top:calc(50% - var(--hnl-hg-short) / 2); height:var(--hnl-hg-short); object-position:center center; }
.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero-btn:focus-visible {
	outline:2px solid #850000; outline-offset:4px; }
/* The hero and the tiles stack inside the guide node only (isolation), so on phones, where the card itself scrolls, they can
   never paint over, or take the taps of, the sticky header (title, Back pill) or the sticky Add footer. The "Create With"
   band is raised with the tiles, as on Bulk Herbs, for a guide that has no tiles above it. */
.hnl-ppb-lightbox-modal[data-view="guide"] .hnl-ppb-lbx-guide-node { isolation:isolate; }
.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-tiles,
.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-band { position:relative; z-index:2; }
@media (hover:hover) and (pointer:fine) {
	.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero-btn:hover .ingredacore-hg-hero-img {
		transform:scale(1.018); opacity:0.985; filter:brightness(1.02); }
}
@media (max-width:860px) {
	.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero {
		--hnl-hg-stage:clamp(130px, 34vw, 170px); --hnl-hg-short:clamp(58px, 14vw, 84px);
		gap:8px; margin-top:-14px; margin-bottom:-32px; }
}

/* ---- 0.25.74 UX-002 R2: "← Product Details" as a pill (owner-agreed 2026-11-09) ----
   The card's "Herb Guide" pill, slightly larger. The header keeps its right padding from 420px up, so the pill never sits
   under the fixed close button. Layout per width: see UX-002 R3 below. */
.hnl-ppb-lbx-back { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 18px;
	border:1.5px solid #850000; border-radius:999px; background:#FFFFFF; color:#850000; font:inherit; font-size:14px;
	font-weight:700; line-height:1.2; white-space:nowrap; cursor:pointer; }
.hnl-ppb-lbx-back:hover { background:#850000; color:#FFFFFF; }
/* 0.25.75 UX-002 R3 (owner, 2026-11-09): one line from 420px up — the title on the left, the pill on the right, both
   vertically centred; on phones (420-860px) the pill is smaller. Below 420px the pill takes its own line above the title
   and both are centred on the dialog: the header keeps 64px on BOTH sides, so the title can never run under the fixed round
   close (iOS safe-area insets included). A very long single word in the title wraps instead of running under the pill. */
@media (min-width:420px) {
	.hnl-ppb-lbx-vhead { flex-direction:row; align-items:center; justify-content:space-between; gap:16px; }
	.hnl-ppb-lbx-vhead .hnl-ppb-lbx-vtitle { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
	.hnl-ppb-lbx-vhead .hnl-ppb-lbx-back { order:2; flex:0 0 auto; }
}
@media (min-width:420px) and (max-width:860px) {
	.hnl-ppb-lbx-vhead { gap:10px; }
	.hnl-ppb-lbx-vhead .hnl-ppb-lbx-back { min-height:30px; padding:0 11px; gap:4px; font-size:12px; }
}
@media (max-width:419.98px) {
	.hnl-ppb-lbx-vhead { align-items:center; gap:8px; padding-left:64px; padding-right:64px; text-align:center; }
	.hnl-ppb-lbx-vhead .hnl-ppb-lbx-back { align-self:center; min-height:30px; padding:0 11px; gap:4px; font-size:12px; }
	.hnl-ppb-lbx-vhead .hnl-ppb-lbx-vtitle { align-self:stretch; text-align:center; overflow-wrap:anywhere; }
}

/* ---- 0.25.74 UX-004: the zoom (guide-image view) in the Bulk Herbs style (owner-agreed 2026-11-09) ----
   Still a view inside this one dialog (focus trap, Escape and opener focus unchanged), drawn as Bulk Herbs' full-screen
   zoom: a dark, blurred stage; the image up to min(96vw, 1400px) wide and 94vh tall, rounded with a soft shadow; one round
   × at the top right of the zoom frame (min(96vw, 1400px) wide, its top level with the image's), exactly where Bulk Herbs puts
   its close: on the dark backdrop beside a height-limited image, on the image corner when the image fills the width. No header, footer or dialog close in this view. Bulk Herbs' values:
   backdrop, radii, shadows, × and the 180/220ms fade-and-grow (none when the reader asks for reduced motion). Unlike
   Bulk Herbs, the image is never stretched past its own file size, and its box is the picture itself, so the corners and
   shadow follow the picture. Phone (<=860px): Bulk Herbs' phone values. */
.hnl-ppb-lightbox-overlay.hnl-ppb-lbx-zoom-overlay {
	background:radial-gradient(circle at center, rgba(20,20,20,0.18) 0%, rgba(10,10,10,0.72) 45%, rgba(0,0,0,0.88) 100%);
	-webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); animation:hnl-ppb-zoom-fade 180ms ease-out; }
.hnl-ppb-lightbox-modal[data-view="guide-image"] { position:relative; display:flex; align-items:center; justify-content:center;
	width:min(96vw, 1400px); max-width:none; max-height:94vh; padding:0; background:transparent; border-radius:0;
	box-shadow:none; overflow:visible; }
.hnl-ppb-lbx-zoom { display:flex; align-items:center; justify-content:center; width:100%; min-height:0; }
.hnl-ppb-lbx-zoom-frame { position:relative; display:inline-block; margin:0; padding:0; line-height:0;
	animation:hnl-ppb-zoom-in 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.hnl-ppb-lbx-zoom-img { display:block; width:auto; height:auto; max-width:min(96vw, 1400px); max-height:94vh;
	object-fit:contain; border-radius:18px; background:transparent;
	box-shadow:0 18px 50px rgba(0,0,0,0.28), 0 2px 10px rgba(0,0,0,0.16); }
.hnl-ppb-lbx-zoom-x { position:absolute; top:14px; right:14px; margin:0; padding:10px 12px; min-width:44px; min-height:44px;
	border:1px solid rgba(255,255,255,0.22); border-radius:999px; background:rgba(22,22,22,0.48); color:#FFFFFF;
	font:inherit; font-size:24px; line-height:1; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,0.24);
	-webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
	transition:background 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
.hnl-ppb-lbx-zoom-x:hover { background:rgba(22,22,22,0.66); border-color:rgba(255,255,255,0.34); transform:scale(1.04); }
.hnl-ppb-lbx-zoom-x:focus-visible { outline:2px solid rgba(255,255,255,0.55); outline-offset:3px; }
@keyframes hnl-ppb-zoom-fade { from { opacity:0; } to { opacity:1; } }
@keyframes hnl-ppb-zoom-in { from { opacity:0; transform:scale(0.965); } to { opacity:1; transform:scale(1); } }
@media (max-width:860px) {
	.hnl-ppb-lightbox-modal[data-view="guide-image"] { display:flex; width:calc(100vw - 20px); max-width:none;
		max-height:100dvh; overflow:visible; }
	.hnl-ppb-lbx-zoom-img { max-width:calc(100vw - 20px); max-height:calc(100dvh - 20px); border-radius:14px; }
	.hnl-ppb-lbx-zoom-x { top:10px; right:10px; font-size:22px; padding:9px 11px; }
}
@media (prefers-reduced-motion:reduce) {
	.hnl-ppb-lightbox-overlay.hnl-ppb-lbx-zoom-overlay, .hnl-ppb-lbx-zoom-frame { animation:none; }
	.hnl-ppb-lbx-zoom-x, .hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero-img { transition:none; }
	.hnl-ppb-lbx-zoom-x:hover { transform:none; }
	.hnl-ppb-lightbox-modal[data-view="guide"] .ingredacore-herb-guide .ingredacore-hg-hero-btn:hover .ingredacore-hg-hero-img { transform:none; }
}
