/* ==========================================================================
   หน้าตาหน้าจองลูกค้า รอบ 2 — ธีมสี 7 แบบ × สว่าง/มืด + ดีไซน์ A (การ์ดรูปใหญ่) / D (เลือกเร็ว) / G (สปอร์ตเฉียง)
   ไฟล์นี้โหลดเฉพาะ booking.php เมื่อร้านเปิดใช้เท่านั้น (includes/booking-look-functions.php) และ "ทุกกฎ" ต้องมีแอตทริบิวต์บน <html> นำหน้า
   (data-bk-theme / data-bk-design / data-bk-switch) — หน้าอื่นและค่าตั้งต้นของร้านจึงไม่โดนอะไรเลย (สเปก SPEC-R2 หมวด 3 G1-G3)
   ไม่แก้ style.css / booking-theme.css : ทับด้วยความจำเพาะที่สูงกว่า (html[...] นำหน้า) ; ค่าสีทุกตัวอยู่ในบล็อกพาเลตต์ด้านล่างเท่านั้น
   ค่าพาเลตต์ต้องตรงกับค่าคงที่ BOOKING_LOOK_PALETTE ใน PHP (เทสต์กลุ่ม 181/182 เทียบให้)

   โครงสองที่แบบเดียวกับ booking-theme.css : ชุดมืดวาง 2 ที่ด้วยค่าเดียวกัน
     (1) @media (prefers-color-scheme: dark) { html[data-bk-theme="x"]:not([data-theme="light"]) { ... } }  = ตามเครื่อง
     (2) html[data-bk-theme="x"][data-theme="dark"] { ... }                                                  = ลูกค้าเลือกมืดเอง
   สองที่ต้องเหมือนกันทุกตัวอักษรยกเว้นหัว selector และ color-scheme (ตามเครื่อง = คงค่า "light dark" ให้เบราว์เซอร์เลือกเอง ; บังคับมืด = dark) เทสต์กลุ่ม 182 ตรวจ ;
   ชุดสว่างเป็นค่าตั้งต้นของ html[data-bk-theme="x"]
   !important ใช้เฉพาะที่ต้องชนะ !important/inline ของไฟล์เดิม และเขียนเหตุผลไว้หน้ากฎนั้น
   ========================================================================== */

/* ---------- 1) ค่าสีธีม (11 ตัวแปร × 7 ธีม × 2 โหมด) ---------- */
html[data-bk-theme] { color-scheme: light dark; }
html[data-bk-theme][data-theme="light"] { color-scheme: light; }
/* ธีมเขียว */
html[data-bk-theme="green"] {
  --bk-bg: #f3f7f4;
  --bk-bg2: #ffffff;
  --bk-surface: #ffffff;
  --bk-line: #d4e0d8;
  --bk-line2: #6c8a79;
  --bk-ink: #14221b;
  --bk-muted: #46594e;
  --bk-accent: #2f6f4e;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #28664a;
  --bk-accent-soft: #e1eee6;
  --bk-accent-photo: #62c995;
}
@media (prefers-color-scheme: dark) {
  html[data-bk-theme="green"]:not([data-theme="light"]) {
    --bk-bg: #0e1814;
    --bk-bg2: #08110d;
    --bk-surface: #15241d;
    --bk-line: #24392f;
    --bk-line2: #5c806d;
    --bk-ink: #eef4f0;
    --bk-muted: #a9bdb2;
    --bk-accent: #3fae7a;
    --bk-ink-on-accent: #06140d;
    --bk-accent-text: #62c995;
    --bk-accent-soft: #17352a;
    --bk-accent-photo: #62c995;
  }
}
html[data-bk-theme="green"][data-theme="dark"] {
  color-scheme: dark;
  --bk-bg: #0e1814;
  --bk-bg2: #08110d;
  --bk-surface: #15241d;
  --bk-line: #24392f;
  --bk-line2: #5c806d;
  --bk-ink: #eef4f0;
  --bk-muted: #a9bdb2;
  --bk-accent: #3fae7a;
  --bk-ink-on-accent: #06140d;
  --bk-accent-text: #62c995;
  --bk-accent-soft: #17352a;
  --bk-accent-photo: #62c995;
}
/* ธีมน้ำเงิน */
html[data-bk-theme="blue"] {
  --bk-bg: #f2f5fb;
  --bk-bg2: #ffffff;
  --bk-surface: #ffffff;
  --bk-line: #d5deee;
  --bk-line2: #6d80a4;
  --bk-ink: #101a2e;
  --bk-muted: #455571;
  --bk-accent: #1f4fbf;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #1b47ab;
  --bk-accent-soft: #e1e9fa;
  --bk-accent-photo: #86b3ff;
}
@media (prefers-color-scheme: dark) {
  html[data-bk-theme="blue"]:not([data-theme="light"]) {
    --bk-bg: #0d1626;
    --bk-bg2: #070e1b;
    --bk-surface: #152238;
    --bk-line: #22344f;
    --bk-line2: #6079a9;
    --bk-ink: #eaf0fa;
    --bk-muted: #9db0cc;
    --bk-accent: #4f8cf0;
    --bk-ink-on-accent: #04102a;
    --bk-accent-text: #86b3ff;
    --bk-accent-soft: #15294a;
    --bk-accent-photo: #86b3ff;
  }
}
html[data-bk-theme="blue"][data-theme="dark"] {
  color-scheme: dark;
  --bk-bg: #0d1626;
  --bk-bg2: #070e1b;
  --bk-surface: #152238;
  --bk-line: #22344f;
  --bk-line2: #6079a9;
  --bk-ink: #eaf0fa;
  --bk-muted: #9db0cc;
  --bk-accent: #4f8cf0;
  --bk-ink-on-accent: #04102a;
  --bk-accent-text: #86b3ff;
  --bk-accent-soft: #15294a;
  --bk-accent-photo: #86b3ff;
}
/* ธีมส้ม */
html[data-bk-theme="orange"] {
  --bk-bg: #f8f1ed;
  --bk-bg2: #ffffff;
  --bk-surface: #ffffff;
  --bk-line: #e8d9d0;
  --bk-line2: #917a6e;
  --bk-ink: #261a14;
  --bk-muted: #5e4a40;
  --bk-accent: #bb4216;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #a53810;
  --bk-accent-soft: #fbe6dc;
  --bk-accent-photo: #f08a64;
}
@media (prefers-color-scheme: dark) {
  html[data-bk-theme="orange"]:not([data-theme="light"]) {
    --bk-bg: #131010;
    --bk-bg2: #0d0a09;
    --bk-surface: #1d1816;
    --bk-line: #2e2521;
    --bk-line2: #7a6a63;
    --bk-ink: #f5eeea;
    --bk-muted: #b9aaa2;
    --bk-accent: #c94a22;
    --bk-ink-on-accent: #ffffff;
    --bk-accent-text: #f08a64;
    --bk-accent-soft: #2b1710;
    --bk-accent-photo: #f08a64;
  }
}
html[data-bk-theme="orange"][data-theme="dark"] {
  color-scheme: dark;
  --bk-bg: #131010;
  --bk-bg2: #0d0a09;
  --bk-surface: #1d1816;
  --bk-line: #2e2521;
  --bk-line2: #7a6a63;
  --bk-ink: #f5eeea;
  --bk-muted: #b9aaa2;
  --bk-accent: #c94a22;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #f08a64;
  --bk-accent-soft: #2b1710;
  --bk-accent-photo: #f08a64;
}
/* ธีมแดง */
html[data-bk-theme="red"] {
  --bk-bg: #f6f3f2;
  --bk-bg2: #ffffff;
  --bk-surface: #ffffff;
  --bk-line: #e4dcd9;
  --bk-line2: #8f817c;
  --bk-ink: #1c1412;
  --bk-muted: #574a46;
  --bk-accent: #b3261a;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #a32014;
  --bk-accent-soft: #fbe2df;
  --bk-accent-photo: #ee6a58;
}
@media (prefers-color-scheme: dark) {
  html[data-bk-theme="red"]:not([data-theme="light"]) {
    --bk-bg: #141414;
    --bk-bg2: #0a0a0a;
    --bk-surface: #1c1c1c;
    --bk-line: #2e2e2e;
    --bk-line2: #747474;
    --bk-ink: #f5f5f5;
    --bk-muted: #b5b5b5;
    --bk-accent: #c93a2a;
    --bk-ink-on-accent: #ffffff;
    --bk-accent-text: #ee6a58;
    --bk-accent-soft: #2a1512;
    --bk-accent-photo: #ee6a58;
  }
}
html[data-bk-theme="red"][data-theme="dark"] {
  color-scheme: dark;
  --bk-bg: #141414;
  --bk-bg2: #0a0a0a;
  --bk-surface: #1c1c1c;
  --bk-line: #2e2e2e;
  --bk-line2: #747474;
  --bk-ink: #f5f5f5;
  --bk-muted: #b5b5b5;
  --bk-accent: #c93a2a;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #ee6a58;
  --bk-accent-soft: #2a1512;
  --bk-accent-photo: #ee6a58;
}
/* ธีมดำ-ทอง */
html[data-bk-theme="gold"] {
  --bk-bg: #f8f5ec;
  --bk-bg2: #ffffff;
  --bk-surface: #ffffff;
  --bk-line: #e5dec6;
  --bk-line2: #8d7f52;
  --bk-ink: #211c0e;
  --bk-muted: #5b523a;
  --bk-accent: #8a6a10;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #7c5f0c;
  --bk-accent-soft: #f6edcc;
  --bk-accent-photo: #e6c65a;
}
@media (prefers-color-scheme: dark) {
  html[data-bk-theme="gold"]:not([data-theme="light"]) {
    --bk-bg: #0f0e0b;
    --bk-bg2: #080806;
    --bk-surface: #1a1812;
    --bk-line: #2b281d;
    --bk-line2: #80765a;
    --bk-ink: #f6f1e4;
    --bk-muted: #b8af98;
    --bk-accent: #d4af37;
    --bk-ink-on-accent: #141000;
    --bk-accent-text: #e6c65a;
    --bk-accent-soft: #2a2410;
    --bk-accent-photo: #e6c65a;
  }
}
html[data-bk-theme="gold"][data-theme="dark"] {
  color-scheme: dark;
  --bk-bg: #0f0e0b;
  --bk-bg2: #080806;
  --bk-surface: #1a1812;
  --bk-line: #2b281d;
  --bk-line2: #80765a;
  --bk-ink: #f6f1e4;
  --bk-muted: #b8af98;
  --bk-accent: #d4af37;
  --bk-ink-on-accent: #141000;
  --bk-accent-text: #e6c65a;
  --bk-accent-soft: #2a2410;
  --bk-accent-photo: #e6c65a;
}
/* ธีมเทาเหล็ก */
html[data-bk-theme="steel"] {
  --bk-bg: #f2f4f6;
  --bk-bg2: #ffffff;
  --bk-surface: #ffffff;
  --bk-line: #d9dfe5;
  --bk-line2: #758396;
  --bk-ink: #151b22;
  --bk-muted: #4a5766;
  --bk-accent: #3c5670;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #35506b;
  --bk-accent-soft: #e3e9ef;
  --bk-accent-photo: #a9bdd1;
}
@media (prefers-color-scheme: dark) {
  html[data-bk-theme="steel"]:not([data-theme="light"]) {
    --bk-bg: #111417;
    --bk-bg2: #0a0c0e;
    --bk-surface: #1a1f24;
    --bk-line: #2a323a;
    --bk-line2: #667587;
    --bk-ink: #eef1f4;
    --bk-muted: #a9b4c0;
    --bk-accent: #8fa6bd;
    --bk-ink-on-accent: #0b1117;
    --bk-accent-text: #a9bdd1;
    --bk-accent-soft: #1f2a36;
    --bk-accent-photo: #a9bdd1;
  }
}
html[data-bk-theme="steel"][data-theme="dark"] {
  color-scheme: dark;
  --bk-bg: #111417;
  --bk-bg2: #0a0c0e;
  --bk-surface: #1a1f24;
  --bk-line: #2a323a;
  --bk-line2: #667587;
  --bk-ink: #eef1f4;
  --bk-muted: #a9b4c0;
  --bk-accent: #8fa6bd;
  --bk-ink-on-accent: #0b1117;
  --bk-accent-text: #a9bdd1;
  --bk-accent-soft: #1f2a36;
  --bk-accent-photo: #a9bdd1;
}
/* ธีมม่วงอินดิโก้ */
html[data-bk-theme="purple"] {
  --bk-bg: #f6f4fc;
  --bk-bg2: #ffffff;
  --bk-surface: #ffffff;
  --bk-line: #ddd8ef;
  --bk-line2: #7c72a3;
  --bk-ink: #1a1530;
  --bk-muted: #51496f;
  --bk-accent: #5240c9;
  --bk-ink-on-accent: #ffffff;
  --bk-accent-text: #4a39b8;
  --bk-accent-soft: #e8e4f9;
  --bk-accent-photo: #aca0ff;
}
@media (prefers-color-scheme: dark) {
  html[data-bk-theme="purple"]:not([data-theme="light"]) {
    --bk-bg: #120f1d;
    --bk-bg2: #0b0813;
    --bk-surface: #1b172a;
    --bk-line: #2b2540;
    --bk-line2: #766c9f;
    --bk-ink: #f0edfa;
    --bk-muted: #b0a9cc;
    --bk-accent: #8b7cf0;
    --bk-ink-on-accent: #0d0a22;
    --bk-accent-text: #aca0ff;
    --bk-accent-soft: #231d40;
    --bk-accent-photo: #aca0ff;
  }
}
html[data-bk-theme="purple"][data-theme="dark"] {
  color-scheme: dark;
  --bk-bg: #120f1d;
  --bk-bg2: #0b0813;
  --bk-surface: #1b172a;
  --bk-line: #2b2540;
  --bk-line2: #766c9f;
  --bk-ink: #f0edfa;
  --bk-muted: #b0a9cc;
  --bk-accent: #8b7cf0;
  --bk-ink-on-accent: #0d0a22;
  --bk-accent-text: #aca0ff;
  --bk-accent-soft: #231d40;
  --bk-accent-photo: #aca0ff;
}

