/* checkout.css - the checkout + order-confirmation surfaces.
 *
 * These two pages had NO styling at all: `checkout` was not a themed template (it was a fixed
 * render), and no rule existed anywhere in theme/assets for `.totals`, `.qr`, `.hint` or
 * `.error`. `.checkout` itself was styled only as a descendant of `.cart__summary`, so the one
 * page where a shopper commits money rendered as browser-default HTML.
 *
 * Consumes the same design tokens the rest of the theme does (--primary/--bg/--text/--maxw),
 * declared inline by the layout, and is served fingerprinted + immutable via
 * {{ 'checkout.css' | asset_url }}.
 *
 * Class vocabulary is `co-` prefixed and shared by BOTH surfaces (checkout.liquid and
 * order_status.liquid), so the pay step and the confirmation a shopper returns to look like one
 * flow rather than two unrelated pages.
 */

.co {
  --co-rule: #e7e7e7;
  --co-soft: #f7f7f8;
  --co-muted: #6b7280;
  --co-ok-bg: #f0fdf4;
  --co-ok-rule: #bbf7d0;
  --co-ok-text: #166534;
  --co-warn-bg: #fffbeb;
  --co-warn-rule: #fde68a;
  --co-warn-text: #92400e;
  --co-err-bg: #fef2f2;
  --co-err-rule: #fecaca;
  --co-err-text: #b91c1c;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

html[data-theme="dark"] .co,
:root[data-theme="dark"] .co {
  --co-rule: #334155;
  --co-soft: #111a2b;
  --co-muted: #9aa2af;
  --co-ok-bg: #0d2318;
  --co-ok-rule: #1d4d33;
  --co-ok-text: #86efac;
  --co-warn-bg: #241c07;
  --co-warn-rule: #5c4708;
  --co-warn-text: #fcd34d;
  --co-err-bg: #2a1113;
  --co-err-rule: #5f1f22;
  --co-err-text: #fca5a5;
}

/* A wide layout for the address/shipping step, narrow for the receipt. */
.co--wide {
  max-width: 46rem;
}

.co__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.co__lede {
  margin: 0 0 1.5rem;
  color: var(--co-muted);
  line-height: 1.55;
}

/* --- status banners ------------------------------------------------------------------- */

.co-banner {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--co-rule);
  border-radius: 12px;
  line-height: 1.5;
}

.co-banner__title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.co-banner p {
  margin: 0;
}

.co-banner--ok {
  background: var(--co-ok-bg);
  border-color: var(--co-ok-rule);
  color: var(--co-ok-text);
}

.co-banner--wait {
  background: var(--co-warn-bg);
  border-color: var(--co-warn-rule);
  color: var(--co-warn-text);
}

/* "Stopped checking — Check again" under the waiting banner (pay-status.js, BUILD_BRIEF_2026-10-09-B §8). */
.co-pay-poll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.6rem !important;
}

.co-pay-poll[hidden] {
  display: none;
}

/* "Checking your payment…" after the gateway's finish redirect (pay-status.js, BUILD_BRIEF_2026-10-14-B §8). */
.co-pay-checking {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.co-pay-checking[hidden] {
  display: none;
}

.co-pay-checking .co-banner__title {
  margin: 0;
}

.co-spinner {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: co-spin 0.8s linear infinite;
}

@keyframes co-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .co-spinner { animation-duration: 2.4s; }
}

.co-banner--err {
  background: var(--co-err-bg);
  border-color: var(--co-err-rule);
  color: var(--co-err-text);
}

/* --- cards --------------------------------------------------------------------------- */

.co-card {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--co-rule);
  border-radius: 12px;
}

.co-card__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

/* --- money table --------------------------------------------------------------------- */

.co-totals {
  width: 100%;
  border-collapse: collapse;
}

.co-totals th,
.co-totals td {
  padding: 0.45rem 0;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--co-rule);
  vertical-align: top;
}

.co-totals td:last-child,
.co-totals th:last-child {
  text-align: right;
  white-space: nowrap;
}

.co-totals tr:last-child th,
.co-totals tr:last-child td {
  border-bottom: 0;
}

.co-totals__grand th,
.co-totals__grand td {
  padding-top: 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-top: 2px solid var(--co-rule);
}

.co-line__qty {
  color: var(--co-muted);
}

/* --- pay instructions ---------------------------------------------------------------- */

.co-pay {
  text-align: center;
}

.co-pay__qr {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  margin: 0.75rem auto;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--co-rule);
  border-radius: 10px;
  image-rendering: pixelated;
}

.co-pay__code {
  margin: 0.5rem 0;
  padding: 0.7rem 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  background: var(--co-soft);
  border: 1px solid var(--co-rule);
  border-radius: 10px;
  word-break: break-all;
}

/* "Pay (test)" / "Fail (test)" under a simulated code (pay-instructions, simulator only). Dashed, so
   it never reads as part of a real payment page. */
.co-pay__test {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--co-rule);
  border-radius: 10px;
}

.co-pay__test .co-actions {
  margin-top: 0.75rem;
}

.co-hint {
  margin: 0.75rem 0 0;
  color: var(--co-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* The permalink a shopper must be able to come back to. Selectable, wraps, never truncated. */
.co-permalink {
  display: block;
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  background: var(--co-soft);
  border: 1px solid var(--co-rule);
  border-radius: 8px;
  word-break: break-all;
}

/* 10-20 §2 COPY BUTTONS (every shop): beside the VA number and the "Keep this link" address. The button is
   printed hidden and shown by pay-status.js, so with no button the value keeps its full width, as before. */
.co-copy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.co-copy-row > .co-pay__code,
.co-copy-row > .co-permalink {
  flex: 1 1 auto;
  min-width: 0;
}

.co-copy-row--link > .co-permalink {
  margin: 0;
}

.co-copy-row--link {
  margin: 0.4rem 0 0;
}

.co-copy-row .co-copy {
  flex: none;
  width: auto;
  min-width: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.co-copy-row .co-copy[hidden],
.co-copy [hidden] {
  display: none;
}

/* 10-20 §1 THE PAYMENT DEADLINE, when the shop changed it (snippets/pay-deadline): its colour (--co-deadline,
   a validated hex; unset = today's grey) on the "Pay before …" line and on the live countdown under it. */
.co-deadline .co-deadline__line {
  color: var(--co-deadline, var(--co-muted));
}

.co-deadline__count {
  margin: 0.35rem 0 0;
  color: var(--co-deadline, var(--co-muted));
  font-size: 0.875rem;
  line-height: 1.4;
}

.co-deadline__count[hidden] {
  display: none;
}

.co-deadline__clock {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.co-deadline__up {
  font-weight: 600;
}

/* --- form controls ------------------------------------------------------------------- */

.co-field {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.co-field > span {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--co-muted);
}

.co input[type="text"],
.co input[type="email"],
.co input[type="tel"],
.co input[type="number"],
.co select,
.co textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.55rem 0.65rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--co-rule);
  border-radius: 8px;
}

.co fieldset {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--co-rule);
  border-radius: 12px;
}

.co legend {
  padding: 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Radio rows: the whole row is the target, not just the 14px dot. */
.co-choice {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin: 0 0 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--co-rule);
  border-radius: 10px;
  cursor: pointer;
}

.co-choice:last-child {
  margin-bottom: 0;
}

.co-choice input {
  margin: 0;
  flex: 0 0 auto;
}

.co-choice__name {
  flex: 1 1 auto;
}

.co-choice__price {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

/* Free shipping is PER COURIER: one row can be struck to zero while the next is full price.
   The struck fee is muted and un-bolded so the price the shopper actually pays is the one the
   eye lands on, and the offer's name sits under the courier's. */
.co-choice__price s {
  margin-right: 0.35rem;
  color: var(--co-muted);
  font-weight: 400;
}

.co-choice--discounted .co-choice__price {
  color: var(--co-ok-text);
}

.co-choice__promo {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--co-ok-text);
}

/* --- buttons ------------------------------------------------------------------------- */

.co-btn {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--solid-button-text, #fff); /* 10-16 G2: the scheme's Solid button text; white when unset */
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  cursor: pointer;
}

.co-btn:hover {
  opacity: 0.9;
}

.co-btn--secondary {
  color: inherit;
  background: transparent;
  border-color: var(--co-rule);
}

.co-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.co-actions .co-btn {
  width: auto;
  flex: 1 1 12rem;
}

.co-back {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.co-address {
  margin: 0;
  color: var(--co-muted);
  font-style: normal;
  line-height: 1.55;
}

/* --- order summary on the shipping step -------------------------------------------------
 * Discounts are itemised here exactly as on the cart (one row per discount, green, minus-
 * prefixed) so the shopper sees the same breakdown on both surfaces. The colour is
 * reinforcement only: every discount amount also carries a leading minus sign, so the
 * meaning survives without it.
 */
.co-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
}

.co-summary__row small {
  display: block;
  color: var(--co-muted);
  font-size: 0.8rem;
}

/* The order note in the summary. Every other row is a label and an amount, so it does NOT get
   the space-between treatment: a sentence pushed hard right against the numbers column reads as
   a value and wraps into a narrow ragged strip. Stacked, and set apart with a rule, because it
   is the one row that is not money. */
.co-summary__row--note {
  display: block;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--co-border, #ddd);
}

.co-summary__note-text {
  display: block;
  margin-top: 0.15rem;
  color: var(--co-muted);
  /* The shopper's own line breaks, preserved; long unbroken input still has to wrap rather than
     stretch the summary card. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Same row inside the receipt TABLES (order_status.liquid + the confirmation branch of
   checkout.liquid), where the layout is a two-column table rather than flex rows. */
.co-totals__note td {
  color: var(--co-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- printable receipt (order_receipt.liquid) ----------------------------------------------
 * A document on screen and on paper. The two buttons above it are the only interactive part, and
 * the print rules at the end drop them (with the cookie bar), so the printout is the shop's
 * letterhead - the stripped checkout header - and the receipt. The meta row and the two address
 * blocks collapse to one column on a phone, and the unit-price column gives way there too: the
 * quantity and the line total still say it.
 */
.co--receipt {
  max-width: 48rem;
}

.co-receipt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
}

.co-receipt__actions .co-btn {
  width: auto;
  flex: 1 1 12rem;
}

.co-receipt {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--co-rule);
  border-radius: 12px;
}

.co-receipt__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--co-rule);
}

