/* Chrysalis v2: a more visible account (Claude, 14 Nov 2026). Loaded on every page while chva_on() (inc/v2/v2-acct2.php);
   every rule sits under body.chva-on or on a class only that file prints.
   What is personal is never in the page: html.chva-in (signed in), html.chva-ini + --chva-in (the initials), html.chva-dot
   (an order on its way) and html.chva-wait (signed in, answer not here yet) are set in the browser (v2-acct2.js).
   1. computer header: the account pill   2. phone bar: in inc/v2/v2-acct2.php (it needs the account's address)
   3. sign-in page: the four cards beside / above the form   4. home page: the account card   5. order received: the card */

/* ---------- 1. computer header: the account pill ----------
   One fixed width, so the row never moves when "Sign in" gives way to the initials: 106 px at full size, 96 px in the
   header's small size (900 to 1239 px). The icon and what follows it sit in the middle together.
   Below 900 px the control is hidden (chrome.css, up to 899 px); browser zoom can land between 899 and 900 px, where it shows as
   the old round icon: the word and the initials stay out of it there. */
.c3-root.hd3 .chva-pill__w,.c3-root.hd3 .chva-pill__in{display:none}
@media (min-width:900px){
  .c3-root.hd3 .hd3-icons .hd3-ib.chva-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:106px;padding:0 3px 0 0;border-radius:999px;
    font-size:14px;font-weight:500;line-height:1;letter-spacing:0;white-space:nowrap;text-decoration:none}
  .c3-root.hd3 .chva-pill svg{flex:none}
  .c3-root.hd3 .chva-pill > *{transition:opacity .18s var(--ease-out,ease-out)}
  .c3-root.hd3 .chva-pill__w{display:block}
  .c3-root.hd3 .chva-pill__in{display:none;letter-spacing:.06em}
  .c3-root.hd3 .chva-pill__in::after{content:var(--chva-in,"")}
  html.chva-in .c3-root.hd3 .chva-pill__w{display:none}
  html.chva-ini .c3-root.hd3 .chva-pill__in{display:block}
  html.chva-wait .c3-root.hd3 .chva-pill > *{opacity:0}
  /* a step brighter than the round icons beside it: it is the one of the three with a word */
  .c3-root.hd3[data-hd3-tone="dark"] .hd3-ib.chva-pill{border-color:rgba(255,255,255,.26);background:rgba(255,255,255,.09)}
  .c3-root.hd3[data-hd3-tone="light"] .hd3-ib.chva-pill{border-color:rgba(14,14,16,.3)}
  .c3-root.hd3 .hd3-ib.chva-pill[aria-current]{border-color:currentColor}
}
@media (min-width:900px) and (hover:hover){
  .c3-root.hd3[data-hd3-tone="dark"] .hd3-ib.chva-pill:hover{border-color:rgba(255,255,255,.44);background:rgba(255,255,255,.16)}
  .c3-root.hd3[data-hd3-tone="light"] .hd3-ib.chva-pill:hover{border-color:var(--ink,#0e0e10)}
}
@media (min-width:900px) and (max-width:1239.98px){
  .c3-root.hd3 .hd3-icons .hd3-ib.chva-pill{gap:7px;width:96px;font-size:13px}
}
/* The links' place. From 1440 px the header's own three columns keep them in the page centre, pill or no pill. Below that
   they sit midway between the logo and the right group, and on the homepage, until the Shop peptides button arrives, an
   offset holds them in the page centre: half the width difference of the two sides (stack/offer.css: 102 px, and 88 px in
   the small size). The pill makes the right group 62 px wider (56 px in the small size), so the offset grows by half of that.
   Where the button is not in the row at all (below 1024 px; with Help in the row below 1140 px; the shop's own pages, which
   never print it) the two sides were as good as equal before the pill, so the links sat in the page centre (from 1240 px:
   8 px beside it). There the links go back to that place by the same half: 28 px in the small size, 31 px at full size. */
@media (min-width:1240px) and (max-width:1439.98px){
  html:not(.no-js) body.chva-on .c3-root.hd3[data-hd3-cta="wait"] .hd3-bar .hd3-nav{transform:translateX(133px)}
}
@media (min-width:1024px) and (max-width:1239.98px){
  html:not(.no-js) body.chva-on .c3-root.hd3[data-hd3-cta="wait"] .hd3-bar .hd3-nav{transform:translateX(116px)}
}
@media (min-width:900px) and (max-width:1023.98px){
  body.chva-on .c3-root.hd3 .hd3-bar .hd3-nav,
  html:not(.no-js) body.chva-on .c3-root.hd3[data-hd3-cta] .hd3-bar .hd3-nav{transform:translateX(28px)}
}
@media (min-width:1024px) and (max-width:1139.98px){
  body.chva-on .c3-root.hd3:has(.hd3-dd) .hd3-bar .hd3-nav,
  html:not(.no-js) body.chva-on .c3-root.hd3:has(.hd3-dd)[data-hd3-cta] .hd3-bar .hd3-nav{transform:translateX(28px)}
}
@media (min-width:1024px) and (max-width:1239.98px){
  body.chva-on .c3-root.hd3:not(:has(.hd3-cta)) .hd3-bar .hd3-nav{transform:translateX(28px)}
}
@media (min-width:1240px) and (max-width:1439.98px){
  body.chva-on .c3-root.hd3:not(:has(.hd3-cta)) .hd3-bar .hd3-nav{transform:translateX(31px)}
}
@media (prefers-reduced-motion:reduce){.c3-root.hd3 .chva-pill > *{transition:none}}

/* ---------- 3. sign-in page: the four "In your account" cards ----------
   inc/v2/v2-acct2.php moves the block (section.chv2-si__why, now also .chva-why) into the form's own grid, before the card.
   Its looks stay those of assets/v4/v2-dark.css; only its place and size change here. */
.chva-on .cm-acct > .chva-why{margin:0}
@media (min-width:1100px){
  /* beside the form: the card keeps columns 4 to 9, the four cards take 10 to 12, one under the other */
  .chva-on .cm-acct > .chva-why{--col-lg:10 / span 3;grid-row:1;align-self:start}
  .chva-on .cm-acct > .chva-why ~ .cm-acct__card{grid-row:1}
  .chva-on .chva-why h2{margin:4px 0 14px}
  .chva-on .chva-why ul{grid-template-columns:minmax(0,1fr);gap:10px}
  /* the same cut of each picture at every width, ending between two lines of its text, not through one */
  .chva-on .chva-why span{height:auto;aspect-ratio:3.5 / 1}
  .chva-on .chva-why li:nth-child(2) span{aspect-ratio:3.1 / 1}
}
@media (min-width:900px) and (max-width:1099.98px){
  /* no room for a column: the row of four under the form, inside the page margins */
  .chva-on .cm-acct > .chva-why{--col-lg:1 / -1;order:2;margin-top:12px}
}
@media (max-width:899.98px){
  /* one compact row above the form: the picture's telling corner and the card's name */
  body.chva-on.chv2-si .chv2-si__top{padding-bottom:8px}
  body.chva-on.chv2-si .chv2-si__top + .chv2-gsi__note{margin-top:14px} /* the Google note keeps its gap under the intro line */
  .chva-on .cm-acct > .chva-why{margin:0 0 2px}
  .chva-on .chva-why h2{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .chva-on .chva-why ul{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .chva-on .chva-why li{padding:0 0 9px;border-radius:14px}
  .chva-on .chva-why li span,.chva-on .chva-why li:nth-child(3) span{display:block;height:50px}
  /* each picture is shown at its telling corner: the parcel, the vial, "2 + 1 free" and its +, the badge */
  .chva-on .chva-why img{width:230%;max-width:none;margin-left:-130%}
  .chva-on .chva-why li:nth-child(2) img{width:190%;margin:-7% 0 0 -92%}
  .chva-on .chva-why li:nth-child(3) img{width:280%;margin:0 0 0 -174%}
  .chva-on .chva-why li:nth-child(4) img{width:250%;margin:-2% 0 0 -150%}
  .chva-on .chva-why li:nth-child(4) span{-webkit-mask-image:linear-gradient(90deg,transparent 20%,#000 46%);mask-image:linear-gradient(90deg,transparent 20%,#000 46%)}
  .chva-on .chva-why b{margin:8px 5px 0;font-size:11.5px;line-height:1.2;letter-spacing:0;text-align:center}
  .chva-on .chva-why small{display:none}
}
/* if the block could not be moved it stays under the forms; then at least inside the page margins, not edge to edge */
@media (min-width:900px){
  .chva-on.chv2-si .cm-page > .woocommerce > .chv2-si__why{box-sizing:border-box;max-width:var(--wrap-max,1520px);margin-inline:auto;padding-inline:var(--side,48px)}
}

/* ---------- 4. home page: "Your account", the third card of the offers row ----------
   The row and its cards are assets/v3/home/offers.css (dark look: v2-home5.css). Three in a row from 1200 px; below that
   the two offers keep their row and this card takes the next one, the whole row wide; on a phone one under the other. */
.c3-root .chva-card__l{margin:24px 0 0;padding:0;list-style:none;border-top:1px solid var(--line);max-width:340px}
.c3-root .chva-card__l li{padding:9px 0;border-bottom:1px solid var(--line);font-size:var(--t-body);line-height:1.3}
.c3-root .chva-card__art{overflow:visible}
/* a soft pool of light behind the parcel, as under the vials: the box is dark and would sink into the card */
.c3-root .chva-card__art::before{content:"";position:absolute;left:50%;top:54%;width:150%;height:92%;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(255,255,255,.13),rgba(255,255,255,.05) 55%,rgba(255,255,255,0));pointer-events:none}
.c3-root .chva-card__box{position:absolute;left:-6%;bottom:10%;display:block;width:112%;max-width:none;height:auto;filter:brightness(1.35) contrast(1.04);transition:transform .55s var(--ease,ease)}
.c3-root .chva-card__coin{position:absolute;right:-3%;top:6%;display:block;width:50%;max-width:none;height:auto;filter:drop-shadow(0 10px 14px rgba(0,0,0,.55));transition:transform .55s var(--ease,ease)}
.c3-root .of-b__card:hover .chva-card__coin{transform:translateY(-7%) rotate(9deg)}
.c3-root .of-b__card:hover .chva-card__box{transform:translateY(-2%)}
/* the button's two words: a visitor reads the first, a signed-in customer the second */
.chva-u{display:none}
html.chva-in .chva-v{display:none}
html.chva-in .chva-u{display:inline}
html.chva-wait .chva-v{visibility:hidden}

@media (min-width:1200px){
  .c3-root.chva-of--3 .of-b__row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .c3-root.chva-of--3 .of-b__card{grid-template-columns:minmax(0,1fr) minmax(0,42%);column-gap:14px;padding:32px}
  .c3-root.chva-of--3 .of-b__t{font-size:clamp(26px,2.1vw,32px)}
  .c3-root.chva-of--3 .of-b__art--gift{scale:1.22;transform-origin:100% 56%}
  .c3-root.chva-of--3 .of-lad,.c3-root.chva-of--3 .chva-card__l{max-width:none}
}
@media (min-width:900px) and (max-width:1199.98px){
  .c3-root.chva-of--3 .chva-card{grid-column:1 / -1;grid-template-columns:minmax(0,1fr) minmax(0,220px);min-height:0}
  .c3-root.chva-of--3 .chva-card .chva-card__l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;max-width:560px;border-top:0}
  .c3-root.chva-of--3 .chva-card .chva-card__l li:nth-child(-n+2){border-top:1px solid var(--line)}
}
@media (min-width:600px) and (max-width:899.98px){
  .c3-root.chva-of--3 .chva-card{grid-column:1 / -1}
  .c3-root.chva-of--3 .chva-card .chva-card__art{justify-self:end;max-width:210px}
}
@media (max-width:899.98px){
  .c3-root .chva-card__l{margin-top:16px;max-width:none}
  .c3-root .chva-card__l li{padding:8px 0;font-size:15px}
  .c3-root .chva-card__art{align-self:start;aspect-ratio:1 / 1}
}
@media (prefers-reduced-motion:no-preference){
  html:not(.shot) .c3-root.of-b[data-inview] .chva-card{transition-delay:.24s,.24s,0s}
  html:not(.shot) .c3-root.of-b[data-inview] .chva-card__l li{opacity:0;transform:translateX(-6px);transition:opacity .5s var(--ease) calc(.45s + var(--i,0) * 90ms),transform .5s var(--ease) calc(.45s + var(--i,0) * 90ms)}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .chva-card__l li{opacity:1;transform:none}
  html:not(.shot) .c3-root.of-b[data-inview]:not(.is-in) .chva-card__coin{opacity:0;transform:translateY(14%) rotate(-14deg)}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .chva-card__coin{transition:transform .8s cubic-bezier(.3,1.25,.45,1) .6s,opacity .4s var(--ease) .6s}
  html:not(.shot) .c3-root.of-b[data-inview].is-in .of-b__card:hover .chva-card__coin{transition-delay:0s}
}
@media (prefers-reduced-motion:reduce){.c3-root .chva-card__box,.c3-root .chva-card__coin{transition:none}}

/* ---------- 5. order received: "Track this order in your account" (a guest only) ----------
   A kit info card (.k-infocard) like the two beside the order details; the button is the sign-in page's own Google button. */
.chva-on .chva-track{flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px 20px}
.chva-on .chva-track .k-ico{margin:0}
.chva-on .chva-track .k-infocard__t{flex:1 1 240px;margin:0}
.chva-on .chva-track a.chva-track__go{flex:0 0 auto;width:auto;min-width:280px}
.chva-on .chva-track a.chv2-gsi__btn{display:flex;align-items:center;justify-content:center;gap:12px;height:50px;padding:0 24px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px #747775;color:#1F1F1F;
  font-family:Roboto,"Helvetica Neue",Arial,sans-serif;font-size:15px;font-weight:500;letter-spacing:.01em;line-height:1;text-decoration:none;-webkit-tap-highlight-color:transparent}
.chva-on .chva-track a.chv2-gsi__btn span{color:#1F1F1F}
.chva-on .chva-track a.chv2-gsi__btn svg{flex:none;display:block;width:20px;height:20px}
@media (max-width:599.98px){
  .chva-on .chva-track a.chva-track__go{flex:1 1 100%;min-width:0}
}
