/* The short path to an order (Claude, 20 Nov 2026). PHP: inc/v2/v2-fun3.php. Script: assets/v4/v2-fun3.js.
   Every rule sits under body.fun3 and what the look brings: .fun3-sheet (a, c), .fun3-buy (b, c), .fun3-quick (c, or chv2_fun3_qc).
   Colours are the site's own: white, ink #0E0E10, the greys of the dark pages; the one green (#34C28A) only on FREE.
   Motion: transform and opacity only, cubic-bezier(.2,.7,.2,1); reduced motion = nothing moves.
   1 the sheet: one big CHECKOUT   2 the "Added to cart" box   3 the buy bars after an add   4 BUY NOW   5 checkout, first phone screen */

/* ---------- 1. The sheet (a, c): CHECKOUT one big white pill, "View cart" a quiet line under it ----------
   Same two links, same order, same words; the row of two equal-looking pills becomes one clear next step. */
.fun3-sheet #minicart .cm-mini__cta{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:16px}
.fun3-sheet #minicart .cm-mini__cta .btn{flex:none;width:100%;min-width:0;margin:0}
.fun3-sheet #minicart .cm-mini__cta .btn--black{height:56px;min-height:56px;padding:0 28px;justify-content:center;gap:12px;font-size:15px;letter-spacing:.06em}
.fun3-sheet #minicart .cm-mini__cta .btn--black svg{width:18px;height:18px}
.fun3-sheet #minicart .cm-mini__cta .btn--ghost{align-self:center;width:auto;height:44px;min-height:44px;margin-top:4px;padding:0 20px;
  --btn-line:transparent;border-color:transparent;box-shadow:none;background:none;color:#B3B4BB;
  font-size:15px;font-weight:400;letter-spacing:0;text-transform:none;text-decoration:underline;text-decoration-thickness:1px;
  text-decoration-color:rgba(179,180,187,.5);text-underline-offset:5px}
.fun3-sheet #minicart .cm-mini__cta .btn--ghost::before{content:none}
@media (hover:hover) and (pointer:fine){
  .fun3-sheet #minicart .cm-mini__cta .btn--ghost:hover{color:#fff;text-decoration-color:#fff;--btn-line:transparent}
}
.fun3-sheet #minicart .cm-mini__cta .btn--ghost:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:22px}
/* the phone sheet: the foot keeps its height for the lines (the second pill's row became a 44 px line) */
@media (max-width:599.98px){
  .fun3-sheet.chvf1 #minicart .cm-mini__cta{margin-top:14px}
  .fun3-sheet.chvf1 #minicart .cm-mini__foot{padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
}
/* a short phone screen (Safari with its bars: about 390 x 664): the foot closes up a little, so the line just added gets the
   room (the list opens on that line, v2-fun3.js) */
@media (max-width:599.98px) and (max-height:760px){
  .fun3-sheet.chvf1 #minicart .cm-mini__foot{padding-top:8px}
  .fun3-sheet.chvf1 #minicart .cm-mini__foot .k-sum__row{padding-top:4px;padding-bottom:4px}
  .fun3-sheet.chvf1 #minicart .cm-mini__foot .k-sum__row--total{padding-top:8px}
  .fun3-sheet.chvf1 #minicart .cm-mini__foot .k-progress{margin-top:6px}
  .fun3-sheet.chvf1 #minicart .cm-mini__note{margin-top:4px}
  .fun3-sheet.chvf1 #minicart .cm-mini__cta{margin-top:10px}
  .fun3-sheet.chvf1 #minicart .cm-mini__cta .btn--black{height:52px;min-height:52px}
  .fun3-sheet.chvf1 #minicart .cm-mini__cta .btn--ghost{margin-top:0}
}
/* the sheet's own slide, minus motion for those who ask for none (the round's sheet slid for everyone) */
@media (max-width:599.98px) and (prefers-reduced-motion:reduce){
  .fun3-sheet.chvf1 #minicart .cl-drawer__panel,.fun3-sheet.chvf1 #minicart:not([data-open]) .cl-drawer__panel{transition:none}
}