/* ---------- 2) สีสถานะ (ไม่ขึ้นกับธีม ขึ้นกับโหมด) ---------- */
html[data-bk-theme] {
  --bk-ok: #1c6e43;
  --bk-ok-soft: #e1f2e8;
  --bk-warn: #85580c;
  --bk-warn-soft: #fdf0d5;
  --bk-bad: #b3261a;
  --bk-bad-soft: #fbe3df;
  --bk-info: #2a5788;
  --bk-info-soft: #e3edf9;
  --bk-surface2: #f3ebe6;
}
@media (prefers-color-scheme: dark) {
  html[data-bk-theme]:not([data-theme="light"]) {
    --bk-ok: #6fd49a;
    --bk-ok-soft: #15271d;
    --bk-warn: #f0b84e;
    --bk-warn-soft: #2d2410;
    --bk-bad: #ff7a6b;
    --bk-bad-soft: #301614;
    --bk-info: #7db3ff;
    --bk-info-soft: #13203a;
    --bk-surface2: #262020;
  }
}
html[data-bk-theme][data-theme="dark"] {
  --bk-ok: #6fd49a;
  --bk-ok-soft: #15271d;
  --bk-warn: #f0b84e;
  --bk-warn-soft: #2d2410;
  --bk-bad: #ff7a6b;
  --bk-bad-soft: #301614;
  --bk-info: #7db3ff;
  --bk-info-soft: #13203a;
  --bk-surface2: #262020;
}

/* ---------- 3) รูปทรงต่อดีไซน์ (การ์ด / ช่องและชิป / ปุ่ม / ตัดมุมปุ่ม) ---------- */
html[data-bk-design="orig"] { --bk-r: 20px; --bk-rc: 14px; --bk-rb: 27px; --bk-cut: none; }
html[data-bk-design="a"] { --bk-r: 16px; --bk-rc: 12px; --bk-rb: 14px; --bk-cut: none; }
html[data-bk-design="d"] { --bk-r: 12px; --bk-rc: 10px; --bk-rb: 12px; --bk-cut: none; }
html[data-bk-design="g"] { --bk-r: 8px; --bk-rc: 6px; --bk-rb: 0px; --bk-cut: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }

/* ---------- 4) แมปตัวแปรเดิมของระบบ → ตัวแปรธีมใหม่ ----------
   style.css / renderThemeStyleTag() วางชุดมืดที่ความจำเพาะ (0,2,0) จึงต้องใช้ html[...]:root (0,2,1) ให้ชนะทุกโหมดโดยไม่ต้องวางซ้ำต่อโหมด
   --white ไม่แตะ (ขาวเสมอ) : ตัวหนังสือบนพื้น accent ต้องเขียนทับเป็น --bk-ink-on-accent ตรงจุด (ธีมมืดหลายสีมี accentInk เป็นสีเข้ม) */
