/* The Store (Toko): /toko/, /en/store/ and their item, order, license and admin pages (scripts/toko.mjs builds them).
   On top of style.css: its tokens, .card, .btn and the form parts of the Mac & Linux page (.dl, .dl-field, .dl-option).
   Flat colours only. */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tk-hero { padding-bottom: 18px; }
.tk-hero h1 { margin-bottom: 18px; }
.tk-hero .lead { margin-bottom: 0; }
.tk-section { padding: 26px 0 70px; }
.tk-how { padding-top: 10px; }
/* a narrow column that starts where the hero's text starts */
.tk-narrow > * { max-width: 800px; }
#tk-lang { margin-left: auto; }
.tk-tag { margin-left: 4px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); font-size: 0.84rem; font-weight: 650; }
.tk-more { margin: 26px 0 0; color: var(--dim); }
.tk-more a, .tk-card a:not(.btn), .tk-launch a { color: var(--em-2); text-decoration: underline; text-underline-offset: 3px; }
.tk-h2 { font-size: 1.6rem; margin: 0 0 18px; letter-spacing: -0.02em; }
.tk-h3 { font-size: 1.15rem; margin: 26px 0 12px; letter-spacing: -0.02em; }
.tk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.tk-crumbs a { color: var(--dim); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.tk-crumbs a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.tk-crumbs [aria-current] { color: var(--dim); }

/* the item's picture, or a quiet placeholder until real screenshots are in toko/items.json */
.tk-pic { margin: 0; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; aspect-ratio: 16 / 10; }
.tk-pic img { width: 100%; height: 100%; object-fit: cover; }
.tk-pic-empty { display: grid; place-items: center; }
.tk-pic-icons { display: flex; gap: 22px; }
.tk-pic-empty i { font-size: 3.2rem; color: #4a5162; }

/* ---- the store: item cards, then what buying means */
/* two items or more share the row (auto-fit: no empty columns beside them) */
.tk-shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.tk-shop { display: flex; flex-direction: column; padding: 0; position: relative; }
/* (an extra that runs only in Poni on Windows: items.json os) */
.tk-os { position: absolute; top: 24px; left: 24px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 9, 13, 0.82); color: #fff; font-size: 0.76rem; font-weight: 700; pointer-events: none; }
.tk-os-line { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 9px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--dim); font-size: 0.88rem; font-weight: 600; }
.tk-shop:hover { border-color: var(--line-2); }
.tk-shop-pic { display: block; padding: 14px 14px 0; }
/* one item: picture and text side by side, across the row */
.tk-shop:only-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-column: 1 / -1; max-width: 1000px; align-items: center; }
.tk-shop:only-child .tk-shop-pic { padding: 14px; }
.tk-shop:only-child .tk-shop-body { padding: 24px 28px 24px 14px; }
.tk-shop-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 24px 24px; }
/* the card's line: two lines at most (items.json `short`, owner 2026-12-04), and the price and buttons at the bottom,
   so they line up across a row */
