/* Teapak.co Buy now (/book/, 1.4.0, docs/FEATURES-1.4.md change 5; assets/css/book.css, loaded on that page only).
   The v10 mockup's "Buy page" CSS (08-site-v10.html, "Buy page" to "v10: age next to name; baht guide", its phone and
   iPad breakpoints; 1.4.0 to 1.15.0 also its right-to-left rules, for Arabic), scoped under .book (page-book.php's
   #book-root), with left / right turned into logical properties; then what the live page adds: field errors, the date
   and plan pickers, the country code, methods not set up yet, the chosen slip, the sending progress, the honeypot and
   the loading placeholder. Colours are the site's tokens (site.css; one light theme since 1.16.0); the PromptPay card
   stays white for the scanner. */

.book{--bk-err:#C2362B;--bk-err-bg:#FDECEA;--bk-info-bg:#FFF5E3;--bk-info-ink:#6B4A12;--bk-share-ink:#A85A00}

/* ---------- head and stepper ---------- */
.book .buy-head>.wrap{padding-top:30px}
.book .buy-back{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--blue-d);text-decoration:none;padding-block:4px;padding-inline:6px 10px;margin-inline-start:-6px;border-radius:999px}
.book .buy-back svg{width:16px;height:16px}
.book .buy-back:hover{background:var(--blue-xl)}
.book .buy-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-top:10px}
.book .buy-top h1{font-size:clamp(28px,3.2vw,40px);font-weight:800;line-height:1.15;letter-spacing:-.03em}
#site[data-lang="th"] .book .buy-top h1{font-weight:700}
.book .buy-sec{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--mint-ink);background:var(--mint);padding-block:7px;padding-inline:10px 13px;border-radius:999px;white-space:nowrap}
.book .buy-sec svg{width:16px;height:16px}
/* 1.17.0 (21 Nov 2026): "Prefer to talk first? Book a consult" under the title (page-book.php, book.js talkHTML; also on
   the Done step, centred in its panel): a quiet line with the site's blue link, the steps unchanged */
.book .buy-talk{margin-top:10px;font-size:14.5px;line-height:1.5;color:var(--muted)} .book .buy-talk a{color:var(--blue-d);font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:nowrap} .book .bdone .buy-talk{margin-top:14px}
.book #buy-steps{margin-top:24px}
.book .stepper{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.book .st{display:flex;align-items:center;gap:10px;min-width:0}
.book .st:not(:last-child)::after{content:"";flex:1;height:2px;min-width:16px;margin-inline:4px 14px;border-radius:2px;background:var(--line-2)}
.book .st.is-done::after{background:var(--mint-ink)}
.book .st-dot{width:36px;height:36px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:14px;font-weight:700;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--muted);background:var(--panel)}
.book .st-dot svg{width:18px;height:18px;stroke-width:2.6}
.book .st.is-now .st-dot{background:var(--blue-fill);color:var(--on-blue);box-shadow:0 0 0 5px var(--blue-l)}
.book .st.is-done .st-dot{background:var(--mint);color:var(--mint-ink);box-shadow:none}
.book .st-l{font-size:14.5px;font-weight:600;line-height:1.25;white-space:nowrap;color:var(--muted)}
.book .st.is-now .st-l,.book .st.is-done .st-l{color:var(--fg)}
.book .st-mini{display:none}

/* ---------- body: steps beside the summary ---------- */
.book .buy-body{background:var(--bg);margin-top:28px;border-top:1px solid var(--line)}
.book .buy-body>.wrap{padding-block:28px 88px}
.book .buy-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:26px;align-items:start}
.book .buy-grid>*{min-width:0}
.book .buy-sum{position:sticky;top:20px;min-width:0}
body.admin-bar .book .buy-sum{top:52px}
.book .buy-main:focus{outline:none}

