/* ============================================================
   AMANAH OFFICIAL — Keranjang, checkout & akun (design system v2)
   File : public/assets/css/akun.css
   ============================================================ */

/* ── Checkbox bulat ala Shopee ── */
.kr-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; font-size: 14px; }
.kr-check input { position: absolute; opacity: 0; pointer-events: none; }
.kr-check span {
  width: 18px; height: 18px; border: 1.5px solid #C9BDC6; border-radius: 3px; background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; transition: background .12s, border-color .12s;
}
.kr-check input:checked + span { background: var(--brand); border-color: var(--brand); }
.kr-check input:checked + span::after {
  content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.kr-check input:focus-visible + span { outline: 2px solid var(--brand-100); outline-offset: 2px; }

/* ══════════ KERANJANG ══════════ */
.kr { padding-top: 14px; padding-bottom: 96px; }
.kr-title { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--brand); margin-bottom: 12px; }
.kr-head {
  display: grid; grid-template-columns: 40px 1fr 160px 150px 140px 90px; align-items: center;
  background: var(--surface); padding: 14px 20px; border-radius: var(--r-sm); box-shadow: var(--shadow-1);
  font-size: 14px; color: var(--muted); margin-bottom: 10px;
}
.kr-col-harga, .kr-col-qty, .kr-col-total, .kr-col-aksi { text-align: center; }
.kr-shop { margin-bottom: 10px; overflow: hidden; }
.kr-shop-head { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kr-shop-head .ic { color: var(--brand); }
.kr-item { display: grid; grid-template-columns: 26px 80px 1fr; grid-template-areas: "c img info" "c img harga" "c img qty"; gap: 4px 10px; padding: 12px; border-bottom: 1px solid var(--line); align-items: start; }
.kr-item:last-child { border-bottom: 0; }
.kr-item > .kr-check { grid-area: c; align-self: center; }
.kr-img { grid-area: img; width: 80px; height: 80px; border-radius: var(--r-xs); overflow: hidden; background: var(--brand-50); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.kr-img img { width: 100%; height: 100%; object-fit: cover; }
.kr-img .ic { color: var(--brand-100); width: 32px; height: 32px; }
.kr-info { grid-area: info; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kr-name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kr-name:hover { color: var(--brand); }
.kr-var { font-size: 12px; color: var(--muted); background: var(--bg); align-self: flex-start; padding: 1px 8px; border-radius: 2px; }
.kr-low { font-size: 12px; color: var(--danger); }
.kr-price { grid-area: harga; text-align: left; font-size: 14px; display: flex; gap: 6px; align-items: baseline; }
.kr-price s { color: var(--muted); font-size: 12px; }
.kr-price span { color: var(--price); font-weight: 600; }
.kr-item .kr-col-qty { grid-area: qty; text-align: left; }
.kr-qty button { width: 28px; height: 28px; }
.kr-qty input { width: 44px; height: 28px; font-size: 14px; }
.kr-sub, .kr-item .kr-col-aksi { display: none; }
.kr-hapus, .kr-hapus-mati, .kr-hapus-pilih { border: 0; background: none; color: var(--ink-2); font-size: 14px; padding: 4px; }
.kr-hapus:hover, .kr-hapus-mati:hover, .kr-hapus-pilih:hover { color: var(--brand); }
.kr-hapus-mati { margin-left: auto; color: var(--brand); }
.kr-mati .kr-item { grid-template-columns: 60px 80px 1fr; grid-template-areas: "c img info" "c img aksi"; opacity: .85; }
.kr-mati .kr-col-aksi { display: block; grid-area: aksi; text-align: left; }
.kr-badge-mati { grid-area: c; align-self: center; font-size: 11px; color: #fff; background: #A79AA4; border-radius: 10px; padding: 2px 6px; text-align: center; }

@media (min-width: 768px) {
  .kr-item {
    grid-template-columns: 40px 80px 1fr 160px 150px 140px 90px;
    grid-template-areas: "c img info harga qty total aksi";
    align-items: center; padding: 18px 20px; gap: 0 12px;
  }
  .kr-price { flex-direction: column; align-items: center; gap: 2px; }
  .kr-item .kr-col-qty { text-align: center; display: flex; justify-content: center; }
  .kr-sub { display: block; grid-area: total; text-align: center; color: var(--price); font-weight: 600; }
  .kr-item .kr-col-aksi { display: block; grid-area: aksi; }
  .kr-shop-head { padding: 14px 20px; }
  .kr-mati .kr-item { grid-template-columns: 60px 80px 1fr 90px; grid-template-areas: "c img info aksi"; }
  .kr-shop .kr-shop-head .kr-check { display: none; }
}

.kr-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(36, 26, 40, .06);
  padding-bottom: env(safe-area-inset-bottom);
}
.kr-bar-inner { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.kr-bar-total { margin-left: auto; text-align: right; font-size: 14px; }
.kr-bar-total strong { color: var(--price); font-size: 18px; font-weight: 600; }
.kr-hemat { font-size: 12px; color: var(--ink-2); }
.kr-hemat span { color: var(--price); }
.kr-checkout { min-height: 44px; padding: 0 16px; white-space: nowrap; }
.kr-bar-total > div:first-child { white-space: nowrap; }
.kr-checkout[aria-disabled="true"] { opacity: .55; }
@media (min-width: 768px) {
  .kr-bar { position: sticky; bottom: 0; margin-top: 12px; border-radius: var(--r-sm); }
  .kr-bar-inner { min-height: 72px; padding: 0 20px; gap: 24px; }
  .kr-bar-total strong { font-size: 24px; }
  .kr-checkout { min-width: 210px; min-height: 42px; }
}

/* Toast global ala Shopee (override gaya inline amanahToast) */
.amanah-toast-wrap { top: auto !important; bottom: 50% !important; right: 50% !important; transform: translate(50%, 50%); align-items: center; pointer-events: none; }
.amanah-toast { background: rgba(36, 26, 40, .82) !important; color: #fff !important; border-radius: var(--r) !important; text-align: center; padding: 14px 20px !important; min-width: 200px; font-weight: 500 !important; }

/* ══════════ LAYOUT AKUN ══════════ */
.ak { padding-top: 14px; padding-bottom: 24px; }
.ak-layout { display: block; }
@media (min-width: 900px) { .ak-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; } }
.ak-nav { display: none; }
@media (min-width: 900px) { .ak-nav { display: block; position: sticky; top: 140px; } }
.ak-nav-user { display: flex; align-items: center; gap: 12px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ak-nav-user .avatar { width: 48px; height: 48px; font-size: 18px; }
.ak-nav-user strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.ak-nav-user a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.ak-nav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; color: var(--ink); }
.ak-nav nav a .ic { color: var(--brand); }
.ak-nav nav a:hover, .ak-nav nav a.active { color: var(--brand); }
.ak-nav nav a.active { font-weight: 600; }
.ak-badge { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 7px; line-height: 18px; }
.ak-nav-out { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px !important; color: var(--muted) !important; }
.ak-nav-out .ic { color: var(--muted) !important; }

.ak-main { padding: 0; overflow: hidden; }
.ak-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ak-main-head h1 { font-size: 18px; font-weight: 600; }
.ak-main-head .btn2 { white-space: nowrap; flex-shrink: 0; }
.ak-main-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ak-main-body { padding: 16px 20px 24px; }
.ak-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
@media (min-width: 900px) { .ak-back { display: none; } }

.flash { padding: 10px 14px; border-radius: var(--r-xs); font-size: 14px; margin-bottom: 12px; }
.flash-ok { background: #E9F8F4; color: #11705F; border: 1px solid #BFE9DE; }
.flash-err { background: #FFF1F1; color: #B42828; border: 1px solid #F6C9C9; }

/* ── Form v2 ── */
.f2 { display: flex; flex-direction: column; gap: 14px; }
.f2-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .f2-row { grid-template-columns: 1fr 1fr; } }
.f2 label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.f2 input[type=text], .f2 input[type=tel], .f2 input[type=email], .f2 input[type=password], .f2 input[type=date], .f2 input[type=search], .f2 select, .f2 textarea {
  height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--surface); font-size: 14px; color: var(--ink); outline: 0; width: 100%;
}
.f2 textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.f2 input:focus, .f2 select:focus, .f2 textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.f2-hint { font-size: 12px; color: var(--muted); }
.f2-pills { display: flex; gap: 8px; }
.f2-pills label { flex-direction: row; }
.f2-pills input { position: absolute; opacity: 0; }
.f2-pills span { padding: 6px 16px; border: 1px solid var(--line); border-radius: var(--r-xs); font-size: 14px; color: var(--ink); cursor: pointer; }
.f2-pills input:checked + span { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.f2-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 14px !important; color: var(--ink) !important; }
.f2-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* ── Autocomplete area (kecamatan) ── */
.ac { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1100;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xs); box-shadow: var(--shadow-2);
  max-height: 260px; overflow-y: auto;
}
.ac-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; font-size: 13px; color: var(--ink); }
.ac-list button:hover, .ac-list button.active { background: var(--brand-50); }
.ac-list .ac-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.ac-picked { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 4px; }

/* ── Modal v2 (dialog tengah di desktop, bottom sheet di mobile) ── */
.md2 { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); }
.md2[hidden] { display: none !important; }
.md2-box { background: var(--surface); width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 640px) { .md2 { align-items: center; padding: 20px; } .md2-box { max-width: 560px; border-radius: var(--r); } }
.md2-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.md2-head h2 { font-size: 17px; font-weight: 600; }
.md2-close { border: 0; background: none; color: var(--muted); padding: 4px; }
.md2-body { padding: 16px 20px 20px; }

/* ── Kartu alamat ── */
.addr { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.addr:last-child { border-bottom: 0; }
.addr-main { flex: 1; min-width: 0; font-size: 14px; }
.addr-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.addr-name strong { font-weight: 600; }
.addr-name span { color: var(--muted); }
.addr-detail { color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.addr-tags { display: flex; gap: 6px; margin-top: 6px; }
.tag { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); }
.tag-brand { border-color: var(--brand); color: var(--brand); }
.addr-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 13px; }
.addr-act button, .addr-act a { border: 0; background: none; color: var(--brand); font-size: 13px; padding: 0; }
.addr-act .btn2 { color: var(--ink); min-height: 30px; padding: 0 10px; font-size: 12px; }
.addr-act .btn2:disabled { opacity: .45; }

/* ══════════ HUB "SAYA" (mobile) ══════════ */
.me-head { background: var(--brand-grad); color: #fff; padding: 20px 0 46px; }
.me-head-inner { display: flex; align-items: center; gap: 14px; }
.me-avatar { width: 60px; height: 60px; font-size: 24px; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .25); color: #fff; }
.me-head strong { display: block; font-size: 18px; }
.me-head span { font-size: 13px; opacity: .9; }
.me-edit { margin-left: auto; color: #fff; }
.me-card { margin-bottom: 10px; overflow: hidden; }
.me-head + .container .me-card:first-child { margin-top: -32px; position: relative; }
.me-card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.me-card-head span { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 13px; }
.me-status { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 4px; }
.me-status a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); text-align: center; }
.me-status-ic { position: relative; color: var(--ink); }
.me-status-ic .ic { width: 26px; height: 26px; }
.me-status-ic b { position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; border: 1.5px solid var(--surface); background: var(--brand); color: #fff; font-size: 11px; line-height: 15px; text-align: center; }
.me-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.me-row:last-child { border-bottom: 0; }
.me-row > .ic:first-child { color: var(--brand); }
.me-row span { flex: 1; }
.me-row > .ic:last-child { color: var(--muted); }
.me-logout { margin: 6px 0 16px; }

/* ══════════ CHECKOUT ══════════ */
.co { padding-top: 14px; padding-bottom: 90px; }
.co-sec { margin-bottom: 10px; padding: 16px; }
@media (min-width: 768px) { .co-sec { padding: 22px 28px; } .co { padding-bottom: 24px; } }
.co-sec-title { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.co-alamat { position: relative; overflow: hidden; }
.co-alamat::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(45deg, var(--brand) 0 22px, transparent 22px 30px, #6FA6D6 30px 52px, transparent 52px 60px);
}
.co-alamat-row { display: flex; align-items: flex-start; gap: 16px; font-size: 14px; }
.co-alamat-row > div { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.co-alamat-row strong { font-weight: 600; }
.co-alamat-row span:not(.tag) { color: var(--ink); }
.co-alamat-kosong { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.co-ubah { border: 0; background: none; color: #2F7DD1; font-size: 14px; padding: 0; flex-shrink: 0; }

.co-prod-head { display: grid; grid-template-columns: 1fr 150px 100px 160px; font-size: 14px; color: var(--muted); padding-bottom: 12px; }
.co-prod-head span:first-child { color: var(--ink); font-size: 16px; }
.co-prod-head span:not(:first-child) { text-align: right; }
.co-prod { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.co-prod .kr-img { width: 64px; height: 64px; }
.co-prod-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-prod-m { font-size: 14px; color: var(--ink); }
.co-prod-m em { font-style: normal; color: var(--muted); float: right; }
.co-c { text-align: right; font-size: 14px; }
.co-strong { font-weight: 600; }
@media (min-width: 768px) { .co-prod { grid-template-columns: 64px 1fr 150px 100px 160px; } }

.co-ship-row { display: grid; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); background: #FBFDFF; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .co-ship-row { grid-template-columns: 1fr 1.4fr; margin: 0 -28px; padding: 16px 28px; } }
.co-note { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.co-note input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: var(--r-xs); padding: 0 10px; font-size: 14px; outline: 0; }
.co-note input:focus { border-color: var(--brand); }
.co-ship { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.co-ship-label { color: #11705F; }
.co-ship-pick { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.co-ship-pick small { color: var(--muted); font-size: 12px; }
.co-ship-price { font-weight: 600; }
.co-sub { text-align: right; font-size: 14px; padding-top: 14px; color: var(--ink-2); }
.co-sub strong { color: var(--price); font-size: 18px; font-weight: 600; margin-left: 6px; }

.co-pay { display: flex; flex-wrap: wrap; gap: 10px; }
.co-pay-opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 14px; min-width: 200px; flex: 1 1 200px;
  border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface); color: var(--ink);
  position: relative;
}
.co-pay-opt .ic { color: var(--ink-2); }
.co-pay-opt span { display: flex; flex-direction: column; }
.co-pay-opt strong { font-size: 14px; font-weight: 600; }
.co-pay-opt small { font-size: 12px; color: var(--muted); }
.co-pay-opt:hover { border-color: var(--brand); }
.co-pay-opt.active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.co-pay-opt.active .ic { color: var(--brand); }
.co-pay-opt.active::after { content: ''; position: absolute; right: 0; bottom: 0; border: 7px solid transparent; border-right-color: var(--brand); border-bottom-color: var(--brand); }
.co-pay-note { margin-top: 10px; color: var(--danger) !important; }

.co-sum dl { display: flex; flex-direction: column; gap: 10px; margin: 0 0 0 auto; max-width: 420px; font-size: 14px; }
.co-sum dl div { display: flex; justify-content: space-between; gap: 20px; }
.co-sum dt { color: var(--ink-2); }
.co-sum dd { margin: 0; }
.co-sum-total { padding-top: 10px; border-top: 1px solid var(--line); align-items: center; }
.co-sum-total dd { color: var(--price); font-size: 24px; font-weight: 600; }
.co-sum-note { text-align: right; font-size: 12px; margin-top: 8px; }
.co-sum-act { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.co-sum-act .co-submit { min-width: 210px; min-height: 44px; font-size: 15px; }

.co-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; align-items: stretch; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); height: 56px;
}
.co-bar > div { flex: 1; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 0 12px; font-size: 13px; }
.co-bar strong { color: var(--price); font-size: 18px; font-weight: 600; }
.co-bar .co-submit { border: 0; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; padding: 0 22px; }
.co-bar .co-submit:disabled { background: #D9CDD4; }
@media (min-width: 768px) { .co-bar { display: none; } }

.co-addr-opt { cursor: pointer; align-items: flex-start; }
.co-addr-opt .kr-check { margin-top: 2px; }
.co-kurir { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-xs); margin-bottom: 8px; cursor: pointer; }
.co-kurir.active { border-color: var(--brand); background: var(--brand-50); }
.co-kurir img { width: 44px; height: 24px; object-fit: contain; }
.co-kurir-info { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.co-kurir-info small { color: var(--muted); font-size: 12px; }
.co-kurir-harga { font-size: 14px; }
.co-prod .kr-img, .co-prod .kr-name { grid-area: auto; }
#co-ship-text { display: flex; flex-direction: column; }
#co-ship-text small { color: var(--muted); font-size: 12px; }

/* ══════════ HASIL CHECKOUT / INSTRUKSI BAYAR ══════════ */
.rs { padding-top: 14px; padding-bottom: 24px; }
.rs-hero { text-align: center; padding: 28px 20px; margin-bottom: 10px; background: linear-gradient(180deg, var(--brand-50), var(--surface)); }
.rs-hero-ic { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; }
.rs-hero-ic .ic { width: 32px; height: 32px; }
.rs-hero h1 { font-size: 20px; margin: 12px 0 6px; }
.rs-hero p { color: var(--ink-2); font-size: 14px; }
.rs-timer { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 10px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--brand-100); font-size: 13px; color: var(--ink-2); }
.rs-timer strong { color: var(--brand); font-size: 22px; font-variant-numeric: tabular-nums; }
.rs-total { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.rs-total strong { display: block; font-size: 26px; color: var(--price); font-weight: 600; }
.rs-grid { display: grid; gap: 0 16px; }
@media (min-width: 900px) { .rs-grid { grid-template-columns: 1fr 380px; align-items: start; } .rs-aside { position: sticky; top: 140px; } }
.rs-p { font-size: 14px; color: var(--ink); line-height: 1.6; }
.rs-label { font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.rs-copy { display: flex; gap: 10px; align-items: stretch; }
.rs-copy code { flex: 1; font-size: 20px; font-weight: 700; letter-spacing: .06em; padding: 10px 14px; border-radius: var(--r-xs); background: var(--brand-50); border: 1px dashed var(--brand-100); color: var(--ink); font-family: var(--font) !important; }
.rs-steps { margin: 16px 0 0 18px; list-style: decimal; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.rs-qr { display: block; margin: 12px auto 0; width: 240px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: #fff; }
.rs-dl { display: flex; flex-direction: column; gap: 10px; margin: 0; font-size: 14px; }
.rs-dl div { display: flex; gap: 12px; }
.rs-dl dt { width: 110px; flex-shrink: 0; color: var(--muted); }
.rs-dl dd { margin: 0; }
.rs-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.rs-item .kr-img { width: 52px; height: 52px; grid-area: auto; }
.rs-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-sum { margin: 12px 0 16px; }
.rs-sum div { justify-content: space-between; }
.rs-sum dt { width: auto; }
.rs-sum-total { padding-top: 10px; border-top: 1px solid var(--line); }
.rs-sum-total dd { color: var(--price); font-size: 18px; font-weight: 600; }
.rs-lagi { margin-top: 8px; }

/* ══════════ PESANAN SAYA ══════════ */
.od { min-width: 0; }
.od-tabs {
  display: flex; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px;
  position: sticky; top: 56px; z-index: 5;
}
@media (min-width: 768px) { .od-tabs { top: 126px; } }
.od-tabs::-webkit-scrollbar { display: none; }
.od-tabs a { flex: 1 0 auto; text-align: center; padding: 14px 16px; font-size: 14px; color: var(--ink); border-bottom: 2px solid transparent; white-space: nowrap; }
.od-tabs a:hover { color: var(--brand); }
.od-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.od-tabs a span { color: var(--brand); }
.od-cari { display: flex; align-items: center; gap: 10px; background: #EAE3E8; border-radius: var(--r-xs); padding: 0 14px; margin-bottom: 10px; color: var(--muted); }
.od-cari input { flex: 1; height: 40px; border: 0; background: transparent; outline: 0; font-size: 14px; }
.od-card { margin-bottom: 10px; overflow: hidden; }
.od-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.od-card-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.od-card-head .ic { color: var(--brand); }
.od-status { font-size: 13px; color: var(--success); text-align: right; }
.od-status b { color: var(--brand); margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); font-weight: 600; }
.od-status-cancel b { color: var(--muted); }
.od-items { display: block; }
.od-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.od-item .kr-img { width: 72px; height: 72px; grid-area: auto; }
.od-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.od-item-info .kr-name { grid-area: auto; }
.od-item-price { color: var(--price); }
.od-more { padding: 10px 16px; font-size: 13px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.od-card-foot { padding: 14px 16px; background: #FFFCFD; }
.od-total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 14px; margin-bottom: 12px; }
.od-total strong { color: var(--price); font-size: 20px; font-weight: 600; }
.od-aksi { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.od-aksi form { display: contents; }
.od-aksi .btn2 { min-width: 120px; min-height: 38px; font-size: 14px; }
@media (max-width: 639px) { .od-aksi .btn2 { min-width: 0; flex: 1 1 auto; } }

.odd-head { padding: 18px 20px; margin-bottom: 10px; }
.odd-head h1 { font-size: 20px; color: var(--brand); margin: 4px 0 14px; }
.odd-head.od-status-done h1 { color: var(--success); }
.odd-head.od-status-cancel h1 { color: var(--muted); }
.odd-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 6px 0 18px; position: relative; }
.odd-steps::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 22px; height: 3px; background: var(--line); }
.odd-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; color: var(--muted); }
.odd-step-ic { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--line); position: relative; z-index: 1; }
.odd-steps li.on { color: var(--ink); }
.odd-steps li.on .odd-step-ic { border-color: var(--success); color: var(--success); }
.odd-steps strong { font-weight: 600; font-size: 13px; }
.odd-steps small { color: var(--muted); font-size: 11px; }
.odd-grid { display: grid; gap: 0 10px; }
@media (min-width: 900px) { .odd-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.odd-addr, .odd-ship { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin-bottom: 10px; }
.odd-sum { max-width: 420px; margin-left: auto; margin-top: 16px; }
.od-aksi a.btn2 .ic { color: currentColor; }

/* Timeline lacak (komponen lama dipakai ulang — selaraskan gaya) */
.tracking-timeline { border-left: 2px solid var(--line); margin: 10px 0 0 6px; padding-left: 16px; }
.track-event { position: relative; padding-bottom: 14px; font-size: 13px; }
.track-event .track-dot { position: absolute; left: -23px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.track-event.current .track-dot { background: var(--success); box-shadow: 0 0 0 4px #DDF3EE; }
.track-event.current .track-event-title { color: var(--success); font-weight: 600; }
.track-event-time { color: var(--muted); font-size: 12px; }

/* ══════════ PENILAIAN ══════════ */
.rv-form { padding: 6px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rv-prod { padding: 0 0 10px; border: 0; grid-template-columns: 56px 1fr; }
.rv-prod .kr-img { width: 56px; height: 56px; }
.rv-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.rv-label { font-size: 14px; color: var(--ink-2); }
.rv-stars { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 2px; }
.rv-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rv-stars label { cursor: pointer; color: #E5DCE2; padding: 2px; }
.rv-stars label .ic { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.rv-stars input:checked ~ label, .rv-stars label:hover, .rv-stars label:hover ~ label { color: var(--star); }
.rv-stars input:focus-visible + label { outline: 2px solid var(--brand-100); border-radius: 4px; }
.rv-teks { order: -1; margin-left: 10px; font-size: 14px; color: var(--star); font-weight: 600; min-width: 90px; }
.rv-text { width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: var(--r-xs); padding: 10px 12px; font-size: 14px; outline: 0; resize: vertical; }
.rv-text:focus { border-color: var(--brand); }
.rv-foot { justify-content: space-between; }
.rv-foto { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px dashed var(--brand); border-radius: var(--r-xs); color: var(--brand); font-size: 13px; cursor: pointer; }
.rv-anon { margin-left: auto; }
.rv-h { font-size: 15px; font-weight: 600; margin: 8px 0 4px; padding-top: 10px; }
.rv-done { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rv-done .kr-img { width: 56px; height: 56px; grid-area: auto; }
.rv-done > div { display: flex; flex-direction: column; gap: 4px; }
.rv-bintang { display: flex; gap: 1px; }

/* ══════════ PROFIL ══════════ */
.pf { display: grid; gap: 24px; }
@media (min-width: 768px) { .pf { grid-template-columns: 1fr 220px; } .pf-foto { border-left: 1px solid var(--line); } }
.pf-foto { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 0; order: -1; }
@media (min-width: 768px) { .pf-foto { order: 0; } }
.pf-avatar { width: 100px; height: 100px; font-size: 38px; }
.pf-pass { max-width: 480px; }

/* ══════════ MASUK / DAFTAR ══════════ */
.auth2 { background: var(--bg); padding: 16px 0 28px; }
@media (min-width: 900px) { .auth2 { background: var(--brand-grad); padding: 48px 0; } }
.auth2-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .auth2-inner { grid-template-columns: 1fr 420px; } }
.auth2-brand { display: none; color: #fff; text-align: center; }
@media (min-width: 900px) { .auth2-brand { display: block; } }
.auth2-brand img { margin: 0 auto 18px; width: 200px; height: auto; }
.auth2-brand h2 { color: #fff; font-size: 26px; margin-bottom: 18px; }
.auth2-brand ul { display: inline-flex; flex-direction: column; gap: 10px; text-align: left; font-size: 16px; }
.auth2-brand li { display: flex; align-items: center; gap: 10px; }
.auth2-card { padding: 24px 20px; max-width: 460px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .auth2-card { padding: 30px; } }
.auth2-card h1 { font-size: 20px; font-weight: 500; margin-bottom: 18px; }
.auth2-submit { min-height: 44px; margin-top: 4px; letter-spacing: .04em; }
.auth2-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.auth2-or::before, .auth2-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth2-google { min-height: 44px; }
.auth2-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth2-foot a, .auth2-card .f2-check a { color: var(--brand); font-weight: 600; }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; }

/* ══════════ VOUCHER DI CHECKOUT ══════════ */
.co-vc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.co-vc-pilih { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.co-minus { color: var(--price); }
.co-flash { align-self: flex-start; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 2px; display: inline-flex; align-items: center; gap: 2px; }
.co-vc-kode { display: flex; gap: 8px; margin-bottom: 12px; }
.co-vc-kode input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: var(--r-xs); padding: 0 12px; font-size: 14px; text-transform: uppercase; outline: 0; }
.co-vc-kode input:focus { border-color: var(--brand); }
.co-vc-h { font-size: 14px; font-weight: 600; margin: 14px 0 8px; }
.co-vc { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-xs); margin-bottom: 8px; overflow: hidden; cursor: pointer; }
.co-vc.active { border-color: var(--brand); }
.co-vc.mati { opacity: .55; cursor: not-allowed; }
.co-vc .vc-isi em { font-style: normal; color: var(--danger); font-size: 12px; }
.co-vc > .kr-check { padding: 0 14px; }

/* ══════════ NOTIFIKASI ══════════ */
.nt-tabs { position: static; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.nt-list li { border-bottom: 1px solid var(--line); }
.nt-list li.baru { background: var(--brand-50); }
.nt-item { display: flex; gap: 14px; padding: 14px 20px; }
.nt-img { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--r-xs); background: var(--brand-50); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--brand); }
.nt-img img { width: 100%; height: 100%; object-fit: cover; }
.nt-isi { display: flex; flex-direction: column; gap: 3px; font-size: 14px; min-width: 0; }
.nt-isi strong { font-weight: 600; }
.nt-isi span { color: var(--ink-2); }
.nt-isi small { color: var(--muted); font-size: 12px; }
