/* Ketek IQ — cart drawer ("Your Garage") and checkout.
   Uses the tokens and .btn / .label / .panel / .kicker classes from site.css.
   Matte black panels, colour only on controls, no glow washes. */

/* ================================================================== */
/* scroll lock — scrollbar hidden, page padded by its width (no jump)  */
/* ================================================================== */
html.kc-locked { overflow: hidden; }
html.kc-locked body,
html.kc-locked .nav { padding-right: var(--kc-sbw, 0px); }

.kc-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ================================================================== */
/* drawer shell                                                        */
/* ================================================================== */
.kc-root { position: fixed; inset: 0; z-index: 300; }
.kc-root[hidden] { display: none; }

.kc-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 3, 4, 0.76);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  touch-action: none; /* a drag on the backdrop must not scroll the page behind (iOS) */
}
.kc-root.open .kc-backdrop { opacity: 1; }
.kc-root.closing .kc-backdrop { transition-duration: 0.32s; }
@media (min-width: 900px) and (hover: hover) {
  .kc-backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}

.kc-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(472px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  box-shadow: -40px 0 80px -30px rgba(0, 0, 0, 0.9); /* dark drop, not a glow */
  transform: translate3d(104%, 0, 0);
  transition: transform 0.62s var(--ease);
  will-change: transform;
  outline: none;
}
.kc-root.open .kc-drawer { transform: none; }
.kc-root.closing .kc-drawer { transition: transform 0.36s cubic-bezier(0.6, 0, 0.85, 0.45); }

/* ---------- header: carbon strip + redline ---------- */
.kc-head {
  position: relative; flex: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  row-gap: 14px;
  padding: 18px 20px 20px 24px;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.82) 0%, rgba(7, 7, 8, 0.45) 55%, rgba(7, 7, 8, 0.1) 100%),
    var(--carbon) 0 0 / 32px 32px,
    var(--panel);
  border-bottom: 1px solid var(--line-2);
}
.kc-head::after { /* redline sweeps across when the garage opens */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red-grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.9s var(--ease) 0.2s;
}
.kc-root.open .kc-head::after { transform: scaleX(1); }
.kc-root.closing .kc-head::after { transition: none; }

.kc-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); }
.kc-kicker i { width: 22px; height: 2px; background: var(--red-grad); }

.kc-close {
  grid-column: 2; grid-row: 1; justify-self: end;
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, transform 0.35s var(--ease);
}
.kc-close:hover { border-color: rgba(255, 255, 255, 0.45); transform: rotate(90deg); }
.kc-close svg { width: 18px; height: 18px; }

.kc-title {
  grid-column: 1; grid-row: 2;
  font-size: 50px; line-height: 0.86;
  overflow: hidden; padding: 0.04em 0.1em 0.06em 0; margin: -0.04em 0 -0.06em;
}
.kc-title > span { display: inline-block; transform: translateY(108%) skewY(6deg); transition: transform 0.85s var(--ease) 0.14s; }
.kc-root.open .kc-title > span { transform: none; }

.kc-count {
  grid-column: 2; grid-row: 2; align-self: end; justify-self: end;
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0, 0, 0, 0.45);
  font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
  white-space: nowrap;
}
.kc-count b { color: var(--text); font-weight: 600; margin-right: 6px; }

/* ---------- line items ---------- */
.kc-body {
  position: relative; /* offsetTop of lines is measured from here */
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 2px 24px 16px;
  scrollbar-width: thin; scrollbar-color: #2b2b31 transparent;
}
.kc-lines { list-style: none; margin: 0; padding: 0; }

