/* VAYGO /esim — same light commerce surface as /hotel (tokens copied from
   hotel.css, not shared, so the two pages can evolve independently). */
:root {
  --brand: #b5ee8b; --brand-dark: #8fd966; --brand-ink: #1b2d10; --brand-deep: #3f7a1f; --brand-soft: #f1fbe8;
  --bg: #f6f7f8; --surface: #fff; --surface-2: #f8f9fa; --line: #ebedf0; --line-2: #e0e3e7;
  --ink: #16181d; --ink-soft: #6b7280; --ink-faint: #9ca3af; --warn: #c2410c;
  --r-md: 14px; --shadow-sm: 0 1px 2px rgba(16,24,40,.05); --shadow-up: 0 -2px 16px rgba(16,24,40,.08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body.es { margin: 0; font-family: "Noto Sans Thai", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
body.es-has-bar { padding-bottom: 84px; }
.es main { max-width: 760px; margin: 0 auto; }
.es a { color: inherit; }
.es h1, .es h2, .es h3, .es p { margin: 0; }
button { font: inherit; cursor: pointer; }
/* `hidden` must win over any display rule below (e.g. .ck-rows > div). */
.es [hidden] { display: none !important; }

/* top bar */
.es-top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 10px 16px; max-width: 100%; }
.es-logo { font-weight: 800; letter-spacing: .5px; font-size: 18px; text-decoration: none; }
.es-logo b { color: var(--brand-deep); }
.es-logo span { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-inline-start: 2px; }
/* Arabic (dir=rtl): menus open from the other edge, the back chevron points the other way,
   prices/numbers keep left-to-right digits. */
[dir="rtl"] .es-dd { right: auto; left: 0; }
[dir="rtl"] .es-back { transform: scaleX(-1); }
[dir="rtl"] .ck-toggle::after { left: auto; right: 3px; }
[dir="rtl"] .ck-toggle.on::after { left: auto; right: 21px; }
[dir="rtl"] .es-thb, [dir="rtl"] .es-plan-r s, [dir="rtl"] .es-fx, [dir="rtl"] #ck-total { unicode-bidi: isolate; direction: ltr; }
.es-sp { flex: 1; }
.es-back { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; text-decoration: none; }
.es-menu { position: relative; }
.es-menu > summary { list-style: none; }
.es-menu > summary::-webkit-details-marker { display: none; }
.es-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); cursor: pointer; }
.es-dd { position: absolute; right: 0; top: 42px; width: 240px; max-width: calc(100vw - 32px); max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(16,24,40,.14); padding: 8px; z-index: 40; }
.es-dd-t { font-size: 12px; color: var(--ink-soft); padding: 4px 8px 6px; }
.es-opt { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; border-radius: 10px; text-decoration: none; font-size: 14px; background: none; border: 0; width: 100%; text-align: left; color: var(--ink); }
.es-opt:hover { background: var(--surface-2); }
.es-opt.on { font-weight: 700; color: var(--brand-deep); }
.es-opt:not(.on) > span:last-child { visibility: hidden; }
.es-note { font-size: 12px; color: var(--ink-soft); line-height: 1.5; padding: 6px 8px 2px; }
.es-pad { padding: 10px 16px 0; }