.book .bsec{background:var(--panel);border-radius:26px;border:1px solid var(--line);box-shadow:0 2px 10px rgba(11,27,58,.04);padding:24px 26px 26px;display:flex;flex-direction:column;gap:16px;min-width:0;scroll-margin-top:16px}
.book .bsec+.bsec,.book .bdone+.bsec{margin-top:16px}
.book .bsec-h{display:flex;gap:12px;align-items:center}
.book .bsec-i{width:38px;height:38px;border-radius:12px;flex:none;display:grid;place-items:center;background:var(--blue-xl);color:var(--blue-d)}
.book .bsec-i svg{width:19px;height:19px}
.book .bsec-h h2{font-size:19px;font-weight:700;line-height:1.25;letter-spacing:-.015em}
.book .bsec-h h2:focus{outline:none}
#site[data-lang="th"] .book .bsec-h h2{font-weight:600}
.book .bsec-h p{font-size:13.5px;color:var(--muted);line-height:1.4;margin-top:1px}
.book .bf{display:flex;flex-direction:column;gap:7px;min-width:0}
.book .bf-l{font-size:13.5px;font-weight:600;color:var(--fg);line-height:1.3;display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
.book .bf-l em{font-style:normal;font-weight:500;color:var(--muted)}
.book .bf-hint{font-size:12.5px;color:var(--muted);line-height:1.4}
.book .bf textarea{width:100%;border:0;outline:0;border-radius:14px;background:var(--tile);padding:13px 14px;font:inherit;font-size:15px;line-height:1.5;color:var(--fg);resize:vertical;box-shadow:inset 0 0 0 1.5px transparent;margin:0}
.book .bf textarea:focus{background:var(--panel);box-shadow:inset 0 0 0 1.5px var(--blue)}
.book .bf textarea::placeholder{color:var(--faint);opacity:1}
.book .brow{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.book .brow.b3{grid-template-columns:1.3fr 1fr 1fr}
.book .brow.b-age{grid-template-columns:minmax(0,1fr) 150px;align-items:end}
.book .inp .line-dot{width:22px;height:22px;border-radius:7px;background:var(--line-green);color:#fff;display:grid;place-items:center;flex:none}
.book .inp .line-dot svg{width:15px;height:15px}
.book .inp.age input{min-width:0;flex:1;-moz-appearance:textfield;appearance:textfield}
.book .inp.age input::-webkit-outer-spin-button,.book .inp.age input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.book .inp .suf{font-size:14px;color:var(--muted);flex:none}
/* the editable country code sits where the mockup's fixed "+66" did */
.book .inp input.cc{flex:none;width:4.4em;min-width:0;font-weight:600;font-size:15px;font-variant-numeric:tabular-nums;padding-block:13px;padding-inline:0 10px;border:0;border-inline-end:1px solid var(--line-2);border-radius:0;background:none;outline:none;color:var(--fg);margin:0}
.book .inp.is-ro{background:var(--bg);box-shadow:inset 0 0 0 1.5px var(--line)}
.book .inp.is-ro input{color:var(--muted)}

/* ---------- step 1: the trip ---------- */
.book .plan-row{display:flex;align-items:center;gap:14px;padding-block:10px;padding-inline:10px 14px;border-radius:18px;background:var(--tile)}
.book .pr-photo{position:relative;width:76px;height:76px;border-radius:14px;overflow:hidden;flex:none}
.book .pr-photo .photo{position:absolute;inset:0}
.book .pr-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.book .pr-t .bf-l{font-size:12px;color:var(--muted);font-weight:600}
.book .pr-t b{font-size:17px;font-weight:700;line-height:1.3}
.book .pr-t small{font-size:13px;color:var(--muted);line-height:1.4}
/* "Change": a native plan picker laid over the word, so phones get their own picker */
.book .pr-change{position:relative;margin-inline-start:auto;font-size:13.5px;font-weight:600;color:var(--blue-d);padding:6px 10px;border-radius:999px;white-space:nowrap;cursor:pointer;flex:none}
.book .pr-change:hover,.book .pr-change:focus-within{background:var(--blue-xl)}
.book .pr-change:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.book .pr-change select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px;border:0;margin:0;padding:0}
.book .lvlopts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.book .lvlopt{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:12px 14px;border-radius:16px;box-shadow:inset 0 0 0 1.5px var(--line-2);text-align:start;min-width:0;transition:box-shadow .15s,background .15s}
.book .lvlopt b{font-size:14px;font-weight:600;color:var(--muted)}
.book .lvlopt span{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap}
.book .lvlopt small{font-size:12px;color:var(--muted)}
.book .lvlopt[aria-checked="true"]{background:var(--blue-xl);box-shadow:inset 0 0 0 2px var(--blue)}
.book .lvlopt[aria-checked="true"] b{color:var(--blue-d)}
/* 1.16.1 (20 Nov 2026): each level's regular price crossed out under its price to pay, and the planning fee's pill of
   the chosen level under the three (site.css .fee-pill) */
.book .lvlopt .fee-was{font-size:12px;font-weight:500;color:var(--muted)}
.book .bk-fee{margin-top:10px}
/* the date box: the browser's own date input covers it (transparent), so a click or tap opens its picker */
.book .datebox{position:relative;display:flex;align-items:center;gap:12px;min-height:62px;padding:8px 14px;border-radius:14px;background:var(--tile);text-align:start;min-width:0;cursor:pointer;box-shadow:inset 0 0 0 1.5px transparent;transition:box-shadow .15s,background .15s}
.book .datebox>svg{width:20px;height:20px;color:var(--blue-d);flex:none}
.book .datebox .db-t{min-width:0}
.book .datebox b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.book .datebox.is-empty b{color:var(--muted);font-weight:500}
.book .datebox small{display:block;font-size:12.5px;color:var(--muted)}
.book .datebox:focus-within{background:var(--panel);box-shadow:inset 0 0 0 1.5px var(--blue)}
.book .datebox input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;margin:0;padding:0;font-size:16px;color-scheme:light}
.book .datebox input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
.book .db-ch{margin-inline-start:auto;font-size:13px;font-weight:600;color:var(--blue-d);white-space:nowrap}
.book .paxbox{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:62px;padding:7px;border-radius:14px;background:var(--tile)}
.book .pax-b{width:48px;height:48px;border-radius:12px;background:var(--panel);color:var(--fg);display:grid;place-items:center;box-shadow:var(--shadow-xs)}
.book .pax-b svg{width:18px;height:18px;stroke-width:2.4}
.book .pax-b[aria-disabled="true"]{opacity:.4;box-shadow:none;cursor:default}
.book .pax-v{font-size:15px;color:var(--muted)}
.book .pax-v b{font-size:20px;color:var(--fg);font-weight:800;font-variant-numeric:tabular-nums}
.book .roomopts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.book .roomopt,.book .payopt,.book .mopt{text-align:start;border-radius:16px;box-shadow:inset 0 0 0 1.5px var(--line-2);transition:box-shadow .15s,background .15s,opacity .15s;min-width:0}
.book .roomopt{display:flex;gap:12px;align-items:flex-start;padding:14px 16px}
.book .roomopt b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.book .roomopt small{display:block;font-size:12.5px;color:var(--muted);line-height:1.45;margin-top:2px}
.book .ro-dot{width:20px;height:20px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 2px var(--line-2);background:var(--panel);margin-top:1px;transition:box-shadow .15s}
.book [aria-checked="true"]>.ro-dot,.book [aria-checked="true"] .ro-dot{box-shadow:inset 0 0 0 6px var(--blue-fill)}
.book .roomopt[aria-checked="true"],.book .payopt[aria-checked="true"],.book .mopt[aria-checked="true"]{background:var(--blue-xl);box-shadow:inset 0 0 0 2px var(--blue)}
.book .seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;border-radius:14px;background:var(--tile)}
.book .seg button{min-height:44px;border-radius:11px;font-size:13.5px;font-weight:600;color:var(--muted);padding:4px 8px;line-height:1.25;text-align:center}
.book .seg button[aria-checked="true"]{background:var(--panel);color:var(--fg);box-shadow:var(--shadow-xs)}

