:root {
  --orange: #ee4d2d;
  --orange-dark: #c9341b;
  /* nama lain untuk tugas yang sama seperti di dashboard.css */
  --orange-ink: #c9341b;
  --ink: #1a1b20;
  --ink-2: #3c3e45;
  --muted: #686b74;
  --line: #e9e7e3;
  --soft: #faf9f7;
  --dark: #171719;
  --dark-card: #202022;
  --dark-line: #37373a;
  --green: #0d7f51;
  --shadow: 0 18px 45px rgba(32, 29, 26, .08);
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #fbfaf9; font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.checkout-container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.checkout-header { border-bottom: 1px solid rgba(229, 226, 222, .9); background: rgba(255,255,255,.92); }
.checkout-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.checkout-header-actions { display: inline-flex; align-items: center; gap: 16px; }
.checkout-brand { display: inline-flex; align-items: center; gap: 10px; }.checkout-brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #fff; background: var(--orange); box-shadow: 0 7px 16px rgba(238, 77, 45, .22); }.checkout-brand-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }/* Bug yang sama dengan di landing: grid polos membuat <strong>, <em>, dan <small>
   masing-masing jatuh ke barisnya sendiri, jadi logonya terbaca "Riset" / "ika"
   bertumpuk. max-content 1fr: kolom pertama pas selebar katanya, sisanya diserap
   kolom kedua, dan <small> membentang di bawah keduanya. */
.checkout-brand > span:last-child { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; line-height: 1; font-size: 14px; letter-spacing: -.25px; }
.checkout-brand strong { grid-column: 1; }
.checkout-brand em { grid-column: 2; }
.checkout-brand small { grid-column: 1 / -1; }.checkout-brand strong { font-weight: 850; }.checkout-brand em { color: var(--orange-ink); font-style: normal; font-weight: 850; }.checkout-brand small { margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 600; }.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; transition: color .18s; }.back-link:hover { color: var(--orange); }
.checkout-main { padding: 43px 0 86px; }.checkout-steps { display: flex; align-items: center; max-width: 580px; margin-bottom: 47px; }.checkout-step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }.checkout-step > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #d8d6d3; border-radius: 50%; background: #fff; font-size: 10px; }.checkout-step.done { color: var(--green); }.checkout-step.done > span { border-color: #b4e9cd; color: #fff; background: var(--green); }.checkout-step.active { color: var(--ink); }.checkout-step.active > span { border-color: var(--orange-ink); color: #fff; background: var(--orange-ink); }.checkout-steps > i { width: 72px; height: 1px; margin: 0 12px; background: #e3e0dc; }.checkout-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }.checkout-kicker { color: var(--orange-ink); font-size: 10px; font-weight: 900; letter-spacing: 1.45px; }.checkout-heading h1 { margin: 11px 0 7px; font-size: 34px; letter-spacing: -1.2px; }.checkout-heading p { margin: 0; color: var(--muted); font-size: 13px; }.secure-note { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--green); font-size: 11px; font-weight: 800; }.secure-note span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e9faf1; font-size: 11px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); align-items: start; gap: 23px; }.checkout-panel { padding: 32px 33px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }.form-section-title { display: flex; align-items: start; gap: 13px; }.form-number { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 9px; color: var(--orange-ink); background: #fff1ec; font-size: 10px; font-weight: 900; }.form-section-title h2 { margin: 1px 0 5px; font-size: 17px; letter-spacing: -.35px; }.form-section-title p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; margin: 25px 0 2px 41px; }.field { display: grid; gap: 8px; }.field-full { grid-column: 1 / -1; }.field > span { color: var(--ink-2); font-size: 11px; font-weight: 800; }.field > span b { color: var(--orange-ink); }.field input { width: 100%; height: 43px; padding: 0 13px; border: 1px solid #dedbd8; border-radius: 9px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; transition: border-color .18s, box-shadow .18s; }.field input::placeholder { color: var(--muted); }.field input:focus { border-color: #f18a70; box-shadow: 0 0 0 3px rgba(238, 77, 45, .1); }.field input:invalid:not(:placeholder-shown) { border-color: #e88b7a; }.field small { margin-top: -2px; color: var(--muted); font-size: 9px; }.form-divider { height: 1px; margin: 31px 0; background: #eeeae6; }.payment-section .form-section-title { margin-bottom: 20px; }.payment-methods { display: grid; gap: 9px; margin: 0 0 0 41px; padding: 0; border: 0; }.payment-method { position: relative; display: flex; align-items: center; min-height: 56px; gap: 12px; padding: 9px 14px; overflow: hidden; border: 1px solid var(--dark-line); border-radius: 13px; color: #e9e9eb; background: var(--dark-card); cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }.payment-method:hover { border-color: #626266; transform: translateX(2px); }.payment-method.selected { border-color: #555559; background: #242426; box-shadow: inset 3px 0 0 var(--orange); }.payment-method input { position: absolute; width: 1px; height: 1px; opacity: 0; }.radio-dot { display: grid; width: 18px; height: 18px; flex: none; place-items: center; border: 2px solid #6d6d70; border-radius: 50%; }.payment-method input:checked + .radio-dot { border-color: var(--orange); }.payment-method input:checked + .radio-dot::after { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); content: ""; }.method-name { font-size: 13px; font-weight: 800; }.method-arrow { margin-left: auto; color: #858589; font-size: 24px; font-weight: 300; }.agree-check { display: flex; align-items: start; gap: 9px; margin: 25px 0 0 41px; color: var(--muted); cursor: pointer; font-size: 10px; line-height: 1.5; }.agree-check input { position: absolute; opacity: 0; }.agree-check > span { display: grid; width: 17px; height: 17px; flex: none; place-items: center; border: 1px solid #d6d3d0; border-radius: 5px; background: #fff; }.agree-check input:checked + span { border-color: var(--orange); background: var(--orange); }.agree-check input:checked + span::after { color: #fff; content: "✓"; font-size: 11px; font-weight: 900; }.agree-check input:focus-visible + span { outline: 3px solid rgba(238, 77, 45, .16); }.agree-check em { font-style: normal; }.pay-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: calc(100% - 41px); margin: 23px 0 0 41px; padding: 13px 16px; border: 0; border-radius: 10px; color: #fff; background: var(--orange-ink); box-shadow: 0 10px 22px rgba(238, 77, 45, .2); cursor: pointer; font-size: 12px; font-weight: 900; transition: background .18s, transform .18s, box-shadow .18s; }.pay-button:hover { background: #b32d16; box-shadow: 0 14px 28px rgba(238, 77, 45, .27); transform: translateY(-1px); }.form-disclaimer { margin: 12px 0 0 41px; color: var(--muted); font-size: 9px; line-height: 1.55; }.form-disclaimer b { color: var(--ink-2); font-weight: 800; }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.order-summary { position: sticky; top: 25px; padding: 25px 24px 23px; border: 1px solid #e5e0db; border-radius: 17px; background: #fff; box-shadow: var(--shadow); }.summary-top { display: flex; align-items: center; justify-content: space-between; }.summary-kicker { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }.summary-check { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--green); background: #eafaf1; font-size: 12px; font-weight: 900; }.summary-plan { margin-top: 27px; }.summary-plan-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--orange-ink); background: #fff1ec; font-size: 9px; font-weight: 900; }.summary-plan h2 { margin: 12px 0 7px; font-size: 28px; letter-spacing: -1px; }.summary-plan p { max-width: 250px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.summary-rule { height: 1px; margin: 23px 0; background: #eeeae6; }.summary-features { display: grid; gap: 12px; }.summary-feature { display: flex; align-items: start; gap: 8px; color: var(--ink-2); font-size: 10px; line-height: 1.35; }.summary-feature span { color: var(--green); font-size: 12px; font-weight: 900; }.summary-price { position: relative; display: grid; gap: 5px; }.summary-price > span { color: var(--muted); font-size: 10px; }.summary-price strong { font-size: 27px; letter-spacing: -1px; }.summary-price small { position: absolute; right: 0; bottom: 2px; color: var(--muted); font-size: 10px; }.summary-note { display: flex; align-items: start; gap: 9px; margin-top: 25px; padding: 12px; border-radius: 10px; color: #8a6c34; background: #fff9e9; }.summary-note > span { color: #956510; font-size: 13px; }.summary-note p { margin: 0; font-size: 9px; line-height: 1.55; }.checkout-result[hidden] { display: none; }
.checkout-footer { border-top: 1px solid #e8e5e1; background: #fff; }.checkout-footer .checkout-container { display: flex; align-items: center; justify-content: space-between; min-height: 70px; color: var(--muted); font-size: 10px; }.checkout-footer a { color: var(--orange-ink); font-weight: 800; }
.checkout-privacy-link { display: inline-block; margin: 8px 0 0 67px; color: var(--orange-ink); font-size: 10px; font-weight: 800; }
.checkout-privacy-link + .checkout-privacy-link { margin-left: 16px; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; }.order-summary { position: static; grid-row: 1; }.checkout-panel { grid-row: 2; }.summary-plan p { max-width: 560px; }.summary-features { grid-template-columns: repeat(3, 1fr); }.summary-rule { margin: 19px 0; } }
@media (max-width: 620px) { .checkout-container { width: min(100% - 30px, 500px); }.checkout-header-inner { min-height: 66px; }.back-link { font-size: 10px; }.checkout-brand small { display: none; }.checkout-main { padding-top: 29px; }.checkout-steps { margin-bottom: 35px; }.checkout-step label { display: none; }.checkout-steps > i { flex: 1; margin: 0 8px; }.checkout-heading { display: block; }.checkout-heading h1 { font-size: 28px; }.secure-note { margin-top: 17px; }.checkout-panel { padding: 24px 18px; }.field-grid, .payment-methods, .agree-check { margin-left: 0; }.checkout-privacy-link { margin-left: 26px; }.field-grid { grid-template-columns: 1fr; }.field-full { grid-column: auto; }.pay-button, .form-disclaimer { width: 100%; margin-left: 0; }.payment-method { min-height: 54px; }.summary-features { grid-template-columns: 1fr 1fr; }.checkout-footer .checkout-container { align-items: start; flex-direction: column; justify-content: center; gap: 7px; padding: 18px 0; } }

