/* =====================================================================
   GOR Rato Adu - papan jadwal booking & halaman booking pemesan.
   Dimuat sesudah css/colors.css, jadi variabel --ra-* sudah tersedia.
   Tidak memakai flex `gap` di bagian penting dan tidak memakai `inset`,
   supaya aman di browser HP lama.
   ===================================================================== */

.bk-wrap { padding-top: 46px; }

/* ------------------------------------------------------------- pesan */

.bk-alert {
  display: flex;
  align-items: flex-start;
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14.5px;
  line-height: 1.55;
}
.bk-alert > i { margin: 3px 10px 0 0; font-size: 16px; }
.bk-alert a { font-weight: 700; text-decoration: underline; }
.bk-alert.err  { background: #FDECEC; border-color: #F5C2C0; color: #8E1C12; }
.bk-alert.info { background: var(--ra-gold-soft); border-color: #EBD9A1; color: #6E5610; }
.bk-alert.ok   { background: var(--ra-lime-soft); border-color: #C9E8A2; color: var(--ra-green-800); }

/* ----------------------------------------------------------- langkah */

.bk-step {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 30px 0 14px;
}
.bk-step:first-of-type { margin-top: 4px; }
.bk-num {
  width: 32px; height: 32px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--ra-green-600);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 32px;
  text-align: center;
  flex: none;
}
.bk-step h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ra-ink); }
.bk-step-note {
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--ra-lime-soft);
  color: var(--ra-green-800);
  font-size: 13px;
  font-weight: 700;
}

/* --------------------------------------------------------- tanggal */

.bk-dates {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 10px;
  margin: 0 -2px;
  scrollbar-width: thin;
}
.bk-date {
  flex: none;
  width: 70px;
  margin-right: 8px;
  padding: 9px 4px 8px;
  border: 1.5px solid var(--ra-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  color: var(--ra-body);
  line-height: 1.15;
  text-decoration: none;
  transition: .15s;
}
.bk-date:hover, .bk-date:focus { border-color: var(--ra-green-500); text-decoration: none; color: var(--ra-ink); }
.bk-date .d { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ra-muted); }
.bk-date strong { display: block; font-size: 22px; font-weight: 800; color: var(--ra-ink); margin: 2px 0; }
.bk-date .m { display: block; font-size: 12px; color: var(--ra-muted); }
.bk-date.is-weekend .d { color: #B54708; }
.bk-date.is-on {
  background: var(--ra-green-600);
  border-color: var(--ra-green-600);
  box-shadow: 0 6px 16px rgba(22, 163, 74, .28);
}
.bk-date.is-on .d, .bk-date.is-on strong, .bk-date.is-on .m { color: #fff; }
.bk-date.is-closed { opacity: .5; }
.bk-date.is-closed strong { text-decoration: line-through; }

/* kalender "Tanggal lain" di bawah deretan tanggal */
.bk-datepick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 4px 0 22px;
}
.bk-datepick label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ra-ink);
}
.bk-datepick label .fa { color: var(--ra-green-600); margin-right: 4px; }
.bk-datepick input[type="date"] {
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--ra-line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ra-ink);
  min-width: 0;
}
.bk-datepick input[type="date"]:focus { outline: none; border-color: var(--ra-green-500); }
.bk-datepick .btn { float: none; margin: 0; }

/* ------------------------------------------------------ saring area */

