/* Button family: every pill button shares one set of sizes, one hover and one press. Prints after every page's own stylesheet.

   13 Nov 2026 (Alik: the label "flip" on hover was "not good"): the rolling label and the sliding arrow are gone. The label never
   moves. Hover: a white fill softens one step and the arrow moves 3 px. Press: one small, quick squeeze. buttons.js only keeps
   the press on touch screens.

   Sizes           height   sides   type                  arrow
     Large         56 px    30 px   14 px, 500, capitals  16 px, 10 px from the label     52 px and 28 px sides below 900 px
     Medium        48 px    24 px
     Small         44 px    18 px

   Kept as they are, on purpose:
     Place order (it is also the Tabby and Tamara button): only the press. Every rule here leaves #place_order out.
     Header button: Small, with sides that balance the arrow; its width is what the header's fit rules are measured on. Its hover
       is in nav.css.
     The homepage's first button (.hx-cta): its own glow and arrow, v2-home.css.
     Narrow-fit rules in each page's own stylesheet: more specific, so they still win where a label has to fit. */

:root{--bt-ease:cubic-bezier(.2,0,0,1);--bt-soft-fill:#e4e5e9}

/* ---- One type and one arrow: the plain .btn pages (cart, account, contact, wholesale, affiliate) join the rest. */
.btn:where(:not(#place_order)){gap:10px;line-height:1;-webkit-tap-highlight-color:transparent}
.c3-root .btn:where(:not(#place_order)),.s3 .s3-btn{line-height:1;-webkit-tap-highlight-color:transparent}
.btn--sm:where(:not(#place_order)){font-size:.875rem}
.btn:where(:not(#place_order)) svg{width:16px;height:16px;flex:none}
.btn:where(:not(#place_order)) .i{stroke-width:1.65}
.c3-root .hd3-btn,.c3-root .ld3-btn,.c3-root.h3 .h3-btn,.c3-root .p3-btn{-webkit-tap-highlight-color:transparent}

/* Header button: the same arrow gap at the same width (20 + 16 + 8 = 19 + 15 + 10). Its smaller step below 1024 px stays. */
@media (min-width:1024px){
  .c3-root.hd3 .hd3-icons .hd3-cta{gap:10px;padding:0 15px 0 19px}
}
.c3-root.hd3 .hd3-menu__cta{gap:10px}

/* Large on the product page: label and total sit at the ends, at the same sides as every other Large. */
@media (min-width:900px){
  .c3-root .p3-atc{padding:0 30px}
}
/* Large on phones. */
@media (max-width:899.98px){
  .btn--lg:where(:not(#place_order)),.c3-root .btn--lg:where(:not(#place_order)),.c3-root .hd3-btn--lg,.s3 .s3-btn--lg{height:52px;min-height:52px;padding:0 28px}
}

/* ---- Hover. No wipe, no sweep, nothing that moves the label. At rest and on touch screens the fill holds still (a tap must
   leave nothing behind); with a mouse a white fill softens one step, the same step on every button. */
.btn:where(:not(#place_order))::before{content:none}
.c3-root .btn--black:hover{background:var(--ink)}
.c3-root .btn--white:hover,.c3-root .hd3-btn--white:hover,.c3-root .ld3-btn--white:hover,.c3-root.h3 .h3-btn--white:hover:not(.is-added){background:#fff}
.s3 .s3-btn--black:hover:not([disabled]){background:var(--s3-ink)}
.s3 .s3-btn--white:hover{background:#fff}
.c3-root .p3-btn--black:hover:not(:disabled){background:var(--ink)}
.c3-root.h3 .h3-copy .h3-btn--white:hover::after{animation:none}
@media (hover:hover) and (pointer:fine){
  .c3-root .btn--white:hover,.c3-root .hd3-btn--white:hover,.c3-root .ld3-btn--white:hover,.c3-root.h3 .h3-btn--white:hover:not(.is-added,.hx-cta),.s3 .s3-btn--white:hover{background:var(--bt-soft-fill)}
  /* the dark look's plain buttons (cart, account, contact, wholesale, FAQ, track order) take their white from --btn-bg */
  .chv2d main .btn--black:where(:not(#place_order,:disabled,[aria-disabled="true"])):hover,.chv2d main .btn--white:where(:not(#place_order,:disabled,[aria-disabled="true"])):hover{--btn-bg:var(--bt-soft-fill)}
  .chv2d .cl-tracking-main .btn:where(:not(:disabled)):hover{background:var(--bt-soft-fill)} /* Track order: its white is set directly (v2-dark.css) */
}

/* ---- The arrow: 3 px to the right under the pointer or the keyboard focus. Only a real arrow moves (a plus or a tick never does). */
:is(.btn,.h3-btn,.hd3-btn,.ld3-btn,.s3-btn):where(:not(#place_order)) > svg:has(> path[d^="M4 12h15"],> use[href$="arrow-right"]){transition:transform .2s var(--bt-ease)}
@media (prefers-reduced-motion:no-preference){
  :is(.btn,.h3-btn,.hd3-btn,.ld3-btn,.s3-btn):where(:not(#place_order)):focus-visible > svg:has(> path[d^="M4 12h15"],> use[href$="arrow-right"]){transform:translateX(3px)}
  @media (hover:hover) and (pointer:fine){
    :is(.btn,.h3-btn,.hd3-btn,.ld3-btn,.s3-btn):where(:not(#place_order)):hover > svg:has(> path[d^="M4 12h15"],> use[href$="arrow-right"]){transform:translateX(3px)}
  }
}

/* ---- Touch: a tap leaves nothing behind. */
@media (hover:none){
  .c3-root .btn--ghost:hover,.k3.c3-root .k3-go .btn--ghost:hover{border-color:var(--line-2)}
  .c3-root .btn--ghost-d:hover,.c3-root .ld3-btn--ghost:hover{border-color:var(--d-line-2)}
  .s3 .s3-btn--ghost:hover{border-color:var(--s3-line-2)}
  .c3-root.h3 .h3-btn--ghost:hover{border-color:var(--h3-line-2)}
  .k3.c3-root .k3-add:hover:not(.is-added){background:var(--paper);color:var(--ink)}
  .s3 .s3-add:hover:not(.is-added){background:var(--s3-paper);color:var(--s3-ink)}
}

/* ---- Press: the same small squeeze on every button, Place order included (.96: felt, never exaggerated). */
.btn:active,.c3-root .btn:active,.c3-root .hd3-btn:active,.c3-root .ld3-btn:active,.c3-root.h3 .h3-btn:active,.s3 .s3-btn:active,.c3-root .p3-btn:active:not(:disabled),.bt-down{transform:scale(.96)}
.c3-root .btn:disabled:active,.s3 .s3-btn:disabled:active{transform:none}

/* ---- Reduced motion: nothing moves. The hover's softer fill is a colour, not a movement, so it stays; the press dims instead of squeezing. */
@media (prefers-reduced-motion:reduce){
  .btn:active,.c3-root .btn:active,.c3-root .hd3-btn:active,.c3-root .ld3-btn:active,.c3-root.h3 .h3-btn:active,.s3 .s3-btn:active,.c3-root .p3-btn:active:not(:disabled),.bt-down{transform:none;opacity:.86}
  .k3.c3-root .k3-add:active,.k3.c3-root .k3-add.is-press,.s3 .s3-add:active,.s3 .s3-add.is-press{transform:none;opacity:.86}
  .c3-root.hd3 .hd3-cta:hover svg,.c3-root.h3 .h3-copy .h3-btn--white:hover .h3-ico{transform:none}
}