/* Tema terang untuk pilihan metode pembayaran. */
.payment-method { color: var(--ink-2); border-color: #dfdcd8; background: #fff; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.payment-method:hover { border-color: #f2a28d; background: #fffaf8; box-shadow: 0 5px 14px rgba(35, 31, 28, .06); transform: translateX(2px); }
.payment-method.selected { border-color: var(--orange); background: #fff8f5; box-shadow: inset 3px 0 0 var(--orange), 0 5px 14px rgba(238, 77, 45, .08); }
.radio-dot { border-color: #8b8c90; }
.method-name { color: var(--ink-2); }
.method-arrow { color: #89898d; }
.pay-button, .back-link { min-height: 44px; }
.form-disclaimer { color: #73757d; }
.form-disclaimer b { color: #5f626b; }
a:focus-visible, button:focus-visible, input:focus-visible, .payment-method:has(input:focus-visible) { outline: 3px solid rgba(238, 77, 45, .22); outline-offset: 3px; }

.gateway-notice { display: grid; gap: 5px; margin-bottom: 28px; padding: 14px 16px; border: 1px solid #f1c879; border-radius: 11px; color: #6e5524; background: #fff9e9; }
.gateway-notice strong { font-size: 12px; }
.gateway-notice span { font-size: 10px; line-height: 1.55; }
.gateway-notice .notice-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.gateway-notice .notice-actions a, .email-lain { color: #c9341b; font-weight: 800; }
.secure-note.pending { color: #936712; }
.secure-note.pending span { color: #936712; background: #fff4d9; }
#payment-form[data-payment-status="pending"] .field input,
#payment-form[data-payment-status="pending"] .payment-method,
#payment-form[data-payment-status="pending"] .agree-check { cursor: not-allowed; opacity: .62; }
.pay-button:disabled { color: #626367; background: #e8e6e3; box-shadow: none; cursor: not-allowed; }
.pay-button:disabled:hover { background: #e8e6e3; box-shadow: none; transform: none; }

.checkout-brand-mark svg.logo-glyph { fill: currentColor; stroke: none; }

/* --- Lencana metode pembayaran ------------------------------------------- */
/* SEMUA berukuran sama supaya daftarnya rapi: mata membaca satu kolom, bukan
   enam bentuk berbeda. Isinya kata merek itu sendiri dalam warna resminya -
   bukan tiruan logo. Sejak 2026-09-15 kotak ini memuat berkas logo resmi
   (.has-img, di bawah); kata merek hanya cadangan untuk metode tanpa logo. */
.method-logo {
  display: grid; width: 68px; height: 30px; flex: none; place-items: center;
  padding: 0 6px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; font-size: 10px; font-weight: 900; letter-spacing: -.2px;
  line-height: 1; text-align: center; white-space: nowrap;
}
.method-logo.qris { color: #1a1b20; }
.method-logo.gopay { color: #00aed6; }
.method-logo.shopeepay { color: #ee4d2d; }
.method-logo.linkaja { color: #e82128; }
.method-logo.ovo { color: #4c3494; }
.method-logo.dana { color: #108ee9; }

/* --- Tombol ganti tampilan terang/gelap ---------------------------------- */
.btn-theme {
  display: inline-grid; width: 36px; height: 36px; flex: none; place-items: center;
  padding: 0; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-2); background: var(--card, #fff); cursor: pointer;
  transition: color .16s, border-color .16s;
}
.btn-theme:hover { color: var(--orange); border-color: var(--orange); }
.btn-theme svg { width: 17px; height: 17px; }
.btn-theme:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* --- Kanal pembayaran yang dikutip server -------------------------------- */
/* Kartu metodenya sekarang membawa TIGA hal, bukan satu nama: merek, keterangan
   singkat, dan TOTAL yang benar-benar ditagihkan untuk kanal itu. Totalnya ikut
   di sini karena ia berbeda per kanal (VA menambah Rp4.440, e-wallet 2%, QRIS
   nol karena tak boleh disurcharge), dan pembeli berhak melihat selisih itu
   sebelum memilih, bukan sesudah. */
.methods-loading { margin: 0; padding: 14px 2px; color: var(--muted); font-size: 11px; }
.method-body { display: grid; gap: 3px; }
.method-body small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.method-total { display: grid; margin-left: auto; gap: 3px; text-align: right; }
.method-total strong { color: var(--ink); font-size: 14px; letter-spacing: -.3px; }
.method-total small { color: var(--muted); font-size: 9px; }
.method-logo.va { color: #2b6cb0; }

/* Logo resmi (assets/bayar/*.svg). Latarnya tetap putih di tema gelap juga:
   logo bank dirancang untuk latar terang, dan beberapa (BNI, Mandiri) nyaris
   hilang di atas latar gelap. */
.method-logo.has-img { padding: 4px 7px; }
.method-logo.has-img img { display: block; max-width: 100%; max-height: 20px; object-fit: contain; }

/* Bank VA: satu judul grup yang membawa totalnya, lalu ubin per bank. */
.method-group { display: grid; gap: 8px; margin-top: 4px; }
.method-group-title {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 2px 12px; margin: 4px 2px 0; color: var(--ink-2); font-size: 11px; font-weight: 800;
}
.method-group-title span:last-child { color: var(--muted); font-size: 9px; font-weight: 600; }
.method-group-title strong { color: var(--ink); font-size: 13px; letter-spacing: -.3px; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.payment-method.is-tile { min-height: 50px; gap: 10px; padding: 8px 12px; }
.payment-method.is-tile .method-name { font-size: 12px; }
@media (max-width: 460px) { .method-grid { grid-template-columns: 1fr; } }

/* Pemilih paket & durasi di ringkasan: dua baris segmen. Yang aktif diangkat
   jadi "kartu" putih di atas lintasan abu hangat, sama seperti tombol durasi
   di halaman harga, supaya pembeli mengenalinya sebagai kendali yang sama. */
.summary-switch { display: grid; gap: 7px; margin-top: 20px; }
.summary-switch[hidden] { display: none; }
.switch-label { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.switch-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
  padding: 3px; border: 1px solid #ebe6e1; border-radius: 11px; background: #f5f2ef;
}
.switch-row button {
  display: grid; gap: 1px; place-items: center; min-height: 34px; padding: 5px 4px;
  border: 0; border-radius: 8px; color: var(--ink-2); background: transparent;
  font: inherit; font-size: 11px; font-weight: 800; line-height: 1.15; cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
}
.switch-row button:hover { color: var(--orange-ink); }
.switch-row button[aria-checked="true"] { color: var(--orange-ink); background: #fff; box-shadow: 0 1px 4px rgba(35, 31, 28, .1); }
.switch-row button small { color: var(--green); font-size: 8.5px; font-weight: 800; }
.switch-row button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.summary-switch + .summary-plan { margin-top: 20px; }

/* Kode voucher di ringkasan: satu kolom + satu tombol; keterangannya di bawah. */
.summary-voucher { display: grid; gap: 7px; margin-top: 20px; }
.voucher-label { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.voucher-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.voucher-row input {
  min-width: 0; height: 36px; padding: 0 11px; border: 1px solid #e3ddd6; border-radius: 9px;
  color: var(--ink); background: #fff; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.voucher-row input::placeholder { color: #a8a29c; font-weight: 500; letter-spacing: 0; text-transform: none; }
.voucher-row input:read-only { color: #0f5c34; background: #f1faf4; border-color: #a6e3bf; }
.voucher-row input:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.voucher-row button {
  height: 36px; padding: 0 14px; border: 1px solid #e3ddd6; border-radius: 9px;
  color: var(--orange-ink); background: #fff; font: inherit; font-size: 11.5px; font-weight: 850; cursor: pointer;
}
.voucher-row button:hover { border-color: #f2a28d; background: #fff7f3; }
.voucher-info { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.voucher-info[hidden] { display: none; }
.voucher-info.is-ok { color: #0f5c34; font-weight: 700; }
.voucher-info.is-salah { color: #b42318; font-weight: 700; }
.metode-gratis {
  display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #a6e3bf; border-radius: 13px;
  color: #0f5c34; background: #edfaf2;
}
.metode-gratis strong { font-size: 13px; }
.metode-gratis span { font-size: 11px; line-height: 1.5; }

/* Kabar non-peringatan: lunas (hijau) dan informasi biasa (netral). */
.gateway-notice.is-ok { border-color: #a6e3bf; color: #0f5c34; background: #edfaf2; }
.gateway-notice.is-info { border-color: #e3ddd6; color: var(--ink-2); background: #faf8f6; }

.result-link {
  padding: 0; border: 0; color: var(--orange-ink); background: none; font: inherit;
  font-size: 12px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.result-link:disabled { color: var(--muted); cursor: progress; text-decoration: none; }

/* Riwayat pembayaran: yang belum selesai diangkat sebagai kartu dengan tombol
   "Lanjutkan"; sisanya dilipat, karena yang sudah lunas jarang perlu dibaca. */
.riwayat-bayar { display: grid; gap: 10px; margin-bottom: 26px; }
.riwayat-bayar[hidden] { display: none; }
.riwayat-tunda {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 13px 15px; border: 1px solid #f2c3b4; border-radius: 12px; background: #fff7f3;
}
.riwayat-tunda-isi { display: grid; gap: 3px; min-width: 0; }
.riwayat-tunda-isi strong { color: var(--ink); font-size: 12.5px; }
.riwayat-tunda-isi span { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.riwayat-aksi { display: flex; flex-wrap: wrap; gap: 8px; }
.riwayat-aksi button {
  min-height: 32px; padding: 0 12px; border: 1px solid var(--orange); border-radius: 8px;
  color: #fff; background: #c9341b; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer;
}
.riwayat-aksi button.is-tenang { color: var(--orange-ink); background: #fff; border-color: #f2c3b4; }
.riwayat-daftar { border: 1px solid #ebe6e1; border-radius: 12px; background: #fff; }
.riwayat-daftar summary {
  padding: 11px 15px; color: var(--ink-2); font-size: 11.5px; font-weight: 800; cursor: pointer; list-style-position: inside;
}
.riwayat-daftar ul { display: grid; margin: 0; padding: 0 15px 8px; list-style: none; }
.riwayat-daftar li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  padding: 10px 0; border-top: 1px solid #f0ece8;
}
.riwayat-kiri { display: grid; gap: 3px; min-width: 0; }
.riwayat-kiri b { color: var(--ink); font-size: 12px; }
.riwayat-kiri small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.riwayat-kanan { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.riwayat-kanan strong { color: var(--ink); font-size: 12px; }
.riwayat-status { padding: 3px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 850; white-space: nowrap; }
.riwayat-status.is-ok { color: #0f5c34; background: #e3f7ea; }
.riwayat-status.is-tunggu { color: #8a5a00; background: #fff3d6; }
.riwayat-status.is-mati { color: #6b6b70; background: #f0eeeb; }
.riwayat-kosong { margin: 0; padding: 12px 15px; border: 1px dashed #e3ddd6; border-radius: 12px; color: var(--muted); font-size: 11.5px; }
.riwayat-cek {
  padding: 0; border: 0; color: var(--orange-ink); background: none; font: inherit;
  font-size: 11px; font-weight: 850; text-decoration: underline; cursor: pointer;
}

/* Total dibayar, tepat di bawah harga paket. Dua baris, bukan satu, supaya
   harga yang diiklankan dan angka yang ditagih tidak pernah tertukar. */
.summary-total { position: relative; display: grid; gap: 5px; margin-top: 20px; }
.summary-total > span { color: var(--muted); font-size: 10px; }
.summary-total strong { color: var(--orange-ink); font-size: 24px; letter-spacing: -.8px; }
.summary-total small { color: var(--muted); font-size: 9px; }

/* Spanduk kuning yang dulu berbunyi "gateway belum aktif" sekarang jadi wadah
   pesan: sesi habis, kanal kosong, jaringan mati. Ia lahir tersembunyi. */
.gateway-notice[hidden] { display: none; }

/* Baris durasi di ringkasan pesanan. `.summary-price small` diposisikan absolut
   di pojok kanan bawah (itu tempat "/ bulan"), jadi baris ini harus dikembalikan
   ke aliran normal - kalau tidak, ia menumpuk persis di atas periode paketnya. */
#order-coret { color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: line-through; text-decoration-thickness: 1.5px; }
#order-coret[hidden] { display: none; }
.summary-durasi { position: static !important; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.45; }

/* ---------------------------------------------------------------------------
   Layar menunggu & lunas (didesain ulang 2026-09-16).
   Satu kartu: status yang hidup di kepala, tagihan bergaya struk, tiga
   langkah, lalu tombol. Ringkasan kanan dikunci ke pesanan yang dibayar.
   --------------------------------------------------------------------------- */
.checkout-result { padding: 4px 0 0; }
.tunggu { display: grid; gap: 18px; }
.tunggu h2 { margin: 2px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -.7px; text-wrap: balance; }
.tunggu-sub { max-width: 540px; margin: -8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.tunggu-kepala { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.tunggu-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid #f3d38c; border-radius: 999px; color: #7a5410; background: #fff7e3; font-size: 11px; letter-spacing: .2px; }
.tunggu-status b { font-weight: 850; }
.tunggu-status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; }
.tunggu-status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #e0a100; opacity: 0; animation: tunggu-denyut 1.8s ease-out infinite; }
.tunggu-status.is-ok { border-color: #a6e3bf; color: #0f5c34; background: #edfaf2; }
.tunggu-status.is-ok i { background: var(--green); }
.tunggu-status.is-ok i::after, .tunggu-status.is-gagal i::after { animation: none; }
.tunggu-status.is-gagal { border-color: #f2c2b8; color: #9a2a14; background: #fdf0ed; }
.tunggu-status.is-gagal i { background: #c9341b; }
@keyframes tunggu-denyut { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tunggu-status i::after { animation: none; } }
.tunggu-pantau { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tunggu-pantau.is-info { color: var(--ink-2); font-weight: 750; }
.tunggu-pantau.is-warn { color: #9a2a14; font-weight: 750; }

/* Struk tagihan: total di atas, rincian sebagai daftar label/nilai. */
.tagihan { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tagihan-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 18px; border-bottom: 1px dashed #e2ddd7; background: var(--soft); }
.tagihan-total span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.tagihan-total strong { color: var(--orange-ink); font-size: 30px; line-height: 1; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.tagihan-rinci { display: grid; margin: 0; padding: 4px 18px; }
.tagihan-rinci > div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0edea; }
.tagihan-rinci > div:last-child { border-bottom: 0; }
.tagihan-rinci dt { color: var(--muted); font-size: 11px; }
.tagihan-rinci dd { margin: 0; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.tagihan-rinci code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; letter-spacing: .4px; }
.tagihan-metode { display: inline-flex; align-items: center; gap: 10px; }
.tagihan-metode .method-logo { flex: none; width: 64px; height: 30px; }
.tagihan-nomor { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tagihan-salin { padding: 4px 10px; border: 1px solid #e5d9d3; border-radius: 7px; color: var(--orange-ink); background: #fff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; }
.tagihan-salin:hover { border-color: #f0b6a6; background: #fff6f3; }
.tagihan-salin.is-ok { border-color: #a6e3bf; color: var(--green); background: #edfaf2; }

/* Tiga langkah. Yang sedang berjalan diberi warna, yang gagal diberi tanda. */
.tunggu-langkah { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tunggu-langkah li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; font-size: 11.5px; font-weight: 750; line-height: 1.3; }
.tunggu-langkah li > span { display: grid; flex: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--muted); background: #f1eeea; font-size: 11px; font-weight: 900; }
.tunggu-langkah li.selesai { color: var(--ink-2); }
.tunggu-langkah li.selesai > span { color: #fff; background: var(--green); }
.tunggu-langkah li.sekarang { border-color: #f5b9a8; color: var(--ink); background: #fff6f3; }
.tunggu-langkah li.sekarang > span { color: #fff; background: var(--orange-ink); }
.tunggu-langkah li.gagal { border-color: #e4dedb; color: #8a2412; background: #f4f2f0; text-decoration: line-through; text-decoration-color: rgba(138, 36, 18, .45); }
.tunggu-langkah li.gagal > span { color: #fff; background: #8a2412; text-decoration: none; }

.tunggu-aksi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.tunggu-aksi .pay-button { width: 100%; margin: 0; text-decoration: none; }
.tunggu-aksi .pay-button[hidden] { display: none; }
.tunggu.lunas .tunggu-aksi { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.tombol-kedua { min-height: 44px; padding: 0 20px; border: 1px solid #e5d9d3; border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 850; }
.tombol-kedua:hover { border-color: #f0b6a6; background: #fff6f3; }
.tombol-kedua:disabled { color: var(--muted); cursor: progress; }
.tunggu-bawah { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.tunggu-bawah a.result-link { color: var(--muted); text-decoration: none; }
.tunggu-bawah a.result-link:hover { color: var(--ink-2); }

.lunas-tanda { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 10px 24px rgba(13, 127, 81, .22); font-size: 28px; font-weight: 900; }

/* Ringkasan yang sudah terkunci ke pesanan: tak ada lagi yang bisa diubah. */
.order-summary.is-terkunci .summary-switch,
.order-summary.is-terkunci .summary-voucher { display: none !important; }

@media (max-width: 620px) {
  .tunggu h2 { font-size: 22px; }
  .tagihan-total strong { font-size: 26px; }
  .tagihan-rinci > div { grid-template-columns: 1fr; gap: 3px; }
  .tunggu-langkah { grid-template-columns: 1fr; }
  .tunggu-aksi { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Batalkan tagihan & invoice riwayat (2026-09-16).
   --------------------------------------------------------------------------- */
.tunggu-bawah-kiri { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.result-link.is-bahaya { color: #9a2a14; text-decoration-color: rgba(154, 42, 20, .35); }
.result-link[hidden], .tunggu-konfirmasi[hidden] { display: none; }
.tunggu-konfirmasi { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid #f2c2b8; border-radius: 12px; background: #fdf0ed; }
.tunggu-konfirmasi p { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
.tunggu-konfirmasi p strong { color: #8a2412; }
.tunggu-konfirmasi .konfirmasi-galat { color: #8a2412; font-weight: 750; }
.konfirmasi-aksi { display: flex; flex-wrap: wrap; gap: 8px; }
.konfirmasi-aksi .tombol-kedua { min-height: 38px; }
.tombol-bahaya { min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; color: #fff; background: #a3301a; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 850; }
.tombol-bahaya:hover { background: #86240f; }
.tombol-bahaya:disabled { opacity: .7; cursor: progress; }

/* Baris riwayat = satu tombol yang membuka invoice. */
.riwayat-daftar li { display: block; padding: 0; }
.riwayat-baris {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  width: 100%; margin: 0; padding: 10px 8px; border: 0; border-radius: 9px; color: inherit; background: none;
  font: inherit; text-align: left; cursor: pointer; transition: background .15s;
}
.riwayat-baris:hover { background: #faf6f3; }
.riwayat-baris:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.riwayat-panah { color: var(--orange-ink); font-size: 11px; font-weight: 850; white-space: nowrap; }
.riwayat-panah span { font-size: 15px; line-height: 1; }

/* Jendela invoice. */
.invoice-latar[hidden] { display: none; }
.invoice-latar { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(23, 21, 19, .5); }
.invoice {
  display: grid; gap: 16px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(23, 21, 19, .28); outline: 0;
}
.invoice-kepala { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.invoice-eyebrow { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.invoice h2 { margin: 6px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -.5px; text-wrap: balance; }
.invoice-tutup { display: grid; flex: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); background: #fff; cursor: pointer; font: inherit; font-size: 22px; line-height: 1; }
.invoice-tutup:hover { border-color: #f0b6a6; color: var(--orange-ink); }
.invoice-tutup:focus-visible, .invoice-aksi button:focus-visible, .invoice-aksi a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.invoice-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.invoice .tagihan-total strong { font-size: 26px; }
.invoice-biaya { border-top: 1px dashed #e2ddd7; font-variant-numeric: tabular-nums; }
.invoice-biaya dd { text-align: right; }
.invoice-biaya > div { grid-template-columns: 1fr auto; }
.tagihan-rinci > .invoice-jumlah { padding-top: 12px; border-top: 1px solid var(--ink-2); }
.invoice-jumlah dt { color: var(--ink); font-size: 12px; font-weight: 850; }
.invoice-jumlah dd { font-size: 15px; font-weight: 900; }
.invoice-aksi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.invoice-aksi > :only-child { grid-column: 1 / -1; }
.invoice-aksi .pay-button { width: 100%; margin: 0; text-decoration: none; }
.invoice-bawah { display: flex; justify-content: flex-start; }
.invoice-catatan { margin: 0; color: var(--muted); font-size: 11.5px; }
body.invoice-terbuka { overflow: hidden; }

@media (max-width: 620px) {
  .invoice { padding: 18px; }
  .invoice-aksi { grid-template-columns: 1fr; }
  .invoice-biaya > div { grid-template-columns: 1fr auto; }
}

/* Cetak / simpan PDF: hanya invoice-nya. */
@media print {
  body.invoice-terbuka > *:not(.invoice-latar) { display: none !important; }
  body.invoice-terbuka { overflow: visible; }
  .invoice-latar { position: static; padding: 0; background: none; }
  .invoice { width: 100%; max-height: none; overflow: visible; box-shadow: none; }
  .invoice-tutup, .invoice-aksi, .invoice-bawah, .invoice-status .tunggu-pantau { display: none !important; }
  .tunggu-status i::after { animation: none; }
}
.tunggu-gantikan { display: block; margin-top: 6px; color: var(--green); font-weight: 750; }
.tunggu-gantikan.is-warn { color: #9a2a14; }

/* Dimuat di modal dasbor (checkout.js, SEMATAN): dasbor sudah punya kepala,
   kaki, dan tombol WA sendiri. */
.sematan .checkout-header, .sematan .checkout-footer, .sematan .wa-apung { display: none !important; }
.sematan .checkout-main { padding: 28px 0 32px; }
/* Di modal paket dipilih di kartu Ringkasan Pesanan, jadi stepper tidak dipakai. */
.sematan .checkout-steps { display: none; }

/* Nomor WA tersimpan di akun (2026-10-19): kartu pengganti kolom telepon, rupa yang sama dengan /beli. */
.wa-tersimpan { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 7px 8px 7px 11px; border: 1px solid #cfe6d6; border-radius: 9px; background: #f3faf5; }
.wa-tersimpan[hidden] { display: none; }
.wa-tersimpan-tanda { display: grid; width: 20px; height: 20px; flex: none; place-items: center; border-radius: 50%; color: #fff; background: #2f9a5a; font-size: 11px; font-weight: 900; }
.wa-tersimpan-isi { display: grid; min-width: 0; gap: 1px; }
.wa-tersimpan-isi small { margin: 0; color: var(--muted); font-size: 9px; }
.field .wa-tersimpan-isi b { color: var(--ink); font-size: 12px; letter-spacing: .3px; }
.wa-tersimpan button { margin-left: auto; padding: 6px 10px; border: 1px solid #dedbd8; border-radius: 7px; color: var(--ink-2); background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.wa-tersimpan button:hover { border-color: #f18a70; color: var(--orange-ink); }