.bk-areas { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
.bk-chip {
  margin: 0 8px 8px 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ra-line);
  background: #fff;
  color: var(--ra-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.bk-chip:hover, .bk-chip:focus { border-color: var(--ra-green-500); color: var(--ra-ink); text-decoration: none; }
.bk-chip.is-on { background: var(--ra-green-800); border-color: var(--ra-green-800); color: #fff; }

/* ------------------------------------------------------- keterangan */

.bk-legend { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; }
.bk-legend li { margin: 0 16px 6px 0; font-size: 13px; color: var(--ra-muted); display: flex; align-items: center; }
.bk-legend .sw { width: 16px; height: 16px; border-radius: 5px; margin-right: 6px; border: 1px solid transparent; }
.sw.kosong  { background: var(--ra-lime-soft); border-color: #BFE39A; }
.sw.dipilih { background: var(--ra-gold); }
.sw.ditahan { background: #FFF1CC; border-color: #F0D78C; }
.sw.terisi  { background: #E4E8E6; }
.sw.lewat   { background: #F4F5F4; border-color: #E6E9E7; }
.sw.blok    { background: #FCE9E6; border-color: #F3BDB3; }

.bk-blocknote {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FDF3F1;
  border: 1px solid #F6D3CC;
  font-size: 13.5px;
  color: var(--ra-body);
  text-align: left;
}
.bk-blocknote .fa { color: #A3341F; margin-right: 4px; }

/* ------------------------------------------------------ papan jadwal */

.bk-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--ra-line);
  border-radius: 14px;
  box-shadow: var(--ra-shadow);
}
.bk-scroll:focus { outline: 2px solid var(--ra-green-500); outline-offset: 2px; }

.bk-board {
  border-collapse: separate;
  border-spacing: 5px;
  width: 100%;
  min-width: 100%;
}
.bk-board th, .bk-board td { padding: 0; text-align: center; vertical-align: middle; }

.bk-area-h {
  padding: 9px 6px 7px !important;
  background: var(--ra-green-800);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
}
.bk-court-h {
  min-width: 78px;
  padding: 7px 4px !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--ra-ink);
  white-space: nowrap;
  border-radius: 8px;
  background: var(--ra-bg-soft);
}
.bk-court-h.is-focus { background: var(--ra-gold-soft); box-shadow: inset 0 0 0 2px var(--ra-gold); }

/* kolom jam menempel di kiri saat tabel digeser */
.bk-jam-h, .bk-jam {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  min-width: 62px;
}
.bk-jam-h { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ra-muted); }
.bk-jam {
  font-size: 14px;
  font-weight: 800;
  color: var(--ra-ink);
  line-height: 1.1;
  padding-right: 4px !important;
  box-shadow: 6px 0 8px -6px rgba(6, 78, 34, .15);
}
.bk-jam small { display: block; font-size: 11px; font-weight: 600; color: var(--ra-muted); }

td.is-focus .bk-cell.is-kosong { box-shadow: inset 0 0 0 2px var(--ra-gold); }

.bk-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* kotak yang bisa dipilih */
.bk-cell.is-kosong {
  cursor: pointer;
  background: var(--ra-lime-soft);
  border: 1px solid #BFE39A;
  color: var(--ra-green-800);
  transition: background .12s, transform .12s;
}
.bk-cell.is-kosong:hover { background: #D7EFBC; }
.bk-cell.is-kosong:active { transform: scale(.96); }

/* checkbox disembunyikan secara visual tetapi tetap bisa difokus keyboard */
.bk-cell input {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.bk-cell:focus-within { outline: 3px solid var(--ra-green-500); outline-offset: 1px; }

.bk-cell.is-picked {
  background: var(--ra-gold);
  border-color: #B8931F;
  color: var(--ra-green-900);
  box-shadow: 0 4px 10px rgba(212, 175, 55, .45);
}
/* teks kotak: "Tersedia" berganti "Dipilih" saat dicentang (tanpa perlu skrip) */
.bk-cell .t-pick { display: none; }
.bk-cell input:checked ~ .t-on { display: none; }
.bk-cell input:checked ~ .t-pick { display: inline; }
.bk-cell .t-pick::before {
  content: "\f00c";              /* fa-check */
  font-family: FontAwesome;
  margin-right: 5px;
  font-weight: normal;
}
.bk-cell.is-locked { opacity: .4; cursor: not-allowed; }
.bk-cell.is-locked input { cursor: not-allowed; }

/* kotak yang tidak bisa dipilih */
.bk-cell.is-ditahan { background: #FFF1CC; border: 1px solid #F0D78C; color: #8A6D13; font-size: 12px; }
.bk-cell.is-terisi  { background: #E4E8E6; color: #7F8B84; font-size: 12px; }
/* diblokir admin: turnamen, acara, dll. Label bebas, dipotong bila panjang */
.bk-cell.is-blok {
  display: block;
  padding: 0 5px;
  line-height: 44px;   /* tinggi 46 dikurangi garis tepi 2px */
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #FCE9E6;
  border: 1px solid #F3BDB3;
  color: #A3341F;
  font-size: 12px;
}
.bk-cell.is-lewat,
.bk-cell.is-tutup   { background: #F4F5F4; border: 1px dashed #E1E5E2; color: #B3BBB6; font-size: 12px; font-weight: 600; }

.bk-hint { margin: 10px 2px 0; font-size: 13px; color: var(--ra-muted); }
.bk-hint i { color: var(--ra-green-600); margin-right: 4px; }
.bk-hint-scroll { display: none; }

/* ---------------------------------------------------- data pemesan */

.bk-form { display: flex; align-items: flex-start; }
.bk-summary {
  flex: 0 0 42%;
  max-width: 42%;
  margin-right: 24px;
  padding: 20px;
  background: var(--ra-bg-soft);
  border: 1px solid var(--ra-line);
  border-radius: 14px;
}
.bk-summary h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ra-green-800);
}
#bkList { list-style: none; margin: 0; padding: 0; }
#bkList li {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--ra-line);
  font-size: 14px;
}
#bkList li > span { flex: 1 1 auto; min-width: 0; color: var(--ra-ink); }
#bkList li > strong { margin-left: 10px; color: var(--ra-green-700); white-space: nowrap; }
#bkList li.bk-none { color: var(--ra-muted); font-style: italic; border-bottom: 0; }
.bk-x {
  margin-left: 8px;
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #A82424;
  font-size: 17px;
  line-height: 24px;
  cursor: pointer;
  flex: none;
}
.bk-x:hover, .bk-x:focus { background: #FDECEC; outline: none; }
.bk-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--ra-line);
}
.bk-total span { font-weight: 700; color: var(--ra-ink); }
.bk-total strong { font-size: 22px; font-weight: 800; color: var(--ra-green-700); }

.bk-fields { flex: 1 1 auto; min-width: 0; }
.bk-fields label { font-size: 13px; font-weight: 700; color: var(--ra-ink); margin-bottom: 6px; }
.bk-fields .opt { font-weight: 500; color: var(--ra-muted); }
.bk-fields .form-control {
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--ra-line);
  box-shadow: none;
  font-size: 15px;
}
.bk-fields .form-control:focus {
  border-color: var(--ra-green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}
.bk-small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ra-muted); }
.bk-submit { width: 100%; height: 50px; font-size: 16px; margin-top: 6px; }

.bk-empty {
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--ra-line);
  border-radius: 14px;
  color: var(--ra-muted);
}
.bk-empty > i { font-size: 34px; color: var(--ra-green-600); margin-bottom: 10px; display: block; }
.bk-empty p { margin: 0 0 14px; }

/* ------------------------------------------------ bilah bawah layar */

.bk-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: #fff;
  border-top: 1px solid var(--ra-line);
  box-shadow: 0 -8px 24px rgba(6, 78, 34, .12);
  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.bk-bar[hidden] { display: none !important; }
.bk-bar-in {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bk-bar-in span { display: block; font-size: 12.5px; color: var(--ra-muted); }
.bk-bar-in strong { font-size: 19px; font-weight: 800; color: var(--ra-green-700); }
body.bk-bar-on .wa-float { bottom: 86px; }
body.bk-bar-on .ra-section.bk-wrap { padding-bottom: 110px; }

/* --------------------------------------------------------- responsif */

@media (max-width: 991px) {
  .bk-form { display: block; }
  .bk-summary { max-width: none; margin: 0 0 20px; }
}

@media (max-width: 767px) {
  .bk-wrap { padding-top: 30px; }
  .bk-step h3 { font-size: 18px; }
  .bk-step-note { margin: 8px 0 0 43px; }
  .bk-date { width: 62px; }
  .bk-date strong { font-size: 20px; }
  .bk-court-h { min-width: 70px; font-size: 12px; }
  .bk-cell { height: 44px; font-size: 12.5px; }
  .bk-cell.is-blok { line-height: 42px; font-size: 11.5px; }
  .bk-hint-scroll { display: inline; }
}

/* ===================================================== halaman booking */

.by-card {
  background: #fff;
  border: 1px solid var(--ra-line);
  border-radius: 16px;
  box-shadow: var(--ra-shadow);
  overflow: hidden;
}
.by-head {
  padding: 22px 24px;
  background: var(--ra-grad);
  color: #fff;
  position: relative;
}
.by-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ra-gold), var(--ra-lime));
}
.by-head .lbl { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ra-gold-soft); font-weight: 700; }
.by-head .kode { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: #fff; margin: 2px 0 8px; }
.by-head .ra-badge { font-size: 12.5px; }
.by-body { padding: 22px 24px; }

.by-timer {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--ra-gold-soft);
  border: 1px solid #EBD9A1;
  color: #6E5610;
}
.by-timer i { font-size: 22px; margin-right: 12px; }
.by-timer strong { font-size: 24px; font-weight: 800; color: #6E5610; font-variant-numeric: tabular-nums; margin-left: auto; }
.by-timer.is-urgent { background: #FDECEC; border-color: #F5C2C0; color: #8E1C12; }
.by-timer.is-urgent strong { color: #8E1C12; }

.by-dl { margin: 0 0 18px; }
.by-dl div { display: flex; padding: 8px 0; border-bottom: 1px solid var(--ra-line); font-size: 14.5px; }
.by-dl dt { width: 38%; flex: none; color: var(--ra-muted); font-weight: 600; }
.by-dl dd { margin: 0; color: var(--ra-ink); font-weight: 600; min-width: 0; word-wrap: break-word; }

.by-items { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.by-items th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ra-muted);
  padding: 8px 0;
  border-bottom: 2px solid var(--ra-line);
}
.by-items td { padding: 10px 0; border-bottom: 1px solid var(--ra-line); font-size: 14.5px; color: var(--ra-ink); vertical-align: top; }
.by-items td small { display: block; color: var(--ra-muted); font-size: 12.5px; }
.by-items .r { text-align: right; white-space: nowrap; }
.by-items tfoot td { border-bottom: 0; padding-top: 12px; font-weight: 800; }
.by-items tfoot .r { font-size: 20px; color: var(--ra-green-700); }
/* rincian struk: baris pendukung kecil & tenang, perhatian tertuju ke total */
.by-items tfoot tr.by-sub td, .by-items tfoot tr.by-fee td { padding: 4px 0; font-weight: 600; font-size: 13.5px; color: var(--ra-muted); }
.by-items tfoot tr.by-sub .r, .by-items tfoot tr.by-fee .r { font-size: 13.5px; color: var(--ra-muted); }
.by-items tfoot tr.by-fee small { font-weight: 500; font-size: 11.5px; }
.by-items tfoot tr.by-fee.is-free .r { color: var(--ra-green-700); font-weight: 800; }
.by-items tfoot tr.by-sub:first-child td { padding-top: 12px; }
.by-items tfoot tr:last-child td { border-top: 1px dashed var(--ra-line); padding-top: 10px; }
.by-feeinfo { margin: 2px 0 16px; font-size: 12px; line-height: 1.5; color: var(--ra-muted); font-style: italic; }
.bk-feenote { margin: 6px 0 0; font-size: 12px; color: var(--ra-muted); text-align: right; }
.bk-feenote.is-free { color: var(--ra-green-700); font-weight: 700; }

.by-actions { display: flex; flex-wrap: wrap; margin-top: 18px; }
.by-actions .btn { margin: 0 10px 10px 0; }
.by-note { font-size: 13px; color: var(--ra-muted); margin-top: 6px; }

@media (max-width: 767px) {
  .by-head, .by-body { padding: 18px 16px; }
  .by-head .kode { font-size: 22px; }
  .by-dl dt { width: 42%; }
  .by-actions .btn { flex: 1 1 100%; margin-right: 0; text-align: center; }
}

/* ===================================================== pilih cara bayar */

.pay-title {
  margin: 26px 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ra-ink);
}
.pay-sandbox {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #EEF4FF;
  border: 1px dashed #9DB8E8;
  color: #1A4E9A;
  font-size: 13px;
}
.pay-sandbox i { margin-right: 5px; }

.pay-opt {
  margin-bottom: 12px;
  padding: 16px;
  border: 1.5px solid var(--ra-line);
  border-radius: 14px;
  background: #fff;
}
.pay-opt.is-main { border-color: var(--ra-green-500); background: #F7FCF8; }
.pay-opt-head { display: flex; align-items: flex-start; margin-bottom: 12px; }
.pay-opt-head .ico {
  flex: none;
  width: 42px; height: 42px;
  margin-right: 12px;
  border-radius: 11px;
  background: var(--ra-lime-soft);
  color: var(--ra-green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.pay-opt-head .ico.cash { background: var(--ra-gold-soft); color: #8A6D13; }
.pay-opt-head strong { display: block; font-size: 16px; color: var(--ra-ink); }
.pay-opt-head small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--ra-muted); }

.pay-opt-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ra-line);
}
.pay-opt-sum span { font-size: 13px; color: var(--ra-muted); margin-right: auto; }
.pay-opt-sum strong { font-size: 22px; font-weight: 800; color: var(--ra-green-700); }
.pay-opt-sum small { flex: 1 1 100%; text-align: right; font-size: 12px; color: var(--ra-muted); }
.pay-opt-sum small.pay-free { color: var(--ra-green-700); font-weight: 700; }

.pay-btn { width: 100%; height: 48px; font-size: 15.5px; }
.pay-btn[disabled] { opacity: .75; cursor: wait; }
.pay-wait { margin: 10px 0 0; font-size: 13px; color: var(--ra-green-800); }
.pay-wait i { margin-right: 4px; }
#payErr[hidden] { display: none !important; }

/* tombol di dalam <form> (mis. Batalkan) ikut selebar tombol lain di HP */
@media (max-width: 767px) {
  .by-actions form { flex: 1 1 100%; display: block !important; }
  .by-actions form .btn { width: 100%; margin-right: 0; }
}

/* ============================================================ tiket QR */

.tk-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--ra-shadow-lg);
  overflow: hidden;
  text-align: left;
}
.tk-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(120deg, var(--ra-green-900), var(--ra-green-600));
  color: #fff;
}
.tk-head img { border-radius: 10px; background: rgba(255, 255, 255, .12); }
.tk-head strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.tk-head span { display: block; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ra-gold); font-weight: 700; }

