/* บ้านสระไดร์ — customer styles (mobile-first, quiet luxury) */
:root {
  --gold: #b08d57;
  --gold-soft: #f3ece1;
  --ink: #2b2620;
  --ink-soft: #6f675c;
  --cream: #faf7f2;
  --card: #ffffff;
  --line: #e9e2d6;
  --ok: #3d7a4f;
  --danger: #b04a3a;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(60, 48, 30, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Prompt', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------- header */
.topbar {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-in {
  max-width: 640px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.brand-name { font-family: 'Playfair Display', 'Prompt', serif; font-size: 19px; letter-spacing: .3px; }
.brand-sub { font-size: 11.5px; color: var(--ink-soft); }
.call-btn {
  flex: none; font-size: 13px; color: var(--gold); text-decoration: none;
  border: 1px solid var(--gold); border-radius: 999px; padding: 7px 14px;
  transition: .15s;
}
.call-btn:active { background: var(--gold); color: #fff; }

main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px 120px; }
.loading { text-align: center; color: var(--ink-soft); padding: 60px 0; }

/* ---------------------------------------------------------------- hero */
.hero { text-align: center; padding: 18px 8px 22px; }
.hero h1 { font-family: 'Playfair Display', 'Prompt', serif; font-size: 26px; font-weight: 500; }
.hero p { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; }
.hero .rule { width: 44px; height: 2px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }

/* --------------------------------------------------------------- steps */
.stepper { display: flex; gap: 6px; margin: 4px 0 18px; }
.stepper .st {
  flex: 1; text-align: center; font-size: 11px; color: var(--ink-soft);
  padding-top: 8px; border-top: 2.5px solid var(--line); transition: .2s;
}
.stepper .st.on { color: var(--gold); border-top-color: var(--gold); font-weight: 500; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 16px; margin-bottom: 14px;
}
.card h2 { font-size: 16px; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

/* --------------------------------------------------------------- forms */
label.f { display: block; font-size: 13px; color: var(--ink-soft); margin: 12px 0 5px; }
input[type=text], input[type=tel], input[type=email], textarea, select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  outline: none; transition: border .15s;
}
input:focus, textarea:focus { border-color: var(--gold); }

.badge-member {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef5ef; color: var(--ok); border: 1px solid #cfe3d3;
  font-size: 12.5px; border-radius: 999px; padding: 5px 12px; margin-top: 8px;
}
.badge-new {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-soft); color: var(--gold); border: 1px solid #e5d5bb;
  font-size: 12.5px; border-radius: 999px; padding: 5px 12px; margin-top: 8px;
}

/* ------------------------------------------------------------ services */
.svc { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; margin-bottom: 9px;
  display: flex; align-items: center; gap: 11px; cursor: pointer; transition: .15s; background: #fff; }
.svc input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.svc.sel { border-color: var(--gold); background: #fdfbf6; }
.svc .nm { font-size: 14px; }
.svc .meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.svc .pr { margin-left: auto; font-weight: 500; color: var(--gold); flex: none; font-size: 14.5px; text-align: right; }
.svc .pr s { color: #b6ad9f; font-weight: 400; font-size: 12.5px; }
.svc .pr b { font-weight: 600; }
.svc-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.sale-tag { display: inline-block; background: #f7e9e6; color: var(--danger); font-size: 10.5px; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.svc .desc { font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.45; }
.svc.main-item.open { border-radius: 12px 12px 0 0; margin-bottom: 0; border-bottom-color: transparent; }
.topping-box {
  border: 1.5px solid var(--gold); border-top: 1.5px dashed var(--line);
  border-radius: 0 0 12px 12px; background: #fdfbf6;
  padding: 10px 11px 4px; margin-bottom: 9px;
}
.topping-head { font-size: 12px; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.topping-box .svc { background: #fff; }
.topping-box .svc.sel { border-color: var(--gold); }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; background: var(--gold-soft); border-radius: 999px; padding: 4px 6px; }
.qty span { font-size: 12.5px; color: #7a6845; min-width: 110px; text-align: center; }
.qty .qbtn { width: 28px; height: 28px; border-radius: 50%; border: none; background: #fff; color: var(--gold);
  font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(60,48,30,.15); }

/* --------------------------------------------------------- summary bar */
.sumbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(60,48,30,.08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sumbar-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sumbar .info { flex: 1; min-width: 0; }
.sumbar .line1 { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sumbar .line2 { font-size: 15px; font-weight: 500; }
.sumbar .line2 b { color: var(--gold); }
.btn {
  font: inherit; border: none; cursor: pointer; border-radius: 999px;
  background: var(--ink); color: #fff; padding: 12px 24px; font-size: 15px;
  transition: .15s; text-decoration: none; display: inline-block; text-align: center;
}
.btn:disabled { opacity: .5; cursor: default; pointer-events: none; }
.btn.gold { background: var(--gold); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 8px 16px; font-size: 13.5px; }
.btn.wide { width: 100%; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }

/* ------------------------------------------------------------- weekstrip */
.weekstrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.weekstrip::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 62px; text-align: center; padding: 10px 4px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: .15s;
}
.day .dw { font-size: 11px; color: var(--ink-soft); }
.day .dd { font-size: 17px; font-weight: 500; margin: 2px 0; }
.day .dm { font-size: 10.5px; color: var(--ink-soft); }
.day.sel { border-color: var(--gold); background: var(--gold); }
.day.sel .dw, .day.sel .dd, .day.sel .dm { color: #fff; }

.slotgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.slot {
  text-align: center; padding: 10px 2px; border-radius: 10px; font-size: 13.5px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: .12s;
}
.slot.full { background: #f2efe9; color: #b6ad9f; border-color: transparent; cursor: default; text-decoration: line-through; }
.slot.sel { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 500; }
.slot-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-soft); margin-top: 12px; }
.slot-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.slot-legend .a i { background: #fff; border: 1.5px solid var(--line); }
.slot-legend .f i { background: #f2efe9; }
.slot-legend .s i { background: var(--gold); }
.noslots { text-align: center; color: var(--ink-soft); padding: 26px 0 10px; font-size: 13.5px; }

/* ------------------------------------------------------------ summary */
.sum-rows { border-top: 1px dashed var(--line); margin-top: 8px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; font-weight: 400; }
.sum-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sum-row > span:last-child { flex: none; text-align: right; white-space: nowrap; }
.sum-row .sub { font-size: 12px; color: var(--ink-soft); }
.sum-row.total { font-weight: 500; font-size: 14px; border-bottom: none; }
.sum-row.deposit { color: var(--gold); font-weight: 500; border-bottom: none; padding-bottom: 2px; }
.sum-row.balance { color: var(--ink-soft); font-size: 13px; border-bottom: none; padding-top: 2px; }

.policy {
  background: var(--gold-soft); border-radius: 10px; padding: 12px 14px;
  font-size: 12.5px; color: #7a6845; margin-top: 12px; white-space: pre-line;
}
.policy b { display: block; margin-bottom: 4px; color: #6d5a36; }

/* ------------------------------------------------------------ payment */
.paybox { text-align: center; padding: 6px 0; }
.paybox .qr { width: 210px; height: 210px; margin: 10px auto; background: #fff; padding: 10px;
  border: 1px solid var(--line); border-radius: 12px; }
.paybox .qr svg { width: 100%; height: 100%; }
.paybox .amt { font-size: 22px; font-weight: 600; color: var(--gold); }
.paybox .pp { font-size: 12.5px; color: var(--ink-soft); }
.upload-zone {
  border: 1.5px dashed var(--gold); border-radius: 12px; padding: 16px; text-align: center;
  color: var(--gold); font-size: 13.5px; cursor: pointer; margin-top: 12px; background: #fdfbf6;
}
.upload-zone img { max-width: 130px; border-radius: 8px; margin-top: 8px; }

.paytabs { display: flex; gap: 8px; margin: 10px 0; }
.paytab { flex: 1; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 13.5px; cursor: pointer; background: #fff; }
.paytab.on { border-color: var(--gold); background: #fdfbf6; color: var(--gold); font-weight: 500; }

/* -------------------------------------------------------- confirmation */
.confirm-card { text-align: center; }
.confirm-card .okmark {
  width: 54px; height: 54px; margin: 6px auto 10px; border-radius: 50%;
  background: #eef5ef; color: var(--ok); font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.confirm-card .code { font-size: 24px; font-weight: 600; letter-spacing: 2px; margin: 6px 0 2px; }
.confirm-card .qr { width: 170px; height: 170px; margin: 14px auto; }
.confirm-card .qr svg { width: 100%; height: 100%; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.confirm-note { font-size: 12px; color: var(--ink-soft); margin-top: 12px; }
.manage-link { font-size: 13px; margin-top: 14px; }
.manage-link a { color: var(--gold); }

.status-pill { display: inline-block; border-radius: 999px; padding: 4px 13px; font-size: 12.5px; }
.status-pill.pending { background: #fdf3e0; color: #a2772a; }
.status-pill.confirmed { background: #eef5ef; color: var(--ok); }
.status-pill.arrived, .status-pill.in_service { background: #e8eef7; color: #3c5f8f; }
.status-pill.done { background: #eef5ef; color: var(--ok); }
.status-pill.cancelled, .status-pill.no_show { background: #f7e9e6; color: var(--danger); }

.err { background: #f7e9e6; color: var(--danger); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; margin: 10px 0; }

.foot { text-align: center; color: var(--ink-soft); font-size: 12px; padding: 26px 16px 30px; border-top: 1px solid var(--line); }

.backrow { margin-bottom: 12px; }
.backlink { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; cursor: pointer; }
.backlink::before { content: '← '; }

@media (min-width: 560px) {
  .slotgrid { grid-template-columns: repeat(5, 1fr); }
  .hero h1 { font-size: 30px; }
}


/* ============================ ตะกร้า + การ์ดบริการ (มือถือเป็นหลัก) ======== */
.topbar-acts { display: flex; align-items: center; gap: 10px; flex: none; }
.cart-btn {
  position: relative; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
  color: var(--ink); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; transition: .15s;
}
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn:active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.cart-btn.pop { animation: cartPop .45s ease; }
@keyframes cartPop {
  0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); }
}
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--gold); color: #fff; border-radius: 999px; border: 2px solid var(--cream);
  font-size: 11px; line-height: 15px; font-weight: 600; text-align: center;
}

.ic { width: 15px; height: 15px; flex: none; vertical-align: -2px; }

.gsearch {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fff;
}
.gsearch .ic { width: 17px; height: 17px; color: var(--ink-soft); }
.gsearch input { border: none; padding: 11px 0; background: transparent; font-size: 14.5px; }
.gsearch:focus-within { border-color: var(--gold); }

.gcard {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 13px 14px; margin-bottom: 11px; display: flex; gap: 12px;
  box-shadow: 0 1px 6px rgba(60, 48, 30, .04);
}
.gimg { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.gbody { flex: 1; min-width: 0; }
.gtitle { font-size: 13.5px; font-weight: 400; line-height: 1.45; }
.gdesc { font-size: 12px; color: var(--ink-soft); margin-top: 3px; line-height: 1.45; }
.gmeta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.gfoot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.gprice { font-size: 12px; color: #a99f90; display: flex; align-items: baseline; gap: 7px; }
.gprice s { color: #b6ad9f; }
.gprice b { font-size: 16px; font-weight: 500; color: var(--ink); }
.gprice b.sale { color: var(--danger); }
.gacts { display: flex; gap: 8px; margin-left: auto; }
.gbtn {
  font: inherit; font-size: 12.5px; cursor: pointer; border-radius: 9px;
  padding: 9px 13px; display: inline-flex; align-items: center; gap: 5px;
  transition: .15s; white-space: nowrap;
}
.gbtn .ic { width: 15px; height: 15px; }
.gbtn.out { background: #fff; color: var(--gold); border: 1.4px solid var(--gold); }
.gbtn.out:active { background: var(--gold-soft); }
.gbtn.solid { background: var(--gold); color: #fff; border: 1.4px solid var(--gold); font-weight: 500; }
.gbtn.solid:active { filter: brightness(.93); }
.empty-svc { text-align: center; color: var(--ink-soft); font-size: 13.5px; padding: 26px 10px; line-height: 1.7; }

.card.flash { animation: flashCard 1.5s ease; }
@keyframes flashCard {
  0%, 100% { box-shadow: var(--shadow); border-color: var(--line); }
  25%, 60% { box-shadow: 0 0 0 3px rgba(176, 141, 87, .22); border-color: var(--gold); }
}

/* --------------------------------------------------------- bottom sheet */
body.sheet-open { overflow: hidden; }
.sheet-back {
  position: fixed; inset: 0; background: rgba(40, 33, 24, .45);
  z-index: 40; animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  background: var(--cream); border-radius: 20px 20px 0 0;
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 -8px 30px rgba(50, 40, 25, .22);
  animation: sheetUp .24s cubic-bezier(.22, .9, .3, 1);
  max-width: 640px; margin: 0 auto;
}
@keyframes sheetUp { from { transform: translateY(100%) } to { transform: translateY(0) } }
.sheet-grip { width: 42px; height: 4px; border-radius: 4px; background: #ddd4c4; margin: 9px auto 2px; flex: none; }
.sheet-head {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px 12px;
  border-bottom: 1px solid var(--line); flex: none;
}
.sheet-title { font-size: 15.5px; font-weight: 500; }
.sheet-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.sheet-x {
  margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font-size: 14px; cursor: pointer; line-height: 1;
}
.sheet-body { overflow-y: auto; padding: 14px 16px 6px; -webkit-overflow-scrolling: touch; }
.sheet-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.sheet-foot {
  flex: none; border-top: 1px solid var(--line); background: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.sheet-total { flex: 1; min-width: 0; }
.sheet-total .l1 { font-size: 11.5px; color: var(--ink-soft); }
.sheet-total .l2 { font-size: 16.5px; font-weight: 500; color: var(--gold); }
.sheet-total .l2 span { font-size: 12px; font-weight: 400; color: var(--ink-soft); }

/* add-on rows inside the sheet */
.asvc {
  display: flex; align-items: flex-start; gap: 11px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px;
  margin-bottom: 9px; cursor: pointer; transition: .15s;
}
.asvc.sel { border-color: var(--gold); background: #fdfbf6; }
.abox {
  width: 21px; height: 21px; border-radius: 6px; border: 1.6px solid var(--line);
  background: #fff; flex: none; color: #fff; font-size: 13px; line-height: 19px; text-align: center;
}
.asvc.sel .abox { background: var(--gold); border-color: var(--gold); }
.ainfo { flex: 1; min-width: 0; }
.anm { font-size: 13.5px; font-weight: 400; }
.ameta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.aprice { flex: none; text-align: right; font-size: 12px; color: #b6ad9f; }
.aprice b { display: block; font-size: 13.5px; color: var(--gold); font-weight: 500; }
.aprice b.sale { color: var(--danger); }

/* cart rows inside the sheet */
.crow {
  display: flex; gap: 11px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 13px; margin-bottom: 9px;
}
.cnum {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft);
  color: var(--gold); font-size: 12.5px; font-weight: 600; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.cinfo { flex: 1; min-width: 0; }
.cname { font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.cadd { font-size: 12.5px; color: var(--gold); margin-top: 3px; line-height: 1.45; }
.cadd + .cadd { margin-top: 1px; }
.cdur { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.cright { flex: none; text-align: right; }
.cprice { font-size: 14.5px; font-weight: 500; }
.cacts { display: flex; gap: 6px; margin-top: 7px; }
.cacts button {
  font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer;
}
.cacts button.del { color: var(--danger); border-color: #e6cdc7; }

.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 14px);
  background: rgba(43, 38, 32, .93); color: #fff; font-size: 13.5px;
  padding: 10px 20px; border-radius: 999px; z-index: 60;
  opacity: 0; pointer-events: none; transition: .22s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------- payment methods */
.pay-secure {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--ok); margin-bottom: 12px;
}
.paylist { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.payopt {
  display: flex; gap: 11px; padding: 14px 14px; cursor: pointer;
  border-bottom: 1px solid var(--line); transition: .15s;
}
.payopt:last-child { border-bottom: none; }
.payopt.on { background: #fdfbf6; }
.payopt.off { opacity: .55; cursor: default; }
.pradio {
  width: 20px; height: 20px; border-radius: 50%; border: 1.8px solid #cfc6b6;
  flex: none; margin-top: 2px; position: relative; background: #fff;
}
.payopt.on .pradio, .bankopt.on .pradio { border-color: var(--gold); }
.payopt.on .pradio::after, .bankopt.on .pradio::after {
  content: ''; position: absolute; inset: 3.4px; border-radius: 50%; background: var(--gold);
}
.pinfo { flex: 1; min-width: 0; }
.pname { font-size: 14.5px; font-weight: 600; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 5px; }
.ptag {
  font-size: 11px; border-radius: 5px; padding: 3px 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft);
}
.ptag.qr { background: #0b3d6b; color: #fff; border-color: #0b3d6b; }
.ptag.pp { background: #003b71; color: #fff; border-color: #003b71; }
.bchip {
  font-size: 10.5px; font-weight: 700; color: #fff; border-radius: 5px;
  padding: 3px 7px; letter-spacing: .2px;
}
.bchip.lg { font-size: 12px; padding: 6px 10px; border-radius: 7px; flex: none; }
.pnote { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

.banklist { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; margin-top: 14px; }
.bankopt {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: .15s;
}
.bankopt:last-child { border-bottom: none; }
.bankopt.on { background: #fdfbf6; }
.bankopt .bname { flex: 1; min-width: 0; font-size: 14px; }
.bankopt .pradio { margin-top: 0; }

.paybox .amt { font-size: 25px; margin: 6px 0 2px; }
.paybox .qr { width: 230px; height: auto; min-height: 230px; }
.paybox .qr img { width: 100%; height: auto; display: block; }

@media (min-width: 560px) {
  .gacts { margin-left: 0; }
  .sheet { border-radius: 20px; bottom: 16px; left: 16px; right: 16px; }
}

/* ------------------------------- หน้ายืนยัน: รายการแบบการ์ด + สรุปราคา ---- */
.bk-meta { border-top: 1px solid var(--line); }
.bk-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-soft);
}
.bk-row:last-child { border-bottom: none; }
.bk-row b { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--ink); text-align: right; min-width: 0; overflow-wrap: anywhere; }

.olist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.olist-head h2 { font-size: 16px; font-weight: 500; }
.olist-head .backlink { font-size: 12.5px; flex: none; }

.oitem {
  display: flex; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--line);
}
.oitem:first-of-type { border-top: none; padding-top: 2px; }
.oimg {
  width: 66px; height: 66px; border-radius: 10px; object-fit: cover; flex: none;
  border: 1px solid var(--line); background: #fff;
}
.oimg.ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border-color: #e5d5bb; color: var(--gold);
  font-size: 20px; font-weight: 500;
}
.oinfo { flex: 1; min-width: 0; }
.owho { font-size: 11.5px; color: var(--ink-soft); }
.oname { font-size: 13.5px; font-weight: 500; line-height: 1.45; margin-top: 1px; overflow-wrap: anywhere; }
.ometa { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); min-width: 0; }
.oadd { font-size: 12.5px; color: var(--gold); margin-top: 4px; line-height: 1.5; }
.oadd + .oadd { margin-top: 1px; }
.oline { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.oprice { display: flex; align-items: baseline; gap: 8px; flex: none; }
.oprice s { font-size: 12px; color: #b6ad9f; }
.oprice b { font-size: 14.5px; font-weight: 500; color: var(--ink); }

.ps-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 13.5px; color: var(--ink-soft);
}
.ps-row span:last-child { flex: none; white-space: nowrap; color: var(--ink); }
.ps-row.disc span:last-child { color: var(--ok); }
.ps-row.net {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px;
  font-size: 15px; color: var(--ink); font-weight: 500;
}
.ps-row.net span:last-child { font-size: 18px; font-weight: 600; }
.ps-row.pay { color: var(--gold); font-weight: 500; }
.ps-row.pay span:last-child { color: var(--gold); }
.ps-row.rest { font-size: 12.5px; }
.ps-note {
  margin-top: 8px; background: var(--gold-soft); color: #7a6845;
  border-radius: 10px; padding: 9px 12px; font-size: 12.5px; text-align: center;
}

.btn.go { margin-top: 16px; padding: 14px 24px; font-size: 15.5px; font-weight: 500; }

.cacts .time { color: var(--gold); border-color: var(--gold); }
.cacts .time.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.sheet-body .weekstrip { margin-bottom: 4px; }

.cacts .time { display: inline-flex; align-items: center; gap: 4px; }
.cacts .time .ic { width: 13px; height: 13px; }
.sheet-sub .ic, .sum-row .ic { width: 13px; height: 13px; vertical-align: -2px; }

/* ----------------------------------- ใบยืนยันการจองสำเร็จ (หลังชำระเงิน) --- */
.receipt { text-align: center; }
.rc-head { text-align: left; margin: 16px 0 4px; border-top: 1px solid var(--line); }
.rc-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-soft);
}
.rc-row b { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--ink); text-align: right; }
.rc-title { text-align: left; font-size: 14px; font-weight: 500; margin: 14px 0 6px; }
.rc-list { list-style: none; text-align: left; }
.rc-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); counter-increment: rc;
}
.rc-list li::before {
  content: counter(rc) "."; grid-row: 1 / span 2; grid-column: 0;
  display: none;
}
.rc-list { counter-reset: rc; }
.rc-name { font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.rc-name::before { content: counter(rc) ". "; color: var(--gold); font-weight: 600; }
.rc-sub { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); }
.rc-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.rc-paid {
  margin-top: 14px; background: #eef5ef; color: var(--ok); border: 1px solid #cfe3d3;
  border-radius: 12px; padding: 12px; font-size: 14px;
}
.rc-paid b { font-size: 17px; font-weight: 600; }
.rc-paid.wait { background: var(--gold-soft); color: #7a6845; border-color: #e5d5bb; }
.rc-note {
  margin-top: 14px; text-align: left; background: #fbf8f3; border: 1px dashed var(--line);
  border-radius: 12px; padding: 12px 13px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.65;
}
.rc-note p + p { margin-top: 8px; }
.receipt .qr { width: 170px; height: 170px; margin: 14px auto; }

.mine-note {
  background: var(--gold-soft); border: 1px solid #e5d5bb; border-radius: 10px;
  padding: 9px 11px; font-size: 12px; color: #7a6845; line-height: 1.6; margin-bottom: 10px;
}

/* ---- ภาพพื้นหลังร้าน (อัปโหลดที่ /admin → ตั้งค่า) แสดงจาง ๆ ไม่บังตัวหนังสือ ---- */
body.has-bg::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  opacity: var(--bg-opacity, .12);
}

.ticket-img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
