@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --ink: #142d43;
    --muted: #607386;
    --line: #dfe9f1;
    --paper: #f9fcff;
    --surface: #fff;
    --brand: #0074c8;
    --brand-dark: #005b9e;
    --brand-pale: #e8f5ff;
    --price: #f4511e; /* the app's deep orange: product prices */
    --accent: #009bff;
    --accent-pale: #eaf7ff;
    --warning-pale: #fff1e9;
    --shadow: 0 16px 44px rgba(20, 65, 105, .09);
    font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
    background: var(--paper);
    color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 76px; display: flex; align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 Manrope, sans-serif; letter-spacing: -.7px; }
.brand-logo { display: block; width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.brand .order { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; color: #50677b; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-toggle { border: 1px solid var(--line); color: var(--ink); background: white; border-radius: 999px; padding: 9px 13px; font-size: 12px; font-weight: 700; }
.button { border: 0; border-radius: 12px; padding: 13px 18px; background: var(--brand); color: white; font-size: 14px; line-height: 1.2; font-weight: 700; transition: .18s ease; }
.button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button.secondary { background: white; border: 1px solid var(--line); color: var(--ink); }
.button.secondary:hover { border-color: #b5cddd; background: #f5faff; }
.button.full { width: 100%; }
.button.large { padding: 16px 22px; border-radius: 14px; font-size: 15px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 11px; letter-spacing: .09em; font-weight: 800; text-transform: uppercase; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 7px 11px; background: var(--brand-pale); color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.pill.orange { background: var(--warning-pale); color: #9d4c26; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }

/* Catalog home */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; background: #edf8ff; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -150px; top: -240px; border: 1px solid rgba(0,155,255,.14); box-shadow: 0 0 0 38px rgba(0,155,255,.035), 0 0 0 78px rgba(0,155,255,.025); }
.hero::after { width: 210px; height: 210px; right: 11%; bottom: -165px; background: rgba(0,155,255,.13); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 64px; align-items: center; }
.hero h1 { max-width: 720px; margin: 18px 0; font: 800 clamp(40px, 5.7vw, 68px)/1.05 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -2.9px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-copy { max-width: 590px; margin: 0 0 28px; color: #506b80; font-size: 16px; line-height: 1.7; }
.search-box { display: flex; align-items: center; gap: 10px; max-width: 670px; border: 1px solid #d6e6f1; border-radius: 16px; background: white; padding: 8px 8px 8px 18px; box-shadow: 0 8px 28px rgba(0,116,200,.08); }
.search-icon { color: #71889b; font-size: 20px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; padding: 10px 2px; font-size: 14px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: #647d92; font-size: 11px; }
.hero-note strong { color: var(--brand); }
.hero-card { position: relative; border: 1px solid rgba(255,255,255,.88); border-radius: 24px; background: white; padding: 15px; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.hero-photo { height: 196px; overflow: hidden; border-radius: 16px; background: #dcecf8; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-copy { padding: 15px 5px 4px; }
.hero-card-copy h3 { margin: 8px 0 5px; font: 700 17px/1.3 Manrope, 'Noto Sans Thai', sans-serif; }
.hero-card-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.hero-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.hero-price strong { font: 800 19px Manrope, sans-serif; }
.hero-price span { color: var(--muted); font-size: 11px; }
.floating-star { position: absolute; top: 50px; left: -36px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: white; font-size: 23px; box-shadow: 0 9px 20px rgba(0,155,255,.25); transform: rotate(-12deg); }
.section { padding: 68px 0; }
.section.soft { background: #f1f7fc; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 8px 0 0; font: 800 31px/1.15 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -1px; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.text-link { color: var(--brand); font-size: 13px; font-weight: 800; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 23px; }
.filter-chip { border: 1px solid var(--line); border-radius: 99px; background: white; padding: 9px 13px; color: #526c80; font-size: 11px; font-weight: 700; }
.filter-chip.active, .filter-chip:hover { border-color: #aed7f4; background: var(--brand-pale); color: var(--brand-dark); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Product lists load 12 cards a page: four to a row on desktop, three rows a page. */
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; transition: .2s ease; }
.product-card:hover { border-color: #afd6f0; box-shadow: 0 12px 32px rgba(20,65,105,.08); transform: translateY(-3px); }
.product-card-media { position: relative; height: 208px; overflow: hidden; background: #e6f0f8; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-media .pill { position: absolute; left: 12px; top: 12px; }
.product-card-body { padding: 16px; }
.product-card h3 { margin: 9px 0 7px; font: 700 17px/1.35 Manrope, 'Noto Sans Thai', sans-serif; }
.product-card .location { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tag { border-radius: 7px; padding: 5px 8px; background: #f0f6fb; color: #586f83; font-size: 10px; font-weight: 600; }
.card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #eaf0f6; }
.card-bottom .price { font: 800 18px Manrope, sans-serif; }
.card-bottom .price small { color: var(--muted); font: 500 11px 'DM Sans', sans-serif; }
.card-bottom .availability { color: var(--brand); font-size: 10px; font-weight: 700; }
.demo-banner { display: flex; align-items: center; gap: 12px; border: 1px solid #c6e4f8; border-radius: 14px; padding: 13px 15px; background: #f1f9ff; color: #345e7d; font-size: 11px; line-height: 1.5; }
.demo-banner .icon { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dcf0ff; color: var(--brand-dark); font-weight: 900; }
.steps-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; background: white; }
.step-item { padding: 21px 19px; border-right: 1px solid var(--line); }
.step-item:last-child { border: 0; }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-pale); color: var(--brand); font-size: 12px; font-weight: 800; }
.step-item h3 { margin: 12px 0 6px; font: 700 14px Manrope, sans-serif; }
.step-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Product page */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0; color: var(--muted); font-size: 11px; }
.breadcrumb a:hover { color: var(--brand); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: 34px; align-items: start; }
.product-gallery { overflow: hidden; border-radius: 22px; background: #e6f0f8; }
.product-gallery img { display: block; width: 100%; height: min(44vw, 460px); min-height: 300px; object-fit: cover; }
.gallery-caption { display: flex; justify-content: space-between; padding: 12px 15px; background: #fff; color: var(--muted); font-size: 10px; }
.product-main h1 { margin: 12px 0 10px; font: 800 clamp(28px, 3.2vw, 39px)/1.15 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -1.3px; }
.product-subhead { margin: 0; color: #526c80; font-size: 14px; line-height: 1.65; }
.source-language { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; border-radius: 7px; padding: 7px 9px; background: #f0f6fb; color: #586f83; font-size: 10px; }
.product-facts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 20px 0; color: #526b80; font-size: 12px; }
.product-facts span { display: inline-flex; align-items: center; gap: 6px; }
.product-divider { height: 1px; margin: 24px 0; background: var(--line); }
.content-section h2 { margin: 0 0 12px; font: 800 19px Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -.4px; }
.content-section p, .content-section li { color: #526c80; font-size: 13px; line-height: 1.75; }
.content-section ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; }
.booking-card { position: sticky; top: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; padding: 21px; box-shadow: 0 10px 30px rgba(20,65,105,.06); }
.booking-price { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 2px; }
.booking-price strong { font: 800 27px Manrope, sans-serif; letter-spacing: -.8px; }
.booking-price span { color: var(--muted); font-size: 12px; }
.price-note { margin: 0; color: var(--muted); font-size: 10px; }
.field { display: grid; gap: 7px; margin-top: 16px; }
.field label { color: #3b5469; font-size: 11px; font-weight: 800; }
.field .optional { color: #7d8e9d; font-size: 10px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #dbe7f0; border-radius: 10px; outline: none; background: white; color: var(--ink); padding: 11px 12px; font-size: 13px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #75b7e4; box-shadow: 0 0 0 3px rgba(0,116,200,.09); }
.field textarea { min-height: 84px; resize: vertical; }
.qty-control { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.qty-control button { width: 31px; height: 31px; border: 0; border-radius: 8px; background: #edf7ff; color: var(--brand); font-size: 17px; font-weight: 700; }
.qty-control output { font-size: 13px; font-weight: 800; }
.availability-message { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0; color: #5d7488; font-size: 10px; line-height: 1.5; }
.availability-message .green-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 3px; border-radius: 50%; background: #54a576; }
.booking-total { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); color: #566f83; font-size: 11px; }
.booking-total strong { color: var(--ink); font-size: 13px; }
.booking-card .button { margin-top: 4px; }
.below-button { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 9px; }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; }
.highlight { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: white; }
.highlight strong { display: block; margin-bottom: 5px; font: 700 12px Manrope, sans-serif; }
.highlight span { color: var(--muted); font-size: 10px; line-height: 1.5; }

/* Checkout flow */
#flow-root[hidden] { display: none; }
.flow-shell { min-height: calc(100vh - 76px); padding: 28px 0 70px; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.flow-top h1 { margin: 0; font: 800 26px Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -.8px; }
.flow-progress { display: flex; align-items: center; gap: 6px; }
.flow-progress span { width: 42px; height: 4px; border-radius: 5px; background: #dfe9f1; }
.flow-progress span.done { background: var(--brand); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 26px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: white; padding: 24px; }
.panel h2 { margin: 0 0 7px; font: 800 19px Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -.5px; }
.panel-intro { margin: 0 0 21px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.panel-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 23px; }
.question-card { margin-top: 18px; padding-top: 17px; border-top: 1px solid #edf2f7; }
.question-card h3 { margin: 0; font: 700 13px Manrope, 'Noto Sans Thai', sans-serif; }
.question-card .question-index { margin-right: 7px; color: #91a2b2; font-size: 10px; }
.summary-card { border: 1px solid var(--line); border-radius: 18px; background: white; padding: 19px; }
.summary-card h2 { margin: 0 0 14px; font: 800 15px Manrope, 'Noto Sans Thai', sans-serif; }
.summary-product { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.summary-product img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.summary-product strong { display: block; font-size: 11px; line-height: 1.45; }
.summary-product span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; color: #536d82; font-size: 11px; }
.summary-line.total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 800; }
.info-card { border-radius: 12px; padding: 13px; background: #f0f7fc; color: #4e687e; font-size: 10px; line-height: 1.6; }
.checkout-summary-list { display: grid; gap: 11px; margin: 17px 0 4px; }
.checkout-summary-list > div { display: flex; justify-content: space-between; gap: 18px; font-size: 11px; }
.checkout-summary-list span { color: var(--muted); }
.checkout-summary-list strong { text-align: right; }
.demo-qr { position: relative; display: grid; place-items: center; width: 222px; height: 222px; margin: 23px auto 17px; border: 10px solid white; border-radius: 8px; background-color: #edf3f8; background-image: repeating-linear-gradient(45deg, #213649 0 4px, transparent 4px 9px), repeating-linear-gradient(-45deg, #213649 0 3px, transparent 3px 8px); box-shadow: 0 0 0 1px var(--line); }
.demo-qr::after { content: 'MOCK\A NOT PAYABLE'; white-space: pre; display: grid; place-items: center; width: 142px; height: 66px; border-radius: 8px; background: #fff; color: #984c2d; text-align: center; font: 900 14px/1.5 Manrope, sans-serif; letter-spacing: .04em; box-shadow: 0 3px 16px rgba(0,0,0,.16); }
.upload-box { display: grid; place-items: center; min-height: 90px; border: 1px dashed #b6cddd; border-radius: 12px; background: #f5faff; color: #566f83; padding: 15px; text-align: center; font-size: 11px; }
.upload-box input { max-width: 100%; margin-top: 8px; font-size: 10px; }
.status-list { display: grid; gap: 0; margin: 18px 0; }
.status-row { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; }
.status-row::before { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.status-row:last-child { padding-bottom: 0; }
.status-row:last-child::before { display: none; }
.status-check { z-index: 1; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--line); border-radius: 50%; background: white; color: #8fa2b3; font-size: 10px; }
.status-row.complete .status-check { border-color: var(--brand); background: var(--brand); color: white; }
.status-row strong { display: block; font-size: 12px; }
.status-row p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; border-radius: 10px; background: #173b58; color: white; padding: 11px 15px; font-size: 11px; transition: .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Accessible static storefront and mock checkout */
.content-card, .booking-panel { border: 1px solid var(--line); border-radius: 18px; background: white; padding: 23px; }
.product-title { padding: 23px 0 14px; }
.product-title h1 { margin: 11px 0 8px; font: 800 clamp(28px, 4vw, 39px)/1.15 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -1.1px; }
.product-subtitle { max-width: 720px; margin: 0; color: #506b80; font-size: 14px; line-height: 1.8; }
.source-language { margin: 10px 0 0; color: #7d8e9d; font-size: 10px; }
.content-card { margin-top: 17px; }
.content-card h2, .content-card h3 { margin: 0 0 10px; font: 800 18px/1.3 Manrope, 'Noto Sans Thai', sans-serif; }
.content-card h3 { font-size: 14px; }
.content-card p, .info-list { color: #566f83; font-size: 12px; line-height: 1.75; }
.content-card hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line); }
.info-list { padding-left: 20px; }
.info-list li + li { margin-top: 5px; }
.booking-panel { position: sticky; top: 18px; box-shadow: var(--shadow); }
.booking-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.booking-price { margin-top: 5px; font: 800 24px Manrope, sans-serif; }
.booking-price small { color: var(--muted); font: 500 11px 'DM Sans', sans-serif; }
.field-label { display: block; margin: 17px 0 7px; color: #304d65; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.field-control { width: 100%; min-height: 43px; border: 1px solid #d8e5ef; border-radius: 10px; padding: 10px 12px; background: white; color: var(--ink); font-size: 12px; }
.field-control:focus { outline: 3px solid rgba(0,155,255,.18); border-color: #62b2e9; }
textarea.field-control { resize: vertical; }
.quantity-control { display: flex; align-items: center; width: 145px; height: 40px; border: 1px solid #d8e5ef; border-radius: 10px; overflow: hidden; }
.quantity-control button { width: 42px; height: 100%; border: 0; background: #f0f8ff; color: var(--brand); font-size: 18px; }
.quantity-control input { width: 60px; border: 0; outline: 0; text-align: center; font-size: 13px; }
.price-summary { margin: 17px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; }
.price-summary strong { text-align: right; font-size: 11px; }
.price-summary .price-total { margin-top: 12px; font-size: 12px; }
.price-summary .price-total strong { font: 800 19px Manrope, sans-serif; }
.price-summary p { margin: 10px 0 0; line-height: 1.6; }
.center { text-align: center; }
.booking-panel .center { margin-bottom: 0; line-height: 1.55; }
.detail-faq { margin: 25px 0 17px; }
.detail-faq details { padding: 13px 0; border-top: 1px solid var(--line); color: #405e76; font-size: 12px; }
.detail-faq summary { cursor: pointer; font-weight: 700; }
.detail-faq details p { margin-bottom: 0; }
.product-demo { margin: 22px 0 48px; }
.required-label, .optional-label { display: inline-block; margin-left: 4px; color: #a14f2e; font-size: 9px; font-weight: 600; }
.optional-label { color: #647d92; }
.questions-preview { margin: 19px 0; padding: 13px; border-radius: 12px; background: #f2f8fd; }
.questions-preview summary { cursor: pointer; color: #2e4e67; font-size: 11px; font-weight: 800; }
.questions-preview > p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.questions-preview .field-label { margin-top: 14px; font-size: 10px; }
.questions-preview .field-control { background: white; }
.pickup-required { display: none; }
.questions-preview[data-pickup="true"] .pickup-required { display: inline-block; }
.back-link { display: block; margin-top: 14px; color: var(--brand); text-align: center; font-size: 11px; font-weight: 700; }
.order-actions { display: grid; gap: 9px; margin-top: 19px; }
.order-page { min-height: calc(100vh - 145px); padding-top: 32px; padding-bottom: 60px; }
.order-reference { margin: 17px 0; border-radius: 12px; padding: 13px 15px; background: var(--brand-pale); color: var(--brand-dark); font-size: 12px; }
.order-reference strong { display: block; margin-top: 4px; font: 800 17px Manrope, sans-serif; letter-spacing: .04em; }
.order-status-pill { display: inline-flex; border-radius: 99px; padding: 7px 11px; background: #fff0dd; color: #89551f; font-size: 10px; font-weight: 800; }
.app-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 23px 0; border-radius: 14px; padding: 17px; background: #f0f7fc; }
.app-cta h2 { margin: 0 0 5px; font: 800 15px Manrope, sans-serif; }
.app-cta p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.app-badges { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.app-badges a { border: 1px solid #d8e4ee; border-radius: 8px; padding: 8px 10px; background: white; color: var(--brand); font-size: 10px; font-weight: 800; text-align: center; }
.staging-expired { border-color: #edc7b8; background: #fff4ef; color: #934d32; }
[hidden], .hidden { display: none !important; }

@media (max-width: 720px) {
    .booking-panel { position: static; order: initial; padding: 18px; }
    .product-layout > .product-main { display: block; }
    .product-layout > .product-main .product-gallery { margin-inline: -16px; }
    .product-title { padding-top: 18px; }
    .product-title h1 { font-size: 27px; }
    .product-layout { gap: 14px; }
    .app-cta { align-items: start; flex-direction: column; }
    .app-badges { flex-direction: row; width: 100%; }
    .app-badges a { flex: 1; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0,1fr) 310px; gap: 30px; }
    .hero-card { padding: 12px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .product-layout { grid-template-columns: minmax(0,1fr) 320px; gap: 22px; }
    .flow-grid { grid-template-columns: minmax(0,1fr) 285px; gap: 16px; }
}
@media (max-width: 720px) {
    .container { width: min(100% - 32px, 560px); }
    .site-header { height: 64px; }
    .brand { font-size: 18px; }
    .brand-logo { width: 38px; height: 38px; }
    .nav-links { display: none; }
    .header-actions { gap: 7px; }
    .header-actions .button { display: none; }
    .hero { padding: 48px 0 42px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero h1 { max-width: 520px; font-size: clamp(39px, 11vw, 54px); letter-spacing: -2px; }
    .hero-copy { font-size: 14px; }
    .hero-card { display: none; }
    .search-box { border-radius: 13px; padding-left: 13px; }
    .search-box .button { padding: 12px 13px; }
    .section { padding: 48px 0; }
    .section-heading { align-items: start; }
    .section-heading h2 { font-size: 25px; }
    .section-heading .text-link { display: none; }
    .product-grid { grid-template-columns: 1fr; gap: 13px; }
    .product-card { display: grid; grid-template-columns: 116px minmax(0,1fr); border-radius: 14px; }
    .product-card-media { height: 100%; min-height: 168px; }
    .product-card-media .pill { left: 7px; top: 7px; padding: 5px 7px; font-size: 9px; }
    .product-card-body { min-width: 0; padding: 12px; }
    .product-card h3 { font-size: 14px; }
    .product-card .location { font-size: 10px; }
    .tag-row { display: none; }
    .card-bottom { margin-top: 12px; padding-top: 10px; }
    .card-bottom .price { font-size: 15px; }
    .card-bottom .availability { display: none; }
    .steps-strip { grid-template-columns: 1fr 1fr; }
    .step-item { padding: 16px; border-bottom: 1px solid var(--line); }
    .step-item:nth-child(2) { border-right: 0; }
    .step-item:nth-child(3), .step-item:nth-child(4) { border-bottom: 0; }
    .footer-inner { align-items: start; flex-direction: column; }
    .product-layout { grid-template-columns: 1fr; }
    .product-gallery { margin-inline: -16px; border-radius: 0; }
    .product-gallery img { height: 270px; min-height: 270px; }
    .gallery-caption { margin-top: -1px; }
    .product-main h1 { font-size: 28px; }
    .booking-card { position: static; order: -1; padding: 17px; }
    .product-layout > .product-main { display: contents; }
    .product-layout > .booking-card { grid-row: 2; }
    .product-layout > .product-main .product-gallery { grid-row: 1; }
    .product-layout > .product-main .product-copy { grid-row: 3; }
    .product-copy { grid-row: 3; }
    .product-divider { margin: 19px 0; }
    .highlight-grid { grid-template-columns: 1fr; }
    .flow-shell { min-height: calc(100vh - 64px); padding-top: 20px; }
    .flow-top { align-items: start; flex-direction: column; margin-bottom: 17px; }
    .flow-top h1 { font-size: 23px; }
    .flow-grid { grid-template-columns: 1fr; }
    .flow-grid .summary-card { order: -1; }
    .panel { padding: 19px; }
    .panel-actions .button { flex: 1; }
    .flow-progress span { width: 33px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 720px) {
    .product-layout > .product-main { display: block; }
    .product-layout > .product-main .product-gallery { margin-inline: -16px; }
    .product-layout > .booking-panel { grid-row: auto; }
}

.catalog-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }

/* Catalog structure preview and the dormant real-page renderer share the established brand. */
.catalog-structure .structured-main { padding-block: 34px 72px; }
.catalog-structure .structured-main > h1 { font: 800 clamp(29px, 4vw, 48px)/1.14 Manrope, 'Noto Sans Thai', sans-serif; margin: 22px 0; }
.catalog-structure .structured-main > nav, .catalog-structure .detail-hero + nav { margin: 20px 0; color: var(--muted); }
.catalog-structure .structured-main > nav a, .catalog-structure .structured-main > nav .tag { color: var(--brand-dark); }
.catalog-structure .structured-main > nav .tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; margin: 4px; }
.catalog-structure .detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 34px; padding: 22px 0; }
.catalog-structure .detail-hero img { max-height: 420px; object-fit: cover; }
.catalog-structure .detail-hero h1 { font: 800 clamp(26px, 3vw, 40px)/1.18 Manrope, 'Noto Sans Thai', sans-serif; }
.catalog-structure .detail-hero p { line-height: 1.75; }
.catalog-structure .package-picker { margin-top: 18px; }
.catalog-structure .package-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.catalog-structure .package-link { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; text-decoration: none; font: inherit; }
.catalog-structure .package-link small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.catalog-structure .package-link:hover, .catalog-structure .package-link:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0, 155, 255, .12); }
.catalog-structure .package-link.selected { border-color: var(--brand); background: #eff9ff; }
.catalog-structure .package-link span { font-size: 14px; line-height: 1.5; }
.catalog-structure .package-link strong { color: var(--brand-dark); }
.catalog-structure .product-description p { white-space: pre-line; }
.catalog-structure .addon-notice { padding: 10px 12px; border-radius: 10px; background: var(--warning-pale); color: #7f3b14; }
.catalog-structure .content-card p { font-size: 14px; }
.catalog-structure .content-card summary { cursor: pointer; font-size: 17px; font-weight: 700; }
.catalog-structure #product-selection .field-control { width: 100%; }
.catalog-structure #package-options { margin-top: 10px; }
.catalog-structure[data-catalog-mode="live"] #product-selection label[for="catalog-option"],
.catalog-structure[data-catalog-mode="live"] #catalog-option,
.catalog-structure[data-catalog-mode="staging-live"] #product-selection label[for="catalog-option"],
.catalog-structure[data-catalog-mode="staging-live"] #catalog-option { display: none; }
.catalog-structure .search-box { max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 32px; padding: 18px; }
.catalog-structure .search-box label { font-size: 13px; font-weight: 700; align-self: center; }
.catalog-structure .search-box .field-control { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.catalog-structure .search-box button { justify-self: start; }
.catalog-structure .product-grid { margin: 18px 0 28px; }
.catalog-structure .demo-banner { margin: 10px 0 22px; }
.catalog-structure .destinations { margin: 24px 0; }
.catalog-structure .destination-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.catalog-structure .destination-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #eff9ff; text-decoration: none; }
.catalog-structure .destination-card strong { color: var(--brand-dark); font-size: 20px; }
.catalog-structure .destination-card span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.catalog-structure .destination-card:hover, .catalog-structure .destination-card:focus-visible { border-color: var(--brand); }
.catalog-structure .destination-cities { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero-preview { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 15px; font-size: 12px; font-weight: 700; }
.hero-preview a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
    .catalog-structure .nav-links { display: flex; gap: 10px; font-size: 12px; }
    .catalog-structure .nav-links a:first-child { display: none; }
    .catalog-structure .detail-hero { grid-template-columns: 1fr; gap: 12px; }
    .catalog-structure .package-links { grid-template-columns: 1fr; }
    .catalog-structure .search-box { grid-template-columns: 1fr; }
}
.ticket-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin: 16px 0; }
.ticket-row label { font-weight: 650; font-size: 13px; flex: 1; }
.ticket-row small { display: block; font-weight: 400; color: var(--muted); margin-top: 5px; }
.ticket-row input { width: 74px; margin: 0; }
.catalog-structure #product-selection .ticket-row label { min-width: 0; margin: 0; }
.catalog-structure #product-selection .ticket-row input.field-control { width: 84px; flex: 0 0 84px; margin: 0; text-align: center; }
.guest-card { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.guest-card h3 { font-size: 13px; line-height: 1.6; margin: 0 0 10px; }
.answer-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.optional-label { color: var(--muted); font-weight: 400; }
.availability-message { font-size: 13px; padding: 12px; background: #fff5e8; border-radius: 10px; line-height: 1.6; }
.availability-message[data-status="available"] { background: #edf6ed; color: #295c39; }
.mock-controls { margin: 20px 0; padding: 14px; background: #f0f7fc; border-radius: 12px; font-size: 12px; }
.mock-controls summary { cursor: pointer; }
.related-section { margin: 42px 0 30px; }
.related-group + .related-group { margin-top: 30px; }
.related-group h2 { margin: 0 0 18px; font: 800 24px/1.3 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -.6px; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .related-group h2 { font-size: 21px; } }
.button:disabled { cursor: not-allowed; opacity: .5; }
.catalog-scroll-sentinel { height: 1px; }
.listing-feedback { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 64px; margin: 20px 0; padding: 16px; color: var(--muted); text-align: center; font-size: 14px; border-radius: 12px; background: var(--brand-pale); }
.listing-feedback[hidden] { display: none; }
.loading-spinner { width: 24px; height: 24px; flex: 0 0 24px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: listing-spin .8s linear infinite; }
.listing-feedback:not([data-state="initial"]):not([data-state="more"]) .loading-spinner { display: none; }
.listing-feedback[data-state="end"] { background: none; }
.listing-feedback[data-state="error"] { background: var(--warning-pale); color: var(--ink); }
@keyframes listing-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }
@media (max-width: 640px) { .catalog-filters { grid-template-columns: 1fr; gap: 4px; } .product-layout { display: block; } .booking-panel { margin-top: 24px; } }

/* Shared compact storefront chrome, search and discovery. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.catalog-header { position: sticky; top: 0; z-index: 40; height: 64px; background: #fff; }
/* Every #anchor jump and scrollIntoView lands below the sticky 64px header, with a little air. */
html { scroll-padding-top: 80px; }
.catalog-header .header-inner { display: grid; grid-template-columns: minmax(160px,1fr) minmax(240px,600px) minmax(max-content,1fr); gap: 24px; }
.catalog-header .brand { font-size: 18px; gap: 8px; }
.catalog-header .brand-logo { width: 30px; height: 30px; }
.catalog-header .header-actions { justify-self: end; gap: 12px; }
.header-search { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #f4f8fb; }
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-pale); }
.header-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 0 10px 18px; font-size: 13px; color: var(--ink); }
.header-search button { display: grid; place-items: center; flex: 0 0 44px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--brand); }
.account-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.account-link:hover { background: var(--brand-pale); }
/* Signed in on a wide screen: photo, then the name, as one pill. */
.account-name { display: none; }
@media (min-width: 721px) {
    .account-link:has(.account-name:not([hidden])) { display: inline-flex; width: auto; gap: 8px; padding: 3px 14px 3px 3px; border-radius: 99px; }
    .account-link:has(.account-name:not([hidden])) .account-avatar, .account-link:has(.account-name:not([hidden])) svg { position: static; flex: 0 0 auto; }
    .account-name:not([hidden]) { display: block; max-width: 160px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .account-link:has(.account-avatar:not([hidden])) svg { display: none; }
}
.account-avatar { position: absolute; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--brand-pale); box-shadow: 0 0 0 1px var(--line); }
.login-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.login-link:hover { background: var(--brand-dark); }
html[data-account] .login-link, html:not([data-account]) .account-link { display: none; }
.footer-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-language { display: flex; gap: 4px; font-size: 13px; }
.footer-language a { padding: 6px 10px; border-radius: 99px; color: var(--muted); }
.footer-language a[aria-current="true"] { background: var(--brand-pale); color: var(--brand-dark); font-weight: 700; }
.search-suggestions { position: absolute; top: calc(100% + 9px); left: 0; right: 0; max-height: min(540px, 65vh); overflow-y: auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.search-suggestions a { display: block; padding: 10px 12px; font-size: 14px; border-radius: 8px; line-height: 1.5; }
.search-suggestions a:hover, .search-suggestions a[aria-selected="true"] { background: var(--brand-pale); color: var(--brand-dark); }
.suggestion-heading { margin: 10px 12px 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.suggestion-all { color: var(--brand-dark); border-top: 1px solid var(--line); margin-top: 6px; }
.suggestion-loading { margin: 8px 12px; color: var(--muted); font-size: 12px; }
.catalog-structure .structured-main { padding-block: 24px 48px; }
#home-discovery > h1 { margin: 0 0 22px; font-size: clamp(24px,3vw,32px); line-height: 1.3; letter-spacing: -.5px; }
#home-discovery h2, #listing-title, .store-benefits h2 { font-size: 20px; margin: 0 0 14px; }
.catalog-structure .destinations { margin: 0 0 28px; }
.catalog-structure .destination-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.catalog-structure .destination-card { padding: 20px; border-radius: 14px; background: linear-gradient(120deg, #e8f5ff, #fff); }
.catalog-structure .destination-card strong { font-size: 18px; }
.catalog-structure .destination-card span { font-size: 12px; }
.category-discovery { margin-bottom: 30px; }
.category-links { display: flex; gap: 8px; flex-wrap: wrap; }
.category-links .tag { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; }
.category-links .tag:hover { color: var(--brand); border-color: var(--brand); }
.result-filters { display: grid; grid-template-columns: max-content minmax(100px,1fr) max-content minmax(100px,1fr); align-items: center; gap: 10px 14px; margin-bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.result-filters label { font-size: 13px; }
.result-filters .instant-filter { display: flex; align-items: center; gap: 6px; }
.result-filters .button { justify-self: end; }
.catalog-structure .product-card { display: flex; flex-direction: column; border-radius: 14px; }
.catalog-structure .product-card-media { aspect-ratio: 4/3; height: auto; min-height: 0; }
.catalog-structure .product-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px; min-width: 0; }
.catalog-structure .product-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; margin: 7px 0 8px; font-size: 16px; }
.card-meta { min-height: 20px; color: var(--muted); font-size: 12px; }
.catalog-structure .card-bottom { margin-top: auto; padding-top: 12px; border: 0; }
.catalog-structure .card-bottom strong { font-size: 19px; white-space: nowrap; }
.catalog-structure .card-bottom { gap: 8px; align-items: baseline; }
.card-sales { flex-shrink: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.catalog-structure .card-bottom small { font-size: 12px; font-weight: 400; color: var(--muted); }
.store-benefits { padding-top: 26px; border-top: 1px solid var(--line); margin-top: 28px; }
.store-benefits > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.store-benefits p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.store-benefits h3 { margin: 0 0 8px; font-size: 16px; }
.store-benefits article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.store-benefits a:hover { color: var(--brand); }
.home-section { margin-bottom: 36px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.home-section-heading h2 { margin: 0 !important; }
.home-section-heading .text-link { font-size: 13px; flex-shrink: 0; }
.catalog-structure .home-section .product-grid { margin: 0; }
.home-section-status { font-size: 13px; color: var(--muted); }
.home-section-status:empty, #catalog-status:empty { display: none; }
.home-section #catalog-status { font-size: 12px; color: var(--muted); }
.native-order-page { width: 100%; max-width: 560px; margin: clamp(16px, 5vh, 56px) auto 64px; }
.native-order-page > h1 { text-align: center; margin: 0 0 24px; font-size: 28px; }
#native-order { padding: clamp(20px, 4vw, 32px); }
#native-order h2 { margin-top: 0; font-size: 21px; }
#native-order p { color: var(--muted); line-height: 1.7; font-size: 14px; }
#native-order form, #native-reviewer-password { display: grid; gap: 12px; }
#native-order .field-label { margin: 8px 0 0; font-size: 13px; }
#native-order .field-control { font-size: 15px; min-height: 46px; }
#native-order form .button { margin-top: 8px; }
.order-page { max-width: 680px; }
.catalog-structure .detail-hero img { aspect-ratio: 4/3; width: 100%; height: auto; }
.catalog-footer { padding: 32px 0 24px; }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 20px 48px; margin: 22px 0 18px; }
.footer-columns h2 { margin: 0 0 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
.footer-columns ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-columns { margin-top: 0; }
.footer-columns a { color: var(--muted); font-size: 13px; line-height: 1.5; }
.footer-columns a:hover { color: var(--brand); }
.footer-app p { margin: 0 0 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-badges a { display: block; line-height: 0; border-radius: 7px; }
.footer-badges img { display: block; height: 40px; width: auto; }
.footer-copyright { margin: 0; color: var(--muted); font-size: 12px; }
.info-page { max-width: 760px; margin: clamp(8px, 3vh, 32px) auto 16px; }
.info-page h1 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.25; }
.info-updated { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.info-lead { margin: 0; font-size: 16px; line-height: 1.75; }
.info-page section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.info-page h2 { margin: 0 0 10px; font-size: 18px; }
.info-page section p, .info-page li { color: #334b60; font-size: 15px; line-height: 1.75; }
.info-page section p { margin: 0 0 10px; }
.info-page ul { margin: 0 0 10px; padding-left: 20px; }
.info-page li + li { margin-top: 6px; }
.info-page a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.native-referral { display: grid; gap: 8px; margin: 18px 0; }
.native-referral-row { display: flex; gap: 8px; }
.native-referral-row .field-control { flex: 1; min-width: 0; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.native-referral-applied { margin: 0; color: var(--brand-dark); font-weight: 600; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
    .catalog-header .header-inner { grid-template-columns: 155px minmax(220px,1fr) max-content; gap: 16px; }
}
@media (max-width: 720px) {
    /* One row: logo mark, search, account. */
    .catalog-header .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; min-height: 60px; }
    .catalog-header .brand { gap: 5px; font-size: 15px; letter-spacing: -.5px; }
    .catalog-header .brand-logo { width: 24px; height: 24px; }
    .catalog-header .header-actions { gap: 4px; }
    .catalog-header .header-search { height: 36px; }

    .header-search button { flex-basis: 32px; height: 34px; }
    .header-search button svg { width: 16px; height: 16px; }
    .login-link { min-height: 34px; padding: 0 12px; font-size: 13px; }
    .catalog-structure .structured-main { padding-top: 20px; }
    .catalog-structure .destination-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog-structure .destination-card { padding: 14px; }
    .catalog-structure .destination-card strong { font-size: 16px; }
    .category-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
    .category-links .tag { white-space: nowrap; }
    .catalog-structure .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .catalog-structure .product-card-body { padding: 10px; }
    .catalog-structure .product-card h3 { font-size: 13px; -webkit-line-clamp: 3; }
    .catalog-structure .product-card .location, .card-meta { font-size: 10px; }
    .catalog-structure .card-bottom strong { font-size: 16px; }
    .catalog-structure .card-bottom small { font-size: 10px; }
    .card-sales { font-size: 10px; }
    .native-order-page > h1 { font-size: 24px; }
    .result-filters { grid-template-columns: 1fr 1fr; padding: 14px; gap: 8px; }
    .result-filters label:not(.instant-filter) { grid-column: 1/-1; margin-top: 5px; }
    .result-filters select, .result-filters > input { grid-column: 1/-1; }
    .store-benefits > div { grid-template-columns: 1fr; gap: 14px; }
    .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .product-card, .product-card-media img { transition: none; }
}
@media (max-width: 400px) {
    .catalog-structure .card-bottom strong { font-size: 14px; }
    .catalog-structure .card-bottom { gap: 4px; }
    .card-sales { font-size: 9px; }
}

/* Affiliate-first layer, ported from docs/prototypes/affiliate-first: shown on live pages (html[data-affiliate="on"]). */
:root { --earn: #0a8f55; --earn-dark: #066a3e; --earn-pale: #e3f6ec; --earn-bright: #27d68f; --navy: #0b3a63; --ink-2: #31516b; --line-2: #c6d9e8;
    --coin-pale: #fff3d6; --warn: #9a4a05; --warn-pale: #fff4e5; --danger: #b42318; --danger-pale: #fdecea; --line-green: #06c755;
    --af-shadow-sm: 0 1px 2px rgba(16, 40, 61, .06), 0 4px 14px rgba(16, 40, 61, .06); --af-shadow: 0 14px 36px rgba(16, 40, 61, .12); }
[data-affiliate-ui][hidden] { display: none !important; }
.af-ic { flex: 0 0 auto; }
.af-muted { color: var(--muted); }
.af-fine { color: var(--muted); font-size: 13px; line-height: 1.5; }
.af-right { text-align: right; }
.af-grow { flex: 1; min-width: 0; }

/* buttons, chips, numbers */
.af-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; transition: transform .15s ease, background .15s ease; text-align: center; white-space: nowrap; cursor: pointer; }
.af-btn:hover:not(:disabled) { transform: translateY(-1px); }
.af-btn:disabled { opacity: .45; cursor: not-allowed; }
.af-btn-primary { background: var(--brand); color: #fff; }
.af-btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.af-btn-earn { background: var(--earn); color: #fff; box-shadow: 0 6px 16px rgba(10, 143, 85, .25); }
.af-btn-earn:hover:not(:disabled) { background: var(--earn-dark); }
.af-btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.af-btn-ghost:hover:not(:disabled) { background: var(--brand-pale); border-color: #9fcdee; }
.af-btn-ghost-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.af-btn-ghost-light:hover { background: rgba(255, 255, 255, .2); }
.af-btn-line { background: var(--line-green); color: #fff; }
.af-btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.af-btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.af-btn-block { display: flex; width: 100%; }
.af-link-btn { background: none; border: 0; color: var(--brand); font-weight: 700; padding: 6px 4px; font-size: 14px; cursor: pointer; }
.af-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.af-icon-btn:hover { background: var(--brand-pale); }
.af-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--brand-pale); color: var(--brand-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.af-chip-earn { background: var(--earn-pale); color: var(--earn-dark); }
.af-chip-warn { background: var(--warn-pale); color: var(--warn); }
.af-chip-danger { background: var(--danger-pale); color: var(--danger); }
.af-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.af-chips-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.af-chip-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 600; min-height: 38px; cursor: pointer; }
.af-chip-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.af-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.af-eyebrow.af-on-dark { color: #9fd8ff; }
.af-eyebrow.af-earn { color: var(--earn); }
.af-earn-num { font-family: Manrope, 'Noto Sans Thai', sans-serif; font-weight: 800; color: var(--earn); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.af-earn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: var(--earn-pale); color: var(--earn-dark); font-size: 13px; font-weight: 600; }
.af-earn-chip b { font-family: Manrope, sans-serif; }
.af-earn-chip.sm { padding: 2px 8px; font-size: 12px; border-radius: 8px; }
.af-off { color: #8a5a00; }
.af-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--af-shadow-sm); margin-bottom: 16px; }
.af-card h2 { font-size: 18px; margin: 0 0 12px; }
.af-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.af-card-head h2 { margin: 0; }
.af-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.af-empty { display: grid; place-items: center; gap: 6px; text-align: center; padding: 40px 16px; color: var(--muted); }
.af-progress { height: 8px; border-radius: 99px; background: #e4edf4; overflow: hidden; }
.af-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--earn); transition: width .25s ease; }
.af-code { font: 800 14px ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .12em; background: rgba(255, 255, 255, .7); border-radius: 6px; padding: 2px 6px; }
.af-codebig { font: 800 clamp(30px, 8vw, 42px)/1.1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .14em; color: var(--earn-dark); }

/* ticket stub, the signature element */
.af-stub { display: block; position: relative; color: var(--ink); background: #fff; border-radius: 20px; box-shadow: var(--af-shadow); --stub-bg: var(--paper); margin-bottom: 16px; }
.af-perf { position: relative; height: 22px; background: repeating-linear-gradient(90deg, var(--line-2) 0 7px, transparent 7px 13px) 22px 10px / calc(100% - 44px) 2px no-repeat; }
.af-perf::before, .af-perf::after { content: ''; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--stub-bg); }
.af-perf::before { left: -11px; }
.af-perf::after { right: -11px; }
.af-stub-top { padding: 14px; display: grid; gap: 12px; }
.af-stub-top.pad { padding: 20px 20px 8px; }
.af-stub-top img, .af-stub-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; background: #e4edf4; }
.af-stub-meta h3 { font-size: 18px; margin: 0 0 4px; }
.af-linkline { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper); border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.af-linkline b { color: var(--earn-dark); }
.af-stub-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 6px 20px 18px; }
.af-stub-bottom.pad { padding: 8px 20px 20px; }
.af-stub-bottom.stack { display: grid; gap: 12px; align-items: stretch; }
.af-stub-bottom small { display: block; color: var(--muted); font-size: 12px; }
.af-stub-bottom b { font-family: Manrope, 'Noto Sans Thai', sans-serif; font-size: 18px; }
.af-stub-bottom .af-earn-num { font-size: 30px; line-height: 1; }
.af-stub-bottom .af-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.af-stub-tag { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 2px 10px; border-radius: 99px; background: rgba(16, 40, 61, .78); color: #fff; font-size: 11px; font-weight: 700; }
.af-stub.mini { box-shadow: none; border: 1px solid var(--line); margin: 0; }
.af-stub-loading .af-stub-img { animation: af-pulse 1.2s ease-in-out infinite alternate; }
@keyframes af-pulse { to { opacity: .55; } }
.af-thumb-mini { display: grid; gap: 4px; justify-items: center; text-align: center; max-width: 110px; font-size: 11px; color: var(--muted); }
.af-thumb-mini img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }

/* home: hero and recruiting sections (full-bleed backgrounds without page overflow) */
.af-hero { position: relative; overflow: hidden; margin: 0 0 8px; padding: 28px 0 40px; background: var(--navy); color: #fff; box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.af-hero::before { content: ''; position: absolute; right: -180px; top: -200px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 82px rgba(255, 255, 255, .025); pointer-events: none; }
.af-hero-in { position: relative; display: grid; gap: 26px; }
.af-hero-title { color: #fff; margin: 10px 0 12px; font: 800 clamp(26px, 5.6vw, 44px)/1.25 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -.01em; text-wrap: balance; }
.af-hero-title em { font-style: normal; color: var(--earn-bright); display: block; }
.af-lead { margin: 0; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .84); max-width: 560px; }
.af-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 16px; }
.af-hero .af-btn-earn, .af-band .af-btn-earn { background: var(--earn-bright); color: #06351f; box-shadow: 0 8px 22px rgba(39, 214, 143, .28); }
.af-hero .af-btn-earn:hover, .af-band .af-btn-earn:hover { background: #43e3a1; }
.af-assure { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .86); }
.af-assure li { display: inline-flex; align-items: center; gap: 6px; }
.af-assure .af-ic { color: var(--earn-bright); }
.af-hero-stub { max-width: 440px; width: 100%; }
.af-hero-stub .af-stub { margin: 0; --stub-bg: var(--navy); }
.af-sec { padding: 40px 0; }
.af-soft { background: #edf5fb; box-shadow: 0 0 0 100vmax #edf5fb; clip-path: inset(0 -100vmax); }
.af-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.af-sec-head h2, .af-band h2 { margin: 4px 0 0; font: 800 clamp(20px, 3.4vw, 28px)/1.25 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -.01em; }
.af-sec-head .text-link { display: inline-flex; align-items: center; gap: 4px; }
.af-earn-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 14px; margin-inline: -16px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; }
.af-earn-card { flex: 0 0 min(250px, 72%); scroll-snap-align: start; display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--af-shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.af-earn-card:hover { transform: translateY(-3px); box-shadow: var(--af-shadow); }
.af-earn-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e4edf4; }
.af-earn-card-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.af-earn-card h3 { margin: 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.af-earn-big { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.af-earn-big .af-earn-num { font-size: 30px; line-height: 1; }
.af-earn-big span { display: grid; font-size: 12px; line-height: 1.25; color: var(--ink-2); font-weight: 600; }
.af-earn-big small { color: var(--muted); font-weight: 400; }
.af-city { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.af-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.af-steps li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 6px; }
.af-steps h3 { margin: 0; font-size: 16px; }
.af-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.af-step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 16px Manrope, sans-serif; }
.af-step-n.sm { width: 26px; height: 26px; font-size: 13px; margin-right: 6px; }
.af-friend-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--coin-pale); color: #5c3d00; }
.af-friend-note p { margin: 2px 0 0; font-size: 14px; }
.af-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.af-timeline li { position: relative; padding: 0 0 18px 34px; display: grid; gap: 2px; }
.af-timeline li::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line-2); }
.af-timeline li:last-child::before { display: none; }
.af-timeline li::after { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; box-sizing: border-box; }
.af-timeline li.af-done::after { background: var(--earn); border-color: var(--earn); }
.af-timeline span { color: var(--muted); font-size: 14px; }
.af-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 14px; }
.af-facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 2px; }
.af-facts b { font: 800 22px Manrope, 'Noto Sans Thai', sans-serif; color: var(--navy); }
.af-facts span { font-size: 13px; color: var(--muted); }
.af-qa { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; max-width: 760px; }
.af-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.af-qa summary::-webkit-details-marker { display: none; }
.af-qa[open] summary .af-ic { transform: rotate(180deg); }
.af-qa p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.af-band { margin-top: 24px; padding: 44px 0; text-align: center; background: var(--navy); color: #fff; box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.af-band h2 { color: #fff; }
.af-band p { color: rgba(255, 255, 255, .8); margin: 8px 0 18px; }
/* earning chip on catalog cards */
.product-card .af-earn-chip { margin-top: 8px; }

/* product page */
.af-code-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--coin-pale); color: #5c3d00; margin: 12px 0; }
.af-code-card > div { flex: 1; min-width: 0; }
.af-code-card small { display: block; font-size: 13px; opacity: .85; }
.af-code-card.ok { background: var(--earn-pale); color: var(--earn-dark); }
/* GTX amounts: cards show the top amounts as two pills; the product page shows ranges, a share button and the table */
.af-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.af-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.af-pill-earn { background: var(--earn-pale); color: var(--earn-dark); }
.af-pill-save { background: var(--accent-pale); color: var(--brand); }
.af-share { margin-top: 14px; padding: 14px; border: 1px solid #bfe6d1; border-radius: 16px; background: #f6fcf9; }
.af-share-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.af-share-stats small { display: block; color: var(--muted); font-size: 12px; }
.af-share-stats b { font-family: Manrope, sans-serif; font-size: 20px; }
.af-share-stats b span { font-family: inherit; font-size: 12px; font-weight: 500; }
.af-share-earn { color: var(--earn-dark); }
.af-share-save { color: var(--brand); }
.af-share-table { margin-top: 12px; }
.af-share-table summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.af-share-table .af-table-wrap { margin-top: 8px; max-height: 360px; overflow: auto; }
.af-share .af-invite-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.af-invite { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 14px; border: 1.5px dashed #8fd3b1; background: #f1fbf6; color: var(--earn-dark); border-radius: 14px; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.af-invite span { flex: 1; }
.af-invite .af-invite-note { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }

/* share sheet */
.affiliate-sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; }
.affiliate-scrim { position: absolute; inset: 0; background: rgba(10, 30, 48, .55); }
.affiliate-sheet-panel { position: relative; display: grid; gap: 12px; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: var(--af-shadow); }
.affiliate-sheet-panel h2 { margin: 0; font-size: 19px; padding-right: 40px; }
.affiliate-sheet-panel p { margin: 0; }
.af-sheet-grip { width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 0 auto 4px; }
.affiliate-close { position: absolute; top: 12px; right: 12px; }
.af-share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.af-share-opt { display: grid; justify-items: center; gap: 6px; border: 0; background: transparent; font-size: 12px; font-weight: 600; padding: 8px 2px; border-radius: 12px; color: var(--ink); cursor: pointer; }
.af-share-opt:hover { background: var(--brand-pale); }
.af-share-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; font-size: 20px; }
.af-share-ic.line { background: var(--line-green); color: #fff; border-color: transparent; }
.af-share-ic.fb { background: #1877f2; color: #fff; border-color: transparent; }
.af-share-ic.x { background: #0f1419; color: #fff; border-color: transparent; }
.af-linkbox { display: flex; gap: 8px; }
.af-linkbox input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 12px; font: 13px ui-monospace, Menlo, monospace; background: var(--paper); color: var(--ink-2); }

/* per-package table on the product page */
.af-table-wrap { overflow-x: auto; }
.af-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.af-tbl th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.af-tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.af-tbl .num { text-align: right; white-space: nowrap; }
.af-tbl td small { display: block; color: var(--muted); font-size: 11px; }
.af-tbl td s { color: var(--muted); font-size: 11px; font-weight: 400; }
.af-earn-cell { font: 800 16px Manrope, sans-serif; color: var(--earn); }

@media (min-width: 560px) {
    .af-facts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
    .af-steps { grid-template-columns: repeat(3, 1fr); }
    .af-timeline { grid-template-columns: repeat(4, 1fr); }
    .af-timeline li { padding: 34px 12px 0 0; }
    .af-timeline li::before { left: 22px; right: -4px; top: 8px; bottom: auto; width: auto; height: 2px; }
    .af-timeline li::after { top: 0; left: 0; }
}
@media (min-width: 1024px) {
    .af-hero { padding: 64px 0 72px; }
    .af-hero-in { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
    .af-hero-title { font-size: 52px; }
    .af-hero-stub { justify-self: end; transform: rotate(1.6deg); }
    .af-earn-row { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 4px 0; margin: 0; }
    .af-earn-card { flex: initial; }
}
@media (max-width: 720px) {
}
@media (prefers-reduced-motion: reduce) {
    .af-btn, .af-earn-card, .af-progress > span, .af-stub-loading .af-stub-img { transition: none !important; animation: none !important; }
}

/* Storefront rebuild (2026-10-13): one layout from the first paint, a Klook-style product page, and one set of controls. */
html:not([data-affiliate="on"]) [data-affiliate-ui] { display: none !important; }
html[data-search] [data-home-section], html[data-search] #home-discovery { display: none !important; }
html[data-search] #catalog-filters[hidden] { display: grid !important; }
html[data-affiliate="on"]:not([data-search]) .page-home .structured-main { padding-top: 0; }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* staging marker: a corner ribbon instead of a banner, so the page looks like production */
.staging-ribbon { position: fixed; z-index: 1000; left: -46px; bottom: 22px; width: 170px; padding: 5px 0; transform: rotate(45deg); background: #d92d20; color: #fff; text-align: center; font: 800 11px/1.2 Manrope, sans-serif; letter-spacing: .16em; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: none; }

/* type and controls */
.catalog-structure { font-size: 15px; line-height: 1.55; }
.catalog-structure .field-control { min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 15px; color: var(--ink); background: #fff; }
.catalog-structure .field-control:focus { outline: 3px solid rgba(0, 155, 255, .18); border-color: var(--brand); }
.catalog-structure .field-label { margin: 12px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; }
.button.small { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.button.large { min-height: 52px; padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.button.full { display: flex; width: 100%; }
.button.secondary { background: #fff; border: 1px solid var(--line-2); color: var(--ink); }
.link-btn { padding: 6px 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; margin: 0; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chip small { color: var(--muted); font-weight: 500; }
.chip:hover:not(.on) { border-color: var(--brand); }
.chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip.on small { color: rgba(255, 255, 255, .75); }
.guest-card h3 { font-size: 15px; }
/* As much space above each divider as below it, so a card ends where the next guest's title begins. */
.guest-card { padding-bottom: 18px; }
.question-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.catalog-structure select.field-control { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; text-overflow: ellipsis; }
.selected-packages button { padding: 4px; border: 0; background: none; color: var(--danger); font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 760px) { .answer-grid { grid-template-columns: 1fr 1fr; } }
/* Places, long wording and long choices take the whole row (wideQuestion in catalog.js, as the app's). */
.answer-grid .question-field.wide { grid-column: 1 / -1; }
.guest-done { margin-left: 6px; color: #1f9d55; font-weight: 800; }
.copy-guest { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px; padding: 4px 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.copy-guest::before { content: '⧉'; font-size: 14px; }
.copy-guest[hidden] { display: none; }

/* loading placeholders that hold their final size */
.is-skeleton { pointer-events: none; animation: af-pulse 1.2s ease-in-out infinite alternate; }
.product-card.is-skeleton .product-card-media { aspect-ratio: 4 / 3; background: #e9f0f6; }
.product-card.is-skeleton .product-card-body { min-height: 120px; }
.is-skeleton span { display: block; height: 12px; margin: 8px 0; border-radius: 6px; background: #edf2f7; }
.is-skeleton span:nth-child(1) { width: 40%; }
.is-skeleton span:nth-child(2) { width: 90%; }
.is-skeleton span:nth-child(3) { width: 60%; }
.af-skel-line { height: 20px; width: 70%; border-radius: 6px; background: #e4edf4; }

/* home: the catalog after the partner story */
.home-browse { margin: 8px 0 36px; padding-top: 32px; }
html[data-search] .home-browse { padding-top: 0; }
.home-browse .home-section-heading { align-items: flex-end; }
.home-browse h2 { margin: 4px 0 0; font: 800 clamp(20px, 3.4vw, 28px)/1.25 Manrope, 'Noto Sans Thai', sans-serif; }
.home-browse-chips { margin: 4px 0 18px; }
.home-browse-all { margin: 4px 0 0; text-align: center; }

/* product page */
.page-product .structured-main { padding-top: 12px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--brand-dark); }
.crumbs a:hover { text-decoration: underline; }
.pdp-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 8px; margin: 0 0 24px; overflow: hidden; border-radius: 18px; }
.pdp-shot { display: block; min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 0; background: #e6f0f8; cursor: zoom-in; }
.pdp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pdp-shot:hover img { transform: scale(1.03); }
.pdp-shot:first-child { grid-row: 1 / span 2; }
.pdp-gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 400px; }
.pdp-gallery[data-count="2"] { grid-template-columns: 2fr 1fr; }
.pdp-gallery[data-count="2"] .pdp-shot:nth-child(2) { grid-row: 1 / span 2; }
.pdp-gallery[data-count="3"] { grid-template-columns: 2fr 1fr; }
.pdp-gallery[data-count="4"] .pdp-shot:nth-child(4) { grid-column: 2 / span 2; }
.pdp-gallery-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .94); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; box-shadow: var(--af-shadow-sm); cursor: pointer; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head aside" "main aside"; gap: 0 32px; align-items: start; }
.pdp-head { grid-area: head; min-width: 0; }
.pdp-aside { grid-area: aside; position: sticky; top: 84px; }
.pdp-main { grid-area: main; min-width: 0; }
.pdp-head h1 { margin: 0 0 10px; font: 800 clamp(24px, 3vw, 34px)/1.25 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.pdp-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.pdp-map { color: var(--brand); font-weight: 700; }
.pdp-address { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.pdp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin: 18px 0; padding: 0; list-style: none; }
.pdp-facts li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.pdp-facts svg { flex: none; color: var(--earn); }
.pdp-facts li.is-warn svg { color: var(--warn); }
.pdp-highlights { margin: 0 0 20px; padding: 16px 18px; border-radius: 16px; background: #f2f8fd; }
.pdp-highlights h2 { margin: 0 0 10px; font-size: 16px; }
.pdp-highlights ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.pdp-highlights li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
.pdp-highlights svg { flex: none; margin-top: 2px; color: var(--earn); }
#pdp-invite-slot:empty { display: none; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pdp-price small { color: var(--muted); font-size: 13px; }
.pdp-price strong { font: 800 30px/1.1 Manrope, sans-serif; color: var(--price); }
.pdp-card { margin: 0 0 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pdp-card h2 { margin: 0; font: 800 20px/1.3 Manrope, 'Noto Sans Thai', sans-serif; }
.pdp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pdp-card-head .muted { font-size: 14px; }
.contract-status:empty { display: none; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 10px; }
.seg-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.seg-item.selected { border-color: var(--brand); background: #f2f9ff; box-shadow: inset 0 0 0 1px var(--brand); }
.seg-item strong { color: var(--brand-dark); }
.pkg-tools { display: grid; gap: 10px; margin-bottom: 12px; }
.pkg-search { position: relative; display: block; }
.pkg-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.catalog-structure .pkg-search .field-control { width: 100%; padding-left: 40px; }
.pkg-list { display: grid; gap: 8px; }
.pkg { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .15s ease, background .15s ease; }
.pkg:hover { border-color: #9fcdee; }
.pkg.selected { border-color: var(--brand); background: #f2f9ff; box-shadow: inset 0 0 0 1px var(--brand); }
.pkg-radio { width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 50%; background: #fff; }
.pkg.selected .pkg-radio { border: 6px solid var(--brand); }
.pkg-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.pkg-notes { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.pkg-notes span { padding: 1px 8px; border-radius: 6px; background: #f0f5f9; color: var(--ink-2); font-size: 12px; }
.pkg-price { text-align: right; white-space: nowrap; }
.pkg-price small { display: block; color: var(--muted); font-size: 12px; }
.pkg-price strong { font: 800 17px Manrope, sans-serif; color: var(--price); }
.pdp-packages:not(.is-expanded):not(.is-filtering) .pkg[data-pkg-extra] { display: none; }
.pdp-packages [data-pkg-more] { margin-top: 12px; }
.pkg-empty { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.booking-package { margin: -6px 0 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.booking-package:empty { display: none; }
.option-cards { display: grid; gap: 8px; }
.option-cards:empty { display: none; }
.option-cards + .addon-notice { margin-top: 10px; }
.step { position: relative; padding: 16px 0; border-top: 1px solid var(--line); }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.step-label { font-size: 15px; font-weight: 700; }
.step-value { color: var(--brand-dark); font-size: 14px; font-weight: 600; text-align: right; }
.step-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.date-strip { display: flex; gap: 8px; padding: 2px 2px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.date-chip { display: grid; flex: 0 0 64px; justify-items: center; gap: 1px; margin: 0; padding: 8px 4px 6px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; scroll-snap-align: start; cursor: pointer; }
.date-chip small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.date-chip b { font: 800 18px/1.2 Manrope, sans-serif; }
.date-chip em { min-height: 15px; color: var(--earn-dark); font-size: 11px; font-style: normal; font-weight: 700; line-height: 1.35; }
.date-chip:hover:not(:disabled):not(.on) { border-color: var(--brand); }
.date-chip.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.date-chip.on small, .date-chip.on em { color: rgba(255, 255, 255, .92); }
.date-chip:disabled { background: #f4f7fa; opacity: .55; cursor: not-allowed; }
.date-chip:disabled em { color: var(--danger); }
.date-chip.on:disabled { border-color: var(--warn); background: var(--warn-pale); color: var(--warn); opacity: 1; }
.date-chip.on:disabled small, .date-chip.on:disabled em { color: var(--warn); }
.date-more { flex-basis: 76px; align-content: center; }
.date-more svg { color: var(--brand); }
.date-more.on svg { color: #fff; }
.date-pop { position: absolute; z-index: 30; top: 52px; right: 0; width: min(340px, 100%); padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--af-shadow); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-nav { width: 36px; height: 36px; margin: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { padding: 4px 0; color: var(--muted); font-size: 12px; text-align: center; }
.cal-day { aspect-ratio: 1; margin: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cal-day:hover:not(:disabled):not(.on) { background: var(--brand-pale); }
.cal-day.on { background: var(--brand); color: #fff; }
.cal-day:disabled { color: #b8c6d2; cursor: not-allowed; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.time-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-list { display: grid; }
.catalog-structure .ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0; padding: 10px 0; }
.ticket-row + .ticket-row { border-top: 1px dashed var(--line); }
.ticket-info { display: grid; gap: 2px; min-width: 0; }
.ticket-info label { margin: 0; font-size: 15px; font-weight: 600; }
.ticket-info small { margin: 0; color: var(--muted); font-size: 13px; }
.stepper { display: inline-flex; flex: none; align-items: center; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.stepper-btn { width: 44px; height: 44px; margin: 0; border: 0; background: #f2f8fd; color: var(--brand); font-size: 22px; line-height: 1; cursor: pointer; }
.stepper-btn:hover:not(:disabled) { background: var(--brand-pale); }
.stepper-btn:disabled { background: #f7f9fb; color: #b8c6d2; cursor: not-allowed; }
.ticket-row .stepper-input { width: 52px; height: 44px; margin: 0; border: 0; background: #fff; color: var(--ink); text-align: center; font: 700 16px Manrope, sans-serif; -moz-appearance: textfield; appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.stepper-input:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; font-size: 14px; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.availability-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.availability-row:has([data-status="available"]) { background: var(--earn-pale); color: var(--earn-dark); }
.availability-row:has([data-status="unavailable"]), .availability-row:has([data-status="unknown"]) { background: var(--warn-pale); color: var(--warn); }
#availability-status { margin: 0; font-size: 14px; line-height: 1.5; }
.booking-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; }
.booking-total span { color: var(--muted); }
.booking-total strong { font: 800 24px Manrope, sans-serif; }
.pdp-booking .step-note.center { text-align: center; }
.product-description p { margin: 0; font-size: 15px; line-height: 1.75; }
.rich-text p { margin: 0 0 8px; } .rich-text p:last-child { margin-bottom: 0; }
.rich-list { margin: 0 0 8px; padding-left: 1.25em; } .rich-list:last-child { margin-bottom: 0; }
.rich-list li { margin: 2px 0; line-height: 1.7; }
.product-description .rich-list li { font-size: 15px; }
.content-card .rich-list li { color: #566f83; font-size: 12px; }
.pdp-clamp { position: relative; max-height: 13em; overflow: hidden; }
.pdp-clamp.open { max-height: none; }
.pdp-clamp.is-clamped:not(.open)::after { content: ''; position: absolute; inset: auto 0 0; height: 3.5em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.pdp-rules h2 { margin-bottom: 4px; }
.pdp-rules details.content-card { margin: 10px 0 0; padding: 14px 16px; border-radius: 12px; }
.pdp-rules details.content-card summary { font-size: 15px; line-height: 1.5; }
.pdp-rules details.content-card p, .pdp-rules details.content-card li { font-size: 14px; }
.pdp-related { margin-top: 28px; }
.pdp-related h2 { font: 800 22px/1.3 Manrope, 'Noto Sans Thai', sans-serif; margin: 0 0 14px; }
.toast { font-size: 14px; }
.pdp-lightbox { width: min(1100px, 100vw); max-width: 100vw; height: min(820px, 100dvh); max-height: 100dvh; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #0b1a28; color: #fff; }
.pdp-lightbox::backdrop { background: rgba(5, 15, 25, .85); }
.lightbox-bar { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: linear-gradient(rgba(0, 0, 0, .5), transparent); font-size: 14px; }
.lightbox-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; cursor: pointer; }
.lightbox-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox-track figure { display: grid; flex: 0 0 100%; place-items: center; margin: 0; scroll-snap-align: center; }
.lightbox-track img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 28px; transform: translateY(-50%); cursor: pointer; }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
@media (max-width: 900px) {
    .pdp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "main"; }
    .pdp-aside { position: static; margin-bottom: 16px; }
    body.page-product { padding-bottom: 76px; }
    .page-product .toast { bottom: 92px; }
}
@media (max-width: 760px) {
    .catalog-structure input, .catalog-structure select, .catalog-structure textarea, .catalog-structure .field-control { font-size: 16px; }
    .pdp-gallery { display: flex; gap: 6px; height: min(64vw, 300px); margin: 0 calc(50% - 50vw) 18px; padding: 0 calc(50vw - 50%); overflow-x: auto; border-radius: 0; scroll-snap-type: x mandatory; scroll-padding-inline: calc(50vw - 50%); scrollbar-width: none; }
    .pdp-shot { flex: 0 0 88%; border-radius: 14px; scroll-snap-align: start; }
    .pdp-shot:first-child { grid-row: auto; }
    .pdp-gallery-all { display: none; }
    .pdp-card { padding: 16px; }
    .pdp-facts { grid-template-columns: 1fr; gap: 8px; }
    .pdp-highlights ul { grid-template-columns: 1fr; }
    .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .pkg { grid-template-columns: 20px minmax(0, 1fr); padding: 12px 14px; }
    .pkg-price { grid-column: 2; display: flex; align-items: baseline; gap: 6px; text-align: left; }
    .pkg-price small { display: inline; }
    .date-chip { flex-basis: 58px; }
    .date-pop { left: 0; right: 0; width: auto; }
    .pdp-lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
    .lightbox-nav { display: none; }
}

/* ----- One place to pay (2026-10-13): details beside the booking card, summary above the pay button ----- */
.pdp-grid { grid-template-areas: "head aside" "main aside"; }
.pdp-aside { position: static; display: grid; gap: 16px; }
.pdp-aside .pdp-card { margin: 0; }
.pdp-head .pdp-price { margin-top: 14px; }
.pdp-head .af-code-card, .pdp-head .af-invite { margin: 12px 0 0; }
.pay-summary { display: grid; gap: 8px; margin: 16px 0 12px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.pay-lines:empty { display: none; }
.pay-lines { display: grid; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pay-line .pay-row { color: var(--ink); }
.pay-line-off, .pay-line-none { display: flex; justify-content: space-between; gap: 12px; padding-left: 10px; font-size: 13px; }
.pay-line-off { color: var(--earn-dark, #067647); }
.pay-line-none { color: var(--muted); }
.pay-row > :last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-row.pay-total { margin-top: 4px; color: var(--ink); font-weight: 700; font-size: 16px; }
.pay-row.pay-total strong { font: 800 24px Manrope, sans-serif; }
.pay-code .link-btn { color: var(--muted); font-weight: 600; }
.pay-code .link-btn.on { color: var(--ink); font-weight: 800; letter-spacing: .04em; }
.pay-code-form { display: flex; gap: 8px; }
.pay-code-form .field-control { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }
.pay-code-note { margin: 0; color: var(--earn, #0a7d4f); font-size: 13px; }
#selection-submit[data-state="todo"] { background: #fff; color: var(--brand, #009bff); border: 1.5px solid currentColor; }
#selection-submit[data-state="ready"] { background: var(--brand); }
#selection-submit[data-state="ready"]:hover { background: var(--brand-dark); }
html.pay-open { overflow: hidden; }
.pay-dialog { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(16, 40, 61, .3); }
.pay-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.pay-card { position: relative; padding: 20px 20px 16px; overflow-y: auto; }
.pay-card h2 { margin: 0 32px 12px; text-align: center; font: 800 22px Manrope, 'Noto Sans Thai', sans-serif; }
.pay-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; cursor: pointer; }
.pay-card .button + .button { margin-top: 8px; }
.pay-card #native-status { margin: 10px 0 0; color: #b42318; font-size: 13px; text-align: center; }
.pay-card #native-status:empty { display: none; }
.pay-product { margin: -4px 0 12px; color: var(--muted); font-size: 14px; text-align: center; }
.pay-changed { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: #fff7e6; color: #8a5a00; font-size: 13px; }
.pay-confirm { display: grid; gap: 8px; margin-bottom: 16px; padding: 12px 0; border-block: 1px solid var(--line); }
.pay-wait { display: grid; justify-items: center; gap: 12px; padding: 24px 0 8px; }
.pay-wait p { margin: 0; font-weight: 600; text-align: center; }
.pay-wait-screen { text-align: center; }
.pay-spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--brand, #009bff); border-radius: 50%; animation: listing-spin .8s linear infinite; }
.pay-qr { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pay-qr h2 { margin-bottom: 4px; color: var(--brand, #009bff); }
.pay-qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.pay-amount { margin: 0; font: 800 24px Manrope, sans-serif; }
.pay-funding { margin: 0; color: var(--muted); font-size: 13px; }
.pay-qr .button { width: 100%; max-width: 240px; }
.pay-in { margin: 6px 0 0; font-size: 13px; }
.pay-countdown { margin: 0; font: 700 18px Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.pay-warning { margin: 0; max-width: 260px; color: #d92d20; font-size: 12px; }
.pay-slip { cursor: pointer; }
.pay-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.pay-support { margin: 8px 0 0; font-size: 12px; color: var(--muted, #666); text-align: center; }
.pay-methods { display: grid; gap: 8px; margin: 0 0 16px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--brand, #009bff); box-shadow: 0 0 0 1px var(--brand, #009bff) inset; }
.pay-method input { margin: 0; accent-color: var(--brand, #009bff); }
.pay-method span { display: grid; flex: 1; gap: 2px; font-size: 14px; font-weight: 600; }
.pay-method small { color: var(--muted); font-size: 12px; font-weight: 400; }
.pay-method b { font-variant-numeric: tabular-nums; }
.pay-card-form .field { margin-top: 12px; }
.pay-card-form .field input { font-size: 16px; }
.pay-card-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
.pay-card-error { margin: 12px 0 0; color: #b42318; font-size: 13px; }
.pay-card-form .button { margin-top: 16px; }
/* The package sheet an order was bought with (showSheet). */
.order-product-photo img, .order-photo-empty { display: block; object-fit: cover; background: #eef3f7; }
.order-back { margin: 0 0 14px; text-align: left; font-size: 14px; }
.order-block { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.checkout-summary-list > .total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
.checkout-summary-list > .total span { color: var(--ink); }
.order-product { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.order-product-photo img, .order-product-photo .order-photo-empty { width: 72px; height: 72px; border-radius: 10px; }
.order-product-name { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.45; text-decoration: none; }
a.order-product-name:hover { color: var(--brand); text-decoration: underline; }
button.order-sheet-open, button.order-back { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
button.order-product-name { font-size: 15px; font-weight: 700; }
button.order-product-name:hover { color: var(--brand); text-decoration: underline; }
button.order-back { color: var(--brand); font-size: 14px; font-weight: 700; }
#native-order .order-note { margin: 0 0 14px; font-size: 13px; }
#native-order .order-help { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; text-align: center; }
/* ----- The order page is the app's order screen (order_details.dart), drawn as the app draws it (2026-11-03):
   its colours, type sizes and spacing, edge to edge in the card. ----- */
#native-order.is-app-order { overflow: hidden; padding: 0; }
.ao { color: rgba(0, 0, 0, .87); font-size: 14px; line-height: 1.4; }
.ao button { font: inherit; }
.ao-head { padding: 12px; color: #fff; }
.ao-head strong { display: block; font-size: 15px; }
button.ao-head { display: block; width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
button.ao-head strong { display: flex; align-items: center; gap: 4px; }
#native-order .ao-head p { margin: 6px 0 0; color: #fff; font-size: 14px; line-height: 1.4; }
.ao-line { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 8px 12px; border: 0; color: #fff; text-align: center; }
button.ao-line { cursor: pointer; }
.ao-i { flex: none; }
.ao-digital { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: #fff; }
.ao-digital > svg { flex: none; color: rgba(0, 0, 0, .54); }
.ao-digital > div { flex: 1; min-width: 0; }
.ao-digital-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ao-digital-top strong { font-size: 13px; line-height: 1.5; }
#native-order .ao-digital p { margin: 0; color: #9e9e9e; font-size: 13px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.ao-divided { border-top: 1px solid #e0e0e0; }
.ao-copy { padding: 0; border: 0; background: none; color: #3874cb; font-size: 13px; font-weight: 500; cursor: pointer; }
#native-order .ao-digital p.ao-gtx-line { margin-top: 6px; color: rgba(0, 0, 0, .54); }
.ao-footer { padding: 12px; }
.ao-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 42px; border: 0; border-radius: 30px; background: #3874cb; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ao-button.ao-outlined { box-sizing: border-box; border: 2px solid #3874cb; background: none; color: #3874cb; }
.ao-note { margin-top: 12px; padding: 12px; border-radius: 10px; background: #f5f5f5; }
.ao-note.warn { background: #fff7e6; }
.ao-note strong { display: block; font-size: 14px; font-weight: 600; }
#native-order .ao-note p { margin: 4px 0 0; color: rgba(0, 0, 0, .87); font-size: 13px; line-height: 1.5; white-space: pre-line; }
.ao-small-button { display: inline-flex; align-items: center; height: 25px; margin-top: 4px; padding: 0 12px; border: .5px solid #607d8b; border-radius: 30px; color: #607d8b; font-size: 11px; text-decoration: none; }
.ao-item { padding: 0 12px; border-top: 8px solid #f5f5f5; border-bottom: 8px solid #f5f5f5; background: #fff; }
.ao-store { display: flex; align-items: center; gap: 6px; padding-top: 12px; }
.ao-store svg { flex: none; color: rgba(0, 0, 0, .7); }
.ao-store strong { flex: 1; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ao-store span { margin-left: 6px; color: #9e9e9e; white-space: nowrap; }
.ao-product { display: flex; gap: 14px; width: 100%; padding: 12px 0; color: inherit; text-align: left; text-decoration: none; }
button.ao-product { padding: 12px 0; border: 0; background: none; cursor: pointer; }
.ao-photo { flex: none; width: 80px; height: 80px; overflow: hidden; border-radius: 8px; background: #e0e0e0; }
.ao-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ao-product-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; min-width: 0; height: 80px; }
.ao-product-name { display: -webkit-box; overflow: hidden; font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ao-summary { display: flex; align-items: flex-end; gap: 8px; }
.ao-summary .ao-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-summary .ao-when { font-size: 15px; }
.ao-end { margin-left: auto; white-space: nowrap; }
.ao s { margin-right: 4px; color: #9e9e9e; }
.ao-price { color: rgba(0, 0, 0, .7); }
.ao-options { margin: 0; padding: 0; list-style: none; }
.ao-options li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #e0e0e0; }
.ao-options li:first-child { border-top: 0; }
.ao-options li > span:first-child { min-width: 0; overflow-x: auto; white-space: nowrap; }
.ao-options li > span:last-child { white-space: nowrap; }
.ao-info { padding: 14px 12px; background: #fff; }
.ao-row { display: flex; align-items: flex-end; color: rgba(0, 0, 0, .54); }
.ao-row > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-row > .ao-t { display: flex; align-items: center; padding-right: 8px; }
.ao-t > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ao-i-btn { flex: none; display: flex; margin-left: 3px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.ao-row strong { font-weight: inherit; white-space: nowrap; }
.ao-row.bold { color: rgba(0, 0, 0, .7); font-weight: 700; }
.ao-row.red { color: #f44336; }
.ao-row .ao-copy { flex: none; margin-left: 4px; font-size: 14px; }
.ao-space { height: 8px; }
.ao-info hr { margin: 9.5px 0; border: 0; border-top: 1px solid #e0e0e0; }
.ao-app { padding: 18px 16px 22px; border-top: 8px solid #f5f5f5; text-align: center; }
.ao-app strong { display: block; font-size: 15px; }
#native-order .ao-app p { margin: 6px 0 14px; font-size: 13px; line-height: 1.6; }
.ao-app .footer-badges, .ao-empty .footer-badges { justify-content: center; }
.ao-empty { text-align: center; }
.ao-list-item { display: block; border-bottom-width: 1px; color: inherit; text-decoration: none; }
.ao-list-total { justify-content: flex-end; gap: 6px; }
.ao-list-total strong { font-weight: 500; }
.ao-list-more { display: flex; justify-content: center; padding: 16px; }
.is-app-order > .order-back { margin: 0; padding: 12px; }
/* The app's alert (CupertinoAlertDialog). */
.ao-alert { width: min(270px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; background: #f2f2f2; color: #000; text-align: center; }
.ao-alert::backdrop { background: rgba(0, 0, 0, .4); }
.ao-alert-body { padding: 19px 16px 18px; }
.ao-alert h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.ao-alert p { margin: 0; font-size: 13px; line-height: 1.45; white-space: pre-line; }
.ao-alert-actions { display: flex; border-top: 1px solid rgba(60, 60, 67, .29); }
.ao-alert-actions button { flex: 1; min-height: 44px; border: 0; background: none; color: #007aff; font: inherit; font-size: 17px; cursor: pointer; }
.ao-alert-actions button + button { border-left: 1px solid rgba(60, 60, 67, .29); }
.ao-alert-actions .is-default { font-weight: 600; }
@media (max-width: 900px) {
    .pdp-grid { grid-template-areas: "head" "main" "aside"; }
    .page-product .staging-ribbon { bottom: 22px; }
}
/* ----- One PDP from interest to payment (2026-10-18) -----
   Desktop: head, packages, then booking on the left; the partner offers then the description on the right.
   Phone: head, packages, offers, booking, description; the aside's children join the page grid. */
.pdp-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto auto 1fr; grid-template-areas: "head aside" "packages aside" "book aside"; }
.pdp-grid > .pdp-packages { grid-area: packages; min-width: 0; margin-top: 18px; }
.pdp-book { grid-area: book; min-width: 0; }
.pdp-book .pdp-booking, .pdp-book .pdp-rules { margin-top: 16px; }
.pdp-aside { align-self: start; }
.pdp-offers { display: grid; gap: 12px; }
#pdp-invite-slot:has(.af-share[hidden]) { display: none; }
.pdp-offers:not(:has(> :not([hidden]):not(:empty))) { display: none; }
.pdp-offers .af-code-card { margin: 0; }
.pdp-offers .af-share { margin-top: 0; }
.pkg-list[data-pkg-list] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pkg.pkg-option { grid-template-columns: 20px minmax(0, 1fr); align-items: start; cursor: pointer; }
.pkg.pkg-option .pkg-radio { margin-top: 2px; }
.pkg.pkg-option .pkg-body { display: grid; gap: 8px; }
.pkg-includes { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pkg-includes li { display: flex; gap: 6px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.45; }
.pkg-includes svg { flex: none; margin-top: 3px; color: #2e7d32; }
.pkg-prices-line { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: 13px; }
.pkg-prices-line strong { color: var(--price); font: 800 16px Manrope, 'Noto Sans Thai', sans-serif; }
.pkg-prices-line span:first-child strong { font-size: 18px; }
.pkg.pkg-option .pkg-notes { margin-top: 0; }
/* Compact cards (2026-10-20): many packages should scan without a long scroll. Only the headline price is in the
   price orange, like the starting price; the other ticket types read as plain facts. Notes appear only when a package differs. */
.pkg.pkg-option { padding: 11px 14px; gap: 10px; }
.pkg.pkg-option .pkg-body { gap: 4px; }
.pkg.pkg-option .pkg-name, .pkg.pkg-option .pkg-includes li { font-size: 14.5px; line-height: 1.4; }
.pkg-prices-line { gap: 0 12px; }
.pkg-prices-line strong { color: var(--ink); font-size: 15px; }
.pkg-prices-line span:first-child strong { color: var(--price); font-size: 17px; }
.pkg.pkg-option .pkg-notes { gap: 4px; }
.pkg-notes span { padding: 0 7px; font-size: 11.5px; line-height: 20px; }
.pkg-notes span.warn { background: #fdecec; color: #c62828; font-weight: 600; }
.pkg-group-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff8e6; color: #7a5200; font-size: 13px; line-height: 1.45; }
.pkg-group-note[hidden] { display: none; }
/* A chosen card answers at once; its terms load behind a spinner in the radio. */
.pkg.pkg-option.loading .pkg-radio { border: 2px solid var(--brand); border-right-color: transparent; animation: listing-spin .7s linear infinite; }
.pkg.pkg-option.loading { cursor: progress; }
.booking-package { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #f2f9ff; font-size: 14px; }
.booking-package:empty { display: none; }
.booking-package span { color: var(--muted); }
.booking-package strong { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.booking-package a { color: var(--brand-dark); font-weight: 600; }
.addon-list { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.addon-name { margin: 10px 0 4px; font-weight: 600; }
@media (max-width: 900px) {
    .pdp-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "offers" "packages" "book" "about"; }
    .pdp-aside { display: contents; }
    .pdp-offers { grid-area: offers; margin-top: 16px; }
    .pdp-aside .product-description { grid-area: about; margin-top: 16px; }
    .pkg-list[data-pkg-list] { grid-template-columns: minmax(0, 1fr); }
}
/* A page part still loading. */
.af-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 280px; color: var(--muted); font-size: 14px; }
.af-loading-sm { min-height: 120px; }
/* A pressed button that is waiting on the server. */
button.is-busy, .button.is-busy { position: relative; color: transparent !important; }
button.is-busy::after, .button.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: listing-spin .8s linear infinite; }
.button.secondary.is-busy::after, .af-btn-ghost.is-busy::after { border-color: var(--line); border-top-color: var(--brand); }
/* The date strip waits for its prices. */
.date-strip[aria-busy="true"] { position: relative; }
.date-strip[aria-busy="true"] .date-chip:not(.date-more) em { color: transparent; background: linear-gradient(90deg, #eef3f7, #f8fbfd, #eef3f7); background-size: 200% 100%; border-radius: 4px; animation: af-shimmer 1.2s linear infinite; }
@keyframes af-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* Phone header search: inputs stay 16px so iOS does not zoom on focus; the field is drawn smaller instead. */
@media (max-width: 720px) {
    .catalog-structure .catalog-header .header-search input { font-size: 16px; width: 125%; min-width: 0; padding-left: 15px; transform: scale(.8); transform-origin: left center; }
}
/* Account menu under the signed-in photo. */
.account-menu { position: relative; }
.account-link { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.account-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; display: grid; min-width: 180px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.account-pop[hidden] { display: none; }
.account-pop a, .account-pop button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.account-pop a:hover, .account-pop button:hover { background: var(--brand-pale); }
.account-pop [data-sign-out] { color: var(--danger, #b42318); }
html:not([data-account]) .account-menu { display: none; }
.account-pop .is-busy::after { border-color: var(--line); border-top-color: var(--brand); }
/* ----- PDP partner amounts (2026-10-23) -----
   The attraction card above the packages spans every package; each package card carries its own amounts (green earn,
   red save, pill-shaped so they never read as the square red "Noncancellable" note). The friend's-code card sits right
   above the price summary's code row, where the code is typed. */
.af-code-card .af-code-text { flex: 1; min-width: 0; }
.af-code-pay .af-code-card { width: 100%; margin: 0 0 10px; border: 0; font: inherit; text-align: left; cursor: pointer; }
button.af-code-card .af-ic:last-child { flex: none; opacity: .7; }
#af-code-pay-slot:has(.af-code-host:empty) { display: none; }
.af-pkg { display: none; flex-wrap: wrap; gap: 4px 6px; }
html[data-affiliate="on"] .af-pkg { display: flex; }
.af-pkg .af-pill { padding: 1px 8px; font-size: 12px; }
/* What a friend saves: the home card's blue (.af-pill-save), on the product page too. */
.af-pill-off { background: var(--accent-pale); color: var(--brand); }
.pdp-offers .af-share-save { color: var(--brand); }
.af-share-head { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--earn-dark); font-size: 13px; font-weight: 700; }
/* ----- Partner home, compact (2026-10-23) -----
   The FAQ is a centred reading column with only what the sections above leave open. */
.af-earn-open { justify-self: start; display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--brand); font-size: 13px; font-weight: 700; }
.af-faq { text-align: center; }
.af-faq h2 { margin: 0 0 16px; font: 800 clamp(20px, 3.4vw, 28px)/1.25 Manrope, 'Noto Sans Thai', sans-serif; }
.af-faq .af-qa { max-width: 720px; margin-inline: auto; text-align: left; }
/* Undated GTX vouchers (2026-10-23): no date or time step; the booking card says how long the ticket is valid. */
#date-step[hidden], .voucher-note[hidden] { display: none; }
.voucher-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #f2f9ff; color: var(--ink-2); font-size: 14px; line-height: 1.45; }

/* Sign in by scanning a QR code with the app (native-checkout.js qrSignIn). */
.sign-in-submit { margin-top: 14px; justify-content: center; }
.qr-sign-in { margin-top: 16px; text-align: center; }
.qr-sign-in-or { margin: 0 0 10px; color: var(--muted, #6b7a89); font-size: 12px; }
#native-qr { margin-top: 12px; }
#native-qr img { display: block; margin: 0 auto 8px; width: 200px; height: 200px; image-rendering: pixelated; }
#native-qr p { margin: 0; font-size: 12px; color: var(--muted, #6b7a89); }

/* A date answer: typed as yyyy-mm-dd, or picked from the browser's calendar under the button. */
.date-answer { position: relative; display: block; }
.date-answer .field-control { padding-right: 48px; }
.date-answer-button { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; font-size: 18px; overflow: hidden; }
.date-answer-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.date-answer-button input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* After the email sign-in link is sent: what to do next, in place of the form. */
.email-sent { text-align: center; padding: 8px 0 4px; }
.email-sent-icon { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.email-sent h3 { margin: 0 0 6px; font-size: 18px; }
.email-sent p { margin: 0 0 6px; word-break: break-word; }
.email-sent-hint { color: var(--muted, #6b7a89); font-size: 13px; }
.email-sent .button.full { display: block; margin-top: 12px; }
.email-sent-actions { display: flex; gap: 8px; margin-top: 10px; }
.email-sent-actions .button { flex: 1; min-width: 0; }
/* QR sign-in: waiting for the app, then signing in. */
.qr-wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; color: var(--muted, #6b7a89); font-size: 13px; }
.qr-spinner { width: 16px; height: 16px; flex: 0 0 16px; border: 2.5px solid var(--line, #dfe9f1); border-top-color: var(--brand, #0b6bcb); border-radius: 50%; animation: listing-spin .8s linear infinite; }
.qr-approved { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 0; }
.qr-approved .qr-spinner { width: 28px; height: 28px; flex-basis: 28px; border-width: 3px; }

/* 404: a missing page, centred, with the way back. */
.not-found { max-width: 520px; margin: 0 auto; padding: 48px 16px 72px; text-align: center; }
.not-found-art { display: block; width: min(320px, 100%); height: auto; margin: 0 auto 8px; }
.not-found-code { margin: 0; color: var(--brand); font: 800 15px/1 Manrope, 'Noto Sans Thai', sans-serif; letter-spacing: .2em; }
.not-found h1 { margin: 10px 0 8px; font: 800 clamp(24px, 4vw, 30px)/1.25 Manrope, 'Noto Sans Thai', sans-serif; }
.not-found p { margin: 0 0 24px; color: var(--muted); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 480px) { .not-found-actions .af-btn { flex: 1 1 100%; } }