.tk-qr { padding: 26px 24px 18px; text-align: center; }
.tk-qr canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  image-rendering: pixelated;
}
.tk-code { margin: 14px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--ra-ink); }
.tk-ok, .tk-used {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.tk-ok   { background: var(--ra-lime-soft); color: var(--ra-green-800); }
.tk-used { background: var(--ra-gold-soft); color: #8A6D13; }

/* garis sobek dengan lekukan di kiri-kanan */
.tk-cut { position: relative; height: 2px; margin: 6px 0; border-top: 2px dashed var(--ra-line); }
.tk-cut::before, .tk-cut::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ra-bg-soft);
}
.tk-cut::before { left: -13px; }
.tk-cut::after  { right: -13px; }

.tk-dl { margin: 0; padding: 14px 24px 4px; }
.tk-dl > div { padding: 10px 0; border-bottom: 1px solid var(--ra-line); }
.tk-dl > div:last-child { border-bottom: 0; }
.tk-dl dt { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ra-muted); font-weight: 700; margin-bottom: 3px; }
.tk-dl dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--ra-ink); }
.tk-jadwal dd span { display: block; font-weight: 500; color: var(--ra-body); margin-bottom: 3px; }
.tk-jadwal dd strong { color: var(--ra-ink); margin-right: 6px; }