html[data-bk-theme]:root {
  --sand-100: var(--bk-bg);
  --sand-200: var(--bk-line);
  --surface: var(--bk-surface);
  --ink-900: var(--bk-ink);
  --ink-600: var(--bk-muted);
  --ink-400: var(--bk-muted);
  --brand-900: var(--bk-accent);
  --brand-700: var(--bk-accent);
  --brand-500: var(--bk-accent-text);
  --brand-100: var(--bk-accent-soft);
  --brand-ink: var(--bk-accent-text);
  --red-600: var(--bk-bad);
  --red-100: var(--bk-bad-soft);
  --green-900: var(--bk-ok);
  --green-700: var(--bk-ok);
  --green-500: var(--bk-ok);
  --green-100: var(--bk-ok-soft);
  --amber-700: var(--bk-warn);
  --amber-100: var(--bk-warn-soft);
  --blue-700: var(--bk-info);
  --blue-100: var(--bk-info-soft);
}

/* ---------- 5) ทาสีชิ้นส่วนเดิมของหน้าจองตามธีม (ทุกดีไซน์ รวมดีไซน์เดิมเมื่อร้านเปิด "ให้ดีไซน์เดิมรับสี") ----------
   เขียนทับเฉพาะจุดที่ style.css / booking-theme.css ตั้งสีตายตัวหรือใช้ --white บนพื้น accent ; ที่ใช้ตัวแปรอยู่แล้วเปลี่ยนตามโดยการแมปในข้อ 4 */
html[data-bk-theme] body.booking-flow-body { background: var(--bk-bg); color: var(--bk-ink); }
html[data-bk-theme] a { color: var(--bk-accent-text); }
/* เมนูหัวเว็บที่เปิดอยู่ : style.css ใช้ พื้น --brand-500 + ตัวหนังสือ --white ; ธีมนี้ map --brand-500 เป็นสีตัวหนังสือ-บนพื้น (สว่างในโหมดมืด) ขาวจึงจม
   เปลี่ยนเป็นคู่ พื้น --bk-accent + --bk-ink-on-accent (คู่เดียวกับปุ่มหลัก ผ่าน ≥ 4.5 ทุกธีม/โหมดตามกลุ่ม 182) ทั้งตัวเมนู (≥ 641px) และไอคอนในลิ้นชักมือถือ */
html[data-bk-theme] .site-nav a[aria-current] { background: var(--bk-accent); color: var(--bk-ink-on-accent); }
html[data-bk-theme] .site-nav a[aria-current] .nav-ic { background: var(--bk-accent); color: var(--bk-ink-on-accent); }
html[data-bk-theme] .link-btn, html[data-bk-theme] .desc-more { color: var(--bk-accent-text); }
html[data-bk-theme] .skip-link { color: var(--bk-ink-on-accent); }
html[data-bk-theme] .site-header { background: var(--bk-bg2); border-bottom-color: var(--bk-line); }
html[data-bk-theme] .brand-mark { background: var(--bk-accent); color: var(--bk-ink-on-accent); }
html[data-bk-theme] .menu-toggle { color: var(--bk-ink); }
html[data-bk-theme] .menu-toggle:hover { background: var(--bk-accent); color: var(--bk-ink-on-accent); }
/* ป้ายภาษาที่เลือกอยู่ / ปุ่มโหมดที่เลือกอยู่ ใน style.css ตั้ง color: #fff !important และ #fff ตายตัว */
html[data-bk-theme] .lang-switch a.is-active { background: var(--bk-accent); border-color: var(--bk-accent) !important; color: var(--bk-ink-on-accent) !important; }
html[data-bk-theme] .theme-opt[aria-pressed="true"] { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-ink-on-accent); }
html[data-bk-theme] .line-friend-chip { background: var(--bk-accent); color: var(--bk-ink-on-accent) !important; }
html[data-bk-theme] .member-badge-default { background: var(--bk-accent); color: var(--bk-ink-on-accent); text-shadow: none; }

/* แถบขั้นตอน (ดีไซน์เดิม) */
html[data-bk-theme] .booking-flow-body .step { background: var(--bk-surface); border-color: var(--bk-line); box-shadow: none; }
html[data-bk-theme] .booking-flow-body .step.is-active { background: var(--bk-accent-soft); border-color: var(--bk-accent-text); box-shadow: none; color: var(--bk-ink); }
html[data-bk-theme] .step-num { background: var(--bk-line); color: var(--bk-ink); }
html[data-bk-theme] .step.is-active .step-num, html[data-bk-theme] .step.is-done .step-num { background: var(--bk-accent); color: var(--bk-ink-on-accent); }

/* การ์ดขั้นตอน / สรุป / ช่องกรอก */
html[data-bk-theme] .booking-flow-body .panel,
html[data-bk-theme] .booking-flow-body .card { background: var(--bk-surface); border-color: var(--bk-line); box-shadow: none; }
html[data-bk-theme] .booking-flow-body .panel-title,
html[data-bk-theme] .booking-flow-body .card-title,
html[data-bk-theme] .booking-flow-body .page-title { color: var(--bk-ink); }
html[data-bk-theme] .booking-flow-body .summary { background: var(--bk-bg2); border: 1px solid var(--bk-line); }
html[data-bk-theme] .summary .total,
html[data-bk-theme] .summary .discount-amount,
html[data-bk-theme] .choice-price,
html[data-bk-theme] .package-card-name { color: var(--bk-accent-text); }
html[data-bk-theme] .booking-flow-body .field input,
html[data-bk-theme] .booking-flow-body .field textarea,
html[data-bk-theme] .booking-flow-body .field select { background: var(--bk-surface); color: var(--bk-ink); border-color: var(--bk-line2); }
html[data-bk-theme] .booking-flow-body .field input:focus,
html[data-bk-theme] .booking-flow-body .field textarea:focus { border-color: var(--bk-accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bk-accent) 30%, transparent); }
html[data-bk-theme] .booking-flow-body .field input::placeholder,
html[data-bk-theme] .booking-flow-body .field textarea::placeholder { color: var(--bk-muted); opacity: 1; }
html[data-bk-theme] .field.has-error input,
html[data-bk-theme] .field.has-error textarea { border-color: var(--bk-bad); }
html[data-bk-theme] .package-card { background: var(--bk-surface); border-color: var(--bk-line2); }
html[data-bk-theme] .package-card:has(input:checked) { border-color: var(--bk-accent); box-shadow: 0 0 0 1px var(--bk-accent); }
html[data-bk-theme] .booking-flow-body .slip-picker { background: var(--bk-bg2); border-color: var(--bk-line2); }
html[data-bk-theme] .booking-flow-body .slip-preview-img { box-shadow: none; }
html[data-bk-theme] .slip-picker input[type="file"]::file-selector-button { background: var(--bk-accent); color: var(--bk-ink-on-accent); }

/* ปุ่ม */
html[data-bk-theme] .booking-flow-body .btn-primary,
html[data-bk-theme] .booking-flow-body .btn-primary:hover { background: var(--bk-accent); color: var(--bk-ink-on-accent); box-shadow: none; }
html[data-bk-theme] .booking-flow-body .btn-primary:hover:not(:disabled) { filter: brightness(.92); }
html[data-bk-theme] .booking-flow-body .btn-ghost { background: transparent; color: var(--bk-ink); border-color: var(--bk-line2); }
html[data-bk-theme] .booking-flow-body .btn-ghost:hover { background: var(--bk-accent-soft); }
html[data-bk-theme] .booking-flow-body .btn-danger { background: var(--bk-bad); color: var(--bk-bg2); }

/* การ์ดเลือก (บริการ / ระยะเวลา / บริการเสริม / พนักงาน) */
html[data-bk-theme] .choice-body { background: var(--bk-surface); border-color: var(--bk-line2); }
html[data-bk-theme] .booking-flow-body .choice:hover .choice-body { border-color: var(--bk-accent-text); }
html[data-bk-theme] .booking-flow-body .choice input:checked + .choice-body { background: var(--bk-accent-soft); border-color: var(--bk-accent); box-shadow: none; color: var(--bk-ink); }
html[data-bk-theme] .choice input:checked + .choice-body .choice-price { color: var(--bk-accent-text); }
html[data-bk-theme] .choice input:checked + .choice-body::after { background: var(--bk-accent); color: var(--bk-ink-on-accent); box-shadow: none; }
html[data-bk-theme] .choice input:focus-visible + .choice-body { outline-color: var(--bk-accent-text); }
html[data-bk-theme] .choice-badge { background: var(--bk-accent); color: var(--bk-ink-on-accent); box-shadow: none; }
html[data-bk-theme] .addons-card > summary { background: var(--bk-surface); border-color: var(--bk-line2); }
html[data-bk-theme] .addons-count { background: var(--bk-accent); color: var(--bk-ink-on-accent); }
html[data-bk-theme] .staff-pick-initial { background: var(--bk-accent); color: var(--bk-ink-on-accent); }