.co-receipt__seller p {
  margin: 0;
  color: var(--co-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.co-receipt__seller .co-receipt__seller-name {
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.co-receipt__title {
  text-align: right;
}

.co-receipt__title h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.co-receipt__title p {
  margin: 0.2rem 0 0;
}

.co-receipt__title .co-receipt__stamp {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--co-ok-rule);
  border-radius: 999px;
  background: var(--co-ok-bg);
  color: var(--co-ok-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: var(--caps-spacing, 0.04em);
  text-transform: var(--caps-transform, uppercase);
}

.co-receipt__title .co-receipt__stamp--part {
  border-color: var(--co-warn-rule);
  background: var(--co-warn-bg);
  color: var(--co-warn-text);
}

.co-receipt__title .co-receipt__stamp--back {
  border-color: var(--co-rule);
  background: var(--co-soft);
  color: var(--co-muted);
}

.co-receipt__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 1.1rem 0;
}

.co-receipt__meta dt,
.co-receipt__label {
  margin: 0 0 0.15rem;
  color: var(--co-muted);
  font-size: 0.8rem;
  letter-spacing: var(--caps-spacing, 0.04em);
  text-transform: var(--caps-transform, uppercase);
}

.co-receipt__meta dd {
  margin: 0;
  font-weight: 600;
}

.co-receipt__parties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 0 1.25rem;
}

.co-receipt__items {
  width: 100%;
  margin: 0 0 0.5rem;
  border-collapse: collapse;
}

.co-receipt__items th,
.co-receipt__items td {
  padding: 0.5rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--co-rule);
}

.co-receipt__items th {
  color: var(--co-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: var(--caps-spacing, 0.04em);
  text-transform: var(--caps-transform, uppercase);
}

.co-receipt__items .co-receipt__num {
  padding-left: 1rem;
  text-align: right;
  white-space: nowrap;
}

.co-receipt__totals {
  max-width: 24rem;
  margin-left: auto;
}

.co-receipt__thanks {
  margin: 1.5rem 0 0;
  color: var(--co-muted);
}

/* Several receipts printed together from the account (round 10): apart on screen, and each one
 * after the first starts a new page on paper (see the print rules below). */
.co-receipt + .co-receipt {
  margin-top: 1.5rem;
}

.co-receipt-link {
  margin: 0 0 1.5rem;
}

@media (max-width: 30rem) {
  .co-receipt {
    padding: 1.1rem 1rem;
  }

  .co-receipt__title {
    text-align: left;
  }

  .co-receipt__items th:nth-child(3),
  .co-receipt__items td:nth-child(3) {
    display: none;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  .co-receipt__actions,
  .cko-top__link,
  .skip-to-content-link,
  #nscms-cookie {
    display: none !important;
  }

  .co--receipt {
    max-width: none;
    padding: 0;
  }

  .co-receipt {
    padding: 0;
    border: 0;
  }

  .co-receipt + .co-receipt {
    margin-top: 0;
    break-before: page;
    page-break-before: always;
  }

  .cko-top {
    border-bottom: 0;
  }

  .cko-top__in {
    padding: 0 0 6mm;
  }

  .co-receipt__stamp {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* --- charge disclosure -------------------------------------------------------------------
 * The settlement amount, shown under a converted total. Deliberately set apart from the
 * summary rows rather than styled as another one: it is not another component of the total,
 * it is the SAME total restated in the currency that will actually be billed, and reading as
 * a summary row would invite it to be added in.
 */
.co-charge {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--co-border, #ddd);
}

.co-charge__rate,
.co-charge__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.co-charge__rate {
  color: var(--co-muted);
  font-size: 0.85rem;
}

.co-charge__total strong {
  font-size: 1.05rem;
}

.co-charge__note {
  margin: 0.4rem 0 0;
  color: var(--co-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.co-summary__row--discount {
  color: #1c7c4a;
}

.co-summary__row--discount code {
  font-size: 0.8em;
  opacity: 0.85;
}

.co-summary__row--total {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--co-rule, #e7e7e7);
  font-weight: 600;
  font-size: 1.05rem;
}

.co-summary__error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #b42318;
}

.co-summary__note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--co-muted);
}

/* --- Destination district (kecamatan) picker ------------------------------------------
 *
 * Replaces `<input type="number" name="ship_area_id">` — a box that asked the shopper to
 * type KiriminAja's internal district id. The control is a combobox: a text input plus a
 * listbox filled by checkout.js. Both are styled here rather than in cart.css because the
 * only page that renders them is checkout step 1.
 *
 * The list is absolutely positioned, so its parent establishes the containing block. It
 * must NOT be display:flex — an author `display` beats the UA stylesheet's
 * `[hidden] { display: none }` at any specificity, which is exactly the bug that once left
 * the cart's "hidden unless a discount applies" subtotal row permanently visible.
 */
.co-district {
  position: relative;
  margin: 0.75rem 0 0;
}

.co-district label {
  display: block;
  margin-bottom: 0.2rem;
}

.co-district input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

.co-district .hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--co-muted);
}