.tk-note {
  margin: 8px 24px 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ra-gold-soft);
  color: #6B5410;
  font-size: 13.5px;
  text-align: left;
}
.tk-note .fa { margin-right: 4px; }

.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tk-actions .btn { float: none; margin: 0; }
.tk-actions #tkUnduh { flex: 1 1 100%; }
.tk-hint { margin: 12px 2px 0; font-size: 13px; color: var(--ra-muted); text-align: left; }

/* tombol unduh tiket di halaman booking */
.by-ticket {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ra-lime-soft);
  border: 1px solid #BFE39A;
}
.by-ticket .fa-qrcode { font-size: 38px; color: var(--ra-green-800); }
.by-ticket div { flex: 1; text-align: left; }
.by-ticket strong { display: block; color: var(--ra-ink); }
.by-ticket small { color: var(--ra-body); }
.by-ticket .btn { float: none; margin: 0; white-space: nowrap; }
@media (max-width: 520px) {
  .by-ticket { flex-wrap: wrap; }
  .by-ticket .btn { width: 100%; }
}

@media print {
  body * { visibility: hidden; }
  .tk-card, .tk-card * { visibility: visible; }
  .tk-card { position: absolute; top: 0; left: 0; width: 100%; box-shadow: none; border: 1px solid #ccc; }
  .tk-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ------------------------------------------------ pilihan jenis booking */
.bk-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.bk-mode-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--ra-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ra-body);
  text-align: left;
  text-decoration: none;
  transition: .15s;
}
.bk-mode-opt:hover, .bk-mode-opt:focus { border-color: var(--ra-green-500); text-decoration: none; color: var(--ra-ink); }
.bk-mode-opt .fa { font-size: 24px; color: var(--ra-green-600); width: 28px; text-align: center; }
.bk-mode-opt strong { display: block; color: var(--ra-ink); font-size: 15.5px; }
.bk-mode-opt small { display: block; font-size: 12.5px; color: var(--ra-muted); line-height: 1.4; }
.bk-mode-opt.is-on { border-color: var(--ra-green-600); background: var(--ra-lime-soft); box-shadow: 0 6px 16px rgba(22, 163, 74, .15); }
.bk-member-info { margin-bottom: 18px; }
.bk-syarat {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FFF6DA;
  color: #8A6D13;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.bk-syarat.is-ok { background: var(--ra-lime-soft); color: var(--ra-green-800); }
.bk-submit:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 600px) { .bk-mode { grid-template-columns: 1fr; } }

