/* Phone-first choice "pdp": the product page's first screen on a phone (15 Nov 2026). Loaded by inc/v2/v2-ph-pdp.php on
   product pages only while a look is chosen (body.chvp-pdp + chvp-pdp-a | -b | -c). Every rule sits inside a phone media
   query, so a computer never reads one of them (the one line above the query only keeps the new <picture> out of the layout).
   a "Buy first" · b "Tabs stay" · c "App sheet". Behaviour: assets/v4/v2-ph-pdp.js.

   How the first screen is fitted. The picture takes what the page leaves. Each look adds up what stands on the first
   screen besides the picture (the parts it has, found with :has()) and takes that from the height of the screen:
     --ph-fit  the picture's height when the whole buy box, down to its own Add to cart, is on the first screen;
     --ph-bar  its height when the buy bar holds the bottom slot and the box shows down to the amounts.
   The look uses --ph-fit where that leaves a real picture (--ph-min), else --ph-bar. The same numbers set the parts' own
   heights and gaps below, so the sum and the page cannot drift apart. The script then measures once and corrects the
   last px (a price line that wraps, a notice).

   1. shared: picture, pen, vial · 2. the buy box closed up · 3. a · 4. b · 5. a + b on vial pages: the vial beside its name
   6. c · 7. the buy bar of a and c */

.chvp-pic{display:contents}