.kc-line {
  position: relative;
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; column-gap: 16px; align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.kc-line::before { /* turquoise marker on the line you just added */
  content: ""; position: absolute; left: -24px; top: 20px; bottom: 20px; width: 3px;
  background: linear-gradient(180deg, #7dfff4, var(--teal) 50%, var(--teal-deep));
  transform: scaleY(0); transform-origin: 50% 0; opacity: 0;
}
.kc-line.fresh::before { animation: kc-fresh 2s var(--ease) forwards; }
@keyframes kc-fresh {
  0% { transform: scaleY(0); opacity: 1; }
  22% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.kc-line.enter { animation: kc-in 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
@keyframes kc-in { from { opacity: 0; transform: translate3d(40px, 0, 0); } }

.kc-line.leaving {
  overflow: hidden; opacity: 0; transform: translateX(48px);
  padding-top: 0; padding-bottom: 0; border-bottom-color: transparent;
  transition: height 0.38s var(--ease-snap), padding 0.38s var(--ease-snap), opacity 0.2s, transform 0.3s var(--ease), border-color 0.3s;
}

/* product tile: the studio render cropped tight onto the case */
.kc-thumb {
  position: relative; display: block; flex: none;
  width: 84px; height: 84px; border-radius: 12px; overflow: hidden;
  background: #121215; border: 1px solid var(--line-2);
}
.kc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.62) translate(-0.8%, -5.4%);
  filter: brightness(0.88) contrast(1.1);
}
.kc-thumb.sm { width: 64px; height: 64px; border-radius: 10px; }
.kc-tag {
  position: absolute; left: 6px; bottom: 6px;
  padding: 3px 5px 2px; border-radius: 4px;
  background: var(--teal-grad); color: #021413;
  font: 700 9px/1 var(--mono); letter-spacing: 0.12em;
}
.kc-thumb.sm .kc-tag { left: 4px; bottom: 4px; font-size: 8px; padding: 2px 4px 2px; }

.kc-info { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.kc-name { font-size: 23px; line-height: 0.95; }
.kc-eng {
  font: 500 12px/1.35 var(--mono); letter-spacing: 0.03em;
  color: var(--teal); overflow-wrap: anywhere;
}
.kc-eng span { color: rgba(34, 227, 214, 0.62); }
.kc-eng b { font-weight: 600; }
.kc-eng.none { color: var(--dim); }
.kc-ship {
  display: flex; align-items: center; gap: 8px;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.kc-ship i { width: 6px; height: 6px; background: var(--red); border-radius: 1px; }
.kc-row { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.kc-remove {
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.kc-remove:hover { color: var(--no); border-bottom-color: currentColor; }
.kc-price {
  font: italic 850 25px/1 var(--display); font-stretch: 62%;
  letter-spacing: 0.01em; text-align: right; white-space: nowrap; padding-top: 1px;
}

/* ---------- quantity stepper (drawer + checkout) ---------- */
.kc-step {
  display: inline-flex; align-items: center; flex: none;
  height: 38px; padding: 1px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.kc-step button {
  width: 36px; height: 34px; border-radius: 8px;
  display: grid; place-items: center; color: var(--mute);
  transition: color 0.2s, background-color 0.2s;
}
.kc-step button:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.kc-step button:active:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.kc-step button:disabled { opacity: 0.28; cursor: default; }
.kc-step svg { width: 14px; height: 14px; }
.kc-step output {
  display: inline-block; min-width: 26px; text-align: center;
  font: 600 13px/1 var(--mono); color: var(--text);
}
.kc-step output.tick-up { animation: kc-tick-up 0.34s var(--ease); }
.kc-step output.tick-down { animation: kc-tick-down 0.34s var(--ease); }
@keyframes kc-tick-up { from { transform: translateY(70%); opacity: 0; } }
@keyframes kc-tick-down { from { transform: translateY(-70%); opacity: 0; } }

/* ---------- empty bay ---------- */
.kc-empty { display: none; flex-direction: column; align-items: flex-start; gap: 14px; padding: 34px 0 24px; }
.kc-root.is-empty .kc-empty { display: flex; animation: kc-up 0.7s var(--ease) 0.15s both; }
.kc-root.is-empty .kc-foot { display: none; }
.kc-empty h3 { font-size: 42px; margin-top: 10px; }
.kc-empty p { color: var(--mute); font-size: 15px; line-height: 1.55; max-width: 32ch; }
.kc-empty .btn { margin-top: 8px; }
.kc-empty .btn svg, .kc-go svg, .kco-empty .btn svg { transition: transform 0.3s var(--ease); }
.kc-empty .btn:hover svg, .kc-go:hover svg, .kco-empty .btn:hover svg { transform: translateX(4px); }
@keyframes kc-up { from { opacity: 0; transform: translateY(18px); } }

/* a parking bay: painted lines on three sides, open at the front */
.kc-bay {
  position: relative; width: 100%; height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 2px solid rgba(255, 255, 255, 0.13); border-bottom: 0; border-radius: 4px 4px 0 0;
  color: var(--dim);
}
.kc-bay::after { /* wheel stop */
  content: ""; position: absolute; top: 14px; left: 50%; width: 34%; height: 6px; transform: translateX(-50%);
  border-radius: 3px; background: rgba(255, 255, 255, 0.12);
}
.kc-bay svg { width: 64px; height: 52px; stroke-width: 1.4; }

/* ---------- footer ---------- */
.kc-foot {
  flex: none; display: grid; gap: 10px;
  padding: 20px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-2);
  background: var(--panel);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease) 0.22s, transform 0.6s var(--ease) 0.22s;
}
.kc-root.open .kc-foot { opacity: 1; transform: none; }
.kc-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kc-sub-v { font: italic 850 42px/1 var(--display); font-stretch: 62%; letter-spacing: 0.01em; }
.kc-note { font-size: 13px; color: var(--mute); margin-top: -4px; }
.kc-go { --h: 58px; width: 100%; font-size: 15px; margin-top: 6px; }
.kc-pre {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.kc-pre i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- "Added" state on add-to-cart buttons ---------- */
.kc-added {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: inherit; border-radius: inherit;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.btn-ghost > .kc-added { background: var(--panel-2); }
.kc-added svg { width: 18px; height: 18px; stroke-width: 2.4; transform: scale(0.4) rotate(-25deg); transition: transform 0.5s var(--ease); }
.is-added > .kc-added { opacity: 1; }
.is-added > .kc-added svg { transform: none; }

/* invalid engraving input */
.kc-shake { animation: kc-shake 0.45s var(--ease-snap); }
@keyframes kc-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

@media (max-width: 560px) {
  .kc-drawer { width: 100%; border-left: 0; }
  .kc-head { padding: 14px 16px 16px 18px; }
  .kc-title { font-size: 44px; }
  .kc-body { padding: 0 16px 12px; }
  .kc-line { grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 13px; padding: 18px 0; }
  .kc-line::before { left: -16px; top: 18px; bottom: 18px; }
  .kc-thumb { width: 72px; height: 72px; }
  .kc-name { font-size: 21px; }
  .kc-price { font-size: 22px; }
  .kc-step { height: 42px; }
  .kc-step button { width: 40px; height: 38px; }
  .kc-remove { padding: 15px 4px; margin-left: -4px; } /* 42px tall tap target, same look */
  .kc-foot { padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .kc-sub-v { font-size: 38px; }
}

/* ================================================================== */
/* checkout                                                            */
/* ================================================================== */
.kco-root { position: relative; }
.kco-top { margin-bottom: clamp(28px, 4vw, 52px); }
.kco-top .kicker { margin-bottom: 18px; }
.kco-h { font-size: clamp(56px, 8vw, 116px); }

.kco-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 30px); align-items: start;
}
.kco-sum, .kco-pay { overflow: hidden; }
.kco-pay { position: sticky; top: calc(var(--nav-h, 68px) + 20px); }
.kco-tall .kco-pay { position: relative; top: 0; } /* JS: panel taller than the viewport, don't pin it */

/* intro: header, then the two panels, rise in once */
.kco-intro .kco-top,
.kco-intro .kco-grid > *,
.kco-intro .kco-empty { animation: kc-up 0.8s var(--ease) both; }
.kco-intro .kco-grid > :nth-child(1) { animation-delay: 0.08s; }
.kco-intro .kco-grid > :nth-child(2) { animation-delay: 0.18s; }
.kco-intro .kco-group { animation: kc-up 0.8s var(--ease) both; animation-delay: 0.25s; }
.kco-intro .kco-group + .kco-group { animation-delay: 0.35s; }

/* carbon strip at the top of each panel */
.kco-strip {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 14px 22px;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.82), rgba(7, 7, 8, 0.3)),
    var(--carbon) 0 0 / 32px 32px,
    var(--panel);
  border-bottom: 1px solid var(--line-2);
}
.kco-strip::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; background: var(--red-grad); }
.kco-strip .label:first-child { color: var(--text); }
.kco-secure { display: inline-flex; align-items: center; gap: 7px; }
.kco-secure svg { width: 13px; height: 13px; color: var(--teal); }

/* edition group */
.kco-group { padding: 24px 22px; border-bottom: 1px solid var(--line); }
.kco-ghead { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.kco-gname h3 { font-size: clamp(25px, 2.3vw, 32px); }
.kco-gname p { color: var(--mute); font-size: 13.5px; line-height: 1.45; margin-top: 7px; }
.kco-gprice { font: italic 850 32px/1 var(--display); font-stretch: 62%; white-space: nowrap; }

.kco-lines { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.kco-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 84px 34px; align-items: center; gap: 14px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.28);
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.kco-line.leaving { opacity: 0; transform: translateX(24px); }
.kco-eng { min-width: 0; display: grid; gap: 5px; }
.kco-each { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.kco-lt { font: 600 15px/1 var(--mono); text-align: right; white-space: nowrap; }
.kco-x {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: var(--dim); transition: color 0.2s, background-color 0.2s;
}
.kco-x:hover { color: var(--no); background: rgba(255, 59, 59, 0.08); }
.kco-x svg { width: 16px; height: 16px; }

/* preorder notice with a checkered flag */
.kco-notice {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
  font-size: 13.5px; color: var(--mute);
}
.kco-notice b { color: var(--text); font-weight: 600; }
.kco-flag {
  flex: none; width: 26px; height: 18px; border-radius: 3px;
  background: repeating-conic-gradient(#e9eaec 0 25%, #0b0b0d 0 50%) 0 0 / 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.kco-flag.sm { width: 18px; height: 13px; background-size: 6px 6px; }
.kco-days {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  white-space: nowrap;
}
.kco-days i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(2, end) infinite; }

/* totals */
.kco-totals { display: grid; gap: 10px; padding: 20px 22px 6px; }
.kco-totals .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--mute); }
.kco-totals .row.big { color: var(--text); margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.kco-totals .row.big b { font: italic 850 48px/1 var(--display); font-stretch: 62%; letter-spacing: 0.01em; }
.kco-sumfoot { padding: 8px 22px 22px; }
.kco-back {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
  transition: color 0.2s;
}
.kco-back svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.kco-back:hover { color: var(--text); }
.kco-back:hover svg { transform: translateX(-4px); }

/* payment panel */
.kco-paybody { display: grid; gap: 18px; padding: 22px; }
.kco-split { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--mute); line-height: 1.45; }
.kco-paylist { display: grid; gap: 12px; }
.kco-payhead {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.kco-payhead b { color: var(--text); font-weight: 600; }
.kco-paybtn {
  --h: 58px; width: 100%;
  white-space: normal; text-align: center; line-height: 1.2;
  padding: 0 20px; font-size: 13px; letter-spacing: 0.1em;
}
.kco-paybtn svg { transition: transform 0.3s var(--ease); }
.kco-paybtn:hover svg { transform: translateX(4px); }
/* not open yet: a closed pit lane — hatched, dashed edge, lock — instead of a washed-out red button */
.kco-payblock.off .kco-paybtn[disabled] {
  opacity: 1;
  color: var(--mute);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 11px),
    #0a0a0c;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  box-shadow: none;
  font-size: 12px; letter-spacing: 0.18em;
}
.kco-payblock.off .kco-paybtn svg { width: 15px; height: 15px; color: var(--dim); }
.kco-payblock.off .kco-paybtn::after { display: none; }

.kco-closed { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--mute); line-height: 1.5; }
.kco-closed i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.kco-explain { display: flex; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--mute); }
.kco-explain svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--teal); }