/* ---------- step 1: travellers ---------- */
.book .travs{display:flex;flex-direction:column}
.book .trav{display:flex;flex-direction:column;gap:14px;padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}
.book .trav:first-child{padding-top:0;margin-top:0;border-top:0}
.book .trav-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.book .trav-n{width:28px;height:28px;border-radius:50%;background:var(--fg);color:var(--page);display:grid;place-items:center;font-size:13px;font-weight:700;flex:none}
.book .trav-h h3{font-size:16px;font-weight:700}
.book .trav-me{margin-inline-start:auto;font-size:13.5px}
.book .bchips{display:flex;flex-wrap:wrap;gap:8px}
.book .bchip{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line-2);font-size:13.5px;font-weight:500;color:var(--fg);white-space:nowrap;transition:background .15s,color .15s}
.book .bchip svg{width:15px;height:15px;flex:none;stroke-width:2.4}
.book .bchip.is-act svg{stroke-width:2;width:16px;height:16px;color:var(--blue-d)}
.book .bchip[aria-pressed="true"]{background:var(--fg);color:var(--page);box-shadow:none}
.book .bchip.is-act[aria-pressed="true"] svg{color:var(--orange)}
.book .bf-other{margin-top:4px}
.book .priv{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;color:var(--mint-ink);background:var(--mint);padding-block:2px;padding-inline:6px 8px;border-radius:999px}
.book .priv svg{width:12px;height:12px;stroke-width:2.4}
.book .toggle-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 14px;border-radius:14px;background:var(--tile);font-size:14.5px;font-weight:500;text-align:start;line-height:1.3}
.book .tg{width:44px;height:26px;border-radius:999px;background:var(--line-2);position:relative;flex:none;transition:background .15s}
.book .tg i{position:absolute;inset-inline-start:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .15s}
.book .toggle-row[aria-checked="true"] .tg{background:var(--blue-fill)}
.book .toggle-row[aria-checked="true"] .tg i{transform:translateX(18px)}
.book .bnote{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;color:var(--muted);padding:12px 14px;border-radius:14px;background:var(--tile)}
.book .bnote svg{width:17px;height:17px;flex:none;color:var(--blue-d);margin-top:1px}
.book .bnote.is-info{background:var(--bk-info-bg);color:var(--bk-info-ink)}
.book .bnote.is-info svg{color:var(--orange-ink)}
.book .bnote.is-share{color:var(--bk-share-ink);font-weight:600}
.book .bnote.is-share svg{color:var(--orange-ink)}
.book .pdpa-wrap,.book .agree-wrap{display:flex;flex-direction:column;gap:6px}
.book .pdpa{display:flex;margin-top:16px;padding:16px 18px;background:var(--panel);border-radius:18px;border:1px solid var(--line);font-size:14px}
.book .ckbox a{color:var(--blue-d);font-weight:600;text-decoration:none}
.book .ckbox a:hover{text-decoration:underline}
.book .bactions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}
.book .bactions .btn-lg{min-height:56px;padding-inline:28px;font-size:15.5px}
.book .bactions .btn svg{width:18px;height:18px}
.book .bactions.done{justify-content:flex-start;flex-wrap:wrap}
.book .btn-line svg{width:20px;height:20px}
.book .btn[aria-disabled="true"]{opacity:.55;cursor:default;pointer-events:none}
.book .btn.is-busy{opacity:1;cursor:progress}