@media (max-width:899.98px){

/* ============================================================ 1. shared by the three looks */
body.chvp-pdp .c3-root.p3-page{
  --ph-vh:var(--c4vh,100svh);                  /* the height the page opened with (pinned on touch screens, z9-phone-bar.php) */
  --ph-top:88px;                               /* top strip 28 + header 60 */
  --ph-safe:env(safe-area-inset-bottom,0px);
  --ph-T:45px;--ph-L:0px;--ph-F:0px;--ph-A:0px;--ph-K:0px; /* name · lab card · Vial / Pen · amounts · pack rows, each with its gap */
  --ph-opts:calc(var(--ph-L) + var(--ph-F) + var(--ph-A));
  --ph-lap:0px;                                /* how far the buy box laps over the picture (c) */
  --ph-P:var(--ph-pic-js,var(--ph-pic,240px)); /* the picture's height: the script's measured value, else the sum */
  --ph-E:calc(var(--ph-P) - var(--ph-lap));    /* the part of the picture that is in view */
  --ph-vk:1.45;--ph-vt:-.1745;--ph-vd:6px;     /* a vial's file is 1.45 frames high and starts .1745 above it: cap to base fills 87 % */
  --ph-vw:clamp(112px,34vw,132px);             /* the vial's frame when it stands beside its name (5) */
  --ph-penw:calc(100vw - 56px)}
body.chvp-pdp .c3-root.p3-page:has(#p3-form .chvc:not([hidden])){--ph-L:62px}
body.chvp-pdp .c3-root.p3-page:has(#p3-form .p3-fmtc){--ph-F:54px}
body.chvp-pdp .c3-root.p3-page:has(#p3-form .p3-amts){--ph-A:52px}
body.chvp-pdp .c3-root.p3-page:has(#chv2-pack:not([hidden])){--ph-K:122px}

/* the picture: its height follows the page */
body.chvp-pdp #p3-stage{aspect-ratio:auto;height:var(--ph-P)}
/* a pen lies flatter, so its name reads and it fills a low, wide frame. The file holds the pen at 43 degrees; turned by
   25 it is 1.217 of the file's height wide and .545 high. */
body.chvp-pdp #p3-stage .p3-gal__img--pen{top:calc(var(--ph-E) * .525);left:50%;width:auto;
  height:min(calc(var(--ph-penw) / 1.217),calc((var(--ph-E) - 30px) / .545));translate:-50% -50%;rotate:25deg;transform-origin:50% 50%}
/* a vial: the transparent cut-out (phone source, chvp_pdp_cut_sources()), whole, standing on the frame's floor in a soft
   pool of light; the start of its reflection shows under it */
body.chvp-pdp #p3-stage:has(.chvp-cut){background:radial-gradient(60% 15% at 50% calc(var(--ph-E) - 9px),rgba(255,255,255,.2),rgba(255,255,255,0) 100%),radial-gradient(64% 62% at 50% 42%,rgba(255,255,255,.05),rgba(255,255,255,0) 100%),#000}
body.chvp-pdp #p3-stage .p3-gal__img.chvp-cut{left:50%;right:auto;bottom:auto;top:calc(var(--ph-E) * var(--ph-vt) - var(--ph-vd));width:auto;height:calc(var(--ph-E) * var(--ph-vk));
  object-fit:contain;object-position:50% 50%;translate:-50% 0;scale:none;-webkit-mask-image:none;mask-image:none}
body.chvp-pdp #p3-stage .p3-gal__img--spray.chvp-cut{top:calc(var(--ph-E) * -.12);height:calc(var(--ph-E) * 1.16)}

/* ============================================================ 2. the buy box, closed up (b sets its own where it differs) */
body.chvp-pdp #p3-buy .p3-buy__notices:empty{display:none}
body.chvp-pdp #p3-form .chvc{margin-top:10px}
body.chvp-pdp #p3-form .p3-fmtc{height:44px;margin-top:10px}
body.chvp-pdp #p3-form .p3-amts{margin-top:8px}
body.chvp-pdp #p3-form .p3-amt{height:44px}
body.chvp-pdp #p3-form .chv2-pack{gap:6px;margin-top:12px}
body.chvp-pdp #p3-form .chv2-pack__o{min-height:52px;padding-top:8px;padding-bottom:8px}
body.chvp-pdp #p3-form .p3-qty{margin-top:12px}
/* one white shape in the buy box, the button that buys: the chosen format is quiet glass (all three looks) */
body.chvp-pdp #p3-form .p3-fmtc{background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
body.chvp-pdp #p3-form .p3-fmtc__ind{background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.13));box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),inset 0 1px 0 rgba(255,255,255,.22)}
body.chvp-pdp #p3-form .p3-fmtc__c{mix-blend-mode:normal;color:#b3b4bb}
body.chvp-pdp #p3-form .p3-fmtc__c.is-on{color:#fff}
/* the path sits in the picture's top-left corner mark (a, b); the page's own name is right below, so it is not said twice */
body.chvp-pdp-a .p3-page>.p3-wrap .p3-pdp,body.chvp-pdp-b .p3-page>.p3-wrap .p3-pdp{gap:8px;padding-top:8px}
body.chvp-pdp-a .p3-page>.p3-wrap .p3-crumb,body.chvp-pdp-b .p3-page>.p3-wrap .p3-crumb{position:absolute;z-index:4;left:calc(var(--gut,16px) + 24px);top:19px;padding:0;font-size:13px;line-height:20px;pointer-events:none}
body.chvp-pdp-a .p3-page>.p3-wrap .p3-crumb ol,body.chvp-pdp-b .p3-page>.p3-wrap .p3-crumb ol{flex-wrap:nowrap;gap:8px}
body.chvp-pdp-a .p3-page>.p3-wrap .p3-crumb li,body.chvp-pdp-b .p3-page>.p3-wrap .p3-crumb li{gap:8px}
body.chvp-pdp-a .p3-page>.p3-wrap .p3-crumb a,body.chvp-pdp-b .p3-page>.p3-wrap .p3-crumb a{pointer-events:auto;color:#cfd0d4}
body.chvp-pdp-a .p3-page>.p3-wrap .p3-crumb li:last-child,body.chvp-pdp-b .p3-page>.p3-wrap .p3-crumb li:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ============================================================ 3. a  "Buy first" */
/* No tab bar on product pages (a, c): the bottom slot is the page's own. Everything that reads the tab bar's height gets 0. */
body.chvp-pdp-a .cl3-pb,body.chvp-pdp-c .cl3-pb{display:none}
body.chvp-pdp-a,body.chvp-pdp-c{--cl3-pb:env(safe-area-inset-bottom,0px)}
html:has(> body.chvp-pdp-a),html:has(> body.chvp-pdp-c){scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))} /* the bar's lane: a focused choice never scrolls the page by itself */
body.chvp-pdp.cl3-pb-on:is(.chvp-pdp-a,.chvp-pdp-c):has(.c3-root .p3-pbar) :is(.cl-wa,.cl-toast){bottom:calc(84px + env(safe-area-inset-bottom,0px))} /* 12 px above the buy bar */

body.chvp-pdp-a .c3-root.p3-page{
  --ph-head:calc(var(--ph-top) + 8px + 8px + 14px + 24px + var(--ph-T) + 6px + 34px); /* gaps, box edge, area row, name, price */
  --ph-fit:calc(var(--ph-vh) - var(--ph-head) - var(--ph-opts) - var(--ph-K) - 76px - var(--ph-safe)); /* 12 + Add 52 + 12 */
  --ph-bar:calc(var(--ph-vh) - var(--ph-head) - var(--ph-opts) - 84px - var(--ph-safe));               /* 12 + bar 64 + 8 */
  --ph-min:180px;
  --ph-pic:max(min(var(--ph-fit),340px),clamp(0px,calc((var(--ph-min) - var(--ph-fit)) * 999),clamp(180px,var(--ph-bar),300px)))}
body.chvp-pdp-a .c3-root.p3-page:has(.p3-buy__h--m){--ph-T:38px}
body.chvp-pdp-a .c3-root.p3-page:has(.p3-buy__h--l){--ph-T:58px}
body.chvp-pdp-a #p3-stage .p3-gal__img--pen{height:min(calc(var(--ph-penw) / 1.217),calc((var(--ph-E) - 42px) / .545))} /* critic 15 Nov: on short frames (390x664) the pen's ends keep clear of the corner marks */

body.chvp-pdp-a .p3-page>.p3-wrap .p3-buy{position:relative;padding:14px 16px 20px}
body.chvp-pdp-a.chv2s3 .c3-root #p3-buy .chv2-chip{display:flex;justify-content:flex-start;width:-webkit-fit-content;width:fit-content;height:16px;margin:0 0 8px;line-height:16px}
body.chvp-pdp-a #p3-form .p3-price__s{position:absolute;right:16px;top:14px;margin:0;font-size:13px;line-height:16px}
body.chvp-pdp-a #p3-title{margin:0 0 6px;text-align:left;font-size:min(13cqi,44px);line-height:1;letter-spacing:-.045em}
body.chvp-pdp-a #p3-title.p3-buy__h--m{font-size:min(10.6cqi,36px)}
body.chvp-pdp-a #p3-title.p3-buy__h--l{font-size:min(8.2cqi,28px);line-height:1.02}
body.chvp-pdp-a #p3-form .p3-price{min-height:34px;align-items:baseline;gap:4px 10px}
body.chvp-pdp-a #p3-form .p3-price__v{font-size:32px;line-height:34px}
body.chvp-pdp-a #p3-form .p3-price__u{font-size:15px}


/* ============================================================ 4. b  "Tabs stay" */
/* Today's look, closed up; the Add row stands above the pack rows (moved by a few lines printed after the form, phones
   only: chvp_pdp_rewrite()), so the white button is on the first screen above the tabs wherever the page allows.
   Where the screen is tall enough the pack rows under it show too (--ph-all), so "2 pens + 1 FREE" explains the button's
   sum on the same screen; on shorter screens the picture keeps its size and the button alone is on the first screen. */
body.chvp-pdp-b .c3-root.p3-page{
  --ph-T:47px;
  --ph-head:calc(var(--ph-top) + 8px + 8px + 12px + 18px + var(--ph-T) + 6px + 34px);
  --ph-fit:calc(var(--ph-vh) - var(--ph-head) - var(--ph-opts) - 70px - var(--cl3-pb,74px)); /* 10 + Add 52 + 8, then the tabs */
  --ph-all:calc(var(--ph-fit) - var(--ph-K));
  --ph-min:180px;
  --ph-pic:max(min(var(--ph-all),320px),clamp(0px,calc((var(--ph-min) - var(--ph-all)) * 999),clamp(130px,var(--ph-fit),320px)))} /* 130: a whole Add row above the tabs at 390x664 (critic, 15 Nov) */
body.chvp-pdp-b .c3-root.p3-page:has(#p3-form .chvc:not([hidden])){--ph-L:60px}
body.chvp-pdp-b .c3-root.p3-page:has(#p3-form .p3-fmtc){--ph-F:52px}
body.chvp-pdp-b .c3-root.p3-page:has(.p3-buy__h--m){--ph-T:40px}
body.chvp-pdp-b .c3-root.p3-page:has(.p3-buy__h--l){--ph-T:60px}
body.chvp-pdp-b .p3-page>.p3-wrap .p3-buy{padding:12px 16px 20px}
body.chvp-pdp-b.chv2s3 .c3-root #p3-buy .chv2-chip{margin-bottom:6px}
body.chvp-pdp-b #p3-title{margin-bottom:6px;font-size:min(13.6cqi,46px);line-height:1;letter-spacing:-.045em}
body.chvp-pdp-b #p3-title.p3-buy__h--m{font-size:min(11cqi,38px)}
body.chvp-pdp-b #p3-title.p3-buy__h--l{font-size:min(8.6cqi,29px);line-height:1.02}
body.chvp-pdp-b #p3-form .p3-price{min-height:34px}
body.chvp-pdp-b #p3-form .p3-price__v{font-size:32px;line-height:34px}
body.chvp-pdp-b #p3-form .chvc,body.chvp-pdp-b #p3-form .p3-fmtc{margin-top:8px}
body.chvp-pdp-b #p3-form .p3-qty{margin-top:10px}

/* ============================================================ 5. a + b on vial pages: the vial beside its name */
/* A tall thing gets a tall place. The vial stands at the left of the buy box, the research area, the name and the price
   beside it, so the whole buy box fits a short screen. The picture keeps its own frame, zoom and place in the page; it
   is only drawn over the buy box's first lines, which keep that room free with a float (#p3-buy::before). */
body.chvp-pdp-a .c3-root.p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut),
body.chvp-pdp-b .c3-root.p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut){--ph-vk:1.43;--ph-vt:-.25;--ph-vd:0px}
body.chvp-pdp-a .c3-root.p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut){
  --ph-head:calc(var(--ph-top) + 26px + 8px + 14px);  /* path row, gap, box edge; the name and price stand beside the picture */
  --ph-min:176px;
  --ph-pic:max(min(var(--ph-fit),290px),clamp(0px,calc((var(--ph-min) - var(--ph-fit)) * 999),clamp(176px,var(--ph-bar),290px)))}
body.chvp-pdp-b .c3-root.p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut){
  --ph-head:calc(var(--ph-top) + 26px + 8px + 12px);
  --ph-min:176px;
  --ph-pic:max(min(var(--ph-all),290px),clamp(0px,calc((var(--ph-min) - var(--ph-all)) * 999),clamp(170px,var(--ph-fit),290px)))}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut)>.p3-wrap .p3-crumb{position:static;padding:6px 2px 0;pointer-events:auto}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut)>.p3-wrap .p3-pdp{position:relative;gap:0}