.co-district__list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  margin: 0.15rem 0 0;
  padding: 0.25rem;
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  background: var(--bg, #fff);
  border: 1px solid var(--co-rule);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Belt and braces: the UA rule already hides [hidden], but this file is the one that could
   break it by giving .co-district__list a display value later. */
.co-district__list[hidden] {
  display: none;
}

.co-district__opt {
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.co-district__opt:hover,
.co-district__opt.is-active {
  background: var(--co-soft);
}

/* Ambiguous-name fallback (no JS, or a name matching several districts): the server
   re-renders the page with a radio list instead of a free-text box. */
.co-district--choose {
  padding: 0.75rem;
  border: 1px solid var(--co-warn-rule);
  border-radius: 10px;
  background: var(--co-warn-bg);
}

.co-district__ask {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--co-warn-text);
}

.co-district--choose label.check {
  font-size: 0.9rem;
}

/* THE DISTRICT IS INDONESIA'S ONLY (BUILD_BRIEF_2026-10-07 §1): the box is drawn hidden for an
   address abroad and checkout.js hides it when the country changes away from Indonesia. The field
   style gives it a display, which beats the UA's [hidden] rule, so it is restated here. */
.co-district[hidden],
[data-province-from-district][hidden] {
  display: none;
}

/* THE PROVINCE FOLLOWS THE DISTRICT (§4): the province picked from the district is shown locked —
   not disabled, which would stop it being posted — with "from your district" beside it. Editing
   the district unlocks it (checkout.js). */
[data-province-select][data-province-locked] {
  pointer-events: none;
  background: var(--co-soft);
  color: var(--co-muted);
}

/* --- the discount chooser on the shipping step -------------------------------------------
 * Same control as the cart's (.cart-choice, styled in cart.css); this only fits it into the
 * checkout summary card, which has its own rhythm. Free shipping first becomes eligible on
 * this step, so it is also the first place a choice can be won or lost.
 */
.co-choice {
  margin-top: .6rem;
  border: 1px solid var(--co-rule, #e3e0d8);
  border-radius: 8px;
  background: rgba(0, 0, 0, .015);
}

.co-choice .cart-choice__summary {
  padding: .5rem .6rem;
  font-size: .85rem;
}

.co-choice .cart-choice__list {
  padding: 0 .35rem .3rem;
}

/* "X no longer applies…" — a pin dropped because THIS step's address changed what qualifies. */
.co-summary__swapped {
  margin: .4rem 0 0;
  font-size: .82rem;
  color: #8a5a00;
}

html[data-theme="dark"] .co-summary__swapped {
  color: #e0b661;
}

/* =============================================================================================
 * THE BASIC CHECKOUT (ST-M10a, Figma 337:2652 "Checkout" + 337:2110 "Edit address").
 *
 * One page to look at: a white form column on the left, the order summary on a warm-grey panel
 * running the full height on the right, under a stripped header (logo + Privacy policy). The
 * server still runs two phases (information -> shipping); both render into this same frame.
 *
 * Measured off the frame (1920 wide): the header is 123px with a hairline under it; each column's
 * content is 572px wide; the left column's content starts on the page's content edge (the same
 * --maxw column the storefront header uses) and the panel's content ends on it; 104px above the
 * title. The colours ARE the Account area's tokens: account.css declares --acct-ink/-muted/-line/
 * -soft on the checkout roots too, and the --cko-* names below only alias them — the two areas
 * were drawn in the same file and read as one shop, and the .acct-* fields, hints and buttons the
 * checkout reuses resolve their own tokens here.
 *
 * Everything here is scoped to .cko / .cko-* so the order-status page, which shares the co-
 * vocabulary above, is untouched.
 * ============================================================================================= */

.cko,
.cko-note,
.cko-top,
.cko-dialog {
  --cko-ink: var(--acct-ink);
  --cko-muted: var(--acct-muted);
  --cko-line: var(--acct-line);
  --cko-soft: var(--acct-soft);
  --cko-err: #b3261e;
  /* The co- banners, district chooser and charge disclosure read these; outside .co they would be
     undefined and paint nothing. Same values as .co, squared off below. */
  --co-rule: var(--cko-line);
  --co-border: var(--cko-line);
  --co-soft: var(--cko-soft);
  --co-muted: var(--cko-muted);
  --co-ok-bg: #eef8f1;
  --co-ok-rule: #b9dfc6;
  --co-ok-text: #11632f;
  --co-warn-bg: #fdf5e3;
  --co-warn-rule: #f3d9a2;
  --co-warn-text: #8a5a00;
  --co-err-bg: #fdf1ef;
  --co-err-rule: #f0c2bd;
  --co-err-text: #b3261e;
}

/* The grey panel reaches the bottom of the window however short the form is. */
body:has(> .cko-main) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

.cko-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  padding: 0;
}

.cko-main > .cko,
.cko-main > .cko-note {
  flex: 1 0 auto;
}

/* --- the stripped header ------------------------------------------------------------------ */

.cko-top {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--cko-line);
  background: #fff;
}

.cko-top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.25rem, 2.6vw, 2.5rem) 1.25rem;
}

.cko-top__brand {
  font-family: var(--font-heading, var(--font-body));
  font-size: clamp(1.5rem, 2.2vw, 2.1875rem);
  font-weight: 400;
  letter-spacing: var(--caps-spacing, 0.0875rem);
  line-height: 1.2;
  text-transform: var(--caps-transform, uppercase);
  color: var(--cko-ink);
  text-decoration: none;
  white-space: nowrap;
}

.cko-top__logo {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 44px;
  object-fit: contain;
}

.cko-top__link {
  font-size: 0.875rem;
  color: var(--cko-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --- the two columns ------------------------------------------------------------------------ */

.cko {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  color: var(--cko-ink);
}

/* Each column's outer padding lines its content up with the page's content column: 100% here is
   the column (half the page), so 100% - maxw/2 is the gutter outside --maxw. */
.cko__main {
  padding: 6.5rem clamp(1.25rem, 6vw, 11.5rem) 6rem max(1.25rem, calc(100% - var(--maxw, 75rem) / 2 + 1.25rem));
  background: #fff;
}

.cko__aside {
  padding: 6.5rem max(1.25rem, calc(100% - var(--maxw, 75rem) / 2 + 1.25rem)) 6rem clamp(1.25rem, 6vw, 12rem);
  background: var(--cko-soft);
}

.cko__col {
  max-width: 35.75rem;
}

.cko__title {
  margin: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cko-line);
  font-family: var(--font-heading, inherit);
  font-size: clamp(2rem, 3.4vw, 2.8125rem);
  font-weight: 400;
  line-height: 1.1;
  text-transform: var(--caps-transform, uppercase);
  color: var(--cko-ink);
}

.cko-banner {
  margin: 1.5rem 0 0;
  border-radius: 0;
}

.cko-banner .error {
  margin: 0;
}

/* --- sections, fields --------------------------------------------------------------------- */

.cko-section {
  margin-top: 3.25rem;
}

.cko-section--tight {
  margin-top: 2rem;
}

.cko-section > .acct-field,
.cko-section > .acct-fields {
  margin-top: 0;
}

.cko-section > * + * {
  margin-top: 1rem;
}

.cko-section__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading, inherit);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: var(--caps-transform, uppercase);
  color: var(--cko-ink);
}

.cko-section__title + * {
  margin-top: 0;
}

.cko-section__intro {
  margin: -0.625rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--cko-muted);
}

.cko-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--caps-spacing, 0.1rem);
  text-transform: var(--caps-transform, uppercase);
  color: var(--cko-ink);
}

/* .acct-field (account.css) is the design's field: small tracked capitals above a 46px box. Hints
   and suggestion lists inside one must not inherit the capitals. */