/* ---------- step 2: checkout ---------- */
.book .rv{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:6px 16px;align-items:baseline;padding:14px 0;border-top:1px solid var(--line);font-size:15px;line-height:1.5}
.book .rv:first-of-type{border-top:0;padding-top:2px}
.book .rv-k{font-size:13.5px;font-weight:600;color:var(--muted)}
.book .rv-v{min-width:0}
.book .rv-v small{font-size:13px;color:var(--muted)}
.book .rv-e{font-size:13.5px;font-weight:600;color:var(--blue-d);padding:2px 8px;border-radius:999px}
.book .rv-e:hover{background:var(--blue-xl)}
.book .payopts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.book .payopt{display:flex;flex-direction:column;gap:8px;padding:18px 18px 16px}
.book .po-top{display:flex;align-items:center;gap:10px}
.book .po-top b{font-size:16px;font-weight:700}
.book .po-amt{font-size:27px;font-weight:800;letter-spacing:-.025em;font-variant-numeric:tabular-nums;line-height:1.15}
.book .po-amt small{font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0}
.book .po-rest{font-size:13px;color:var(--muted);line-height:1.45}
.book .po-rest:empty{display:none}
.book .pl{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:15.5px;line-height:1.4;padding:5px 0}
.book .pl>*:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.book .pl small{display:block;font-size:12.5px;color:var(--muted);font-weight:500}
.book .pl>span>small{display:inline}
.book .pl>span:first-child>b+small{display:block}
.book .pl.sub{font-size:14px;color:var(--muted);padding-inline-start:14px}
.book .pl.sub small{display:inline}
.book .pl.guide>span:last-child{font-size:13px;color:var(--muted)}
/* 1.16.1: the planning fee's discount line ("ส่วนลดค่าบริการวางแผน [ทริปนำร่อง 15 ทริปแรก] −3,500 บาท × 2 … −7,000
   บาท"), its amount in the pill's ink */
