/* Chrysalis fix round 1, group fxb (Claude, 14 Nov 2026; PLAN 1.2): the home first screen's price card on a phone.
   Before: name, amount, price and the button in one line; "BPC-157 + TB-500" and "Melanotan II" printed on top of each other.
   Now, under 768 px: line 1 the name alone, line 2 "amount · price", the button on the right centred over both lines.
   The card keeps its height (96.5 px) and its place: the 8 px the second line needs come from the card's own padding.
   Markup untouched (template-parts/v2/hero.php). Base rules: v2-home.css, phone block. Every rule needs body.chvf1. */
@media (max-width:767.98px){
  .chvf1 .hx-tag{padding:12px 16px 12px 18px}
  /* three columns: amount | price | button. The name link spans the first two and both lines and hands them on to its
     own two parts (subgrid), so the price can stand right after the amount although it is not inside the link.
     The two lines have fixed heights (28 + 20 px): the card is 96.5 px high in every state, also with a line left empty. */
  .chvf1 .hx-tag__row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:28px 20px;align-items:center;gap:0;margin-top:6px}
  .chvf1 .c3-root.hx .hx-tag__name{grid-column:1/3;grid-row:1/3;display:grid;grid-template-columns:subgrid;grid-template-rows:subgrid;align-items:center;min-width:0;font-size:min(25px,calc(10.6vw - 14.7px));line-height:28px;pointer-events:none}
  /* the link is tapped on its words, not on the empty part of its box: each of the two lines is a 44 px high target */
  .chvf1 .hx-tag__name>span,.chvf1 .hx-tag__name>small{pointer-events:auto}
  .chvf1 .hx-tag__name>span{grid-column:1/3;grid-row:1;justify-self:start;max-width:100%;margin:-8px 0;padding:8px 0;overflow:hidden;text-overflow:ellipsis}
  .chvf1 .hx-tag__name>small{grid-column:1;grid-row:2;margin:-12px 0;padding:12px 0;line-height:20px}
  /* the dot between amount and price belongs to the price: a vial with no price today (sold out) shows no stray dot */
  .chvf1 .hx-tag__name>small::after{content:none}
  .chvf1 .hx-tag__price::before{content:"·";margin:0 .4em}
  .chvf1 .hx-tag__price{grid-column:2;grid-row:2;margin:0;min-width:0;line-height:20px;overflow:hidden;text-overflow:ellipsis}
  .chvf1 .hx-tag__form,.chvf1 .c3-root.hx .hx-view{grid-column:3;grid-row:1/3;margin-left:12px}
  .chvf1 .c3-root.hx .hx-add,.chvf1 .c3-root.hx .hx-view{height:44px;padding:0 20px;font-size:14px;font-weight:500;line-height:1}
}
/* under 360 px the theme hides the amount (v2-home.css): the price then stands alone, without the dot */
@media (max-width:359.98px){.chvf1 .hx-tag__price::before{content:none}}
/* browsers without subgrid (Chrome before 117, Sept 2023): the link hands its two parts straight to the card's grid */
@supports not (grid-template-columns:subgrid){
  @media (max-width:767.98px){
    .chvf1 .c3-root.hx .hx-tag__name{display:contents}
    .chvf1 .hx-tag.is-swap .hx-tag__name>span,.chvf1 .hx-tag.is-swap .hx-tag__name>small{animation:hx-swap .42s var(--hx-ease) both}
  }
  @media (max-width:767.98px) and (prefers-reduced-motion:reduce){
    .chvf1 .hx-tag.is-swap .hx-tag__name>span,.chvf1 .hx-tag.is-swap .hx-tag__name>small{animation:none}
  }
}