.cko .acct-field .acct-hint,
.cko-dialog .acct-field .acct-hint,
.cko-district .co-district__list {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.cko .acct-hint,
.cko-dialog .acct-hint {
  margin: 0;
}

.cko .acct-field input:focus,
.cko .acct-field select:focus,
.cko .acct-field textarea:focus,
.cko-dialog .acct-field select:focus {
  outline: none;
  border-color: var(--cko-ink);
}

/* A select that looks like the inputs beside it, with the design's chevron. */
.cko-select select,
.cko-phone__cc {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230f0c0b' d='M8 10.94a.5.5 0 0 1-.35-.15l-4-4a.5.5 0 1 1 .7-.7L8 9.73l3.65-3.64a.5.5 0 0 1 .7.7l-4 4a.5.5 0 0 1-.35.15Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
}

.cko-phone__row {
  display: flex;
}

/* Wide enough for the country's initials before the code ("ID +62", "BD +880"). */
.cko-phone__cc {
  flex: 0 0 8.25rem;
  min-width: 0;
  margin-right: -1px;
}

.cko-phone__row input {
  flex: 1 1 auto;
  min-width: 0;
}

/* THE SEARCHABLE DROPDOWN (owner 2026-10-12: "not this shitty html dropdown"). checkout.js
   enhanceSelect wraps each country box and calling-code box in .cselect: a button drawn as the
   field above (the same 46px box, line, type and chevron), and a list with a search box that opens
   under it. The native <select> stays inside, invisible but in the page, as the form's value — so
   these rules only apply once the script has added .is-enhanced; without it the select shows as
   before. Colours are the Account area's palette (account.css --acct-*), which the checkout, its
   dialog and the account's dialogs all carry. The calling code's list spans the whole phone row
   (.cselect-anchor), wide enough for "Indonesia ... +62". */
.cselect {
  display: block;
  position: relative;
  min-width: 0;
}

.cselect--dial {
  position: static;
  flex: 0 0 8.25rem;
  margin-right: -1px;
}

.cselect-anchor {
  position: relative;
}

.cselect:not(.is-enhanced) > .cselect__trigger,
.cselect:not(.is-enhanced) > .cselect__pop {
  display: none;
}

/* Invisible, not removed: the browser's own "please select" still points here. */
.cselect.is-enhanced > select {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.cselect__trigger {
  display: flex;
  position: relative; /* 10-15-C §3: holds the chevron (::after below) */
  align-items: center;
  width: 100%;
  height: 2.875rem;
  margin: 0;
  padding: 0 2.5rem 0 0.875rem;
  border: 1px solid var(--acct-line);
  border-radius: 0;
  background-color: #fff;
  color: var(--acct-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  cursor: pointer;
}

/* 10-15-C §3: the chevron is the same 16px glyph the box always drew, 0.875rem from its right edge,
   but painted in the box's text colour (a mask over currentColor) instead of a fixed dark picture,
   so it shows on a dark colour scheme too (the contact form's calling code). On the checkout the
   text colour is --acct-ink (#0f0c0b), the colour the picture had, so it looks as before. */
.cselect__trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.875rem;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.94a.5.5 0 0 1-.35-.15l-4-4a.5.5 0 1 1 .7-.7L8 9.73l3.65-3.64a.5.5 0 0 1 .7.7l-4 4a.5.5 0 0 1-.35.15Z'/%3E%3C/svg%3E") no-repeat center / 1rem 1rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.94a.5.5 0 0 1-.35-.15l-4-4a.5.5 0 1 1 .7-.7L8 9.73l3.65-3.64a.5.5 0 0 1 .7.7l-4 4a.5.5 0 0 1-.35.15Z'/%3E%3C/svg%3E") no-repeat center / 1rem 1rem;
  pointer-events: none;
}

/* A locked box greys its words but kept a dark chevron; it still does. */
.cselect__trigger:disabled::after {
  background-color: var(--acct-ink, currentColor);
}

.cselect__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cselect__trigger:focus,
.cselect.is-open > .cselect__trigger,
.cselect:focus-within > .cselect__trigger {
  outline: none;
  border-color: var(--acct-ink);
}

/* A required box the browser refused (the select's `invalid`), red like account.css's inputs. */
.cselect__trigger[aria-invalid="true"] {
  border-color: var(--cko-err, #b3261e);
}

/* Nothing chosen yet (the province's "Select one"): read as a placeholder. */
.cselect.is-empty .cselect__value {
  color: var(--acct-muted);
}

/* Locked by the district (the province): the district's province, read-only, with "from your
   district" under it; same muted look as a disabled box. */
.cselect__trigger:disabled {
  background-color: var(--acct-soft);
  color: var(--acct-muted);
  cursor: default;
}

.cselect__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cselect__pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: 22rem;
  border: 1px solid var(--acct-line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--acct-ink);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.cselect__pop.is-up {
  top: auto;
  bottom: calc(100% + 0.25rem);
}

.cselect__pop[hidden] {
  display: none;
}

/* Two classes deep: it must beat .acct-field input and .cko-phone__row input. */
.cselect .cselect__search {
  flex: none;
  height: 2.5rem;
  margin: 0.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--acct-line);
  border-radius: 0;
  background: #fff;
  color: var(--acct-ink);
  font: inherit;
  font-size: 0.9375rem;
}

.cselect .cselect__search:focus {
  outline: none;
  border-color: var(--acct-ink);
}

/* Fewer than 8 rows: no search box on screen. It keeps the keyboard focus (arrows, Enter, Esc),
   so it is moved out of sight rather than removed. */
.cselect .cselect__pop.is-short .cselect__search {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.cselect__list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 0.375rem;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cselect__opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  line-height: 1.3;
  cursor: pointer;
}

.cselect__opt[hidden] {
  display: none;
}

.cselect__opt.is-active {
  background: var(--acct-soft);
}

.cselect__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cselect__opt[aria-selected="true"] .cselect__name {
  font-weight: 500;
}

.cselect__code {
  flex: none;
  color: var(--acct-muted);
  font-variant-numeric: tabular-nums;
}

.cselect__check {
  display: flex;
  flex: none;
  width: 1rem;
  height: 1rem;
  visibility: hidden;
}

.cselect__check svg {
  width: 1rem;
  height: 1rem;
}

.cselect__opt[aria-selected="true"] .cselect__check {
  visibility: visible;
}

.cselect__none {
  margin: 0;
  padding: 0.25rem 0.875rem 0.75rem;
  color: var(--acct-muted);
  font-size: 0.875rem;
}

.cselect__none[hidden] {
  display: none;
}

/* A phone: rows a thumb can hit, and a 16px search box so iOS does not zoom the page on focus. */
@media (max-width: 480px) {
  .cselect__opt {
    min-height: 2.75rem;
  }

  .cselect .cselect__search {
    font-size: 1rem;
  }
}

.cko-note-field textarea {
  min-height: 6rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--cko-line);
  border-radius: 0;
  background: #fff;
  color: var(--cko-ink);
  font: inherit;
  font-size: 0.9375rem;
  letter-spacing: normal;
  text-transform: none;
  resize: vertical;
}

/* Inline checkboxes (marketing, store credit, the policies). */
.cko .check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--cko-ink);
  cursor: pointer;
}

.cko .check input,
.cko .cko-radio input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--cko-ink);
}

.cko-agree {
  margin-top: 2.5rem;
}

.cko .cko-agree .check {
  align-items: flex-start;
}

.cko .cko-agree .check input {
  margin-top: 0.125rem;
}

.cko-agree a {
  color: var(--cko-ink);
  text-underline-offset: 0.2em;
}

/* The district picker sits in the field grid as one more field. */
.cko-district {
  margin: 0;
}

.cko-district .co-district__list {
  background: #fff;
  border-color: var(--cko-line);
  border-radius: 0;
  color: var(--cko-ink);
}

/* Why the district box refused the address (an Indonesian address needs its kecamatan, owner
   2026-10-03): one line in the error red under the box, which account.css already borders red
   (.acct-field input[aria-invalid="true"]). In the field's own small type, not its capitals. */
.cko-field-error {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--cko-err);
}

/* The refused box stays red while it has the focus the refusal gave it (the checkout's focus rule
   above would otherwise paint it ink). */
.cko .cko-district input[aria-invalid="true"],
.cko .cko-district input[aria-invalid="true"]:focus {
  border-color: var(--cko-err);
}

.cko .co-district--choose,
.cko-dialog .co-district--choose {
  border-radius: 0;
}

/* --- contact line + the ship-to card (shipping phase) ------------------------------------ */

.cko-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--cko-ink);
  min-width: 0;
}

.cko-contact__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
  border: 1px solid var(--cko-line);
  font-size: 0.875rem;
  line-height: 1;
}

.cko-contact__email {
  overflow-wrap: anywhere;
}

.cko-shipto {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--cko-line);
  background: #fff;
}

.cko-shipto__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--caps-spacing, 0.1rem);
  text-transform: var(--caps-transform, uppercase);
  color: var(--cko-muted);
}

.cko-shipto__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.cko-shipto__addr {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cko-muted);
  overflow-wrap: anywhere;
}

/* The ⋮ menu: a <details>, so it opens with no script. */
.cko-menu {
  position: relative;
  align-self: start;
}

.cko-menu__toggle {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  list-style: none;
  color: var(--cko-ink);
  cursor: pointer;
}

.cko-menu__toggle::-webkit-details-marker {
  display: none;
}

.cko-menu__toggle:focus-visible {
  outline: 2px solid var(--cko-ink);
  outline-offset: 2px;
}

.cko-menu__list {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 30;
  min-width: 12rem;
  border: 1px solid var(--cko-line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 12, 11, 0.08);
}

.cko-menu__item {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 0;
  background: #fff;
  color: var(--cko-ink);
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.cko-menu__item + .cko-menu__item {
  border-top: 1px solid var(--cko-line);
}

.cko-menu__item:hover,
.cko-menu__item:focus-visible {
  background: var(--cko-soft);
}

.cko-optin {
  margin-top: 1.5rem;
}

/* --- "Pesanan ini untuk orang lain" (BUILD_BRIEF_2026-10-23 §3, checkout_gift.go) ----------- */

/* The two extra fields show only while the box is ticked. CSS only, so it works without
   JavaScript; the server ignores them unticked anyway. */
.cko-gift {
  display: grid;
  gap: 0.75rem;
}

.cko-gift__more {
  display: none;
  gap: 0.75rem;
}

.cko-gift:has([data-gift-toggle]:checked) .cko-gift__more {
  display: grid;
}

.cko-gift__sender {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.cko-gift__sender legend {
  padding: 0;
  margin-bottom: 0.25rem;
}

/* --- Ship / Pick up in store (0463) ------------------------------------------------------ */

/* Two submit buttons drawn as one segmented choice; the active one is filled. */
.cko-delivery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--cko-line);
  background: #fff;
}

.cko-delivery__opt {
  min-height: 3.25rem;
  padding: 0.875rem 1rem;
  border: 0;
  background: #fff;
  color: var(--cko-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.cko-delivery__opt + .cko-delivery__opt {
  border-left: 1px solid var(--cko-line);
}

.cko-delivery__opt.is-active {
  background: var(--cko-soft);
  box-shadow: inset 0 0 0 2px var(--cko-ink);
}

.cko-delivery__opt:focus-visible {
  outline: 2px solid var(--cko-ink);
  outline-offset: 2px;
}

.cko-pickup__addr,
.cko-pickup__ready {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--cko-muted);
  overflow-wrap: anywhere;
}

/* "Change" on the Pick up at card: a plain text button, like a link. */
.cko-shipto__change {
  align-self: start;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--cko-ink);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
}

/* --- radio groups: shipping, payment, billing -------------------------------------------- */

.cko-radios {
  border: 1px solid var(--cko-line);
  background: #fff;
}