.book .pl.is-disc>span:last-child{color:var(--fee-pill-ink);font-weight:700}
.book .pl.is-disc .fee-pill{margin-inline-start:2px}
.book .bp{font-size:14.5px;line-height:1.55}
.book .ctable{border-radius:14px;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden;margin:0}
.book .ctable>div{display:grid;grid-template-columns:200px minmax(0,1fr);gap:12px;padding:11px 16px;border-top:1px solid var(--line);font-size:14px}
.book .ctable>div:first-child{border-top:0}
.book .ctable dt{font-weight:600}
.book .ctable dd{color:var(--orange-ink);font-weight:500;margin:0}

/* ---------- step 3: payment ---------- */
.book .duebar{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;padding:16px 20px;border-radius:18px;background:var(--fg);color:var(--page)}
.book .duebar small{display:block;font-size:12.5px;opacity:.72;line-height:1.3}
.book .duebar b{font-size:28px;font-weight:800;letter-spacing:-.025em;font-variant-numeric:tabular-nums;line-height:1.2}
.book .duebar .due-g{margin-top:2px}
.book .due-of{font-size:13.5px;opacity:.8}
.book .mopts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.book .mopt{position:relative;display:flex;flex-direction:column;gap:3px;padding:16px}
.book .mo-i{width:42px;height:42px;border-radius:12px;background:var(--tile);color:var(--blue-d);display:grid;place-items:center;margin-bottom:8px}
.book .mo-i svg{width:21px;height:21px}
.book .mopt[aria-checked="true"] .mo-i{background:var(--panel)}
.book .mopt b{font-size:15px;font-weight:700;line-height:1.3}
.book .mopt small{font-size:12.5px;color:var(--muted)}
.book .mopt .ro-dot{position:absolute;top:16px;inset-inline-end:16px}
/* a method that is not available: card (no provider in 1.4.0) and, before any is set up, bank transfer and PromptPay */
.book .mopt.is-off{opacity:.62;cursor:default;box-shadow:inset 0 0 0 1.5px var(--line-2);background:repeating-linear-gradient(135deg,transparent 0 10px,var(--tile) 10px 20px)}
.book .mopt.is-off .ro-dot{display:none}
.book .mopt.is-off small{font-weight:600;color:var(--orange-ink)}
.book .mpanel{display:flex;flex-direction:column;gap:14px;border-top:1px solid var(--line);margin-top:2px;padding-top:20px}
.book .ppwrap{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:center}
.book .ppcard{background:#fff;color:#0B1B3A;border-radius:20px;box-shadow:var(--shadow-s);border:1px solid #E3E9F2;overflow:hidden;text-align:center;padding-bottom:16px;position:relative}
.book .pp-top{background:#0E3D6B;color:#fff;padding:10px 12px;display:flex;flex-direction:column;gap:1px}
.book .pp-logo{font-family:var(--font-en);font-weight:800;font-size:16px;letter-spacing:.01em}
.book .pp-tt{font-size:11px;opacity:.8;letter-spacing:.06em}
.book .qr{display:block;width:196px;height:196px;margin:14px auto 4px}
.book .pp-amt{display:block;font-size:21px;font-weight:800;margin-top:6px;font-variant-numeric:tabular-nums}
.book .ppinfo{display:flex;flex-direction:column;gap:14px;align-items:flex-start;min-width:0}
.book .kv{width:100%;margin:0}
.book .kv>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:14.5px}
.book .kv>div:first-child{border-top:0}
.book .kv dt{color:var(--muted);font-size:13.5px;flex:0 1 auto;min-width:0}
.book .kv dd{display:flex;align-items:center;gap:10px;text-align:end;margin:0;flex:none;max-width:70%}
.book .kv dd b{font-variant-numeric:tabular-nums;white-space:nowrap}
.book .bankkv{padding:4px 18px;border-radius:16px;background:var(--tile)}
.book .cp{display:inline-flex;align-items:center;gap:5px;height:30px;padding-block:0;padding-inline:9px 11px;border-radius:999px;background:var(--blue-xl);color:var(--blue-d);font-size:12px;font-weight:600;flex:none;white-space:nowrap}
.book .cp svg{width:14px;height:14px}
.book .cp.is-done{background:var(--mint);color:var(--mint-ink)}
.book .slip{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:18px;border:1.5px dashed var(--line-2);position:relative}
.book .slip.has-file{border-style:solid;border-color:var(--mint-ink);background:var(--panel)}
.book .slip.is-err{border-color:var(--bk-err)}
.book .slip-i{width:46px;height:46px;border-radius:50%;flex:none;background:var(--blue-xl);color:var(--blue-d);display:grid;place-items:center}
.book .slip.has-file .slip-i{background:var(--mint);color:var(--mint-ink)}
.book .slip-i svg{width:21px;height:21px}
.book .slip-t{min-width:0}
.book .slip b{display:block;font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.book .slip small{display:block;font-size:12.5px;color:var(--muted)}
.book .slip .btn{margin-inline-start:auto}
.book .slip-x{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--muted)}
.book .slip-x:hover{background:var(--tile);color:var(--fg)}
.book .slip-x svg{width:16px;height:16px}
.book .bk-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);pointer-events:none}
.book .bk-progress{height:6px;border-radius:999px;background:var(--line-2);overflow:hidden;margin-top:-6px}
.book .bk-progress i{display:block;height:100%;width:0;background:var(--blue-fill);border-radius:inherit;transition:width .2s}