/* hero + search */
.es-hero { padding: 26px 16px 20px; background: linear-gradient(160deg, #f1fbe8 0%, #fff 75%); }
.es-hero h1 { font-size: 26px; line-height: 1.25; }
.es-hero p { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.es-search { margin-top: 16px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 4px 14px; box-shadow: var(--shadow-sm); }
.es-search input { flex: 1; border: 0; outline: 0; font-size: 16px; padding: 10px 0; background: transparent; min-width: 0; }

/* sections */
.es-sec { padding: 18px 16px 4px; }
.es-sec h2 { font-size: 17px; margin-bottom: 10px; }
.es-reg { margin-bottom: 16px; }
.es-reg h3 { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .4px; }
.es-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .es-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.es-cc { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 11px; text-decoration: none; box-shadow: var(--shadow-sm); min-height: 56px; }
.es-cc:hover { border-color: var(--brand-dark); }
.es-cc b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.es-cc small { font-size: 12px; color: var(--ink-soft); }
.es-flag { border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; flex: none; background: var(--surface-2); }
.es-empty { color: var(--ink-soft); font-size: 14px; padding: 8px 0; }
.es-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.es-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 8px; text-align: center; font-size: 12px; color: var(--ink-soft); }
.es-steps i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; margin: 0 auto 6px; font-weight: 700; }
.es-steps b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.es-faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.es-faq-i { border-bottom: 1px solid var(--line); }
.es-faq-i:last-child { border-bottom: 0; }
.es-faq-i summary { padding: 13px 14px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.es-faq-i summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; }
.es-faq-i[open] summary::after { content: "–"; }
.es-faq-i p { padding: 0 14px 14px; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }
.es-trust { display: flex; justify-content: space-around; padding: 18px 12px 8px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.es-trust b { display: block; font-size: 16px; color: var(--ink); }

/* country page */
.es-crumbs { font-size: 12px; color: var(--ink-soft); padding: 10px 16px 0; }
.es-crumbs a { color: var(--brand-deep); text-decoration: none; }
.es-chead { display: flex; gap: 12px; align-items: center; padding: 10px 16px 14px; }
.es-chead h1 { font-size: 22px; }
.es-chead p { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.es-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.es-chips::-webkit-scrollbar { display: none; }
.es-chip { white-space: nowrap; font-size: 13px; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-soft); min-height: 36px; }
.es-chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); font-weight: 600; }
.es-plans { padding: 0 16px; display: grid; gap: 10px; }
.es-plan { background: var(--surface); border-radius: var(--r-md); border: 1.5px solid var(--line); padding: 13px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; box-shadow: var(--shadow-sm); cursor: pointer; outline: none; }
.es-plan:focus-visible { box-shadow: 0 0 0 3px var(--brand-soft); }
.es-plan.sel { border-color: var(--brand-dark); box-shadow: 0 0 0 3px var(--brand-soft); }
.es-plan[hidden] { display: none; }
.es-plan-l h3 { font-size: 18px; font-weight: 700; line-height: 1.3; word-break: break-word; }
.es-plan-l p { font-size: 13px; color: var(--ink-soft); }
.es-plan-r { text-align: end; align-self: center; grid-row: 1; grid-column: 2; }
.es-plan-r s { display: block; font-size: 12px; color: var(--ink-faint); }
.es-plan-r b { font-size: 19px; display: block; }
.es-fx { display: block; font-size: 11.5px; color: var(--ink-soft); }
.es-plan-m { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.es-b { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.es-b.ok { background: var(--brand-soft); color: var(--brand-deep); border-color: #d9f3c4; }
.es-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-up); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; }
.es-bar-t { flex: 1; font-size: 12px; color: var(--ink-soft); min-width: 0; }
.es-bar-t span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-bar-t b { display: block; font-size: 18px; color: var(--ink); }
.es-cta { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 700; padding: 13px 22px; border-radius: 12px; font-size: 15px; border: 0; text-decoration: none; min-height: 48px; }
.es-cta:disabled { opacity: .45; cursor: default; }
.es-toast { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 50; max-width: 520px; margin: 0 auto; background: #1b2d10; color: #fff; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.es-404 { padding: 60px 16px; text-align: center; }
.es-404 h1 { font-size: 22px; margin-bottom: 8px; }
.es-404 p { color: var(--ink-soft); margin-bottom: 20px; }
.es-foot { text-align: center; padding: 26px 16px 34px; font-size: 12px; color: var(--ink-faint); }
.es-foot p { margin-top: 12px; }
.es-foot-chat { display: inline-block; padding: 11px 18px; border-radius: 12px; background: #1b2d10; color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 600; }

/* ---------- checkout + order result ---------- */
.ck { padding: 4px 0 8px; }
.ck-card { background: var(--surface); margin: 12px 16px 0; border-radius: var(--r-md); border: 1px solid var(--line); padding: 14px; }
.ck-card h2 { font-size: 15px; margin: 0 0 10px; }
.ck-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ck-sum { display: flex; gap: 12px; align-items: center; }
.ck-sum b { display: block; font-size: 15px; }
.ck-sum span { font-size: 12.5px; color: var(--ink-soft); }
.ck-f { display: block; margin-bottom: 10px; }
.ck-f span { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.ck-f input, .ck-in { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; font-size: 16px; background: var(--surface); font-family: inherit; }
.ck-f input:focus, .ck-in:focus-within { outline: 2px solid var(--brand); border-color: var(--brand-dark); }
.ck-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.ck-check input { width: 20px; height: 20px; accent-color: var(--brand-deep); flex: none; margin: 0; }
.ck-toggle { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; border: 0; flex: none; padding: 0; transition: .2s; }
.ck-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.ck-toggle.on { background: var(--brand-dark); }
.ck-toggle.on::after { left: 21px; }
.ck-mut { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.ck-mut b { color: var(--ink); }
.ck-mut.warn { color: var(--warn); }
.ck-amt { display: flex; gap: 8px; margin: 10px 0 6px; }
.ck-in { display: flex; align-items: center; gap: 6px; padding: 0 12px; flex: 1; }
.ck-in input { border: 0; outline: 0; font-size: 16px; padding: 11px 0; width: 100%; background: transparent; font-family: inherit; }
.ck-max { border: 1px solid var(--brand-dark); color: var(--brand-deep); background: var(--surface); border-radius: 10px; padding: 0 14px; font-weight: 600; min-height: 44px; }
.ck-lock { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.ck-lock a { margin-inline-start: auto; font-weight: 700; color: var(--brand-deep); white-space: nowrap; text-decoration: none; }
.ck-rows > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.ck-rows small { display: block; text-align: end; font-size: 11.5px; color: var(--ink-soft); font-weight: 400; }
.ck-neg { color: var(--brand-deep); }
.ck-tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px !important; font-size: 16px !important; }
.ck-cb { font-size: 12.5px !important; color: var(--brand-deep); }
.ck-note { font-size: 12px; color: var(--ink-soft); padding: 10px 16px 0; line-height: 1.6; margin: 0; }
.ck-alert { margin: 12px 16px 0; border-radius: 12px; padding: 11px 12px; font-size: 13px; line-height: 1.5; background: #fff4e5; color: #7a3a06; border: 1px solid #ffe2bf; }
.es-bar .ck-pay { width: 100%; }
.es-cta.ck-dark, .ck-dark { background: #1b2d10; color: #fff; }
.es-cta.ck-sec { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.ck-res { text-align: center; padding: 30px 18px 6px; }
.ck-ico { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 30px; font-weight: 700; background: #fff4e5; color: var(--warn); }
.ck-ico.ok { background: var(--brand); color: var(--brand-ink); }
.ck-ico.bad { background: #fde8e8; color: #b42318; }
.ck-res h1 { font-size: 20px; }
.ck-res p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }
.ck-ol { padding-inline-start: 18px; margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.ck-actions { display: grid; gap: 10px; padding: 16px; }
.ck-actions .es-cta { text-align: center; }
.ck-link { text-align: center; font-size: 13px; color: var(--brand-deep); }

/* legal links (2026-11-19) */
.ck-note a, .es-foot p a { text-decoration: underline; }
