/* Stay-on-page cart of an Ilumaailm good (spec ai/specs/2026-11-27-ilu-korvi-lisamine-design.md, mock variant B):
   the buy box quantity stepper + «Vaata korvi», the flying product, the glass mini cart with the free delivery scale.
   Glass = the consent bar / megamenu recipe (blur 28px saturate 180%), light or dark by the site theme, never by the
   background. Nothing here may catch a click: the flying product and the confetti are pointer-events:none. */

/* ---- buy box: [- n +] + Vaata korvi (Vaata korvi = the existing .btn-success, OSTA style) ---- */
.cs-buy { display: flex; gap: 10px; align-items: stretch; width: 100%; }
.cs-buy[hidden] { display: none !important; }
body.offer-hero-page.offer-goods .offer-hero-row .offer-buy > .cs-buy.cs-buy,
body.offer-hero-page.offer-goods .offer-hero-row .offer-buy > .cs-hint.cs-hint { order: 0; }
.cs-qty { flex: none; display: flex; align-items: center; min-height: 50px; border: 1.5px solid #18AE00; border-radius: 15px; overflow: hidden; background: var(--bs-body-bg); color: var(--bs-body-color); }
.cs-qty__btn { width: 46px; min-height: 47px; align-self: stretch; border: 0; background: transparent; color: #18AE00; font-size: 22px; font-weight: 700; line-height: 1; padding: 0; cursor: pointer; touch-action: manipulation; }
.cs-qty__btn:hover { background: rgba(24, 174, 0, .08); }
.cs-qty__btn:disabled { color: #BDBDBD; cursor: default; background: transparent; }
.cs-qty__btn:focus-visible { outline: 2px solid #18AE00; outline-offset: -3px; }
.cs-qty__n { min-width: 30px; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.cs-go { flex: 1 1 auto; min-height: 50px; display: inline-flex !important; align-items: center; justify-content: center; text-decoration: none; }
body.world-ilu .cs-qty { border-color: #111; }
body.world-ilu .cs-qty__btn { color: #111; }
body.world-ilu .cs-qty__btn:hover { background: rgba(0, 0, 0, .06); }
body.world-ilu .cs-qty__btn:focus-visible { outline-color: #7B3FE4; }
[data-bs-theme="dark"] body.world-ilu .cs-qty { border-color: #F3E4EC; }
[data-bs-theme="dark"] body.world-ilu .cs-qty__btn { color: #F3E4EC; }
[data-bs-theme="dark"] .cs-qty__btn:disabled { color: #5c5f66; }
.cs-hint { margin: -6px 0 12px; font-size: 13px; font-weight: 600; color: #0c7a00; text-align: center; }
.cs-hint[hidden] { display: none !important; }
.cs-hint.is-error { color: #c0261d; }
[data-bs-theme="dark"] .cs-hint { color: #6ee77f; }
[data-bs-theme="dark"] .cs-hint.is-error { color: #ff8a80; }
@media (min-width: 768px) { body.offer-goods .cs-hint { text-align: left; } }

/* the add in flight: spinner kept, «✓ Lisatud» on the option rows button for 1.5 s */
.add-to-cart.cs-done { position: relative; }
.add-to-cart.cs-done > :not(.cs-done-label) { visibility: hidden; }
.add-to-cart.cs-done { color: transparent !important; }
.cs-done-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; }

/* sticky Osta bar: the same stepper and Vaata korvi */
.offer-sticky-buy__cs { flex: none; display: flex; align-items: stretch; gap: 8px; }
.offer-sticky-buy__cs[hidden] { display: none !important; }
.offer-sticky-buy__cs .cs-qty { min-height: 44px; }
.offer-sticky-buy__cs .cs-qty__btn { width: 38px; min-height: 41px; }
.offer-sticky-buy__go { width: auto !important; min-height: 44px; padding: 0 16px !important; text-decoration: none; font-size: 15px !important; }
.offer-sticky-buy__btn[hidden] { display: none !important; }
@media (max-width: 767.98px) {
  .offer-sticky-buy--low .offer-sticky-buy__cs { flex: 0 0 auto; }
  .offer-sticky-buy--low .offer-sticky-buy__go { padding: 0 12px !important; font-size: 14px !important; }
}

/* header badge waits for the flying product (cart-mini.js, never longer than 2.5 s) */
.nh-cart.cs-wait .nh-badge { visibility: hidden; }

/* ---- flying product ---- */
.cs-fly { position: fixed; left: 0; top: 0; width: 46px; height: 46px; z-index: 1049; pointer-events: none; will-change: transform; }
.cs-fly__in { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: #f1f1f3; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.cs-fly__in img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the Boost toast sits where the mini cart opens on phones: it steps aside for those 5 s (glass over its yellow is unreadable) */
.boost-toast { transition: opacity .2s ease; }
@media (max-width: 767.98px) { body.cs-mini-on .boost-toast { opacity: 0 !important; pointer-events: none !important; } }

/* ---- glass mini cart ---- */
.cs-mini {
  --g-bg: rgba(255, 255, 255, .80); --g-line: rgba(255, 255, 255, .8); --g-ink: #1b1d22; --g-ink2: #555b66; --g-qink: #fff;
  --g-track: rgba(20, 24, 30, .10); --g-plus: #0c7a00; --g-ride: #fff; --g-ride-ink: #2B2B2B; --g-solid: #f4f5f6;
  --g-box: 0 14px 40px rgba(15, 17, 20, .22), 0 2px 8px rgba(15, 17, 20, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
  position: fixed; left: 10px; right: 10px; bottom: calc(83px + env(safe-area-inset-bottom, 0px)); z-index: 1048;
  color: var(--g-ink); background: var(--g-bg); border: 1px solid var(--g-line); border-radius: 22px; box-shadow: var(--g-box);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.35;
  transform: translateY(24px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .32s cubic-bezier(.2, .9, .3, 1.25), opacity .2s, visibility 0s linear .32s;
}
[data-bs-theme="dark"] .cs-mini {
  --g-bg: rgba(24, 26, 32, .70); --g-line: rgba(255, 255, 255, .16); --g-ink: #fff; --g-ink2: rgba(255, 255, 255, .74); --g-qink: #1b1d22;
  --g-track: rgba(255, 255, 255, .16); --g-plus: #6ee77f; --g-ride: #121316; --g-ride-ink: #f1f2f4; --g-solid: #24262c;
  --g-box: 0 14px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cs-mini { --g-bg: rgba(250, 250, 251, .97); }
  [data-bs-theme="dark"] .cs-mini { --g-bg: rgba(28, 28, 32, .96); }
}
.cs-mini.is-on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .32s cubic-bezier(.2, .9, .3, 1.25), opacity .2s, visibility 0s; }
@media (min-width: 768px) {
  .cs-mini { left: auto; right: 14px; top: 72px; bottom: auto; width: 370px; transform: translateY(-12px) scale(.98); }
  .cs-mini.is-on { transform: none; }
}
.cs-mini > * { position: relative; z-index: 1; }
.cs-mini__h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cs-mini__ok { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #18AE00, #4CD964); display: grid; place-items: center; flex: 0 0 auto; }
.cs-mini__ok.is-bad { background: #dc251e; }
.cs-mini__ok svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cs-mini__h b { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-mini__err { font-size: 13.5px; font-weight: 600; }
.cs-mini__sum { margin-left: auto; font-size: 12.5px; color: var(--g-ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-mini__x { width: 32px; height: 32px; margin: -6px -4px -6px 0; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--g-ink2); flex: 0 0 auto; padding: 0; cursor: pointer; }
.cs-mini__x:hover { background: var(--g-track); }
.cs-mini__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cs-mini__r { display: flex; align-items: center; gap: 10px; }
.cs-mini__thumbs { display: flex; gap: 9px; overflow-x: auto; flex: 1 1 auto; min-width: 0; padding: 6px 4px 4px; margin: 0; list-style: none; scrollbar-width: none; }
.cs-mini__thumbs::-webkit-scrollbar { display: none; }
.cs-mini__t { position: relative; flex: 0 0 auto; }
.cs-mini__ph { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: #f1f1f3; color: #555b66; font-weight: 800; font-size: 18px; box-shadow: 0 2px 6px rgba(0, 0, 0, .14); }
[data-bs-theme="dark"] .cs-mini__ph { background: #2a2c32; color: #c9ccd3; }
.cs-mini__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-mini__t.is-new .cs-mini__ph { box-shadow: 0 0 0 2.5px #18AE00, 0 4px 12px rgba(24, 174, 0, .35); animation: cs-tpop .5s cubic-bezier(.3, 1.7, .5, 1); }
.cs-mini__q { position: absolute; right: -6px; top: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--g-ink); color: var(--g-qink); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; font-style: normal; font-variant-numeric: tabular-nums; }
@keyframes cs-tpop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
/* the page's «Vaata korvi» button as is (btn-lg + .cs-go size); only its place differs: a full-width row in the column */
.cs-mini .cs-mini__go { flex: none; width: 100%; margin-top: 2px; }
.cs-fs { display: flex; flex-direction: column; gap: 9px; }
.cs-fs__tx { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cs-fs__tx b { font-weight: 800; }
.cs-fs__of { color: var(--g-ink2); white-space: nowrap; }
.cs-fs__track { position: relative; height: 12px; border-radius: 99px; background: var(--g-track); margin: 0 14px 0 2px; }
.cs-fs__fill { position: absolute; inset: 0; border-radius: 99px; overflow: hidden; background: linear-gradient(90deg, #ff5f8f, #ff9f43 40%, #ffd23f 68%, #4CD964 100%); -webkit-clip-path: inset(0 calc(100% - var(--p)) 0 0 round 99px); clip-path: inset(0 calc(100% - var(--p)) 0 0 round 99px); transition: -webkit-clip-path .9s cubic-bezier(.2, .8, .2, 1), clip-path .9s cubic-bezier(.2, .8, .2, 1); }
.cs-fs__fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); background-size: 220% 100%; animation: cs-shine 1.8s linear infinite; }
@keyframes cs-shine { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.cs-fs__ride { position: absolute; top: 50%; left: var(--p); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--g-ride); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); display: grid; place-items: center; transition: left .9s cubic-bezier(.2, .8, .2, 1), opacity .3s; z-index: 1; }
.cs-fs__ride svg { width: 18px; height: 18px; fill: none; stroke: var(--g-ride-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cs-fs__goal { position: absolute; right: -14px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--g-track); display: grid; place-items: center; }
.cs-fs__goal svg { width: 15px; height: 15px; fill: none; stroke: var(--g-ink2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs-fs.is-done .cs-fs__goal { background: linear-gradient(135deg, #18AE00, #4CD964); animation: cs-tpop .5s cubic-bezier(.3, 1.7, .5, 1); }
.cs-fs.is-done .cs-fs__goal svg { stroke: #fff; }
.cs-fs.is-done .cs-fs__ride { opacity: 0; }
.cs-fs__plus { position: absolute; left: 50%; left: clamp(12%, var(--p), 82%); bottom: calc(100% + 6px); padding: 1px 7px; border-radius: 99px; background: var(--g-solid); font-size: 11.5px; font-weight: 800; color: var(--g-plus); white-space: nowrap; animation: cs-rise 1.4s ease-out .5s both; pointer-events: none; z-index: 2; }
@keyframes cs-rise { 0% { opacity: 0; transform: translate(-50%, 8px); } 20% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.cs-fs__conf { position: absolute; right: -1px; top: 50%; width: 0; height: 0; pointer-events: none; }
.cs-fs__conf i { position: absolute; width: 6px; height: 9px; border-radius: 2px; pointer-events: none; animation: cs-conf 1s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes cs-conf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .cs-mini, .cs-mini.is-on { transition: none; }
  .cs-fs__fill, .cs-fs__ride { transition: none; }
  .cs-fs__fill::after, .cs-fs__plus, .cs-fs__conf i, .cs-mini__t.is-new .cs-mini__ph, .cs-fs.is-done .cs-fs__goal { animation: none; }
  .cs-fs__plus { display: none; }
}