/* ---------- step 4: done ---------- */
.book .bdone{text-align:center;padding:36px 28px 32px;background:var(--panel);border-radius:26px;border:1px solid var(--line)}
.book .bd-check{width:76px;height:76px;border-radius:50%;margin:0 auto 18px;display:grid;place-items:center;background:var(--mint);color:var(--mint-ink);box-shadow:0 0 0 10px rgba(30,122,87,.08)}
.book .bd-check svg{width:38px;height:38px;stroke-width:2.6}
.book .bdone h2{font-size:clamp(24px,2.6vw,30px);font-weight:800;line-height:1.2;letter-spacing:-.025em;text-wrap:balance}
.book .bdone h2:focus{outline:none}
#site[data-lang="th"] .book .bdone h2{font-weight:700}
.book .bdone p{margin-top:10px;font-size:15px;color:var(--muted)}
.book .bdone p b{color:var(--fg)}
.book .bd-ref b{font-size:17px;letter-spacing:.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.book .nxs{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}
.book .nx{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:14px;padding-bottom:20px}
.book .nx:last-child{padding-bottom:0}
.book .nx:not(:last-child)::before{content:"";position:absolute;inset-inline-start:16px;top:36px;bottom:2px;width:2px;border-radius:2px;background:var(--line-2)}
.book .nx.is-done::before{background:var(--mint-ink)}
.book .nx-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 2px var(--line-2);background:var(--panel)}
.book .nx-dot svg{width:17px;height:17px;stroke-width:2.6}
.book .nx.is-done .nx-dot{background:var(--mint);color:var(--mint-ink);box-shadow:none}
.book .nx.is-now .nx-dot{box-shadow:inset 0 0 0 2px var(--blue);background:var(--blue-xl)}
.book .nx.is-now .nx-dot::after{content:"";width:12px;height:12px;border-radius:50%;background:var(--blue-fill)}
.book .nx b{display:block;font-size:15.5px;font-weight:600;line-height:1.35;padding-top:6px}
.book .nx p{font-size:13.5px;color:var(--muted);line-height:1.5;margin-top:2px}
.book .nx-now{display:inline-block;vertical-align:2px;margin-inline-start:6px;font-size:11px;font-weight:700;color:var(--on-blue);background:var(--blue-fill);padding:2px 8px;border-radius:999px}