body.chvp-pdp-a .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-gal{position:absolute;z-index:3;left:16px;top:22px;width:var(--ph-vw)}
body.chvp-pdp-b .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-gal{position:absolute;z-index:3;left:16px;top:20px;width:var(--ph-vw)}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-stage{border-radius:16px;background:radial-gradient(72% 13% at 50% calc(var(--ph-E) - 8px),rgba(255,255,255,.22),rgba(255,255,255,0) 100%),linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,.28))}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-stage .p3-tick{display:none}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-gal .p3-gal__nav .p3-icon-btn:not(:focus-visible){opacity:0;pointer-events:none} /* the whole picture opens the zoom */
/* the box's first lines run beside the vial, what follows starts under it. 10 px under the float: the gap to what follows
   (a cleared box loses its own top margin). */
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut)>.p3-wrap .p3-buy::before{content:"";float:left;width:var(--ph-vw);height:var(--ph-P);margin:0 14px 10px 0}
body.chvp-pdp-b .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut)>.p3-wrap .p3-buy::before{margin-bottom:8px}
body:is(.chvp-pdp-a,.chvp-pdp-b).chv2s3 .c3-root.p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-buy .chv2-chip{display:flex;justify-content:flex-start;width:-webkit-fit-content;width:fit-content;height:16px;line-height:16px;
  margin:max(4px,calc((var(--ph-P) - 138px) / 2)) 0 8px} /* the three lines sit about in the middle of the vial's height */
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-title{margin:0 0 6px;text-align:left;line-height:1;letter-spacing:-.045em;font-size:min(32px,calc((100cqi - var(--ph-vw) - 14px) / 5.3))}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-title.p3-buy__h--m{font-size:min(26px,calc((100cqi - var(--ph-vw) - 14px) / 6))}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-form .p3-price{min-height:34px;align-items:baseline;gap:2px 8px}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-form .p3-price__v{font-size:30px;line-height:34px}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-form .p3-price__u{font-size:15px}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-form .p3-price__s{position:static;font-size:13px;line-height:19px}
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-form>.p3-price~*,
body:is(.chvp-pdp-a,.chvp-pdp-b) .p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-form~*{clear:left}