.tk-shop-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tk-shop .tk-shop-price { margin-top: auto; }
.tk-shop h2 { font-size: 1.45rem; margin: 0; letter-spacing: -0.025em; }
.tk-shop h2 a:hover { color: var(--em-2); }
.tk-shop .btn { margin-top: 6px; }
.tk-shop-price { color: var(--dim) !important; }
.tk-shop-price b { color: var(--text); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
/* the launch price (toko.mjs slots): tag + "Sisa 46 dari 50", a thin bar of what's left, the price after; flat colours */
.tk-slots { align-self: stretch; display: grid; gap: 8px; }
.tk-slots[hidden], .tk-slots-bar[hidden] { display: none; }
.tk-slots-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.tk-slots .tk-tagline { margin: 0; white-space: nowrap; }
.tk-slots-left { color: var(--text); font-size: 0.86rem; font-weight: 600; }
.tk-slots-bar { height: 4px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.tk-slots-bar i { display: block; height: 100%; border-radius: inherit; background: var(--em-2); }
.card .tk-slots-after { font-size: 0.86rem; }
.tk-price .tk-slots { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.tk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 34px; }
.tk-fact { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.tk-fact > i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(52, 211, 153, 0.12); color: var(--em-2); font-size: 0.95rem; }
.tk-fact h3 { font-size: 1rem; margin: 2px 0 4px; }
.tk-fact p { margin: 0; color: var(--dim); font-size: 0.9rem; line-height: 1.55; }

/* ---- an item: what it does on the left, the buy form on the right (stacked on a phone) */
.tk-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 30px; align-items: start; }
.tk-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tk-points li { display: flex; gap: 12px; }
.tk-points i { flex: none; margin-top: 4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(52, 211, 153, 0.12); color: var(--em-2); font-size: 0.7rem; }
.tk-points b { display: block; }
.tk-points span { color: var(--dim); font-size: 0.95rem; }
.tk-free { display: flex; gap: 10px; margin: 22px 0 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--dim); font-size: 0.92rem; line-height: 1.55; }
.tk-free i { margin-top: 4px; color: var(--muted); }
.tk-buy { position: sticky; top: 96px; gap: 24px; padding: 28px; }
/* an item with a video (9:16, the Indonesian page): the video where the picture would be, centred on a panel like the
   picture's, what you get under it (owner, 2026-12-04: beside the points it read as three crowded columns) */
.tk-vid { display: grid; justify-items: center; margin: 0; padding: 28px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); }
.tk-vid video { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #000; }
/* a wide video set on the admin page (toko.js) fills the panel */
.tk-vid-wide video { max-width: 100%; }
.tk-buy .tk-go { width: 100%; }
/* the small print under the buttons: small (`.card p` would make it body size) */
.tk-buy .fine { font-size: 0.86rem; line-height: 1.55; }
.tk-price { display: grid; gap: 8px; }
.card .tk-now { margin: 0; color: var(--text); font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.card .tk-once { margin: 0; color: var(--dim); font-size: 0.92rem; }
/* under the launch line: the regular price may change (owner, 2026-12-03) */
.card .tk-launch-note { margin: 0; padding: 0 2px; color: var(--dim); font-size: 0.82rem; line-height: 1.45; }
.tk-launch-note[hidden] { display: none; }
/* QRIS and PayPal side by side in the narrow buy card */
.tk-buy .dl-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tk-buy .dl-option { display: flex; min-width: 0; }
.tk-buy .dl-option span { flex: 1; justify-content: center; padding: 11px 10px; }
.tk-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; color: var(--dim); max-width: 760px; }
.tk-steps li { position: relative; padding-left: 36px; counter-increment: step; line-height: 1.55; }
.tk-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 0.76rem; font-weight: 750; }