/* .co-choice also styles these rows for the order-status vocabulary; inside .cko the design wins. */
.cko .cko-radio {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.875rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.cko .cko-radio + .cko-radio {
  border-top: 1px solid var(--cko-line);
}

.cko .cko-radio:has(input:checked) {
  background: var(--cko-soft);
}

/* A heading over one group of payment methods (e-wallets, virtual accounts, … — the methods the
   merchant switched on in Settings > Payments, 0465). It separates like a row does, and the row
   after it keeps its own top rule, which `.cko-radio + .cko-radio` no longer gives it. */
.cko .cko-radios__group {
  margin: 0;
  padding: 0.75rem 1.25rem 0.375rem;
  border-top: 1px solid var(--cko-line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--caps-spacing, 0.04em);
  text-transform: var(--caps-transform, uppercase);
  color: var(--cko-muted);
}

.cko .cko-radios__group:first-child {
  border-top: 0;
}

.cko .cko-radios__group + .cko-radio {
  border-top: 1px solid var(--cko-line);
}

/* The staff-only test section (BUILD_BRIEF_2026-10-14-E §3): its own box under the real methods,
   dashed so it never reads as one of the shop's ways to pay. */
.cko .cko-radios--test {
  margin-top: 0.75rem;
  border-style: dashed;
}

.cko-radio__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.cko .cko-radio__aside {
  flex: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--cko-muted);
  white-space: nowrap;
}

.cko .co-choice--discounted .cko-radio__aside {
  color: var(--co-ok-text);
}

.cko .co-choice__promo {
  font-weight: 400;
  font-size: 0.8125rem;
}

/* The billing fields: revealed under "Use a different billing address" with no script (:has), and
   by checkout.js's .is-different where :has is missing. */
.cko-billing__fields {
  display: none;
  padding: 1.25rem;
  border-top: 1px solid var(--cko-line);
  background: var(--cko-soft);
}

.cko-billing:has(.cko-billing__different:checked) .cko-billing__fields,
.cko-billing.is-different .cko-billing__fields {
  display: block;
}

/* --- buttons -------------------------------------------------------------------------------- */