/* ============================================ jendela pembayaran (Midtrans)
   Formulir Snap disematkan di dalam bingkai hijau supaya menyatu dengan situs. */
.pg-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pg-modal[hidden] { display: none; }
.pg-backdrop { position: absolute; inset: 0; background: rgba(4, 40, 18, .62); }
.pg-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 40px);
  border: 5px solid var(--ra-green-600);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .15);
  overflow: hidden;
}
.pg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  background: linear-gradient(120deg, var(--ra-green-900), var(--ra-green-600));
  color: #fff;
  text-align: left;
}
.pg-head img { border-radius: 9px; background: rgba(255, 255, 255, .12); flex: none; }
.pg-head div { flex: 1; min-width: 0; }
.pg-head strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.pg-head span { display: block; font-size: 13px; color: var(--ra-gold); font-weight: 700; }
.pg-x {
  flex: none;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 24px; line-height: 36px;
  cursor: pointer;
}
.pg-x:hover, .pg-x:focus-visible { background: #fff; color: var(--ra-green-800); outline: none; }
.pg-body { position: relative; flex: 1; min-height: 520px; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
#pgSnap { min-height: 520px; }
#pgSnap iframe { width: 100% !important; border: 0; }
.pg-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ra-muted); font-size: 14px; pointer-events: none; }
.pg-loading[hidden] { display: none; }
.pg-foot {
  padding: 9px 14px;
  border-top: 1px solid var(--ra-line);
  background: var(--ra-bg-soft);
  color: var(--ra-muted);
  font-size: 12.5px;
  text-align: center;
}
.pg-foot .fa { color: var(--ra-green-600); margin-right: 4px; }
.pg-sandbox { color: #8A6D13; font-weight: 700; }
body.pg-open { overflow: hidden; }

/* HP: jendela memenuhi layar, bingkai hijau tetap terlihat di tepi */
@media (max-width: 520px) {
  .pg-modal { padding: 0; }
  .pg-box { max-width: none; height: 100dvh; max-height: none; border-width: 4px; border-radius: 0; }
  .pg-body, #pgSnap { min-height: 0; }
}

/* tombol "Ganti metode pembayaran" (halaman booking & kaki jendela pembayaran) */
.pay-ganti {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 4px 2px;
  border: 0; background: none;
  color: var(--ra-green-700); font-weight: 700; font-size: 13.5px;
  text-decoration: underline; cursor: pointer;
}
.pay-ganti:hover { color: var(--ra-green-900); }
.pg-foot .pay-ganti { margin-top: 2px; font-size: 13px; }

/* ------------------------------------------- deretan tanggal + panah geser */
.bk-dates-wrap { position: relative; }
.bk-dates-wrap .bk-dates { scroll-behavior: smooth; scrollbar-width: none; }
.bk-dates-wrap .bk-dates::-webkit-scrollbar { display: none; }
.bk-dates-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px; height: 38px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ra-green-800);
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(6, 78, 34, .22);
  cursor: pointer;
}
.bk-dates-nav.prev { left: -14px; }
.bk-dates-nav.next { right: -14px; }
.bk-dates-nav:hover, .bk-dates-nav:focus-visible { background: var(--ra-green-600); color: #fff; outline: none; }
.bk-dates-nav:disabled { opacity: .35; }
.bk-dates-nav[hidden] { display: none; }
@media (max-width: 767px) {
  .bk-dates-nav { width: 34px; height: 34px; margin-top: -22px; }
  .bk-dates-nav.prev { left: -6px; }
  .bk-dates-nav.next { right: -6px; }
}
@media (prefers-reduced-motion: reduce) { .bk-dates-wrap .bk-dates { scroll-behavior: auto; } }

/* paket member: tanggal yang sudah punya jam terpilih */
.bk-date { position: relative; }
.bk-date.has-pick { background: var(--ra-gold-soft); border-color: var(--ra-gold); }
.bk-date.has-pick .d, .bk-date.has-pick strong, .bk-date.has-pick .m { color: #6B5410; }
.bk-date.is-on.has-pick { background: var(--ra-green-600); border-color: var(--ra-gold); box-shadow: 0 0 0 2px var(--ra-gold); }
.bk-date.is-on.has-pick .d, .bk-date.is-on.has-pick strong, .bk-date.is-on.has-pick .m { color: #fff; }
.bk-date-pick {
  position: absolute;
  top: -8px; right: -6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ra-gold);
  color: #3D2E05;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.bk-picked-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -6px 0 18px; }
.bk-picked-title { font-size: 13px; font-weight: 700; color: var(--ra-ink); }
.bk-picked {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ra-gold-soft);
  border: 1px solid var(--ra-gold);
  color: #6B5410;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.bk-picked:hover { background: #F6E7B3; text-decoration: none; color: #4F3D08; }
.bk-picked.is-on { background: var(--ra-green-600); border-color: var(--ra-green-600); color: #fff; }
.bk-dates-wrap .bk-dates { padding-top: 12px; }
/* beri ruang supaya panah ‹ › berada di samping kartu tanggal, tidak menutupinya */
.bk-dates-wrap { padding: 0 24px; }
.bk-dates-nav.prev { left: -8px; }
.bk-dates-nav.next { right: -8px; }
@media (max-width: 767px) {
  .bk-dates-wrap { padding: 0 20px; }
  .bk-dates-nav.prev { left: -10px; }
  .bk-dates-nav.next { right: -10px; }
}

/* ============================================ transfer manual & QRIS (bukti bayar) */

.ra-badge.verif { background: #E6F0FF; color: #1D4F91; }
.ra-badge.verif .fa { margin-right: 4px; }

.pay-det { padding: 0; overflow: hidden; }
.pay-det > summary { list-style: none; cursor: pointer; margin: 0; padding: 16px; }
.pay-det-arrow { align-self: center; }
.pay-det > summary::-webkit-details-marker { display: none; }
.pay-det > summary:focus-visible { outline: 2px solid var(--ra-green-500); outline-offset: -2px; border-radius: 14px; }
.pay-det > summary > div { flex: 1 1 auto; min-width: 0; }
.pay-det-arrow { flex: none; margin-left: 10px; color: var(--ra-muted); transition: transform .2s; }
.pay-det[open] { border-color: var(--ra-green-500); }
.pay-det[open] .pay-det-arrow { transform: rotate(180deg); }
.pay-det .pay-bukti { padding: 0 16px 16px; }
.pay-opt-head .ico.bank { background: #E6F0FF; color: #1D4F91; }
.pay-opt-head .ico.qris { background: #FDECEC; color: #B3261E; }

.pay-step { margin: 14px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ra-ink); }
.pay-step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-right: 6px; border-radius: 50%;
  background: var(--ra-green-700); color: #fff; font-size: 11.5px;
}

.rek-list { display: grid; gap: 8px; }
.rek {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 10px 12px;
  border: 1.5px solid var(--ra-line); border-radius: 12px;
  background: #fff; cursor: pointer; font-weight: 400;
}
.rek:has(input:checked) { border-color: var(--ra-green-500); background: #F7FCF8; box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.rek input[type=radio] { flex: none; margin: 0; width: 18px; height: 18px; accent-color: var(--ra-green-700); }
.bank-logo {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; height: 34px; padding: 0 8px; border-radius: 8px;
  font-weight: 800; font-style: italic; font-size: 14px; letter-spacing: .5px;
}
.bank-logo.is-img { background: #fff; border: 1px solid var(--ra-line); padding: 3px 6px; }
.bank-logo.is-img img { max-height: 26px; max-width: 72px; object-fit: contain; }
.rek-txt { flex: 1 1 auto; min-width: 0; }
.rek-no { display: block; font-size: 17px; font-weight: 800; letter-spacing: .8px; color: var(--ra-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rek-txt small { display: block; font-size: 12.5px; color: var(--ra-muted); }
.rek-copy {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--ra-line); background: #fff; color: var(--ra-green-800);
  font-size: 12.5px; font-weight: 700;
}
.rek-copy:hover { border-color: var(--ra-green-500); }
.rek-copy.is-done { background: var(--ra-lime-soft); border-color: var(--ra-lime); }

.qris-box { text-align: center; padding: 14px; border: 1px dashed var(--ra-line); border-radius: 12px; background: #fff; }
.qris-box img { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; border-radius: 8px; }
.qris-dl { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; }

.bukti-in {
  position: relative; display: block; margin: 0 0 12px;
  border: 2px dashed #B9D9C3; border-radius: 12px; background: var(--ra-bg-soft);
  cursor: pointer; text-align: center; overflow: hidden; font-weight: 400;
}
.bukti-in:hover { border-color: var(--ra-green-500); }
.bukti-in input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bukti-ph { display: block; padding: 20px 12px; color: var(--ra-green-800); font-weight: 700; font-size: 14px; }
.bukti-ph .fa { display: block; font-size: 24px; margin-bottom: 6px; }
.bukti-ph small { display: block; margin-top: 3px; font-weight: 500; font-size: 12px; color: var(--ra-muted); }
.bukti-in img { display: block; max-width: 100%; max-height: 260px; margin: 0 auto; padding: 8px; }
.bukti-in img[hidden] { display: none; }
.pay-bukti.has-file .bukti-ph { padding: 10px 12px 0; font-size: 13px; }
.pay-bukti.has-file .bukti-ph .fa, .pay-bukti.has-file .bukti-ph small { display: none; }

.by-verif {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 18px; padding: 14px; border-radius: 14px;
  background: #EEF5FF; border: 1px solid #C9DCF6;
}
.by-verif-img { flex: none; width: 84px; height: 108px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #C9DCF6; }
.by-verif-img img { width: 100%; height: 100%; object-fit: cover; }
.by-verif > div { min-width: 0; }
.by-verif strong { color: #1D4F91; }
.by-verif p { margin: 4px 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--ra-body); }
.by-verif p strong { color: var(--ra-ink); }
.by-verif small { font-size: 12px; color: var(--ra-muted); }

@media (max-width: 480px) {
  /* HP: baris 1 = pilihan, logo, tombol salin; baris 2 = nomor rekening selebar kartu */
  .rek { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); gap: 8px 10px; padding: 10px 12px; }
  .rek input[type=radio] { grid-row: 1 / span 2; align-self: center; }
  .rek .bank-logo { grid-column: 2; grid-row: 1; justify-self: start; }
  .rek-copy { grid-column: 3; grid-row: 1; justify-self: end; }
  .rek-txt { grid-column: 2 / -1; grid-row: 2; }
  .pay-det .pay-bukti { padding: 0 12px 14px; }
  .pay-det > summary { padding: 14px 12px; }
  .by-verif-img { width: 64px; height: 84px; }
}
.by-timer .by-batas { font-size: inherit; font-weight: 700; }   /* tanggal batas bayar di lokasi: ukuran teks biasa */
.by-timer.is-lokasi > span { flex: 1 1 0; min-width: 0; }
@media (max-width: 520px) {
  .by-timer.is-lokasi { flex-wrap: wrap; row-gap: 6px; }
  .by-timer.is-lokasi #byLeft { flex: 1 1 100%; margin-left: 34px; font-size: 22px; }
}


/* Jam yang sedang berlangsung: masih bisa dipesan, dengan sisa waktunya */
.bk-cell .bk-sisa { display: block; font-size: 10.5px; font-weight: 700; color: #B26A00; line-height: 1.2; }
.bk-cell:has(.bk-sisa) { flex-direction: column; gap: 3px; }
.bk-cell.is-selesai { background: #F4F5F4; border: 1px dashed #E1E5E2; color: #B3BBB6; cursor: not-allowed; }