/* ช่วงเวลา */
html[data-bk-theme] .booking-flow-body .slot { background: var(--bk-surface); border-color: var(--bk-line2); color: var(--bk-ink); }
html[data-bk-theme] .booking-flow-body .slot:hover { border-color: var(--bk-accent-text); }
html[data-bk-theme] .booking-flow-body .slot[aria-pressed="true"] { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-ink-on-accent); }
html[data-bk-theme] .booking-flow-body .slot-open { background: var(--bk-accent-soft); border-color: var(--bk-accent-text); color: var(--bk-ink); }
html[data-bk-theme] .booking-flow-body .slot-short { background: transparent; border-color: var(--bk-line2); color: var(--bk-muted); }
html[data-bk-theme] .booking-flow-body .slot-rec { background: var(--bk-warn-soft); border-color: var(--bk-warn); color: var(--bk-ink); }
html[data-bk-theme] .booking-flow-body .slot-booked { background: var(--bk-bad-soft); border-color: color-mix(in srgb, var(--bk-bad) 45%, transparent); color: var(--bk-muted); }
html[data-bk-theme] .slot-tag.is-free { color: var(--bk-ink); border-color: var(--bk-accent-text); }
html[data-bk-theme] .slot-tag.is-rec { background: var(--bk-warn-soft); border-color: var(--bk-warn); color: var(--bk-warn); }
html[data-bk-theme] .slot-tag.is-full { background: var(--bk-bad-soft); border-color: var(--bk-bad); color: var(--bk-bad); }
html[data-bk-theme] .slot-tag.is-short { color: var(--bk-muted); border-color: var(--bk-line2); }
html[data-bk-theme] .slot-sheet { background: var(--bk-surface); border-color: var(--bk-line2); }
html[data-bk-theme] .slot-sheet-badge.is-free { border-color: var(--bk-accent-text); }
html[data-bk-theme] .slot-sheet-badge.is-rec { background: var(--bk-warn-soft); color: var(--bk-warn); }
html[data-bk-theme] .slot-sheet-badge.is-full { background: var(--bk-bad-soft); color: var(--bk-bad); }
html[data-bk-theme] .avail-chip[aria-pressed="true"], html[data-bk-theme] .avail-chip.is-active { background: var(--bk-accent-soft); border-color: var(--bk-accent-text); color: var(--bk-ink); }

/* แจ้งเตือน / ข้อความ / เงื่อนไข */
html[data-bk-theme] .alert-error { background: var(--bk-bad-soft); border-color: color-mix(in srgb, var(--bk-bad) 40%, transparent); color: var(--bk-bad); }
html[data-bk-theme] .alert-success { background: var(--bk-ok-soft); border-color: color-mix(in srgb, var(--bk-ok) 40%, transparent); color: var(--bk-ok); }
html[data-bk-theme] .alert-info { background: var(--bk-info-soft); border-color: color-mix(in srgb, var(--bk-info) 40%, transparent); color: var(--bk-info); }
html[data-bk-theme] .alert-warning { background: var(--bk-warn-soft); border-color: color-mix(in srgb, var(--bk-warn) 40%, transparent); color: var(--bk-warn); }
html[data-bk-theme] .booking-flow-body .unavail-box.alert-warning { background: var(--bk-warn-soft); border-color: color-mix(in srgb, var(--bk-warn) 45%, transparent); color: var(--bk-warn); }
html[data-bk-theme] .booking-flow-body .unavail-box.alert-info { background: var(--bk-info-soft); border-color: color-mix(in srgb, var(--bk-info) 45%, transparent); color: var(--bk-info); }
html[data-bk-theme] .benefit-notice { background: var(--bk-warn-soft); color: var(--bk-ink); }
html[data-bk-theme] .field-error, html[data-bk-theme] .req, html[data-bk-theme] .summary .deposit-amount { color: var(--bk-bad); }
html[data-bk-theme] .booking-rules { background: var(--bk-warn-soft); border-color: color-mix(in srgb, var(--bk-warn) 45%, transparent); }
html[data-bk-theme] .booking-rules h3 { color: var(--bk-ink); }
html[data-bk-theme] .booking-rules .rules-note { background: var(--bk-accent-soft); }
html[data-bk-theme] .modal-box { background: var(--bk-surface); color: var(--bk-ink); }
/* QR พร้อมเพย์ .pp-card และรูป QR ของร้าน (.payment-qr) ไม่แตะ : ต้องขาว-ดำตามเดิมเพื่อให้สแกนได้ทุกธีม */

/* ---------- 6) ดีไซน์ A / D / G : หัวหน้า แถบขั้นตอน พื้นหน้า ปุ่ม ช่อง (ขั้น 1-4 ใช้ร่วมกัน) ----------
   NA = ดีไซน์ใด ๆ ที่ไม่ใช่ "เดิม" ; ดีไซน์เดิมไม่มีกฎในหมวดนี้เลย */