/* ---- the order page and the license page */
.tk-loading { color: var(--dim); }
.tk-card { padding: 28px; margin-bottom: 18px; outline: none; }
.tk-card:hover { border-color: var(--line); }
.tk-card[hidden] { display: none; }
.tk-card h2 { font-size: 1.5rem; margin: 0 0 14px; letter-spacing: -0.02em; }
.tk-card p { margin: 0 0 10px; }
.tk-card p:last-child { margin-bottom: 0; }
.tk-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 24px; margin: 0; }
.tk-sum dt { color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.tk-sum dd { margin: 2px 0 0; color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.tk-tagline { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: var(--em-2); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.28); }
.tk-tagline[hidden] { display: none; }
.tk-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--dim); font-size: 0.84rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.tk-pill.ok { color: var(--em-2); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.tk-pill.off { color: var(--rose); border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.08); }
.tk-copy { margin-left: 4px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--dim); font: 650 0.8rem var(--font); cursor: pointer; vertical-align: middle; }
.tk-copy:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.tk-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 20px; }
.tk-pay[hidden] { display: none; }
.tk-pay > div:last-child { flex: 1 1 240px; }
.tk-pay-pp { margin-bottom: 20px; }
.tk-pay-pp[hidden] { display: none; }
.tk-pay-pp .btn { color: #0a0b10; text-decoration: none; }
.tk-pay-pp .tk-steps { gap: 18px; margin-bottom: 18px; color: var(--text); }
.tk-pay-pp .tk-steps li { line-height: 1.6; }
.tk-pay-pp .tk-steps b { color: var(--text); }
.tk-pay-pp .tk-pp-btn { display: flex; width: fit-content; margin-top: 10px; }
/* PayPal's own checkout: one button to PayPal's page, and why it didn't go */
.tk-pay-pp .tk-pp-go { display: flex; width: fit-content; margin: 4px 0 8px; }
.tk-pay-pp .tk-pp-go[hidden] { display: none; }
.tk-pp-err { margin: 8px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--rose) !important; }
.tk-pp-err:empty { display: none; }
/* the PayPal note: the email and the order code, to copy into PayPal */
.tk-ppnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.tk-ppnote code { padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.06); color: var(--text); font-size: 0.95rem; font-weight: 650; overflow-wrap: anywhere; }
.tk-ppnote .tk-copy { margin-left: 0; }
.tk-ppnote code span { white-space: nowrap; }
/* the QRIS countdown */
.tk-card .tk-timer { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); font-size: 0.92rem; font-weight: 600; }
.tk-timer b { color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tk-again { margin: 18px 0 !important; }
.tk-again .btn { color: #0a0b10; text-decoration: none; }
.tk-card .tk-big { color: var(--text); font-size: 1.25rem; font-weight: 700; }
.tk-big b { color: var(--em-2); font-size: 1.5rem; letter-spacing: -0.02em; }
.tk-deadline { color: var(--text) !important; }
.tk-note { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.tk-poll { color: var(--muted) !important; font-size: 0.85rem !important; }
.tk-key { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 22px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.06); }
/* the key: the one place in the site with monospace, so it's read and typed right */
.tk-key code { flex: 1 1 260px; padding: 0; background: none; color: var(--text); font-size: clamp(1.05rem, 3.4vw, 1.55rem); font-weight: 700; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.tk-key .btn { color: #0a0b10; text-decoration: none; }
.tk-masked { font-weight: 700; color: var(--text); }
.tk-card .tk-steps { margin-bottom: 18px; }
.tk-key-in { font-family: ui-monospace, "Cascadia Code", Consolas, monospace !important; letter-spacing: 0.03em; text-transform: uppercase; }
.tk-key-in::placeholder { text-transform: none; }
.tk-lic-form { max-width: none; margin-bottom: 18px; }
.tk-lic-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tk-lic-head h2 { margin: 0; }
.tk-feats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tk-feats li { padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.08); color: var(--text); font-size: 0.9rem; font-weight: 650; }
.tk-feats i { color: var(--em-2); margin-right: 5px; }
.tk-warn { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.07); color: var(--text) !important; }
.tk-warn[hidden], .tk-none[hidden] { display: none; }
.tk-devs { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.tk-devs:empty { display: none; }
.tk-dev { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.tk-dev > i { width: 22px; text-align: center; color: var(--dim); font-size: 1.15rem; }
.tk-dev div { flex: 1 1 200px; min-width: 0; }
.tk-dev b { display: block; }
.tk-dev small { color: var(--dim); font-size: 0.86rem; }
.tk-dev .btn { flex: none; }

@media (max-width: 900px) {
  .tk-item { grid-template-columns: minmax(0, 1fr); }
  .tk-buy { position: static; }
}
@media (max-width: 640px) {
  .tk-hero { padding-top: 64px; }
  .tk-shops { grid-template-columns: minmax(0, 1fr); }
  .tk-card, .tk-buy { padding: 22px 18px; }
  .card .tk-now { font-size: 2rem; }
  .tk-shop:only-child { display: flex; }
  .tk-shop:only-child .tk-shop-pic { padding: 14px 14px 0; }
  .tk-shop:only-child .tk-shop-body { padding: 18px 22px 22px; }
  .tk-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-key { padding: 16px; }
  .tk-key code { font-size: 0.98rem; letter-spacing: 0; }
  .tk-pay .dl-qr { width: 100%; max-width: 260px; }
  .tk-vid { padding: 18px 14px; }
}

.btn-danger { background: transparent; border-color: rgba(251, 113, 133, 0.45); color: var(--rose); }
.btn-danger:hover { background: rgba(251, 113, 133, 0.1); }

/* ---------------------------------------------------------------------------------------- the account page */
#ak-acc { outline: none; }
#ak-lics { scroll-margin-top: 110px; }
.ak-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 26px; color: var(--dim); font-weight: 600; }
.ak-who b { color: var(--text); overflow-wrap: anywhere; }
.ak-who .btn { margin-left: auto; }
.ak-sec { display: flex; align-items: center; gap: 8px; margin: 34px 0 12px; font-size: 1.1rem; font-weight: 700; color: var(--dim); letter-spacing: 0.01em; }
.ak-who + .ak-sec { margin-top: 0; }
.ak-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.ak-key > span { color: var(--dim); font-size: 0.9rem; font-weight: 650; }
.ak-key code { flex: 1 1 250px; min-width: 0; padding: 0; background: none; font: 600 1rem ui-monospace, Consolas, monospace; letter-spacing: 0.04em; color: var(--text); overflow-wrap: anywhere; }
.ak-new { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); color: var(--text) !important; }
.tk-dev.ak-empty { border-style: dashed; }
.tk-dev.ak-empty b { color: var(--dim); }
.ak-row .tk-pill { flex: none; }
.ak-danger, .ak-danger:hover { border-color: rgba(251, 113, 133, 0.35); }
.ak-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.ak-act:first-child { border-top: 0; padding-top: 0; }
.ak-act[hidden] { display: none; }
.ak-act > div { flex: 1 1 300px; min-width: 0; }
.ak-act b { display: block; margin-bottom: 3px; }
.ak-act small { display: block; color: var(--dim); font-size: 0.92rem; line-height: 1.5; }
.ak-act small.ak-left { margin-top: 4px; color: var(--muted); }
.ak-act .btn:disabled { opacity: 0.5; cursor: default; }
.ak-danger .dl-err:empty { display: none; }
.ak-done { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); margin-bottom: 18px; color: var(--dim); }
.ak-done b { color: var(--text); overflow-wrap: anywhere; }
.ak-done .ak-linkbtn { margin-left: auto; }
.ak-linkbtn { padding: 0; border: 0; background: none; color: var(--em-2); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ak-linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
/* the order page: the key with a code from the order's email (and the buy forms' "send the key by email") */
.tk-reveal { margin: 18px 0; padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.tk-reveal > p { margin-top: 0; }
.tk-reveal .dl-field { margin: 16px 0 0; }
.tk-rv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk-mailkey { align-items: flex-start; }
.tk-mailkey input { flex: none; margin-top: 2px; }
.ak-dialog .dl-check { margin: 4px 0 18px; color: var(--text); }
.dl input.ak-code-in { max-width: 250px; font: 700 1.7rem ui-monospace, Consolas, monospace; letter-spacing: 0.4em; text-align: center; }
.ak-dialog { width: min(560px, calc(100% - 32px)); padding: 28px; border-radius: 22px; border: 1px solid rgba(251, 113, 133, 0.35); background: var(--card-solid); color: var(--text); }
.ak-dialog::backdrop { background: rgba(4, 5, 8, 0.72); }
.ak-dialog h2 { margin: 0 0 12px; font-size: 1.45rem; letter-spacing: -0.02em; }
.ak-dialog p { margin: 0 0 18px; color: var(--dim); line-height: 1.55; }
.ak-dialog ul { margin: 0 0 18px; padding-left: 20px; color: var(--dim); line-height: 1.6; }
.ak-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 640px) {
  .ak-act > .btn, .ak-btns .btn { width: 100%; }
  .ak-who .btn { margin-left: 0; }
}

/* ---------------------------------------------------------------- the cart (owner, 2026-12-03: several items, one order)
   The cart in the top bar (with its count), Add to cart on the store cards and the item page, the bar at the bottom
   while the cart has something, the cart page, and the order page's list of items. Flat colours only. */
.tk-cart-link { order: 2; flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); transition: border-color 0.15s, background 0.15s; }
.tk-cart-link:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
.tk-cart-link b { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--em); color: #06120b; font-size: 0.72rem; line-height: 19px; text-align: center; }
.tk-cart-link + .lang-switch { margin-left: 8px; }

/* a button's display would win over [hidden]: these stay out of sight until toko.js shows them */
.tk-cart-add[hidden], .tk-add[hidden], .tk-incart[hidden], .tk-cart-link b[hidden] { display: none; }
.tk-shop-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-shop-acts .on { border-color: var(--em-2); color: var(--em-2); }

.tk-add { width: 100%; justify-content: center; margin-top: 10px; }
.tk-incart { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; }
.tk-incart i { color: var(--em-2); }
.tk-incart a { color: var(--em-2); font-weight: 650; }
.tk-linkbtn { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tk-linkbtn:hover { color: var(--text); }
.tk-cart-hint { margin-top: 10px; }

.tk-cartbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); white-space: nowrap; }
.tk-cartbar[hidden] { display: none; }
.tk-cartbar > span { color: var(--muted); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; }
.tk-cartbar > span > i { color: var(--em-2); margin-right: 4px; }
.tk-cartbar b { color: var(--text); }
.tk-cartbar .btn { flex: none; }
body.tk-has-bar { padding-bottom: 76px; }