.kco-names { display: grid; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.kco-names > .label b { color: var(--teal); }
.kco-nblock { display: grid; gap: 10px; }
.kco-nhead {
  display: flex; justify-content: space-between; gap: 12px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.kco-nhead span:first-child { color: var(--text); }
.kco-nhead b { color: var(--text); font-weight: 600; }
.kco-nlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kco-nlist li { display: flex; align-items: center; gap: 10px; }

/* the name plate: teal on black over a faint LED dot grid, like the case back */
.kco-plate {
  flex: 1; min-width: 0; overflow-wrap: anywhere;
  padding: 11px 14px; border-radius: 8px;
  background: radial-gradient(rgba(34, 227, 214, 0.1) 0.9px, transparent 1.3px) 0 0 / 5px 5px, #000;
  border: 1px solid rgba(34, 227, 214, 0.3);
  font: 600 15px/1 var(--mono); letter-spacing: 0.1em; color: var(--teal);
}
.kco-plate.blank { color: var(--dim); border-color: var(--line-2); background: #000; font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.kco-nq { font: 500 12px/1 var(--mono); color: var(--mute); min-width: 26px; text-align: right; }
.kco-hint { flex: none; width: 96px; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); text-align: center; }
.kco-copy {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; min-width: 96px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02);
  font: 600 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.kco-copy:hover { border-color: rgba(255, 255, 255, 0.4); }
.kco-copy svg { width: 14px; height: 14px; }
.kco-copy.done { color: var(--ok); border-color: rgba(43, 212, 106, 0.5); }
.kco-multi-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; line-height: 1.45; color: var(--mute); }

/* empty checkout */
.kco-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  max-width: 560px; margin: 0 auto; padding: clamp(28px, 5vw, 48px);
}
.kco-empty .kc-bay { max-width: 340px; }
.kco-empty h3 { font-size: clamp(36px, 4vw, 52px); margin-top: 10px; }
.kco-empty p { color: var(--mute); max-width: 36ch; }
.kco-empty .btn { margin-top: 10px; }