.cko-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.125rem;
  padding: 0 1.5rem;
  border: 1px solid var(--cko-ink, #0f0c0b);
  /* 10-15-C §4: the theme's button shape (§1 S2, section_style.go --button-radius); square when unset. */
  border-radius: var(--button-radius, 0);
  background: var(--cko-ink, #0f0c0b);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.124rem;
  text-transform: var(--button-text-transform, uppercase); /* 10-15-C §3: Button text; capitals when unset */
  text-decoration: none;
  cursor: pointer;
}

.cko-btn:hover {
  background: #2b2724;
}

.cko-btn--outline {
  background: #fff;
  color: var(--cko-ink, #0f0c0b);
}

.cko-btn--outline:hover {
  background: var(--cko-soft, #f8f8f7);
}

.cko-btn--block {
  width: 100%;
}

.cko-submit {
  margin-top: 2.5rem;
}

.cko-submit[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

.cko-back {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
}

.cko-back a {
  color: var(--cko-ink, #0f0c0b);
  text-underline-offset: 0.2em;
}

.cko-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cko-actions .cko-btn {
  flex: 1 1 12rem;
}

/* --- the order summary (the grey panel) ------------------------------------------------ */

.cko-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cko-line {
  display: grid;
  grid-template-columns: 3.375rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--cko-line);
}

.cko-line__media {
  width: 3.375rem;
  aspect-ratio: 3 / 4;
  background: #eceae8;
  overflow: hidden;
}

.cko-line__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cko-line__title {
  margin: 0;
  font-family: var(--font-heading, inherit);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: var(--caps-spacing, 0.06rem);
  text-transform: var(--caps-transform, uppercase);
  overflow-wrap: anywhere;
}

.cko-line__variant {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: var(--cko-muted);
}

.cko-line__price {
  text-align: right;
  white-space: nowrap;
}

.cko-line__now {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03rem;
}

.cko-line__was {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--cko-muted);
}

/* The colour swatch: the SAME curated palette as the product page's picker (product.css), keyed
   off data-swatch. Go only sets data-swatch for a value in this palette (checkout_page.go
   swatchColours), so an unknown colour is words only, never an empty square. */
.cko-line__swatch {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  border: 1px solid rgba(15, 12, 11, 0.12);
  background: #9ca3af;
}

.cko-line__swatch[data-swatch="black"] { background: #111111; }
.cko-line__swatch[data-swatch="white"] { background: #ffffff; }
.cko-line__swatch[data-swatch="grey"],
.cko-line__swatch[data-swatch="gray"] { background: #9ca3af; }
.cko-line__swatch[data-swatch="silver"] { background: #d1d5db; }
.cko-line__swatch[data-swatch="red"],
.cko-line__swatch[data-swatch="merah"] { background: #dc2626; }
.cko-line__swatch[data-swatch="pink"] { background: #ec4899; }
.cko-line__swatch[data-swatch="orange"] { background: #f97316; }
.cko-line__swatch[data-swatch="yellow"] { background: #facc15; }
.cko-line__swatch[data-swatch="green"],
.cko-line__swatch[data-swatch="hijau"] { background: #16a34a; }
.cko-line__swatch[data-swatch="teal"] { background: #0d9488; }
.cko-line__swatch[data-swatch="blue"],
.cko-line__swatch[data-swatch="biru"] { background: #2563eb; }
.cko-line__swatch[data-swatch="navy"] { background: #1e3a8a; }
.cko-line__swatch[data-swatch="purple"] { background: #7c3aed; }
.cko-line__swatch[data-swatch="brown"] { background: #92400e; }
.cko-line__swatch[data-swatch="beige"] { background: #e7d8c0; }
.cko-line__swatch[data-swatch="cream"] { background: #f5efdc; }
.cko-line__swatch[data-swatch="gold"] { background: #d4af37; }

.cko-promo {
  margin-top: 2rem;
}

.cko-promo__form {
  margin: 0;
}

.cko-promo__row {
  display: flex;
}

.cko-promo__row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--cko-line);
  border-radius: 0;
  background: #fff;
  color: var(--cko-ink);
  font: inherit;
  font-size: 0.875rem;
}

.cko-promo__row input:focus {
  outline: none;
  border-color: var(--cko-ink);
}

.cko .cko-promo__apply {
  min-height: 2.75rem;
  margin-left: -1px;
  padding: 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
}

.cko-promo__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0.25rem 0.375rem 0.25rem 0.75rem;
  border: 1px solid var(--cko-line);
  background: #fff;
  font-size: 0.8125rem;
  letter-spacing: var(--caps-spacing, 0.05rem);
  text-transform: var(--caps-transform, uppercase);
}

.cko-promo__pill.is-rejected {
  border-color: var(--co-err-rule);
  color: var(--cko-err);
}

.cko-promo__remove {
  position: relative; /* anchors the visually-hidden "Remove code" label inside it */
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.cko-promo__error,
.cko-promo__note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.cko-promo__error {
  color: var(--cko-err);
}

.cko-promo__note {
  color: var(--cko-muted);
}

.cko .co-summary__swapped {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

/* The discount chooser, fitted to the panel (the control itself is cart.css's .cart-choice). */
.cko .cko-choice {
  display: block;
  margin-top: 1rem;
  padding: 0;
  border: 1px solid var(--cko-line);
  border-radius: 0;
  background: #fff;
}

.cko-totals {
  margin-top: 2rem;
}

.cko-totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--cko-muted);
}

.cko-totals__value {
  color: var(--cko-ink);
  font-weight: 500;
  text-align: right;
}

.cko-totals__value s {
  margin-right: 0.35rem;
  color: var(--cko-muted);
  font-weight: 400;
}

.cko-totals__value--muted {
  color: var(--cko-muted);
  font-weight: 400;
}

.cko-totals__sub {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
}

.cko-totals__row.co-summary__row--discount,
.cko-totals__row.co-summary__row--discount .cko-totals__value {
  color: #1c7c4a;
}

.cko-totals__row code {
  font-size: 0.75rem;
}

.cko-totals__row--total {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cko-line);
  font-weight: 500;
  letter-spacing: var(--caps-spacing, 0.1rem);
  text-transform: var(--caps-transform, uppercase);
  color: var(--cko-ink);
}

.cko-totals__row--total .cko-totals__value {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: normal;
  /* The row's label is uppercase ("TOTAL"); the money is not — "RP 974.000" is not how a
     rupiah amount is written anywhere else on the page. */
  text-transform: none;
}

.cko .co-charge {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.cko-summary-note {
  margin-top: 1.5rem;
}

/* Gift points this order earns (BUILD_BRIEF_2026-10-12-J §6). */
.cko-earn {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.cko-earn__line {
  margin: 0;
  font-weight: 600;
  color: #1f7a4d;
}
.cko-earn__guest {
  margin: 0.25rem 0 0;
  color: #414148;
}

.cko-summary-note__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cko-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cko-summary__fine {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--cko-muted);
}

.cko-summary__fine a {
  color: var(--cko-ink);
  text-underline-offset: 0.2em;
}

/* --- the Edit address dialog (account.css .acct-dialog) ---------------------------------- */

.cko-dialog .acct-dialog__close {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.cko-dialog .acct-dialog__body {
  gap: 1rem;
}

.cko-dialog .acct-dialog__box > form {
  margin: 0;
}

/* --- refusals, errors, the fallback confirmation ------------------------------------------- */

.cko-note {
  padding: 5rem 1.25rem 6rem;
  color: var(--cko-ink);
}

.cko-note__box {
  max-width: 40rem;
  margin: 0 auto;
}

.cko-note__box.co {
  padding: 0;
}

/* --- phone width (no mobile is drawn: designed from the same tokens) ------------------------ */

@media (max-width: 899px) {
  .cko {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The summary first, so the shopper sees what they are paying for before the form. */
  .cko__aside {
    order: -1;
    padding: 2rem 1.25rem;
    border-bottom: 1px solid var(--cko-line);
  }

  .cko__main {
    padding: 2.5rem 1.25rem 4rem;
  }

  .cko__col {
    max-width: 36rem;
    margin: 0 auto;
  }

  .cko-section {
    margin-top: 2.5rem;
  }

  .cko-shipto {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
  }

  .cko-shipto__label {
    grid-column: 1 / -1;
  }

  .cko-note {
    padding: 3rem 1.25rem 4rem;
  }
}

@media (max-width: 480px) {
  .cko .cko-radio {
    gap: 0.875rem;
    padding: 0.875rem 1rem;
  }

  .cko-line {
    gap: 0.875rem;
  }
}

/* MANUAL BANK TRANSFER (BUILD_BRIEF_2026-10-12 section 4).
   The checkout row: the shop's banks under the name, and the reveal text while the row is chosen.
   The summary's "Kode unik" line shows only while manual transfer is the chosen method. */
.cko .cko-radio:has(.cko-radio__reveal) {
  flex-wrap: wrap;
}

.cko .cko-radio__sub {
  flex: 1 1 100%;
  padding-left: 2rem;
  font-size: 0.8125rem;
  color: var(--cko-muted);
}

.cko .cko-radio__reveal {
  display: none;
  flex: 1 1 100%;
  padding-left: 2rem;
  font-size: 0.875rem;
  color: var(--cko-muted);
}

.cko .cko-radio:has(input:checked) .cko-radio__reveal {
  display: block;
}

.cko [data-kode-unik] {
  display: none;
}

.cko:has(input[name="method"][value="bank_transfer_manual"]:checked) [data-kode-unik] {
  display: flex;
}

/* The order page's "Waiting for your transfer" block (snippets/manual-transfer.liquid). */
.co-mt__rows {
  margin: 0 0 1rem;
  border: 1px solid var(--co-rule);
}

.co-mt__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--co-rule);
}

.co-mt__row:first-child {
  border-top: 0;
}

.co-mt__key {
  display: block;
  font-size: 0.75rem;
  letter-spacing: var(--caps-spacing, 0.04em);
  text-transform: var(--caps-transform, uppercase);
  color: var(--co-muted);
}

.co-mt__row > div {
  flex: 1 1 auto;
  min-width: 0;
}

.co-mt__value {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* .co-btn is a full-width checkout button; here it is a small one beside its value. */
.co-mt__copy {
  flex: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.8rem;
  font-size: 0.8125rem;
}

.co-mt__form label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.875rem;
  color: var(--co-muted);
}

.co-mt__form input[type="text"],
.co-mt__form select,
.co-mt__form input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.co-mt__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  border: 1px solid var(--co-rule);
}
/* =============================================================================================
 * 10-15-C §4 — THE CHECKOUT LOOK (the theme's "Checkout" settings, storefront/checkout_look.go).
 *
 * Every rule here keys on a class or a token only a non-default setting puts on the page
 * (.cko--pay-grouped, .cko--ship-grouped, .cko__aside--card, .cko--fields-filled), or on a theme
 * token that is undeclared while its own setting is at its default (--sec-radius, --button-radius:
 * 0 then) — so a shop on the defaults sees today's checkout.
 * ============================================================================================= */

/* The theme's corner radius (§1 S3) on the checkout's fields; square while it is unset. */
.cko .acct-field input,
.cko .acct-field select,
.cko .acct-field textarea,
.cko-dialog .acct-field input,
.cko-dialog .acct-field select,
.cko-dialog .acct-field textarea,
.cko .cselect__trigger,
.cko-dialog .cselect__trigger,
.cko-promo__row input,
.cko-note-field textarea {
  border-radius: var(--sec-radius, 0);
}

/* --- C4: filled fields, from the chosen colour scheme (--cko-field-bg / -fg on .cko) --------- */

.cko--fields-filled .acct-field input,
.cko--fields-filled .acct-field select,
.cko--fields-filled .acct-field textarea,
.cko--fields-filled .cselect__trigger,
.cko--fields-filled .cko-promo__row input,
.cko--fields-filled .cko-note-field textarea {
  border-color: transparent;
  background-color: var(--cko-field-bg, var(--cko-soft));
  color: var(--cko-field-fg, var(--cko-ink));
}

.cko--fields-filled .acct-field input:focus,
.cko--fields-filled .acct-field select:focus,
.cko--fields-filled .acct-field textarea:focus,
.cko--fields-filled .cselect.is-open > .cselect__trigger,
.cko--fields-filled .cselect:focus-within > .cselect__trigger,
.cko--fields-filled .cko-promo__row input:focus {
  border-color: var(--cko-ink);
}

.cko--fields-filled .acct-field input[aria-invalid="true"],
.cko--fields-filled .cselect__trigger[aria-invalid="true"] {
  border-color: var(--cko-err);
}

/* A filled box beside a shaped button reads as two things, so they stand apart. */
.cko--fields-filled .cko-promo__row {
  gap: 0.625rem;
}

.cko--fields-filled .cko-promo__apply {
  margin-left: 0;
}

/* --- C3: the summary as a white card on a colour or an image ------------------------------- */

.cko__aside--card {
  position: relative;
  isolation: isolate;
  background: var(--cko-aside-bg, var(--cko-soft));
}

.cko__aside-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cko__aside--card > .cko__col {
  padding: 1.5rem;
  border-radius: max(var(--sec-radius, 0px), 0.75rem);
  background: #fff;
}

@media (max-width: 899px) {
  .cko__aside-bg {
    display: none;
  }

  .cko__aside--card > .cko__col {
    padding: 1.25rem 1rem;
  }
}

/* --- C1: one choice per payment group ------------------------------------------------------ */

/* Without JavaScript (no .is-enhanced) a group is today's list: its heading, then its methods as
   the real radios. checkout.js draws the head and the dropdown, and hides those radios. */
.cko-paygroups:not(.is-enhanced) .cko-paygroup__head,
.cko-paygroups:not(.is-enhanced) .cko-paygroup__menu,
.cko-paygroups.is-enhanced .cko-paygroup__name,
.cko-paygroups.is-enhanced .cko-paygroup__opt {
  display: none;
}

.cko .cko-paygroup + .cko-radio,
.cko .cko-radio + .cko-paygroup,
.cko .cko-paygroup + .cko-paygroup {
  border-top: 1px solid var(--cko-line);
}

/* The rule above the group already separates it; its heading needs none of its own. */
.cko .cko-paygroup > .cko-paygroup__name {
  border-top: 0;
}

.cko .cko-paygroup__head {
  flex-wrap: wrap;
  row-gap: 0.125rem;
}

.cko .cko-paygroup__head .cko-paygroup__chosen {
  display: none;
}

.cko .cko-paygroup.is-chosen .cko-paygroup__head .cko-paygroup__chosen {
  display: block;
}

.cko-paygroup__menu {
  display: none;
  padding: 0 1.25rem 1rem 3.25rem;
  background: var(--cko-soft);
}

.cko-paygroup.is-chosen > .cko-paygroup__menu {
  display: block;
}

/* --- C2: delivery grouped by speed --------------------------------------------------------- */

.cko-shipgroups {
  border: 1px solid var(--cko-line);
  background: #fff;
}

.cko-shipgroup + .cko-shipgroup {
  border-top: 1px solid var(--cko-line);
}

.cko-shipgroup__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cko .cko-shipgroup__pick {
  flex: 1 1 auto;
  min-width: 0;
}

.cko-shipgroup__change {
  flex: none;
  margin-right: 1.25rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--cko-ink);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.cko-shipgroup__best {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1.25rem 1rem 3.25rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--sec-radius, 0);
  background: var(--cko-soft);
  font-size: 0.9375rem;
}

.cko-shipgroup__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
}

/* The logo slot: the courier's short name in a small box, or a parcel for a shop's own rate. */
.cko-courier__mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 3rem;
  height: 2rem;
  padding: 0 0.375rem;
  border: 1px solid var(--cko-line);
  border-radius: 0.25rem;
  background: #fff;
  color: var(--cko-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

/* Without JavaScript: each speed's name over all its couriers, as real radios. */
.cko-shipgroups:not(.is-enhanced) [data-ship-pick],
.cko-shipgroups:not(.is-enhanced) .cko-shipgroup__change,
.cko-shipgroups:not(.is-enhanced) .cko-shipgroup__best {
  display: none;
}

.cko .cko-shipgroups:not(.is-enhanced) .cko-shipgroup__pick {
  min-height: 0;
  padding: 0.75rem 1.25rem 0.375rem;
  cursor: default;
}

.cko-shipgroups:not(.is-enhanced) .cko-shipgroup__pick .cko-radio__name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--caps-spacing, 0.04em);
  text-transform: var(--caps-transform, uppercase);
  color: var(--cko-muted);
}

.cko-shipgroup__list {
  border: 0;
  border-top: 1px solid var(--cko-line);
}

/* With it: a speed shows its courier and "Change courier" while chosen, and its list on demand. */
.cko-shipgroups.is-enhanced .cko-shipgroup__list,
.cko-shipgroups.is-enhanced .cko-shipgroup:not(.is-chosen) .cko-shipgroup__best,
.cko-shipgroups.is-enhanced .cko-shipgroup:not(.is-chosen) .cko-shipgroup__change {
  display: none;
}

.cko-shipgroups.is-enhanced .cko-shipgroup.is-open .cko-shipgroup__list {
  display: block;
}

/* The chosen speed is marked by its radio and its courier box, not by a tinted head. */
.cko .cko-shipgroups .cko-shipgroup__pick {
  background: #fff;
}

.cko .cko-shipgroup__list .cko-radio {
  gap: 0.875rem;
}

@media (max-width: 480px) {
  .cko-paygroup__menu {
    padding-left: 1rem;
  }

  .cko-shipgroup__best {
    margin-left: 1rem;
  }

  .cko-shipgroup__change {
    margin-right: 1rem;
  }
}

/* =============================================================================================
 * 10-16 pages parity — Theme settings › Checkout › Page layout "Centred form with a top bar"
 * (checkout_look.go puts .cko--compact on the page and .cko-top--bar on the header only then, so a
 * shop on the Standard layout sees none of this). Sizes from the first client site's checkout
 * (docs/clients/snifl/SITE_MEASUREMENTS.md §2.4 and §3.17): an 82px bar with a 66px logo and "Return
 * to Cart", the form in a 480px column centred in a 760/1440 left column, 18px section titles, 16px
 * labels over 43px fields, plain radios, the theme's buttons, and the summary as a 480px card centred
 * on its side with an item count, 96x120 thumbnails and "Total to pay".
 * ============================================================================================= */

.cko-top--bar {
  /* Pinned, as on the client site, so the bar and the card beside the form stay put while it scrolls. */
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 0;
  background: var(--cko-top-bg, #fff);
  color: var(--cko-top-fg, var(--cko-ink));
}

.cko-top--bar .cko-top__in {
  box-sizing: border-box;
  align-items: flex-start;
  max-width: none;
  height: 82px;
  padding: 16px 24px 0;
}

.cko-top--bar .cko-top__brand {
  position: relative;
  display: block;
  color: inherit;
}

.cko-top--bar .cko-top__logo {
  width: auto;
  height: 66px;
  max-width: none;
  max-height: 66px;
}

/* "Rounded tab behind the logo": an oval twice as wide as tall, 12px past the logo each side, hanging
   16px below the bar, painted in the bar's colour under the logo. */
.cko-top--tab .cko-top__brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12px;
  right: -12px;
  bottom: -16px;
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background: var(--cko-top-bg, #fff);
  pointer-events: none;
}

.cko-top--bar .cko-top__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: inherit;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cko-top--bar .cko-top__back:hover {
  text-decoration: underline;
}

/* --- the two columns ---------------------------------------------------------------------- */

.cko--compact {
  grid-template-columns: minmax(0, 52.78fr) minmax(0, 47.22fr);
}

.cko--compact .cko__main {
  padding: 58px 24px 80px;
}

.cko--compact .cko__main > .cko__col {
  max-width: 480px;
  margin: 0 auto;
}

/* The page heading stays for screen readers only. */
.cko--compact .cko__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.cko--compact .cko__main .cko-back {
  display: none;
}

/* --- sections and fields ------------------------------------------------------------------- */

.cko--compact .cko-section {
  margin-top: 40px;
}

.cko--compact.cko--information .cko-form > .cko-section:first-of-type {
  margin-top: 0;
}

.cko--compact .cko-section__title {
  margin: 0 0 20px;
  font-family: var(--font-heading, inherit);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

.cko--compact .cko-section__intro {
  margin: -12px 0 16px;
  font-size: 14px;
}

.cko--compact .acct-fields {
  gap: 20px;
}

.cko--compact .acct-field,
.cko--compact .cko-label {
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cko-ink);
}

.cko--compact .acct-field input,
.cko--compact .acct-field select,
.cko--compact .cselect__trigger,
.cko--compact .cko-promo__row input {
  box-sizing: border-box;
  height: 43px;
  padding-inline: 16px;
  border-radius: 6px;
  font-size: 16px;
}

.cko--compact .acct-field textarea,
.cko--compact .cko-note-field textarea {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 16px;
}

.cko--compact .cko-phone__cc,
.cko--compact .cselect--dial {
  margin-right: 8px;
}

.cko--compact .acct-hint {
  font-size: 14px;
}

/* --- plain choices: a radio and its words, no boxes ------------------------------------------ */

.cko--compact .cko-radios,
.cko--compact .cko-shipgroups {
  border: 0;
  background: none;
}

.cko--compact .cko-radio,
.cko--compact .cko-shipgroups .cko-shipgroup__pick {
  gap: 12px;
  min-height: 0;
  padding: 0;
  background: none;
}

.cko--compact .cko-radio:has(input:checked) {
  background: none;
}

.cko--compact .cko-radio + .cko-radio,
.cko--compact .cko-radio + .cko-paygroup,
.cko--compact .cko-paygroup + .cko-radio,
.cko--compact .cko-paygroup + .cko-paygroup,
.cko--compact .cko-shipgroup + .cko-shipgroup,
.cko--compact .cko-radios__group + .cko-radio {
  margin-top: 15px;
  border-top: 0;
}

.cko--compact .cko-radio input {
  width: 18px;
  height: 18px;
}

.cko--compact .cko-radio__name {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cko--compact .cko-radio__sub,
.cko--compact .cko-radio__aside {
  font-size: 14px;
  color: var(--cko-muted);
}

.cko--compact .cko-radios__group {
  padding: 0;
  border-top: 0;
}

.cko--compact .cko-radio__sub {
  padding-left: 30px;
}

.cko--compact .cko-shipgroup__change {
  margin-right: 0;
  color: var(--cko-accent, var(--cko-ink));
  font-size: 14px;
  text-decoration: none;
}

.cko--compact .cko-shipgroup__best {
  margin: 12px 0 0 30px;
  padding: 8px;
  border-radius: 6px;
  background: var(--cko-field-bg, var(--cko-soft));
  font-size: 14px;
}

.cko--compact .cko-shipgroup__list {
  border-top: 0;
}

.cko--compact .cko-shipgroup__list .cko-radio {
  margin-top: 12px;
  padding-left: 30px;
}

.cko--compact .cko-paygroup__menu {
  margin-top: 8px;
  padding: 0 0 0 30px;
  background: none;
}

/* --- buttons: the theme's own (Theme settings › Button text size) ----------------------------- */

.cko--compact .cko-btn {
  min-height: 0;
  padding: var(--button-padding, 0.75rem 1.5rem);
  font-size: var(--button-font-size, 0.875rem);
  font-weight: var(--button-font-weight, 500);
  line-height: var(--button-line-height, 1.4);
  letter-spacing: var(--button-letter-spacing, 0.124rem);
}

.cko--compact .cko-submit {
  margin-top: 40px;
}

.cko--compact .cko-promo__apply {
  background: var(--cko-ink, #0f0c0b);
  color: #fff;
}

/* --- the summary card ------------------------------------------------------------------------ */

.cko--compact .cko__aside {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 78px 24px 80px;
}

.cko--compact .cko__aside > .cko__col {
  position: sticky;
  top: 160px;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
}

.cko--compact .cko__aside--card > .cko__col {
  padding: 16px;
  border-radius: 12px;
}

.cko-sumhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 24px;
}

.cko-sumhead__count {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}

.cko-sumhead__edit {
  font-size: 14px;
  color: #605f5f;
  text-decoration: none;
}

.cko--compact .cko-line {
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  row-gap: 4px;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.cko--compact .cko-line__media {
  grid-row: 1 / span 2;
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.cko--compact .cko-line__title {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.cko--compact .cko-line__variant {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--cko-ink);
}

.cko--compact .cko-line__price {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 4px;
  text-align: left;
}

.cko--compact .cko-line__now {
  display: inline;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}

.cko--compact .cko-line__was {
  display: inline;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cko-accent, var(--cko-muted));
}

.cko-line__qty {
  flex: 1 1 100%;
  margin-top: 4px;
  font-size: 14px;
  color: var(--cko-muted);
}

.cko--compact .cko-totals {
  margin-top: 24px;
}

.cko--compact .cko-totals__row {
  padding: 1px 0;
  font-size: 14px;
  line-height: 1.2;
}

.cko--compact .cko-totals__value {
  color: inherit;
  font-weight: 400;
}

.cko--compact .cko-totals__row.co-summary__row--discount,
.cko--compact .cko-totals__row.co-summary__row--discount .cko-totals__value {
  color: var(--cko-accent, #1c7c4a);
}

.cko--compact .cko-totals__row--total {
  margin-top: 24px;
  padding-top: 24px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
  /* Capitals whatever Headings and labels says: the client site's "TOTAL TO PAY". */
  text-transform: var(--cko-total-case, uppercase);
}

.cko--compact .cko-totals__row--total .cko-totals__value {
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 899px) {
  .cko--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .cko--compact .cko__main {
    padding: 32px 16px 40px;
  }

  .cko--compact .cko__aside {
    padding: 24px 16px 100px;
  }

  .cko--compact .cko__aside > .cko__col {
    position: static;
  }

  /* Stacked, the summary is plain on white above the form, as the client site's phone checkout. */
  .cko--compact .cko__aside,
  .cko--compact .cko__aside--card {
    padding: 24px 16px;
    border-bottom: 1px solid var(--cko-line);
    background: #fff;
  }

  .cko--compact .cko__aside--card > .cko__col {
    padding: 0;
    border-radius: 0;
  }
}

@media (max-width: 809px) {
  .cko-top--bar .cko-top__in {
    height: 69px;
    padding: 16px 16px 0;
  }

  .cko-top--bar .cko-top__logo {
    height: 53px;
    max-height: 53px;
  }

  .cko-top--bar .cko-top__back {
    margin-top: 8px;
    font-size: 14px;
  }
}

/* Required fields: a red * after the label (owner, 2026-10-23). It follows each field's own equired,
   so it shows only where the shop's field rules make it required, and on the billing fields only while a
   different billing address is chosen (checkout.js adds equired then). */
.cko .acct-field:has(:is(input, select, textarea)[required]:not([type="hidden"])) > span:first-child::after,
.cko .acct-field:has(:is(input, select, textarea)[required]:not([type="hidden"])) > label:first-child::after {
  content: " *";
  color: #b42318;
}

/* --- THE STEPPER (owner, 2026-10-23, docs/checkout-improvements-preview-2026-10-23.html) ----------
   Keranjang -- Informasi -- Pengiriman & pembayaran, at the top of the form column. Numbered circles
   joined by a thin line, in the shop's own colours: a step done and the step the shopper is on are
   filled with the theme's button colour (--color-button / --color-button-text, section_style.go; the
   checkout's ink when a theme has none), the one ahead is an outline in the checkout's hairline.
   Done steps carry a check and are links back; the current one has a soft ring and a bold label. On
   a phone only the current step's label shows; the others stay readable to a screen reader. */
.cko-steps {
  margin: 0 0 2.5rem;
}

.cko-steps__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cko-steps__item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--cko-muted);
}

.cko-steps__item + .cko-steps__item {
  flex: 1 1 auto;
}

/* The line between two steps; filled once the step before it is done. */
.cko-steps__item + .cko-steps__item::before {
  content: "";
  flex: 1 1 1.5rem;
  min-width: 1rem;
  height: 1px;
  margin: 0 0.75rem;
  background: var(--cko-line);
}

.cko-steps__item.is-done + .cko-steps__item::before {
  height: 2px;
  border-radius: 1px;
  background: var(--color-button, var(--cko-ink));
}

.cko-steps__dot {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 1.5px solid var(--cko-line);
  border-radius: 50%;
  background: #fff;
  color: var(--cko-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cko-steps__item.is-done .cko-steps__dot,
.cko-steps__item.is-current .cko-steps__dot {
  border-color: var(--color-button, var(--cko-ink));
  background: var(--color-button, var(--cko-ink));
  color: var(--color-button-text, #fff);
}

/* The step the shopper is on: a soft ring of its own colour around the circle. */
.cko-steps__item.is-current .cko-steps__dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-button, var(--cko-ink)) 16%, transparent);
}

/* A long step name wraps to a second line rather than being cut ("Infor…", owner 2026-10-23); the
   lines between the steps give way first. */
.cko-steps__label {
  margin-left: 0.625rem;
  min-width: 0;
  overflow-wrap: normal;
}

.cko-steps__item.is-current .cko-steps__label {
  font-weight: 600;
  color: var(--cko-ink);
}

/* A done step is a way back: the cart is a link, Informasi a submit button of the step's form. */
.cko-steps__link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0.25rem 0.375rem 0.25rem 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--cko-ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cko-steps__link:hover .cko-steps__label {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cko-steps__link:hover .cko-steps__dot {
  transform: scale(1.06);
}

.cko-steps__link:focus-visible {
  outline: 2px solid var(--cko-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cko-steps__dot {
    transition: none;
  }
}

@media (max-width: 749px) {
  .cko-steps {
    margin-bottom: 1.75rem;
  }

  .cko-steps__item:not(.is-current) .cko-steps__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cko-steps__item + .cko-steps__item::before {
    margin: 0 0.5rem;
  }

  .cko-steps__link {
    padding-right: 0;
  }
}

/* --- STORE CREDIT on the payment step (owner, 2026-10-23, checkout_credit.go) -------------------
   Two classes on the checkout root say what shows: is-credit-on (the box is ticked) and
   is-credit-full (ticked, and the credit pays the whole order). The server sets them from the tick;
   checkout.js flips them as it changes. Each element names the state it belongs to. */
.cko:not(.is-credit-on) [data-credit-on],
.cko.is-credit-on [data-credit-off],
.cko:not(.is-credit-full) [data-credit-full],
.cko.is-credit-full [data-credit-notfull] {
  display: none !important;
}

.cko-credit {
  margin: 0 0 1.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--cko-line);
  background: var(--cko-soft);
}

.cko .cko-credit__pick {
  font-weight: 500;
}

.cko-credit__lines {
  display: grid;
  gap: 0.375rem;
  margin: 0.875rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cko-line);
}

.cko-credit__line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--cko-muted);
}

.cko-credit__line dt,
.cko-credit__line dd {
  margin: 0;
}

.cko-credit__line dd {
  font-weight: 600;
  color: var(--cko-ink);
  white-space: nowrap;
}

/* Without JavaScript: re-renders the step with the tick applied. checkout.js hides it. */
.cko-credit__apply {
  margin: 0.75rem 0 0;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--cko-ink);
  background: #fff;
  color: var(--cko-ink);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.cko-credit__apply[hidden] {
  display: none;
}

.cko-credit__covered {
  margin: 0 0 0.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px dashed var(--cko-line);
  font-size: 0.875rem;
  color: var(--cko-muted);
}

.cko .cko-paymethods__rest {
  margin: 0 0 0.75rem;
}

.cko-totals__row--credit .cko-totals__value {
  color: var(--cko-accent, var(--cko-ink));
}

/* --- EMPTY REQUIRED FIELDS (owner, 2026-10-23) ----------------------------------------------------
   checkout.js marks each one on Continue (and on Save in the Edit address dialog): the field's box
   in the same red as the required * above, and "Wajib diisi" under it. Cleared as soon as it is
   filled. Without JavaScript none of this is drawn and the browser's own check stays. */
.cko .acct-field.is-invalid :is(input, select, textarea),
.cko .acct-field.is-invalid :is(input, select, textarea):focus,
.cko-dialog .acct-field.is-invalid :is(input, select, textarea),
.cko-dialog .acct-field.is-invalid :is(input, select, textarea):focus,
.cko .is-invalid > .cselect__trigger,
.cko-dialog .is-invalid > .cselect__trigger {
  border-color: #b42318;
}

.cko-req-error {
  display: block;
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: #b42318;
}

.cko .check.is-invalid,
.cko .cko-radios.is-invalid {
  color: #b42318;
}

.cko .check.is-invalid input {
  outline: 2px solid #b42318;
  outline-offset: 2px;
}