/* ---------- 2. The "Added to cart" box under ADD TO CART (a, c): the chosen row's own words, its FREE in green ---------- */
.fun3-sheet .c3-root .p3-added .fun3-w{display:inline-flex;align-items:center;gap:6px;color:var(--ink,#fff);font-weight:500;white-space:nowrap}
.fun3-sheet .c3-root .p3-added .fun3-w .chv2-pack__free,.fun3-sheet .c3-root .fun3-gi .chv2-pack__free{display:inline-block;padding:3px 7px;border-radius:999px;background:#34C28A;
  color:#04130C;font-size:11px;font-weight:600;letter-spacing:.04em;line-height:1.1;white-space:nowrap}

/* ---------- 3. The buy bars after an add (a, c): "Added to cart" + CHECKOUT, until the choice changes ----------
   Put in by the script with the bar's own classes (its colours, its sizes: CHECKOUT is the bar's Add pill), shown only while
   body.fun3-added (no [hidden]); the bar's own two parts step aside for that time. */
.fun3-sheet .fun3-gi[hidden],.fun3-sheet .fun3-gb[hidden]{display:none!important}
.fun3-sheet.fun3-added #p3-pbar .chvp-bar__info:not(.fun3-gi),.fun3-sheet.fun3-added #p3-pbar .chvp-bar__add:not(.fun3-gb),
.fun3-sheet.fun3-added #p3-pbar:not(.chvp-bar) > .p3-btn:not(.fun3-gb),
.fun3-sheet.fun3-added #p3-subnav .p3-subnav__n:not(.fun3-gi),.fun3-sheet.fun3-added #p3-subnav .p3-subnav__add:not(.fun3-gb){display:none!important}
.fun3-sheet .fun3-gi{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.fun3-sheet .fun3-gb{gap:10px;text-decoration:none}
.fun3-sheet .fun3-gb .fun3-ico{width:16px;height:16px;flex:none}
.fun3-sheet .fun3-gi__t{display:flex;align-items:center;gap:7px}
.fun3-sheet .fun3-gi__t .fun3-ico{width:16px;height:16px;flex:none}
.fun3-sheet .fun3-gi__w{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;white-space:nowrap}
.fun3-sheet .fun3-gi__w .fun3-w{display:inline-flex;align-items:center;gap:6px}
.fun3-sheet .fun3-gi__w > *{flex:none}
.fun3-sheet .fun3-gi.fun3-short .fun3-gi__d,.fun3-sheet .fun3-gi.fun3-short .fun3-gi__s{display:none}
/* a name longer than the bar (the water's): "…" at the end, never cut mid-word (tester fix, 20 Nov 2026) */
.fun3-sheet .fun3-gi__w .fun3-gi__x{max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* phone bar: two lines like the bar's own ("Added to cart", then the chosen pack and its sum) */
.fun3-sheet .fun3-gi--chvp{text-align:left}
.fun3-sheet .fun3-gi--chvp .fun3-gi__w .fun3-w,.fun3-sheet .fun3-gi--chvp .fun3-gi__s{color:#fff;font-weight:500}
.fun3-sheet .fun3-gb--chvp{justify-content:center}
/* the page's own phone bar (one button) */
.fun3-sheet .fun3-gb--pbar{justify-content:space-between}
/* computer bar: one line, "Added to cart" then the words in the bar's own grey */
.fun3-sheet .fun3-gi--subnav{align-items:center;gap:14px;min-height:44px;margin:0;padding:0;border:0;background:none;color:inherit}
.fun3-sheet .fun3-gi--subnav .fun3-gi__w{font-size:var(--t-small,14px)}
.fun3-sheet .fun3-gb--subnav{justify-content:center}
.fun3-sheet .fun3-gi:focus-visible,.fun3-sheet .fun3-gb:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media (prefers-reduced-motion:no-preference){
  .fun3-sheet.fun3-added .fun3-gi:not([hidden]),.fun3-sheet.fun3-added .fun3-gb:not([hidden]){animation:fun3-in .34s cubic-bezier(.2,.7,.2,1) both}
  .fun3-sheet.fun3-added .fun3-gb:not([hidden]){animation-delay:.04s}
}
@keyframes fun3-in{from{opacity:0;transform:translate3d(0,6px,0)}to{opacity:1;transform:none}}

/* ---------- 4. BUY NOW (b, c): right under ADD TO CART, the same size, the quiet glass of the page's other controls ----------
   ADD TO CART stays the one white shape; BUY NOW is the outlined second choice (it goes straight to checkout). */
.c3-root .fun3-buy{margin-top:10px}
.c3-root .fun3-buy__b{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:56px;margin:0;padding:0 26px;
  border-radius:999px;border:0;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--line-2,rgba(255,255,255,.32));
  color:var(--ink,#fff);font:inherit;font-size:var(--t-small,14px);font-weight:500;letter-spacing:.04em;line-height:1;text-transform:uppercase;
  white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.c3-root .fun3-buy__i{width:16px;height:16px;flex:none}
.c3-root .fun3-buy__b:focus-visible{outline:2px solid var(--ink,#fff);outline-offset:3px}
.c3-root .fun3-buy__b:disabled{opacity:.38;cursor:not-allowed}
.c3-root .fun3-buy__b[aria-busy="true"]{opacity:.62;cursor:progress}
@media (hover:hover) and (pointer:fine){
  .c3-root .fun3-buy__b:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--ink,#fff)}
}
@media (prefers-reduced-motion:no-preference){
  .c3-root .fun3-buy__i{transition:transform .2s cubic-bezier(.2,.7,.2,1)}
  .c3-root .fun3-buy__b{transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}
  .c3-root .fun3-buy__b:active:not(:disabled){transform:scale(.97)}
  @media (hover:hover) and (pointer:fine){ .c3-root .fun3-buy__b:hover:not(:disabled) .fun3-buy__i{transform:translateX(3px)} }
}
.c3-root.p3-out .fun3-buy{display:none}
@media (max-width:899.98px){
  .c3-root .fun3-buy__b{height:52px;padding:0 18px}
}

/* ---------- 5. Checkout, first phone screen (c; a or b with option chv2_fun3_qc = 1): the first field shows without a scroll ----------
   No breadcrumb and no steps on a phone (the page itself says where the shopper is), the title on one line with "UAE delivery",
   tighter gaps. Nothing is taken out of the order form; computers keep today's page. */
@media (max-width:767.98px){
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head .cm-top{display:none}
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head{padding-top:6px}
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head .k-head__grid{margin-top:0;padding-bottom:16px;align-items:end}
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head__body{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px}
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head .k-head__title,
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head .k-head__title.t-h1{font-size:30px;line-height:1.05;letter-spacing:-.03em}
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head__meta{margin-top:0}
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head + .k-sec{padding-top:12px}
  body.fun3-quick.woocommerce-checkout:not(.woocommerce-order-received) .cm-head + .k-sec .woocommerce-form-coupon-toggle{margin-top:4px}
}