/* ---------- summary card ---------- */
.book .sm-card{background:var(--panel);border-radius:26px;border:1px solid var(--line);box-shadow:var(--shadow-l);overflow:hidden}
.book .sm-photo{position:relative;height:168px}
.book .sm-photo .photo{position:absolute;inset:0}
.book .sm-photo .loc-pill{inset-inline-start:12px;inset-inline-end:auto;top:auto;bottom:12px;font-size:14px;padding-block:7px;padding-inline:10px 13px}
.book .sm-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:12px}
.book .sm-k{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
#site[data-lang="th"] .book .sm-k{letter-spacing:0;text-transform:none;font-size:13px}
.book .sm-body h3{font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.2;margin-top:-6px}
.book .sm-lv{display:inline-block;vertical-align:4px;font-size:12px;font-weight:700;letter-spacing:0;color:var(--blue-d);background:var(--blue-xl);padding:3px 9px;border-radius:999px}
.book .sm-facts{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.book .sm-facts li{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.35}
.book .sm-facts svg{width:17px;height:17px;color:var(--blue);flex:none}
.book .sm-lines{border-top:1px solid var(--line);padding-top:8px}
.book .sm-lines .pl.sub{padding-inline-start:0}
.book .sm-lines .pl:not(.sub){font-size:17px}
.book .pl:not(.sub)>span{font-weight:700}   /* 1.16.1: the Total line's two spans (step 2's price details and the summary card), bold as its <b>s were */
.book .sm-note{font-size:12.5px;color:var(--muted);line-height:1.5}
.book .sm-note.is-share{color:var(--bk-share-ink);font-weight:600}
.book .sm-pay{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:16px;background:var(--fg);color:var(--page)}
.book .sm-pay span{font-size:14px;font-weight:600;line-height:1.3}
.book .sm-pay small{display:block;font-size:12px;opacity:.72;font-weight:500}
.book .sm-pay b{font-size:23px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.book .sm-pay.is-paid{background:var(--mint);color:var(--mint-ink)}
.book .sm-bal{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px;padding:0 4px}
.book .sm-bal small{display:block;font-size:12px;color:var(--muted)}
.book .sm-bal b{font-variant-numeric:tabular-nums;white-space:nowrap}
.book .sm-help{margin-top:12px;display:flex;align-items:center;justify-content:center;gap:9px;padding:13px;border-radius:16px;background:var(--panel);border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--fg);text-decoration:none}
.book .sm-help svg{width:20px;height:20px;color:var(--line-green)}
.book .sm-secure{margin-top:10px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12.5px;color:var(--muted)}
.book .sm-secure svg{width:14px;height:14px}

/* ---------- live page additions: errors, honeypot, loading, no JavaScript ---------- */
.book .bk-err{font-size:13px;font-weight:600;color:var(--bk-err);line-height:1.4;margin:0}
.book .bf.is-err .inp,.book .bf.is-err textarea,.book .bf.is-err .datebox{box-shadow:inset 0 0 0 1.5px var(--bk-err);background:var(--bk-err-bg)}
.book .bf.is-err .bchip:not([aria-pressed="true"]){box-shadow:inset 0 0 0 1.5px var(--bk-err)}
.book .pdpa-wrap.is-err .pdpa{border-color:var(--bk-err);background:var(--bk-err-bg)}
.book .pdpa-wrap .bk-err{padding-inline:18px}
.book .agree-wrap.is-err .ckbox{color:var(--bk-err)}
.book .bk-errsum{margin-top:16px;padding:12px 16px;border-radius:14px;background:var(--bk-err-bg);color:var(--bk-err);font-size:14px;font-weight:600;line-height:1.45}
.book .bk-hp{position:absolute;inset-inline-start:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.book .bk-loading{display:flex;flex-direction:column;gap:16px}
.book .bk-skel{display:block;height:180px;border-radius:26px;background:var(--panel);border:1px solid var(--line)}
.book .bk-skel+.bk-skel{height:240px}
.book .bk-nojs{gap:14px;align-items:flex-start}

/* ---------- widths (the mockup's breakpoints) ---------- */
@media (max-width:1180px){
  .book .buy-grid{grid-template-columns:minmax(0,1fr) 330px}
  .book .st-l{font-size:13.5px}
  .book .st:not(:last-child)::after{margin-inline:2px 10px}
}
@media (max-width:1024px){
  .book .buy-grid{grid-template-columns:1fr}
  .book .buy-sum{position:static;order:-1}
  .book .sm-card{display:grid;grid-template-columns:240px minmax(0,1fr)}
  .book .sm-photo{height:auto;min-height:100%}
  .book .sm-body{gap:10px}
  .book .sm-help,.book .sm-secure{display:none}
}
@media (max-width:900px){
  .book .st-l{display:none}
  .book .st.is-now .st-l{display:block}
  .book .stepper{grid-template-columns:auto auto auto auto;justify-content:start}
  .book .st:not(:last-child)::after{width:36px;flex:none}
  .book .ppwrap{grid-template-columns:220px minmax(0,1fr);gap:18px}
  .book .qr{width:172px;height:172px}
}
@media (max-width:720px){
  .book .buy-head>.wrap{padding-top:18px}
  .book .buy-top{margin-top:6px}
  .book .buy-top h1{font-size:26px}
  .book .buy-sec{display:none}
  .book #buy-steps{margin-top:14px}
  .book .stepper{display:none}
  .book .st-mini{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:4px 10px}
  .book .st-mini-k{font-size:12.5px;font-weight:600;color:var(--muted)}
  .book .st-mini b{font-size:15px;font-weight:700}
  .book .st-bar{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:6px}
  .book .st-bar i{height:5px;border-radius:999px;background:var(--line-2)}
  .book .st-bar i.on{background:var(--blue-fill)}
  .book .buy-body{margin-top:18px}
  .book .buy-body>.wrap{padding-block:16px 56px}
  .book .buy-grid{gap:14px}
  .book .sm-card{grid-template-columns:104px minmax(0,1fr);border-radius:22px;box-shadow:var(--shadow-s)}
  .book .sm-photo .loc-pill,.book .sm-k,.book .sm-note,.book .sm-facts li:last-child{display:none}
  .book .sm-body{padding:14px;gap:8px}
  .book .sm-body h3{font-size:18px;margin-top:0}
  .book .sm-facts li{font-size:13px}
  .book .sm-lines{padding-top:4px}
  .book .sm-lines .pl.sub{display:none}
  .book .sm-lines .pl.sub.is-disc{display:flex}   /* 1.16.1: phones keep the discount line over the total */
  .book .sm-lines .pl.guide{display:flex}
  .book .sm-lines .pl:not(.sub){font-size:15px;padding:2px 0}
  .book .sm-pay{grid-column:1/-1;padding:11px 14px;border-radius:14px}
  .book .sm-pay b{font-size:19px}
  .book .sm-bal{grid-column:1/-1}
  .book .bsec{padding:18px 16px 20px;border-radius:22px;gap:14px}
  .book .bsec-h h2{font-size:17.5px}
  .book .bsec-i{width:34px;height:34px;border-radius:11px}
  .book .brow,.book .brow.b3,.book .roomopts,.book .payopts{grid-template-columns:1fr}
  .book .brow.b-age{grid-template-columns:minmax(0,1fr) 120px}
  .book .lvlopts{gap:8px}
  .book .lvlopt{padding:10px}
  .book .lvlopt span{font-size:14px}
  .book .plan-row{gap:12px}
  .book .pr-photo{width:60px;height:60px}
  .book .pr-t small{display:none}
  .book .pr-t b{font-size:15.5px}
  .book .mopts{grid-template-columns:1fr;gap:8px}
  .book .mopt{flex-direction:row;align-items:center;gap:12px;padding:12px 14px}
  .book .mopt .mo-i{margin:0;width:40px;height:40px}
  .book .mopt b{flex:1}
  .book .mopt small{margin-inline-end:30px}
  .book .mopt.is-off small{margin-inline-end:0}
  .book .mopt .ro-dot{top:50%;margin-top:-10px;inset-inline-end:14px}
  .book .ppwrap{grid-template-columns:1fr;justify-items:center}
  .book .ppcard{width:min(260px,100%)}
  .book .ppinfo{width:100%}
  .book .slip{flex-wrap:wrap}
  .book .slip .btn{margin-inline-start:0;width:100%}
  .book .slip.has-file .slip-x{position:absolute;top:10px;inset-inline-end:10px}
  .book .rv{grid-template-columns:minmax(0,1fr) auto}
  .book .rv-k{grid-column:1/-1}
  .book .rv-v{grid-column:1}
  .book .ctable>div{grid-template-columns:1fr;gap:2px}
  .book .duebar b{font-size:24px}
  .book .bactions{flex-direction:column-reverse;align-items:stretch}
  .book .bactions>span:empty{display:none}
  .book .bactions .btn-lg{width:100%}
  .book .bactions.done{flex-direction:column}
  .book .bdone{padding:28px 18px 24px}
  .book .pl.sub{padding-inline-start:0}
  .book .kv>div{font-size:14px}
  .book .kv dd{gap:8px}
  .book .kv .cp{padding-inline:10px}
  .book .bk-skel{height:140px}
}
@media (max-width:380px){ .book .lvlopt span{font-size:13px} .book .lvlopt b{font-size:12.5px} }

@media (prefers-reduced-motion:reduce){
  .book .lvlopt,.book .roomopt,.book .payopt,.book .mopt,.book .bchip,.book .tg,.book .tg i,.book .ro-dot,.book .bk-progress i{transition:none}
}
@media (forced-colors:active){
  .book [role="radio"][aria-checked="true"],.book .bchip[aria-pressed="true"]{outline:2px solid CanvasText;outline-offset:-2px}
  .book .mopt.is-off{opacity:1;border:1px dashed GrayText}
  .book .fee-pill{border:1px solid CanvasText}   /* 1.16.1: the checkout's fee pills without their yellow (as site.css) */
}