.kr { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.kr[hidden], .kr-empty[hidden], .kr-more[hidden] { display: none; }
.kr-note:empty { display: none; }
/* a link inside an error line ("masuk ke Akun" when the email already owns the item) */
.dl .dl-err a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.kr-note { margin: 0 0 12px; }
.kr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kr-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; }
.kr-ic { width: 52px; height: 52px; border-radius: 14px; background: #1d1630; color: #b98bff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.kr-row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 1.08rem; }
.kr-row h3 a:hover { color: var(--em-2); }
.kr-row small { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 3px; font-weight: 500; }
.kr-row .tk-tagline { margin: 0; white-space: nowrap; }
.kr-price { text-align: right; font-weight: 700; white-space: nowrap; }
.kr-del { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.kr-del:hover { color: var(--rose); border-color: var(--rose); }
.kr-more h2 { font-size: 1rem; margin: 26px 0 10px; color: var(--muted); font-weight: 650; }
.kr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; }
.kr-chip:hover { border-color: var(--em-2); }
.kr-chip i { color: var(--em-2); }
.kr-chip small { color: var(--muted); }
.kr-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kr-total p { margin: 0; color: var(--muted); }
.kr-total b { font-size: 2rem; letter-spacing: -0.03em; color: var(--text); }
.kr-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.kr-lines li { display: flex; justify-content: space-between; gap: 10px; }
.kr-one { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.kr-one i { color: var(--em-2); margin-top: 3px; }
.kr-empty { text-align: center; }

.tk-sum .tk-sum-items { grid-column: 1 / -1; }
.tk-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 460px; }
.tk-items li { display: flex; justify-content: space-between; gap: 12px; }
.tk-items li span { color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .tk-cart-link { margin-left: auto; }
}
@media (max-width: 860px) {
  .kr { grid-template-columns: 1fr; }
  .kr-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .kr-ic { width: 44px; height: 44px; }
  .kr-del { grid-column: 3; grid-row: 1; }
  .kr-price { grid-column: 2 / 4; text-align: left; }
  .tk-cartbar { left: 16px; right: 16px; max-width: none; transform: none; justify-content: space-between; }
  .tk-bar-long, .tk-cartbar > span > i { display: none; }
  .tk-cartbar { gap: 10px; padding-left: 16px; }
}
