:root { font-family: 'Sarabun', sans-serif; color: #2c1810; background: #fdf8f5; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #965c4b; outline-offset: 2px; }
[hidden] { display: none !important; }
.phone { width: min(100%, 480px); min-height: 100dvh; margin: auto; background: #fdf8f5; }
.header { min-height: 78px; padding: 20px 22px; border-bottom: 1px solid #ebddd5; background: #fffaf7; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { font: 500 24px/1.2 'Kanit', sans-serif; letter-spacing: -.7px; white-space: nowrap; }
.brand > span:first-child, .brand-dot { color: #c97b6e; }
.brand-dot { margin-left: 6px; font-size: 16px; vertical-align: top; }
.header-note { font-size: 12px; color: #84685e; white-space: nowrap; }
main { padding: 14px 18px 100px; }
.month-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 14px; }
.month-nav h1 { position: relative; margin: 0; text-align: center; font: 500 17px/1.3 'Kanit', sans-serif; }
.month-button { max-width: 100%; padding: 6px; border: 0; border-radius: 8px; background: transparent; font: inherit; white-space: nowrap; }
.month-button:hover, .month-button[aria-expanded="true"] { color: #a66054; background: #fff4ef; }
.month-hint { position: absolute; top: 50%; left: calc(50% + 60px); transform: translate(-4px, -50%); opacity: 0; pointer-events: none; padding: 3px 5px; border: 1px solid #efdcd5; border-radius: 6px; background: #fffaf7; box-shadow: 0 4px 12px #48332512; color: #895346; font: 400 10px/1.3 'Sarabun', sans-serif; white-space: nowrap; transition: opacity .15s, transform .15s; }
.month-button[aria-expanded="false"]:hover + .month-hint, .month-button[aria-expanded="false"]:focus-visible + .month-hint { opacity: 1; transform: translate(0, -50%); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 2px solid #f4dcd6; border-radius: 50%; background: white; color: #c97b6e; font-size: 29px; line-height: 1; }
.cal-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
.cal-strip::-webkit-scrollbar { display: none; }
.cal-day { flex: 0 0 54px; min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 0 6px; border: 0; border-radius: 16px; background: white; color: #9b7e75; scroll-snap-align: start; }
.cal-day span { font-size: 11px; font-weight: 500; }
.cal-day strong { font: 500 23px/1.1 'Kanit', sans-serif; color: #2c1810; }
.cal-day i { width: 5px; height: 5px; border-radius: 50%; }
.cal-day.past { background: #ffffff70; color: #c3b6b1; }
.cal-day.past strong { color: #b2a7a2; }
.cal-day.selected { background: #c97b6e; color: white; }
.cal-day.selected strong { color: white; }
.cal-day.selected i { background: #ffffff80; }
.schedule { margin-top: 2px; padding-top: 12px; border-top: 1px solid #ebddd5; }
#load-status { min-height: 18px; margin: 0 0 8px; color: #84685e; font-size: 11px; }
#load-status:empty { display: none; }
#retry { min-height: 36px; padding: 5px 10px; border: 1px solid #ebddd5; border-radius: 8px; background: white; font-size: 11px; }
.slots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { min-width: 0; min-height: 76px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px solid #f4dcd6; border-radius: 12px; background: white; text-align: center; }
.slot strong { margin-bottom: 5px; font: 500 20px/1.15 'Kanit', sans-serif; }
.slot span { color: #a1847b; font-size: 11px; line-height: 1.4; }
.slot span i { color: #368653; font-size: 7px; font-style: normal; vertical-align: 1px; }
.slot.busy { background: rgba(104,105,107,.06); border-color: #e5e3e1; }
.slot.busy strong { color: #918b88; }
.slot.busy span { padding: 2px 7px; border-radius: 999px; background: rgba(104,105,107,.08); color: #87817e; font-size: 12px; font-weight: 500; }
.slot.past { background: #f5efeb; border-color: #eee5df; }
.slot.past strong { color: #b2a7a2; }
.booking-note { position: fixed; z-index: 10; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 456px); min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #f2d8cf; border-radius: 12px; background: #fff1eb; box-shadow: 0 7px 24px #48332520; color: #895346; text-decoration: none; }
.booking-note:hover { background: #ffe9e0; border-color: #dba99a; }
.booking-note:focus-visible { outline: 3px solid #965c4b; outline-offset: 2px; }
.line-logo { display: block; width: 42px; height: 42px; flex: none; object-fit: contain; }
.booking-copy { flex: 1; min-width: 0; }
.booking-copy strong { display: block; font: 500 14px/1.3 'Kanit', sans-serif; color: #4b2e23; }
.booking-copy span { display: block; font-size: 12px; line-height: 1.4; }
.booking-arrow { flex: none; color: #a66054; font-size: 27px; line-height: 1; }
.month-view { padding-top: 2px; }
.back-to-day { margin: 0 0 15px; padding: 7px 0; border: 0; background: transparent; color: #a66054; font-size: 13px; font-weight: 600; }
.weekday-row, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.weekday-row { margin-bottom: 6px; text-align: center; color: #a1847b; font-size: 11px; }
#month-status { min-height: 18px; margin: 0 0 5px; color: #84685e; font-size: 11px; }
#month-status:empty { display: none; }
.month-day { min-width: 0; min-height: 58px; padding: 5px 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #efdcd5; border-radius: 10px; background: white; }
.month-day strong { font: 500 16px/1 'Kanit', sans-serif; }
.month-day span { color: #368653; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.month-day.full { background: #f7f2ef; border-color: #eee6e1; color: #a69b95; }
.month-day.full span { color: #a69b95; }
.month-day.today { border-color: #c97b6e; box-shadow: inset 0 0 0 1px #c97b6e; }
.skeleton { min-height: 76px; border-radius: 12px; background: linear-gradient(100deg,#f1e5dd 20%,#f9f0ea 40%,#f1e5dd 60%); background-size: 300% 100%; animation: shimmer 2s infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
@media (min-width: 650px) { .phone { margin: 30px auto; min-height: calc(100dvh - 60px); border: 1px solid #ebddd5; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 70px #48332508; } }
@media (max-width: 350px) { main { padding-inline: 14px; } .header { padding-inline: 16px; } .brand { font-size: 21px; } .header-note { font-size: 11px; } .slots-grid { gap: 6px; } .slot { padding: 10px 5px; } .slot strong { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