html[data-bk-design]:not([data-bk-design="orig"]) .booking-page { max-width: 760px; }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .page-title { text-align: left; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.01em; margin: .9rem 0 .6rem; color: var(--bk-ink); }
/* ดีไซน์ D/G : หัวข้อใหญ่ของหน้าเป็นชื่อขั้น (.panel-title) แทน h1 — h1 ยังอยู่ให้โปรแกรมอ่านจอ */
html[data-bk-design="d"] .booking-flow-body .page-title,
html[data-bk-design="g"] .booking-flow-body .page-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html[data-bk-design="d"] .booking-flow-body .panel > .panel-title:first-of-type,
html[data-bk-design="g"] .booking-flow-body .panel > .panel-title:first-of-type { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; margin: .7rem 0 .8rem; }
html[data-bk-design="a"] [data-panel="1"] > .panel-title:first-of-type { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .panel-title { color: var(--bk-ink); }

/* หัวหน้า */
html[data-bk-design]:not([data-bk-design="orig"]) .site-header { background: var(--bk-bg2); border-bottom: 1px solid var(--bk-line); }
html[data-bk-design="g"] .site-header { border-bottom: 3px solid var(--bk-accent); }
html[data-bk-design]:not([data-bk-design="orig"]) .header-inner { min-height: 56px; }
html[data-bk-design]:not([data-bk-design="orig"]) .brand { min-height: 44px; }
html[data-bk-design="a"] .brand-mark, html[data-bk-design="d"] .brand-mark { background: transparent; border: 2px solid var(--bk-accent); color: var(--bk-accent-text); border-radius: 8px; }
html[data-bk-design="g"] .brand-mark { background: var(--bk-accent); color: var(--bk-ink-on-accent); border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
html[data-bk-design]:not([data-bk-design="orig"]) .menu-toggle { width: 44px; height: 44px; background: var(--bk-surface); border: 1px solid var(--bk-line2); border-radius: var(--bk-rc); color: var(--bk-ink); }
html[data-bk-design="g"] .menu-toggle { background: transparent; }
html[data-bk-design]:not([data-bk-design="orig"]) .menu-toggle svg { width: 22px; height: 22px; }
@media (min-width: 641px) { html[data-bk-design]:not([data-bk-design="orig"]) .menu-toggle { display: none; } }
html[data-bk-design]:not([data-bk-design="orig"]) .site-nav { background: var(--bk-bg2); }

/* แถบขั้นตอน : 4 ช่อง (A สูง 6px มีชื่อใต้แถบ, D/G สูง 4px) — .step-num/.step-label ยังอยู่ใน DOM และโปรแกรมอ่านจออ่านได้ */
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .steps { gap: 6px; max-width: none; margin: .5rem 0 .9rem; overflow: visible; -webkit-mask-image: none; mask-image: none; justify-content: stretch; }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .step,
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .step.is-active { display: block; flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; white-space: normal; font-size: .8rem; line-height: 1.3; color: var(--bk-muted); }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .step.is-active { color: var(--bk-ink); font-weight: 700; }
html[data-bk-design]:not([data-bk-design="orig"]) .step::before { content: ""; display: block; height: 4px; margin-bottom: 6px; border-radius: 2px; background: var(--bk-line2); }
html[data-bk-design="a"] .step::before { height: 6px; border-radius: 3px; }
html[data-bk-design]:not([data-bk-design="orig"]) .step.is-active::before,
html[data-bk-design]:not([data-bk-design="orig"]) .step.is-done::before { background: var(--bk-accent); }
html[data-bk-design]:not([data-bk-design="orig"]) .step .step-num { display: inline; width: auto; height: auto; padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; }
html[data-bk-design]:not([data-bk-design="orig"]) .step.is-done .step-num { font-size: inherit; background: none; }
html[data-bk-design]:not([data-bk-design="orig"]) .step.is-done .step-num::after { content: none; }
html[data-bk-design]:not([data-bk-design="orig"]) .step.is-active .step-num, html[data-bk-design]:not([data-bk-design="orig"]) .step.is-done .step-num { background: none; color: inherit; }
/* display:inline ทับ style.css ที่ซ่อนชื่อขั้นที่ไม่ใช่ขั้นปัจจุบันด้วย display:none บนจอ ≤ 480px — ซ่อนแบบ sr-only อย่างเดียว โปรแกรมอ่านจอยังอ่านได้ */
html[data-bk-design="d"] .booking-flow-body .step .step-num, html[data-bk-design="d"] .booking-flow-body .step .step-label,
html[data-bk-design="g"] .booking-flow-body .step .step-num, html[data-bk-design="g"] .booking-flow-body .step .step-label { display: inline; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* style.css ซ่อนชื่อขั้นที่ไม่ได้อยู่ ณ ตอนนี้บนจอ ≤ 480px (display:none) — ดีไซน์ A แสดงทุกชื่อใต้แถบ */
html[data-bk-design="a"] .booking-flow-body .step:not(.is-active) .step-label { display: inline; }

/* พื้นหน้า : ดีไซน์ A/D/G เป็นพื้นเรียบ ไม่ห่อการ์ด (ตามแบบ) ; ชิ้นส่วนในขั้น (สรุป คูปอง ช่องกรอก) ยังเป็นการ์ด */
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 1.5rem; max-width: none; }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .card { border-radius: var(--bk-r); }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .summary,
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .coupon-field,
html[data-bk-design]:not([data-bk-design="orig"]) .package-card,
html[data-bk-design]:not([data-bk-design="orig"]) .outcall-box,
html[data-bk-design]:not([data-bk-design="orig"]) .booking-rules,
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .modal-box { border-radius: var(--bk-r); }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .field input,
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .field textarea,
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .field select { border-radius: var(--bk-rc); }
/* ช่องวันที่ต้องคงรูปเดิม (บั๊ก iOS WebKit ล้นขอบ — ดูคอมเมนต์ใน booking-theme.css) */
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .field input[type="date"] { border-radius: 8px; }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .slot { border-radius: var(--bk-rc); }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .choice-body,
html[data-bk-design]:not([data-bk-design="orig"]) .addons-card > summary { border-radius: var(--bk-rc); }
html[data-bk-design]:not([data-bk-design="orig"]) .chip, html[data-bk-design]:not([data-bk-design="orig"]) .member-badge, html[data-bk-design]:not([data-bk-design="orig"]) .line-friend-chip { border-radius: var(--bk-rc); }
html[data-bk-design]:not([data-bk-design="orig"]) .loyalty-progress, html[data-bk-design]:not([data-bk-design="orig"]) .benefit-notice, html[data-bk-design]:not([data-bk-design="orig"]) .alert { border-radius: var(--bk-rc); }

/* ปุ่ม : มุมตามดีไซน์ ; G ตัดมุมล่างซ้าย — clip-path ตัดเส้นโฟกัสด้านนอก จึงวาดเส้นโฟกัสไว้ด้านใน (AC-X4) */
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .btn { border-radius: var(--bk-rb); clip-path: var(--bk-cut); font-weight: 700; }
html[data-bk-design="g"] .booking-flow-body .btn:focus-visible { outline: 3px solid var(--bk-ink-on-accent); outline-offset: -6px; }
html[data-bk-design="g"] .booking-flow-body .btn-ghost:focus-visible { outline-color: var(--bk-ink); }
html[data-bk-design="g"] .booking-flow-body .btn-sm, html[data-bk-design="g"] .booking-flow-body .coupon-input-row .btn { clip-path: none; border-radius: var(--bk-rc); }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .panel-actions .btn { min-height: 54px; font-size: 1.06rem; }
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body .panel-actions { border-top-color: var(--bk-line); }
@media (max-width: 640px) {
  html[data-bk-design]:not([data-bk-design="orig"]) .booking-page .panel-actions { background: var(--bk-bg2); border-top: 1px solid var(--bk-line); box-shadow: none; padding: .7rem 1rem calc(.8rem + env(safe-area-inset-bottom)); }
  html[data-bk-design]:not([data-bk-design="orig"]) .booking-page .panel-actions .btn-primary { flex: 1 1 0; min-width: 0; }
  html[data-bk-design]:not([data-bk-design="orig"]) .booking-page .panel-actions .btn-ghost { flex: 0 0 auto; min-width: 7.5rem; }
  /* เผื่อที่ให้แถบปุ่มติดล่าง (สูงประมาณ 80px + บรรทัดสรุปที่เลือก) เนื้อหาท้ายขั้นไม่ถูกบัง */
  html[data-bk-design]:not([data-bk-design="orig"]) .booking-page .panel { padding-bottom: calc(8.5rem + env(safe-area-inset-bottom)); }
}
/* บรรทัดสรุปที่เลือก "ชื่อบริการ · ระยะเวลา" บนแถบปุ่ม (ดีไซน์ A ขั้น 1) — สร้างโดย booking-look.js ; ไม่แสดงยอด (O9) */
html[data-bk-design] .bk-sel-line { flex: 0 0 100%; margin: 0; font-size: .875rem; line-height: 1.4; color: var(--bk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-bk-design] .bk-sel-line strong { color: var(--bk-ink); }
html[data-bk-design] .panel-actions:has(.bk-sel-line) { flex-wrap: wrap; row-gap: .4rem; }

/* ---------- 7) ขั้น 1 : การ์ดบริการ (ใช้ .choice-grid ตัวแรกของแผง ไม่ใช่รายการระยะเวลา/บริการเสริม) ---------- */
/* ราคา "เริ่ม ..." ใต้ชื่อบริการ — booking-look.js เติมจากราคาระยะเวลาที่ต่ำสุดของบริการนั้น ; ไม่มี JS = ไม่มีบรรทัดนี้ (ราคายังอยู่ที่ชิประยะเวลา) */
html[data-bk-ui] .bk-from { display: none; }
html[data-bk-design]:not([data-bk-design="orig"]) [data-panel="1"] > .choice-grid:not(.choice-grid-rows) .bk-from { display: block; font-variant-numeric: tabular-nums; color: var(--bk-accent-text); font-size: .85rem; line-height: 1.35; }
html[data-bk-design]:not([data-bk-design="orig"]) .choice-badge { border-radius: 4px; font-size: .75rem; letter-spacing: 0; padding: .1rem .5rem; }
html[data-bk-design]:not([data-bk-design="orig"]) .choice-badge-inline { position: absolute; top: -9px; right: 10px; left: auto; box-shadow: none; }

/* --- ดีไซน์ A : การ์ดรูปใหญ่ --- */
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) { grid-column: 1 / -1; order: -1; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .bk-extra { grid-column: 1 / -1; order: -1; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: baseline; gap: 0; padding: 0; overflow: hidden; border-width: 1.5px; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-thumb { grid-column: 1 / -1; height: 92px; margin: 0; border-radius: 0; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-title { grid-column: 1 / -1; padding: 9px 11px 0; font-size: .97rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .bk-from { grid-column: 1 / -1; padding: 1px 11px 11px; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-desc { display: none; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-badge { top: 8px; left: 8px; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body:not(:has(.choice-thumb)) > .choice-badge { position: static; grid-column: 1 / -1; justify-self: start; margin: 9px 11px 0; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body:not(:has(.choice-thumb)) { min-height: 4.2rem; }
/* ที่เลือก = การ์ดใหญ่เต็มแถว รูปสูง ~176px ชื่อ + "เริ่ม ..." แถวเดียว คำอธิบายสองบรรทัด */
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body { border-width: 2px; border-radius: var(--bk-rc) var(--bk-rc) 0 0; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked):not(:has(+ .bk-extra)) > .choice-body { border-radius: var(--bk-rc); }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body > .choice-thumb { height: 176px; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body > .choice-title { grid-column: 1; padding: 11px 14px 0; font-size: 1.19rem; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body > .bk-from { grid-column: 2; grid-row: 2; padding: 11px 14px 0 0; white-space: nowrap; font-size: .94rem; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body > .choice-desc { display: block; grid-column: 1 / -1; padding: 3px 14px 13px; font-size: .85rem; color: var(--bk-muted); }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body::after { top: 10px; right: 10px; width: 30px; height: 30px; font-size: 1rem; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body > .choice-badge { top: 10px; left: 10px; }
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .bk-extra { display: flex; margin-top: -10px; padding: 0 14px; border: 2px solid var(--bk-accent); border-top: 0; border-radius: 0 0 var(--bk-rc) var(--bk-rc); background: var(--bk-accent-soft); }
/* ระยะเวลา : ชิป 2 คอลัมน์ สูง ≥ 54px ป้าย "แนะนำ" มุมขวาบน */
html[data-bk-design="a"] #duration-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
html[data-bk-design="a"] #duration-list .choice-body { min-height: 54px; padding: 9px 12px 6px; justify-content: center; border-width: 1.5px; background: var(--bk-surface); }
html[data-bk-design="a"] #duration-list .choice input:checked + .choice-body { border-width: 2px; background: var(--bk-accent-soft); }
html[data-bk-design="a"] #duration-list .choice-head { flex-direction: column; align-items: flex-start; gap: 0; }
html[data-bk-design="a"] #duration-list .choice-title { font-size: .94rem; font-weight: 700; }
html[data-bk-design="a"] #duration-list .choice-price { font-size: .85rem; font-weight: 400; }
html[data-bk-design="a"] #duration-list .choice input:checked + .choice-body .choice-price { font-weight: 700; }
html[data-bk-design="a"] #duration-list .choice-body::after { display: none; }
html[data-bk-design="a"] [data-panel="1"] > .panel-title:nth-of-type(2) { font-size: 1.06rem; margin: 1.1rem 0 .3rem; }

/* --- ดีไซน์ D : เลือกเร็ว (ไทล์รูป 2 คอลัมน์ + แผงล่างติดขอบ) --- */
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; height: 84px; padding: 0 10px 8px; border: 0; overflow: hidden; background: var(--bk-surface); box-shadow: 0 0 0 1.5px var(--bk-line2); color: var(--white); }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body:not(:has(.choice-thumb)) { background: var(--bk-accent-soft); color: var(--bk-ink); }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-thumb { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; }
/* แผ่นไล่เฉดมืดใต้ข้อความบนรูป ให้อ่านออกไม่ว่ารูปสว่างแค่ไหน (ความเสี่ยง R5) */
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body:has(.choice-thumb)::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to top, rgb(8 8 8 / .94) 0%, rgb(8 8 8 / .9) 60%, rgb(8 8 8 / .86) 76%, rgb(8 8 8 / .3) 92%, rgb(8 8 8 / .12) 100%); }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body:has(.choice-thumb)::before { background: linear-gradient(to top, rgb(8 8 8 / .94) 0%, rgb(8 8 8 / .9) 60%, rgb(8 8 8 / .86) 76%, rgb(8 8 8 / .25) 92%, rgb(8 8 8 / 0) 100%); }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-title { position: relative; z-index: 2; font-size: .94rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .bk-from { position: relative; z-index: 2; font-size: .78rem; color: var(--bk-accent-photo); }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body:not(:has(.choice-thumb)) > .bk-from { color: var(--bk-accent-text); }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-desc { display: none; }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-badge { z-index: 3; top: 8px; left: 8px; padding: .12rem .5rem; }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body { box-shadow: 0 0 0 3px var(--bk-accent); background: var(--bk-surface); }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body::after { z-index: 3; top: 7px; right: 7px; width: 26px; height: 26px; font-size: .95rem; }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:last-child:nth-child(odd) > .choice-body { flex-direction: row; justify-content: space-between; align-items: flex-end; }
/* แผงล่างติดขอบ (สร้างโดย booking-look.js : ย้ายโหนดชิประยะเวลา + ปุ่มถัดไปเดิมเข้ามา ไม่โคลน) */
html[data-bk-design="d"] .bk-dock { position: sticky; bottom: 0; z-index: 25; display: flex; flex-direction: column; gap: 7px; margin: 1rem -1rem 0; padding: 6px 1rem calc(12px + env(safe-area-inset-bottom)); background: var(--bk-bg2); border-top: 1px solid var(--bk-line); border-radius: 18px 18px 0 0; }
html[data-bk-design="d"] .bk-dock.is-relaxed { position: static; }
html[data-bk-design="d"] .bk-dock::before { content: ""; align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--bk-line2); }
html[data-bk-design="d"] .bk-dock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html[data-bk-design="d"] .bk-dock-name { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
html[data-bk-design="d"] .bk-dock .panel-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html[data-bk-design="d"] .bk-dock #duration-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; padding-top: 9px; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-body { align-items: center; justify-content: flex-end; min-height: 56px; padding: 0 2px 6px; border-width: 1.5px; text-align: center; background: transparent; }
html[data-bk-design="d"] .bk-dock #duration-list .choice input:checked + .choice-body { border-width: 2px; background: var(--bk-accent); color: var(--bk-ink-on-accent); }
html[data-bk-design="d"] .bk-dock #duration-list .choice input:checked + .choice-body .choice-price { color: var(--bk-ink-on-accent); font-weight: 700; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-head { flex-direction: column; align-items: center; gap: 0; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-title { font-size: .875rem; font-weight: 700; white-space: nowrap; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-title[data-bk-short] { font-size: 0; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-title[data-bk-short]::before { content: attr(data-bk-short); font-size: .875rem; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-badge-inline { font-size: .75rem; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-price { font-size: .85rem; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-body::after { display: none; }
html[data-bk-design="d"] .bk-dock .panel-actions { position: static; margin: 0; padding: 4px 0 0; border: 0; background: transparent; box-shadow: none; }
html[data-bk-design="d"] .bk-dock .panel-actions .btn-primary { flex: 1 1 auto; }
/* แผงล่างเป็นสมาชิกท้ายสุดของขั้น (sticky) จึงไม่ต้องเผื่อที่ให้แถบปุ่มลอย — ต้องใส่ .booking-page ให้ความจำเพาะเท่ากับกฎเผื่อที่ด้านบน (ตัวหลังชนะ) */
html[data-bk-design="d"] .booking-page [data-panel="1"]:has(.bk-dock) { padding-bottom: 0; }

/* --- ดีไซน์ G : สปอร์ตเฉียง (แถวรูปตัดเฉียง แถวที่เลือกขยายโชว์ระยะเวลา) --- */
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) { grid-template-columns: 1fr; gap: 5px; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: repeat(3, auto); column-gap: 12px; row-gap: 0; align-content: center; align-items: center; min-height: 40px; padding: 4px 12px; border: 1.5px solid var(--bk-line); border-radius: 6px; background: var(--bk-surface); overflow: hidden; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body:has(.choice-thumb) { padding: 4px 124px 4px 12px; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body::before { content: ""; grid-column: 1; grid-row: 1 / -1; width: 22px; height: 22px; border: 2px solid var(--bk-line2); border-radius: 50%; box-sizing: border-box; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-title { grid-column: 2; grid-row: 1; font-size: .97rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-badge { position: static; grid-column: 2; grid-row: 2; justify-self: start; margin: 2px 0; border-radius: 3px; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .bk-from { grid-column: 2; grid-row: 3; font-size: .78rem; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-desc { display: none; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-thumb { position: absolute; top: 0; right: 0; bottom: 0; width: 112px; height: 100%; margin: 0; border-radius: 0; clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%); }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body { min-height: 54px; background: var(--bk-accent); border-color: var(--bk-accent); border-width: 2px; color: var(--bk-ink-on-accent); box-shadow: none; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked):has(+ .bk-extra) > .choice-body { border-radius: 6px 6px 0 0; border-bottom-width: 0; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body::before { background: var(--bk-ink-on-accent); border-color: var(--bk-ink-on-accent); }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body::after { top: 50%; right: auto; left: 12px; width: 22px; height: 22px; margin-top: -11px; background: none; color: var(--bk-accent); box-shadow: none; font-size: .85rem; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body > .choice-badge { background: var(--bk-ink-on-accent); color: var(--bk-accent); }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice:has(input:checked) > .choice-body > .bk-from { color: inherit; }
html[data-bk-design="g"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .bk-extra { margin-top: -5px; padding: 2px 12px 12px; border: 2px solid var(--bk-accent); border-top: 0; border-radius: 0 0 6px 6px; background: var(--bk-accent); color: var(--bk-ink-on-accent); }
html[data-bk-design="g"] .bk-extra .panel-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html[data-bk-design="g"] .bk-extra #duration-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
html[data-bk-design="g"] .bk-extra #duration-list .choice-body { min-height: 48px; padding: 9px 8px 6px; border: 1.5px solid var(--bk-ink-on-accent); border-radius: 4px; background: transparent; color: var(--bk-ink-on-accent); align-items: flex-start; box-shadow: none; }
html[data-bk-design="g"] .bk-extra #duration-list .choice input:checked + .choice-body { border-width: 2px; background: var(--bk-ink-on-accent); color: var(--bk-accent); }
html[data-bk-design="g"] .bk-extra #duration-list .choice-head { flex-direction: column; align-items: flex-start; gap: 0; }
html[data-bk-design="g"] .bk-extra #duration-list .choice-title { font-size: .92rem; font-weight: 700; }
html[data-bk-design="g"] .bk-extra #duration-list .choice-price, html[data-bk-design="g"] .bk-extra #duration-list .choice input:checked + .choice-body .choice-price { color: inherit; font-size: .84rem; font-weight: 400; }
html[data-bk-design="g"] .bk-extra #duration-list .choice input:checked + .choice-body .choice-price { font-weight: 700; }
html[data-bk-design="g"] .bk-extra #duration-list .choice-badge-inline { background: var(--bk-ink-on-accent); color: var(--bk-accent); }
html[data-bk-design="g"] .bk-extra #duration-list .choice input:checked + .choice-body .choice-badge-inline { background: var(--bk-accent); color: var(--bk-ink-on-accent); outline: 2px solid var(--bk-ink-on-accent); }
html[data-bk-design="g"] .bk-extra #duration-list .choice-body::after { display: none; }
html[data-bk-design="g"] .bk-extra #duration-list .choice input:focus-visible + .choice-body { outline: 3px solid var(--bk-ink-on-accent); outline-offset: 2px; }

/* ปุ่ม "รายละเอียดบริการ" (A: ต่อท้ายการ์ดที่เลือก, G: ในแถวที่เลือก, D: ในแผงล่าง) */
html[data-bk-design] .bk-detail-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--bk-accent-text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left; }
html[data-bk-design="g"] .bk-extra .bk-detail-btn { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html[data-bk-design] .bk-detail-btn:focus-visible { outline: 3px solid var(--bk-accent-text); outline-offset: 2px; border-radius: 4px; }
html[data-bk-design="g"] .bk-extra .bk-detail-btn:focus-visible { outline-color: var(--bk-ink-on-accent); }
html[data-bk-design] .bk-extra { display: flex; flex-direction: column; }
html[data-bk-design="a"] .bk-extra { flex-direction: row; }

/* ชื่อ-ราคาในรายการ "บริการเสริม" และชิ้นส่วนอื่นของขั้น 1 รับสี/มุมตามธีมผ่านตัวแปรอยู่แล้ว */
html[data-bk-design]:not([data-bk-design="orig"]) .addons-card > summary { min-height: 44px; }

/* เป้ากดขั้นต่ำ 44px (AC-L10) : ไอคอน "?" คำอธิบายและปุ่ม "ดูเพิ่มเติม" ของเดิมเล็กกว่า 44px — ขยายพื้นที่กดโดยใช้ margin ติดลบให้ตำแหน่งในหน้าเท่าเดิม */
html[data-bk-design]:not([data-bk-design="orig"]) .tip > summary { width: 44px; height: 44px; margin: -7px; }
html[data-bk-design]:not([data-bk-design="orig"]) .desc-more { min-height: 44px; padding: .6rem 0; }

/* ตัวหนังสือบนรูปในไทล์ดีไซน์ D : เงาบางช่วยตอนรูปสว่างมาก (เฉพาะไทล์ที่มีรูป ; ไทล์ไม่มีรูปใช้พื้นสีธีม) */
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body:has(.choice-thumb) > .choice-title,
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body:has(.choice-thumb) > .bk-from { text-shadow: 0 1px 3px rgb(0 0 0 / .6); }

/* ---------- 9) รอบแก้จาก QC ---------- */
/* ป้าย "แนะนำ" อยู่ในกรอบชิป (แถบบนของชิป) ไม่ซ้อนทับชื่อระยะเวลา : ชิปที่มีป้ายเพิ่มที่ว่างด้านบน ตัวหนังสือชิดล่างทุกชิปให้แถวเท่ากัน */
html[data-bk-design]:not([data-bk-design="orig"]) #duration-list .choice-badge-inline { top: 3px; right: 3px; left: auto; max-width: calc(100% - 6px); outline: none; }
html[data-bk-design="a"] #duration-list .choice-body:has(.choice-badge-inline) { padding-top: 24px; }
html[data-bk-design="d"] .bk-dock #duration-list .choice-body:has(.choice-badge-inline) { padding-top: 28px; }
html[data-bk-design="g"] .bk-extra #duration-list .choice-body:has(.choice-badge-inline) { padding-top: 24px; }
html[data-bk-design="g"] .bk-extra #duration-list .choice input:checked + .choice-body .choice-badge-inline { outline: none; }
/* ภาษาอังกฤษ ป้าย "Recommended" ยาวกว่า : ชิปกว้างพอให้ป้ายอยู่ในกรอบ (แถวขึ้นบรรทัดใหม่ได้) */
html[data-bk-design="d"][lang="en"] .bk-dock #duration-list,
html[data-bk-design="g"][lang="en"] .bk-extra #duration-list { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
/* ดีไซน์ D : ชื่อบริการยาวขึ้นบรรทัดใหม่ได้ไม่เกิน 2 บรรทัดแล้วตัดท้ายด้วย "…" (ชื่อเต็มอยู่ใน DOM) ไม่ตัดส่วนหัวทิ้ง */
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body > .choice-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
html[data-bk-design="d"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .choice > .choice-body { min-width: 0; }
/* ดีไซน์ D : แผงล่างเป็นท้ายสุดของขั้นและชิดขอบล่างจอแม้บริการน้อย (ขั้นสูงอย่างน้อยเท่าจอ) ; จอเตี้ยมาก (เช่นแป้นพิมพ์ขึ้น/แนวนอน) ปล่อยเป็นส่วนของหน้าเลื่อนถึงได้ ปุ่มไม่ถูกตัด */
html[data-bk-design="d"] .booking-page { padding-bottom: 0; }
html[data-bk-design="d"] .booking-page [data-panel="1"]:has(.bk-dock) { display: flex; flex-direction: column; min-height: calc(100vh - 5.4rem); min-height: calc(100dvh - 5.4rem); }
html[data-bk-design="d"] .bk-dock { margin-top: auto; }
@media (max-height: 460px) {
  html[data-bk-design="d"] .bk-dock { position: static; }
  html[data-bk-design="d"] .booking-page [data-panel="1"]:has(.bk-dock) { min-height: 0; }
}
/* ดีไซน์ G : ปุ่มโปร่ง (ย้อนกลับ/ปิด) ไม่ตัดมุม เพราะ clip-path ตัดเส้นขอบด้านที่ตัดจนขอบขาด — ปุ่มหลักยังตัดมุมตามแบบ */
html[data-bk-design="g"][data-bk-design="g"] .booking-flow-body .btn.btn-ghost, html[data-bk-design="g"][data-bk-design="g"] .bk-sheet .btn.btn-ghost { clip-path: none; }
/* แถบปุ่มล่างติดขอบ (มือถือ) ไม่บังรายการที่เลื่อนเข้าด้วยโฟกัสคีย์บอร์ด */
@media (max-width: 640px) { html[data-bk-design]:not([data-bk-design="orig"]) { scroll-padding-bottom: 9.5rem; } }
/* หัว "บริการอื่น" ของดีไซน์ A (สร้างโดย booking-look.js ต่อท้ายการ์ดที่เลือก) */
html[data-bk-design="a"] [data-panel="1"] > .choice-grid:not(.choice-grid-rows) > .bk-others-title { grid-column: 1 / -1; order: -1; margin: .9rem 0 0; font-size: 1.06rem; font-weight: 700; line-height: 1.3; color: var(--bk-ink); }
/* ลูกค้าล็อกอิน LINE : แถบชื่อผู้ใช้ใช้ margin-top ติดลบ (ชดเชย h1 ที่อยู่ในกระแส) แต่ D/G ซ่อน h1 แบบ sr-only จึงไม่มีอะไรให้ชดเชยและแถบถูกหัวหน้าบัง */
html[data-bk-design]:not([data-bk-design="orig"]) .line-login-status,
html[data-bk-design]:not([data-bk-design="orig"]) .line-login-hint { margin-top: .75rem; }
/* ปุ่มเวลาแสดงเวลาเริ่มบรรทัดเดียว (ไม่มีเวลาเสร็จใต้ปุ่มแล้ว) : คงเป้ากดสูงเท่าเดิมที่ ≥ 44px (เดิมสูงจากบรรทัดที่สอง) */
html[data-bk-design]:not([data-bk-design="orig"]) .booking-flow-body #time-slots .slot { min-height: 48px; }
/* ชิปที่เลือกอยู่ของ D พื้น accent : ป้ายสลับสี (ไม่กลืนกับพื้นชิป) */
html[data-bk-design="d"] .bk-dock #duration-list .choice input:checked + .choice-body .choice-badge-inline { background: var(--bk-ink-on-accent); color: var(--bk-accent); }

/* ---------- 8) ปุ่มเลือกหน้าตา + แผ่นเลือกหน้าตา + แผ่นรายละเอียดบริการ ----------
   html[data-bk-ui] ถูกตั้งโดย booking-look.js ตอนเริ่มทำงาน (ไม่มี JS = ปุ่มซ่อน แผ่นไม่เปิด)
   ดีไซน์เดิมที่ไม่รับธีมไม่มีตัวแปร --bk-* จึงแมปจากตัวแปรเดิมของระบบให้แผ่นใช้สีเดียวกับหน้า */
html[data-bk-ui]:not([data-bk-theme]) {
  --bk-bg2: var(--surface);
  --bk-surface: var(--surface);
  --bk-line: var(--sand-200);
  --bk-line2: var(--ink-400);
  --bk-ink: var(--ink-900);
  --bk-muted: var(--ink-600);
  --bk-accent: var(--brand-700);
  --bk-ink-on-accent: var(--white);
  --bk-accent-text: var(--brand-ink);
  --bk-accent-soft: var(--brand-100);
}
html[data-bk-ui] .bk-look-open { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--bk-line2); border-radius: 50%; background: transparent; color: var(--bk-ink); cursor: pointer; }
html[data-bk-ui] .bk-look-open:hover { background: var(--bk-accent-soft); }
html[data-bk-ui] .bk-look-open:focus-visible { outline: 3px solid var(--bk-accent-text); outline-offset: 2px; }
html[data-bk-ui] .bk-look-open svg { width: 22px; height: 22px; }
html[data-bk-design="a"] .bk-look-open, html[data-bk-design="d"] .bk-look-open { border-radius: 10px; }
html[data-bk-design="g"] .bk-look-open { border-radius: 4px; }
@media (max-width: 640px) { html[data-bk-ui] .bk-look-open { margin-left: 0; } }

html[data-bk-sheet] { overflow: hidden; }
html[data-bk-ui] .bk-sheet-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / .6); overscroll-behavior: contain; }
html[data-bk-ui] .bk-sheet { position: relative; display: flex; flex-direction: column; gap: .5rem; box-sizing: border-box; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--bk-line); border-radius: 18px 18px 0 0; background: var(--bk-bg2); color: var(--bk-ink); animation: bk-sheet-up .25s ease; }
html[data-bk-ui] .bk-sheet:focus { outline: none; }
html[data-bk-ui] .bk-sheet-handle { align-self: center; flex: none; width: 36px; height: 4px; border-radius: 2px; background: var(--bk-line2); }
html[data-bk-ui] .bk-sheet-title { margin: .6rem 0 0; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.01em; color: var(--bk-ink); }
html[data-bk-ui] .bk-sheet-sub { margin: 0 0 .25rem; font-size: .97rem; line-height: 1.5; color: var(--bk-muted); }
html[data-bk-ui] .bk-group { margin: 0; padding: 0; border: 0; min-width: 0; }
html[data-bk-ui] .bk-group > legend { padding: 0; margin: .9rem 0 .5rem; font-size: 1.06rem; font-weight: 700; color: var(--bk-ink); }
html[data-bk-ui] .bk-opts { display: grid; gap: 10px; }
html[data-bk-ui] .bk-opts-design { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-bk-ui] .bk-opts-theme { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
html[data-bk-ui] .bk-opts-mode { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-bk-ui] .bk-opt { position: relative; display: block; cursor: pointer; }
html[data-bk-ui] .bk-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
html[data-bk-ui] .bk-opt-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; box-sizing: border-box; min-height: 64px; height: 100%; padding: 10px 12px; border: 1.5px solid var(--bk-line2); border-radius: var(--bk-rc, 12px); background: transparent; color: var(--bk-ink); text-align: left; }
html[data-bk-ui] .bk-opt-body strong { font-size: .97rem; line-height: 1.3; }
html[data-bk-ui] .bk-opt-body small { font-size: .85rem; line-height: 1.35; color: var(--bk-muted); }
html[data-bk-ui] .bk-opts-theme .bk-opt-body { align-items: center; gap: 6px; min-height: 72px; padding: 10px 4px; text-align: center; }
html[data-bk-ui] .bk-opts-mode .bk-opt-body { align-items: center; min-height: 52px; font-weight: 600; text-align: center; }
html[data-bk-ui] .bk-dot { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--dot-dark); border: 3px solid var(--dot-light); box-sizing: border-box; }
html[data-bk-ui] .bk-opt input:checked + .bk-opt-body { border-width: 2px; border-color: var(--bk-accent); background: var(--bk-accent-soft); }
html[data-bk-ui] .bk-opt input:focus-visible + .bk-opt-body { outline: 3px solid var(--bk-accent-text); outline-offset: 2px; }
html[data-bk-ui] .bk-sheet-note { margin: .6rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--bk-muted); }
html[data-bk-ui] .bk-sheet-status { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--bk-warn, var(--bk-muted)); }
html[data-bk-ui] .bk-reset-btn { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--bk-accent-text); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html[data-bk-ui] .bk-sheet .btn { min-height: 54px; }
html[data-bk-ui] .bk-sheet .btn-primary { background: var(--bk-accent); color: var(--bk-ink-on-accent); border-color: var(--bk-accent); }
html[data-bk-ui] .bk-sheet .btn-ghost { background: transparent; color: var(--bk-ink); border: 1px solid var(--bk-line2); }
html[data-bk-ui] .bk-sheet .btn:focus-visible { outline: 3px solid var(--bk-accent-text); outline-offset: 2px; }

/* แผ่นรายละเอียดบริการ */
html[data-bk-ui] .bk-detail-photo { position: relative; flex: none; height: 200px; margin: .6rem 0 0; border-radius: var(--bk-rc, 12px); overflow: hidden; background: var(--bk-accent-soft); }
html[data-bk-ui] .bk-detail-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-bk-ui] .bk-detail-name { margin: .6rem 0 0; font-size: 1.4rem; line-height: 1.3; color: var(--bk-ink); overflow-wrap: anywhere; }
html[data-bk-ui] .bk-detail-from { margin: 0; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--bk-accent-text); }
html[data-bk-ui] .bk-detail-desc { margin: .25rem 0 0; font-size: .95rem; line-height: 1.6; color: var(--bk-muted); overflow-wrap: anywhere; }
html[data-bk-ui] .bk-detail-facts { margin: .5rem 0 0; padding: 0; }
html[data-bk-ui] .bk-detail-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: .65rem 0; border-top: 1px solid var(--bk-line); }
html[data-bk-ui] .bk-detail-facts dt { font-size: .9rem; color: var(--bk-muted); }
html[data-bk-ui] .bk-detail-facts dd { margin: 0; font-size: .95rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--bk-ink); }
html[data-bk-ui] .bk-sheet-actions { display: flex; gap: .6rem; margin-top: .75rem; }
html[data-bk-ui] .bk-sheet-actions .btn-ghost { flex: 0 0 auto; min-width: 6.5rem; }
html[data-bk-ui] .bk-sheet-actions .btn-primary { flex: 1 1 0; }
@keyframes bk-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 641px) {
  html[data-bk-ui] .bk-sheet-overlay { align-items: center; padding: 1.5rem; }
  html[data-bk-ui] .bk-sheet { max-width: 520px; border: 1px solid var(--bk-line); border-radius: 18px; padding-bottom: 1.25rem; animation: none; }
  html[data-bk-ui] .bk-sheet-handle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-bk-ui] .bk-sheet { animation: none; }
  html[data-bk-design] .booking-flow-body .panel { animation: none; }
}