/* ============================================================ 6. c  "App sheet" */
body.chvp-pdp-c .c3-root.p3-page{
  --ph-T:44px;--ph-lap:22px;--ph-penw:calc(100vw - 36px);
  --ph-head:calc(var(--ph-top) - var(--ph-lap) + 20px + var(--ph-T) + 26px);  /* sheet edge, name and price row, area row */
  --ph-fit:calc(var(--ph-vh) - var(--ph-head) - var(--ph-opts) - var(--ph-K) - 76px - var(--ph-safe));
  --ph-bar:calc(var(--ph-vh) - var(--ph-head) - var(--ph-opts) - 84px - var(--ph-safe));               /* 12 + dock 72 */
  --ph-min:220px;
  --ph-pic:max(min(var(--ph-fit),min(96vw,380px)),clamp(0px,calc((var(--ph-min) - var(--ph-fit)) * 999),clamp(200px,var(--ph-bar),336px)))}
body.chvp-pdp-c .c3-root.p3-page:has(#p3-form .chvc:not([hidden])){--ph-L:66px}
body.chvp-pdp-c .c3-root.p3-page:has(.p3-buy__h--l){--ph-T:56px}

body.chvp-pdp-c .p3-page>.p3-wrap{padding:0}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-pdp{gap:0;padding-top:0}
/* the picture: edge to edge, no frame, no corner marks; the light fades into the page */
body.chvp-pdp-c #p3-stage{border-radius:0;background:radial-gradient(60% 34% at 50% 74%,rgba(255,255,255,.12),rgba(255,255,255,0) 100%),radial-gradient(90% 70% at 50% 40%,rgba(255,255,255,.05),rgba(255,255,255,0) 100%),#000}
body.chvp-pdp-c #p3-stage:has(.chvp-cut){background:radial-gradient(54% 13% at 50% calc(var(--ph-E) - 7px),rgba(255,255,255,.2),rgba(255,255,255,0) 100%),radial-gradient(90% 70% at 50% 40%,rgba(255,255,255,.055),rgba(255,255,255,0) 100%),#000}
body.chvp-pdp-c #p3-stage .p3-tick{display:none}
/* two glass circles on the picture: back (the path's own link to the product's list) and zoom, in the two corners a lying pen leaves free */
body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb{position:absolute;z-index:4;left:18px;top:12px;padding:0}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb ol{display:block}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb li{display:none}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb li:nth-last-child(2){display:block}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb li::before{content:none}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb a,
body.chvp-pdp-c #p3-gal .p3-gal__nav .p3-icon-btn{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(24,24,28,.72);color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),inset 0 1px 0 rgba(255,255,255,.16),0 6px 16px -8px rgba(0,0,0,.8)}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb a,
  body.chvp-pdp-c #p3-gal .p3-gal__nav .p3-icon-btn{background:rgba(40,41,47,.46);-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%)}
}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb a{font-size:0;line-height:0}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb a::after{content:"";width:20px;height:20px;margin-right:2px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5 8 12l6.5 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5 8 12l6.5 6.5'/%3E%3C/svg%3E") center/contain no-repeat}
body.chvp-pdp-c #p3-gal .p3-gal__nav{right:18px;bottom:calc(var(--ph-lap) + 12px)}

/* the sheet: laps 22 px over the picture, round top corners, a lit top edge, and it dissolves into the page below */
body.chvp-pdp-c .p3-page>.p3-wrap .p3-buy{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:start;
  margin-top:calc(var(--ph-lap) * -1);padding:20px 20px 22px;border-radius:28px 28px 0 0;
  background:linear-gradient(180deg,#1a1a1e 0,#111113 180px,#060607 520px,#000 100%);box-shadow:0 -22px 44px -12px rgba(0,0,0,.72)}
body.chvp-pdp-c .p3-page>.p3-wrap .p3-buy::before{content:"";position:absolute;inset:0 0 auto;height:72px;border:1px solid rgba(255,255,255,.2);border-bottom:0;border-radius:28px 28px 0 0;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,#000,rgba(0,0,0,0));mask-image:linear-gradient(180deg,#000,rgba(0,0,0,0))}
body.chvp-pdp-c #p3-buy>*,body.chvp-pdp-c #p3-form>*{grid-column:1/-1;min-width:0}
body.chvp-pdp-c #p3-form,body.chvp-pdp-c #p3-form>.p3-price{display:contents}
/* row 1 and 2: the name on the left, the price with its unit on the right; row 3: research area and stock */
body.chvp-pdp-c #p3-buy>#p3-title{grid-column:1;grid-row:1/3;align-self:center;margin:0;text-align:left;font-size:min(9.8cqi,36px);line-height:1.04;letter-spacing:-.04em}
body.chvp-pdp-c #p3-buy>#p3-title.p3-buy__h--m{font-size:min(7.8cqi,29px)}
body.chvp-pdp-c #p3-buy>#p3-title.p3-buy__h--l{font-size:min(6.4cqi,24px);line-height:1.08}
body.chvp-pdp-c #p3-form .p3-price__v{grid-column:2;grid-row:1;justify-self:end;font-size:26px;line-height:28px;letter-spacing:-.03em}
body.chvp-pdp-c #p3-form .p3-price__u{grid-column:2;grid-row:2;justify-self:end;margin:0;font-size:13px;line-height:16px;white-space:nowrap}
body.chvp-pdp-c.chv2s3 .c3-root #p3-buy>.chv2-chip{grid-column:1;grid-row:3;justify-self:start;display:flex;justify-content:flex-start;width:-webkit-fit-content;width:fit-content;height:16px;margin:10px 0 0;line-height:16px}
body.chvp-pdp-c #p3-form .p3-price__s{grid-column:2;grid-row:3;justify-self:end;margin:10px 0 0;font-size:13px;line-height:16px}
body.chvp-pdp-c #p3-form .chvc{margin-top:14px}

/* ============================================================ 7. the buy bar of a and c (markup: chvp_pdp_bar_html()) */
/* Two tap areas. Left: the chosen pack in the pack row's own words, the amount and the sum (tap = to the pack rows).
   Right: the white button. First frame: CSS alone decides (the bar is moved out of the screen while the whole buy box
   fits); from then on v2-ph-pdp.js shows it while the page's own Add to cart is not on screen (class chvp-on). */
body.chvp-pdp #p3-pbar.chvp-bar{display:block;left:0;right:0;bottom:0;z-index:46;max-width:none;margin:0;border:0;visibility:visible;pointer-events:none;
  --ph-off:clamp(0px,calc((var(--ph-fit) - var(--ph-min) + .5px) * 999),220px);transform:translateY(var(--ph-off));transition:none}
body.chvp-pdp #p3-pbar.chvp-bar.chvp-js{opacity:0;visibility:hidden;transform:translateY(14px)}
body.chvp-pdp #p3-pbar.chvp-bar.chvp-js.chvp-on{opacity:1;visibility:visible;transform:none}
html.cl3-pb-kb body.chvp-pdp #p3-pbar.chvp-bar{visibility:hidden}
body.chvp-pdp .chvp-bar__in{position:relative;display:flex;align-items:center;gap:8px;pointer-events:auto;color:#fff;
  font-family:"Neue Montreal","NM Fallback",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 1,"lnum" 1}
body.chvp-pdp .chvp-bar__info{flex:1 1 auto;min-width:0;align-self:stretch;display:grid;align-content:center;justify-items:start;gap:3px;margin:0;padding:0 4px 0 18px;border:0;border-radius:26px;background:none;color:inherit;
  font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
body.chvp-pdp .chvp-bar__n{display:flex;align-items:center;gap:7px;max-width:100%;overflow:hidden;font-size:15px;font-weight:500;line-height:18px;letter-spacing:-.01em;white-space:nowrap}
body.chvp-pdp .chvp-bar__n .chv2-pack__free{flex:none;padding:3px 8px;border-radius:999px;background:#34C28A;color:#04130c;font-size:12px;font-weight:600;letter-spacing:.04em;line-height:1;white-space:nowrap}
body.chvp-pdp .chvp-bar__p{display:flex;align-items:baseline;gap:6px;max-width:100%;overflow:hidden;font-size:13px;line-height:16px;color:#b3b4bb;white-space:nowrap}
body.chvp-pdp .chvp-bar__amt::after{content:"\00b7";margin-left:6px}
body.chvp-pdp .chvp-bar__was{color:#8d8e94;text-decoration:line-through}
body.chvp-pdp .chvp-bar__was:empty{display:none}
body.chvp-pdp .chvp-bar__sum{color:#fff;font-weight:500}
body.chvp-pdp .chvp-bar.is-pack .chv2-pack__x,body.chvp-pdp .chvp-bar.is-tight .chvp-bar__was,body.chvp-pdp .chvp-bar.is-tighter .chvp-bar__amt{display:none}
body.chvp-pdp .c3-root .p3-pbar .chvp-bar__add{flex:none;justify-content:center;min-width:0;height:48px;padding:0 22px;border-radius:24px;background:#fff;color:#0e0e10;box-shadow:none}
body.chvp-pdp .c3-root .p3-pbar .chvp-bar__add:disabled{background:rgba(255,255,255,.14);color:#a6a7ad}
body.chvp-pdp .chvp-bar__info:focus-visible,body.chvp-pdp .c3-root .p3-pbar .chvp-bar__add:focus-visible{outline:2px solid #fff;outline-offset:2px}
body.chvp-pdp .chvp-bar__info:active .chvp-bar__n,body.chvp-pdp .chvp-bar__info:active .chvp-bar__p{opacity:.7}

/* a: a floating glass bar in the tab bar's own slot and shape, on a floor that fades the page to black under it */
body.chvp-pdp-a #p3-pbar.chvp-bar{padding:20px max(12px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
  background:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,0) 8px,rgba(0,0,0,.9) 24px,#000 40px)}
body.chvp-pdp-a .chvp-bar__in{box-sizing:border-box;max-width:480px;height:64px;margin-inline:auto;padding:0 8px 0 0;border-radius:32px;background:linear-gradient(180deg,#2e3036,#141519 52%,#0c0c0f);box-shadow:0 10px 26px -12px rgba(0,0,0,.9)}
body.chvp-pdp-a .chvp-bar__in::after{content:"";position:absolute;inset:0;box-sizing:border-box;padding:1px;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.46),rgba(255,255,255,.12) 40%,rgba(255,255,255,.05) 72%,rgba(255,255,255,.17));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}

/* c: a docked row, the sheet's own foot */
body.chvp-pdp-c #p3-pbar.chvp-bar{padding:10px max(20px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));pointer-events:auto;
  background:#0d0d0f;box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 -18px 30px -6px rgba(0,0,0,.7)}
body.chvp-pdp-c .chvp-bar__in{height:52px;gap:12px}
body.chvp-pdp-c .chvp-bar__info{padding:0;border-radius:14px}
body.chvp-pdp-c .c3-root .p3-pbar .chvp-bar__add{height:52px;padding:0 26px;border-radius:26px}
}

/* narrow phones: the research area keeps to one line beside the vial; the bar keeps the crossed sum beside the amount */
@media (max-width:374.98px){
  body:is(.chvp-pdp-a,.chvp-pdp-b).chv2s3 .c3-root.p3-page:has(#p3-stage .p3-gal__img--vial.chvp-cut) #p3-buy .chv2-chip{gap:7px;letter-spacing:.05em}
  body.chvp-pdp .chvp-bar__p{gap:5px;font-size:12px}
  body.chvp-pdp .chvp-bar__amt::after{margin-left:5px}
  body.chvp-pdp .chvp-bar__info{padding-left:16px}
  body.chvp-pdp-c .chvp-bar__info{padding-left:0}
  body.chvp-pdp .c3-root .p3-pbar .chvp-bar__add{padding:0 16px}
  body.chvp-pdp-c .c3-root .p3-pbar .chvp-bar__add{padding:0 18px}
}
@media (max-width:899.98px) and (prefers-reduced-motion:no-preference){
  body.chvp-pdp #p3-pbar.chvp-bar.chvp-js{transition:opacity .16s linear,transform .16s cubic-bezier(.4,0,1,1),visibility 0s linear .16s}
  body.chvp-pdp #p3-pbar.chvp-bar.chvp-js.chvp-on{transition:opacity .2s linear,transform .28s cubic-bezier(.16,1,.3,1),visibility 0s}
  body.chvp-pdp #p3-pbar.chvp-bar.chvp-js.chvp-now{transition:none}
  body.chvp-pdp .c3-root .p3-pbar .chvp-bar__add:active:not(:disabled){transform:scale(.96)}
}
@media (max-width:899.98px) and (prefers-reduced-transparency:reduce){
  body.chvp-pdp-c .p3-page>.p3-wrap .p3-crumb a,body.chvp-pdp-c #p3-gal .p3-gal__nav .p3-icon-btn{background:#1c1c20;-webkit-backdrop-filter:none;backdrop-filter:none}
}
