/* 28o (28 Nov 2026) — Checkout terpandu (Mockup C). Hanya berlaku bila #modalBeli punya kelas .co-c
   (saklar Pengaturan → Checkout = baru / A-B kelompok B). Kelas lama tidak diubah. */
@media (max-width: 640px) {
  #modalBeli.co-c { padding: 0; align-items: stretch; }
  #modalBeli.co-c .modal-box { max-width: none; max-height: none; height: 100%; height: 100dvh; border-radius: 0; }
}
body:has(#modalBeli.co-c.open) :is(.wa-float, .sticky-cta-bar, #chatbotBtn, .cb-launcher) { display: none !important; }

/* Sembunyikan langkah yang tidak aktif saja (elemen yang tampil tetap memakai display aslinya). */
#modalBeli.co-c[data-co-at="1"] [data-co-step="2"],
#modalBeli.co-c[data-co-at="2"] [data-co-step="1"],
#modalBeli.co-c:not(.co-rinci) [data-co-step="0"] { display: none !important; }
#modalBeli.co-c [data-co-hide], #modalBeli.co-c .ft-steps { display: none !important; }

.co-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; counter-reset: co; }
.co-steps li { flex: 1 1 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #94A3B8; min-width: 0; }
.co-steps li span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #E2E8F0; color: #64748B; display: grid; place-items: center; font-size: 12px; }
.co-steps li.on { color: #0A2F6B; }
.co-steps li.on span { background: #0A2F6B; color: #fff; }
.co-steps li.ok span { background: #0E7A4B; color: #fff; }
.co-steps li.ok { color: #0E7A4B; cursor: pointer; }
.co-steps li b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.co-ring { position: sticky; top: 0; z-index: 4; margin: 0 -20px 14px; padding: 10px 20px; background: #F5F8FD;
  border-bottom: 1px solid #DCE3EE; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.co-ring-info { min-width: 0; font-size: 12.5px; color: #3B4658; line-height: 1.35; }
.co-ring-info b { display: block; font-size: 16px; color: #0A2F6B; }
.co-ring button { flex: none; background: none; border: 1px solid #C9D6EA; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: #0A2F6B; cursor: pointer; }

.co-bar { position: sticky; bottom: 0; z-index: 3; margin: 16px -20px 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid #DCE3EE; box-shadow: 0 -6px 20px rgba(10,47,107,.08); }
.co-bar .co-next { width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: #C84E00; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.co-back { background: none; border: 0; padding: 0; margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: #0A2F6B; cursor: pointer; }
.co-h { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #0A2F6B; }

/* Layar bayar (langkah 3) */
.co-pay .co-steps { margin: 0 0 14px; }
.co-up { margin-top: 12px; border: 1px solid #DCE3EE; border-radius: 14px; padding: 14px; background: #fff; text-align: left; }
.co-up h3 { margin: 0 0 6px; font-size: 15px; color: #0A2F6B; }
.co-up p { margin: 0 0 10px; font-size: 13px; color: #3B4658; line-height: 1.5; }
.co-up select { width: 100%; padding: 10px; border: 1px solid #C9D6EA; border-radius: 10px; font-size: 15px; margin-bottom: 10px; background: #fff; }
.co-up .co-pick { display: block; width: 100%; padding: 14px; border: 2px dashed #9DB3D6; border-radius: 12px; background: #F5F8FD; color: #0A2F6B; font-weight: 700; font-size: 14.5px; cursor: pointer; text-align: center; }
.co-up .co-kirim { margin-top: 10px; width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: #C84E00; color: #fff; font-size: 15.5px; font-weight: 800; cursor: pointer; }
.co-up .co-kirim[disabled] { opacity: .6; cursor: default; }
.co-ok { background: #F0F7F3; border: 1px solid #B7DFC8; color: #1E3A2B; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; text-align: left; }
.co-ok a.co-dok { display: block; margin-top: 10px; text-align: center; background: #0A2F6B; color: #fff; border-radius: 10px; padding: 12px; font-weight: 800; text-decoration: none; }
.co-err { color: #B91C1C; font-size: 13px; margin-top: 8px; }
.co-nanti { margin: 12px 0 0; font-size: 12.5px; color: #5A6577; text-align: center; line-height: 1.5; }