@media (max-width: 920px) {
  .kco-grid { grid-template-columns: 1fr; }
  .kco-pay { position: relative; top: 0; }
}

@media (max-width: 560px) {
  .kco-strip { padding: 14px 16px; }
  .kco-group { padding: 20px 16px; }
  .kco-ghead { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .kco-ghead .kc-thumb.sm { width: 56px; height: 56px; }
  .kco-gname h3 { font-size: 23px; }
  .kco-gname p { display: none; }
  .kco-gprice { font-size: 26px; }
  .kco-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "eng x" "step lt";
    row-gap: 12px; padding: 12px 8px 10px 14px;
  }
  .kco-line .kco-eng { grid-area: eng; }
  .kco-line .kco-x { grid-area: x; align-self: start; }
  .kco-line .kc-step { grid-area: step; justify-self: start; }
  .kco-line .kco-lt { grid-area: lt; padding-right: 6px; }
  .kco-notice { font-size: 13px; }
  .kco-notice p { flex: 1 1 200px; }
  .kco-days { margin-left: 38px; } /* wraps under the text, lined up with it (flag 26 + gap 12) */
  .kco-x { width: 40px; height: 40px; margin: -4px -2px 0 0; }
  .kco-totals { padding: 18px 16px 6px; }
  .kco-totals .row.big b { font-size: 42px; }
  .kco-sumfoot { padding: 8px 16px 18px; }
  .kco-paybody { padding: 18px 16px; }
  .kco-paybtn { --h: 62px; font-size: 12px; padding: 0 16px; }
  .kco-paybtn .kco-dash { display: none; }
  .kco-paybtn .kco-amt { display: block; margin-top: 5px; font-size: 14px; letter-spacing: 0.06em; }
  .kco-multi-hint { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .kc-drawer, .kc-backdrop, .kc-foot, .kc-title > span, .kc-head::after { transition: none !important; }
  .kc-line.enter, .kc-line.fresh::before, .kco-intro * { animation: none !important; }
}
