:root {
  --ink: #181713;
  --ink-soft: #3d3932;
  --cream: #f7f0df;
  --cream-2: #efe4cc;
  --paper: #fffdf7;
  --red: #d7482f;
  --red-dark: #a92c1f;
  --gold: #b78b52;
  --green: #06c755;
  --line: rgba(24, 23, 19, .14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Thonburi", "Leelawadee UI", "Noto Sans Thai",
    "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.booking-shell,
.my-bookings-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 72, 47, .08), transparent 22rem),
    #f8f3e9;
  box-shadow: 0 0 50px rgba(24, 18, 12, .1);
}

.booking-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.booking-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.booking-brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.booking-brand > span {
  min-width: 0;
  display: grid;
  line-height: 1.05;
}

.booking-brand b { font-size: 14px; }

.booking-brand small {
  margin-top: 4px;
  color: #81796f;
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: .18em;
}

.booking-header__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.booking-header__tools select {
  min-width: 66px;
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.booking-language-picker {
  display: flex;
  align-items: center;
  gap: 5px;
}

.booking-language-picker > button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(24, 23, 19, .05);
  cursor: pointer;
}

.booking-language-picker > button img {
  width: 24px;
  height: 17px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(24, 23, 19, .1);
}

.booking-language-picker > button.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(215, 72, 47, .14);
}

.booking-header__shortcut {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.booking-header__shortcut span {
  color: var(--red);
  font: 800 12px/1 "Songti SC", serif;
}

.secure-chip { display: none; }

.booking-progress {
  position: sticky;
  z-index: 19;
  top: 64px;
  height: 3px;
  background: #dfd5c5;
}

.booking-progress span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  transition: width 240ms ease;
}

.friend-banner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 12px 0;
  padding: 9px 11px;
  border: 1px solid rgba(6, 199, 85, .2);
  border-radius: 10px;
  color: #285d40;
  background: #edf9f1;
  font-size: 11px;
  font-weight: 700;
}

.friend-banner > span {
  display: grid;
  place-items: center;
  padding: 5px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font: 900 10px/1 Arial, sans-serif;
}

.friend-banner p {
  min-width: 0;
  flex: 1;
  margin: 0;
}

.friend-banner > a {
  min-width: 28px;
  min-height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 9px;
  white-space: nowrap;
}

.booking-title {
  position: relative;
  min-height: 160px;
  display: grid;
  align-content: end;
  padding: 26px 18px 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(215, 72, 47, .48), transparent 38%),
    linear-gradient(145deg, #2b2520 0%, #12110f 60%, #31130e 100%);
}

.booking-title::before,
.booking-title::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -110px;
  right: -68px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}

.booking-title::after {
  width: 140px;
  height: 140px;
  top: -70px;
  right: -28px;
}

.booking-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--red);
  font: 900 10px/1.2 Arial, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.booking-title .booking-eyebrow { color: #ff8f7c; }

.booking-title h1,
.my-bookings-title h1,
.booking-success h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.booking-title > p:last-of-type,
.my-bookings-title > p:last-of-type,
.booking-success > p:not(.booking-eyebrow) {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: rgba(255,255,255,.66);
  font-size: 12px;
  line-height: 1.55;
}

.booking-title ol {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.booking-title li {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.booking-title li span {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font: 800 10px/1 Arial, sans-serif;
}

.booking-title li.is-active { color: #fff; }
.booking-title li.is-active span { border-color: var(--red); background: var(--red); }

.booking-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.booking-panel,
.booking-summary {
  border: 1px solid rgba(24, 23, 19, .11);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(47, 34, 20, .05);
}

.booking-panel { padding: 16px 14px 18px; }

.booking-layout--service .booking-panel {
  padding-bottom: 16px;
}

.booking-panel__heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.booking-panel__heading > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font: italic 700 11px/1 Georgia, serif;
}

.booking-panel h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }

.booking-panel__heading p {
  margin: 3px 0 0;
  color: #81796e;
  font-size: 11px;
  line-height: 1.45;
}

.service-picker-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(215,72,47,.07), transparent 16rem),
    rgba(255,255,255,.94);
}

.service-picker-heading {
  margin-bottom: 13px;
}

.service-booking-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 9px;
}

.booking-service-card {
  position: relative;
  min-width: 0;
  min-height: 166px;
  aspect-ratio: 2.15;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 3px;
  overflow: hidden;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 20px rgba(38,28,18,.12);
  text-align: left;
  cursor: pointer;
}

.booking-service-card::before,
.booking-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.booking-service-card::before {
  z-index: 1;
  background: linear-gradient(180deg,rgba(0,0,0,.03) 12%,rgba(0,0,0,.82) 100%);
}

.booking-service-card::after {
  z-index: 2;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  pointer-events: none;
}

.booking-service-card--red { background: linear-gradient(140deg,#de6046,#92251e); }
.booking-service-card--ink { background: linear-gradient(140deg,#3d3933,#11110f); }
.booking-service-card--gold { background: linear-gradient(140deg,#c89961,#70452d); }

.booking-service-card__cover {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-service-card__code,
.booking-service-card__name,
.booking-service-card__details {
  position: relative;
  z-index: 3;
}

.booking-service-card__code {
  position: absolute;
  top: 12px;
  left: 13px;
  font: 900 10px/1 Arial,sans-serif;
  letter-spacing: .14em;
}

.booking-service-card__name {
  width: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-service-card__details {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
}

.booking-service-card__details small {
  color: rgba(255,255,255,.74);
  font-size: 10px;
  font-weight: 700;
}

.booking-service-card:active {
  transform: scale(.985);
}

.booking-service-card.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(215,72,47,.26), 0 10px 26px rgba(38,28,18,.18);
}

.selected-service-card {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  margin: -4px -2px 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf8f1;
}

.selected-service-card__cover {
  position: relative;
  width: 62px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: #fff;
}

.selected-service-card__cover--red { background: linear-gradient(140deg,#de6046,#92251e); }
.selected-service-card__cover--ink { background: linear-gradient(140deg,#3d3933,#11110f); }
.selected-service-card__cover--gold { background: linear-gradient(140deg,#c89961,#70452d); }
.selected-service-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.selected-service-card__cover b { font: 400 24px/1 "Songti SC",serif; }

.selected-service-card__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.selected-service-card__copy small {
  color: #8c8377;
  font: 800 10px/1 Arial,sans-serif;
  letter-spacing: .06em;
}

.selected-service-card__copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-service-card__copy em {
  color: #6f675d;
  font-size: 10px;
  font-style: normal;
}

.selected-service-card > button,
.selected-room-availability > button,
.selected-room-availability > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--red-dark);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.selected-service-card--compact {
  margin-bottom: 13px;
}

.date-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.date-options--calendar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.date-options button {
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 7px 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.date-options button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.date-options small { color: #857d72; font-size: 10px; }
.date-options strong { font-size: 12px; }

.date-options button.is-selected,
.time-options button.is-selected {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
  box-shadow: 0 7px 18px rgba(215,72,47,.18);
}

.date-options button.is-selected small { color: rgba(255,255,255,.74); }

.booking-load-more-dates {
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.booking-load-more-dates span { margin-left: 7px; color: var(--red); }

.booking-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.booking-field-row > label:first-child { grid-column: 1 / -1; }

.booking-field-row > label > span,
.contact-form-grid label > span {
  display: block;
  margin-bottom: 7px;
  color: #6f675d;
  font-size: 11px;
  font-weight: 800;
}

.contact-form-grid label > span b { margin-left: 3px; color: var(--red); }

.time-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.time-options button {
  min-height: 42px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: 700 11px/1 Arial, sans-serif;
}

.time-options button:disabled { cursor: not-allowed; opacity: .32; }
.time-options button small {
  color: currentColor;
  font: 700 10px/1.15 Arial, "Thonburi", sans-serif;
  opacity: .72;
}
.time-options button.is-unavailable {
  border-color: #e2d8ca;
  color: #9a9083;
  background: #f2ede5;
  box-shadow: none;
}
.time-options button.is-unavailable:disabled { opacity: .72; }

.booking-field-row select,
.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.contact-form-grid textarea { min-height: 92px; resize: vertical; }

.booking-field-row select:focus,
.contact-form-grid input:focus,
.contact-form-grid select:focus,
.contact-form-grid textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215,72,47,.1);
}

.guest-counter {
  min-height: 44px;
  display: grid;
  grid-template-columns: 36px auto 1fr 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guest-counter button {
  align-self: stretch;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.guest-counter button:disabled {
  color: #bcb3a7;
  cursor: not-allowed;
}

.guest-counter strong { font-size: 12px; }
.guest-counter small { margin-left: 3px; color: #8a8277; font-size: 10px; }

.selected-room-availability {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid #e4caa9;
  border-radius: 9px;
  color: #8b5a26;
  background: #fff4e5;
}

.selected-room-availability > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e59541;
  box-shadow: 0 0 0 5px rgba(229,149,65,.12);
}

.selected-room-availability > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.selected-room-availability b { font-size: 11px; }
.selected-room-availability small { color: #7d7469; font-size: 10px; }
.selected-room-availability.is-available { color: #286d45; border-color: #b7ddc4; background: #edf9f1; }
.selected-room-availability.is-available > i { background: var(--green); box-shadow: 0 0 0 5px rgba(6,199,85,.1); }
.selected-room-availability.is-unavailable { color: #982e26; border-color: #edc1bc; background: #fff0ed; }
.selected-room-availability.is-unavailable > i { background: var(--red); box-shadow: 0 0 0 5px rgba(215,72,47,.1); }

.booking-quote-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3px 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(215,72,47,.2);
  border-radius: 10px;
  background: #fff7f1;
}

.booking-quote-row span {
  color: #746b60;
  font-size: 11px;
  font-weight: 800;
}

.booking-quote-row strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--red-dark);
  font-size: 18px;
}

.booking-quote-row small {
  color: #8a8175;
  font-size: 10px;
}

.booking-stage-actions {
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.booking-stage-actions--single {
  grid-template-columns: 1fr;
}

.booking-stage-actions .booking-back,
.booking-stage-actions .booking-primary {
  min-height: 44px;
  margin: 0;
}

.booking-subheading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}

.booking-subheading h2 { font-size: 15px; }
.booking-subheading small { color: #81796d; font-size: 10px; text-align: right; }

.booking-room-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.booking-room-options > button {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.booking-room-options > button.is-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(215,72,47,.12);
}

.booking-room-options > button:disabled { cursor: not-allowed; opacity: .58; }

.room-thumb {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: rgba(255,255,255,.94);
  font: italic 26px/1 Georgia, serif;
}

.room-thumb img { width: 100%; height: 100%; object-fit: cover; }

.room-thumb i {
  position: absolute;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
}

.room-thumb--red,
.booking-summary__art--red,
.my-booking-art--red { background: linear-gradient(140deg, #de6046, #92251e); }
.room-thumb--ink,
.booking-summary__art--ink,
.my-booking-art--ink { background: linear-gradient(140deg, #3d3933, #11110f); }
.room-thumb--gold,
.booking-summary__art--gold,
.my-booking-art--gold { background: linear-gradient(140deg, #c89961, #70452d); }

.booking-room-name { grid-column: 1 / -1; min-width: 0; display: grid; gap: 3px; }
.booking-room-name small,
.room-meta small { color: #8e867a; font: 800 10px/1 Arial, sans-serif; letter-spacing: .1em; }
.booking-room-name b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.room-meta { display: grid; gap: 3px; }
.room-meta b { font-size: 11px; }

.room-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 5px 7px;
  border-radius: 999px;
  color: #35704e;
  background: #eaf8ef;
  font-size: 10px;
  font-weight: 800;
}

.room-status i,
.booking-status i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.room-status--warn { color: #965922; background: #fff1df; }
.room-status--warn i { background: #e59541; }

.selection-radio {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(0,0,0,.18);
}

.is-selected .selection-radio i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.liff-empty-state {
  grid-column: 1 / -1;
  min-height: 156px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #cfc3b1;
  border-radius: 10px;
  color: #81796e;
  background: #fbf8f1;
  text-align: center;
}

.liff-empty-state span { font: 400 30px/1 "Songti SC", serif; }
.liff-empty-state p { margin: 0; padding-inline: 20px; font-size: 11px; }

.contact-form-grid { display: grid; gap: 12px; }
.contact-form-grid .is-wide { grid-column: 1 / -1; }

.payment-grid { display: grid; }

.bank-card {
  padding: 17px;
  border-radius: 10px;
}

.bank-card {
  color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(215,72,47,.3), transparent 45%), #22201c;
}

.bank-account-details { display: grid; gap: 12px; margin: 0; }
.bank-account-details > div { display: grid; gap: 3px; }
.bank-account-details dt { color: rgba(255,255,255,.58); font: 800 10px/1 Arial, sans-serif; letter-spacing: .1em; }
.bank-account-details dd { margin: 0; overflow-wrap: anywhere; font: 800 14px/1.25 Arial, sans-serif; letter-spacing: .03em; }
.bank-account-details > div:last-child dd { letter-spacing: .08em; }

.deposit-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); font-size: 11px; }
.deposit-row strong { font-size: 14px; }

.slip-upload {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 12px;
  padding: 13px;
  border: 1px dashed #b8ad9d;
  border-radius: 10px;
  background: #fbf8f1;
  cursor: pointer;
}

.slip-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slip-upload > img { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; }
.upload-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 20px; }
.slip-upload > span:last-child { min-width: 0; display: grid; gap: 4px; }
.slip-upload b { overflow-wrap: anywhere; font-size: 10px; }
.slip-upload small { color: #81796e; font-size: 10px; line-height: 1.45; }
.slip-upload.has-file { justify-content: flex-start; border-style: solid; border-color: #8ac49f; background: #f0faf4; }

.booking-summary {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0 12px;
  padding: 11px;
}

.booking-summary__art {
  position: relative;
  grid-row: 1 / span 5;
  min-height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: rgba(255,255,255,.95);
}

.booking-summary__art::before { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.booking-summary__art > img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booking-summary__art span { position: absolute; top: 10px; left: 9px; font: 900 10px/1 Arial,sans-serif; letter-spacing: .14em; }
.booking-summary__art b { position: relative; font: 400 42px/1 "Songti SC",serif; }
.booking-summary h2 { align-self: end; margin: 2px 0 2px; color: #8a8276; font-size: 10px; }
.booking-summary h3 { margin: 0; font-size: 14px; letter-spacing: -.025em; }
.booking-summary dl { display: grid; margin: 8px 0; border-block: 1px solid var(--line); }
.booking-summary dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; }
.booking-summary dl div + div { border-top: 1px solid var(--line); }
.booking-summary dt { color: #8b8377; font-size: 10px; }
.booking-summary dd { margin: 0; font-size: 11px; font-weight: 800; text-align: right; }
.booking-summary dl div:nth-child(n+3) { display: flex; }

.booking-primary,
.success-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.booking-primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; color: #fff; background: var(--red); }
.booking-primary:disabled { color: #a59d91; background: #e8e1d6; cursor: not-allowed; }
.booking-back { width: 100%; min-height: 40px; margin-top: 3px; border: 0; color: #71695e; background: transparent; font-size: 10px; font-weight: 700; }
.booking-error { margin: 8px 0 0; color: var(--red-dark); font-size: 11px; line-height: 1.45; }
.booking-action-reason { margin: 7px 0 0; color: #82796d; font-size: 10px; line-height: 1.45; text-align: center; }

.booking-success {
  min-height: calc(100svh - 150px);
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 38px 18px;
  text-align: center;
}

.success-mark { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(6,199,85,.25); border-radius: 50%; background: #eaf8ef; }
.success-mark span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 21px; }
.booking-success > p:not(.booking-eyebrow) { max-width: 370px; color: #786f64; }

.success-booking-card { width: 100%; margin-top: 22px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; }
.success-booking-card > div:first-child { display: grid; gap: 3px; }
.success-booking-card small { color: #8c8478; font-size: 10px; }
.success-booking-card strong { font: 800 14px/1.2 Arial,sans-serif; }
.success-booking-card > span,
.booking-status { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 999px; color: #996023; background: #fff1df; font-size: 10px; font-weight: 800; }
.success-booking-card > span { margin-top: 9px; }
.success-booking-card > span i { width: 5px; height: 5px; border-radius: 50%; background: #e59541; }
.success-booking-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 15px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }
.success-booking-card dt { color: #81796e; font-size: 10px; }
.success-booking-card dd { margin: 3px 0 0; font-size: 11px; font-weight: 800; }
.success-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.success-actions button { border: 1px solid var(--line); color: var(--ink); background: #fff; }

.my-bookings-content { padding: 28px 12px 24px; }
.my-bookings-title { margin: 0 5px 22px; }
.my-bookings-title h1 { font-size: 30px; }
.my-bookings-title > p:last-of-type { color: #776f65; }

.bookings-sync-note { min-height: 48px; display: flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: #625b52; background: #f2ecdf; font-size: 11px; font-weight: 700; line-height: 1.45; }
.bookings-sync-note i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #a69b8b; }
.bookings-sync-note.is-connecting i { background: var(--green); box-shadow: 0 0 0 4px rgba(6,199,85,.1); animation: booking-sync-pulse 1.2s ease-in-out infinite; }
.bookings-sync-note.is-error { color: #8d3128; border-color: rgba(215,72,47,.22); background: #fff1ed; }
.bookings-sync-note.is-error i { background: var(--red); }
.bookings-sync-note button { min-height: 32px; margin-left: auto; padding: 0 9px; border: 1px solid currentColor; border-radius: 7px; color: inherit; background: transparent; font: inherit; }
@keyframes booking-sync-pulse { 50% { opacity: .35; } }

.booking-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 4px; border-radius: 10px; background: #eae2d5; }
.booking-tabs button { min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 5px; border: 0; border-radius: 7px; color: #81796e; background: transparent; font-size: 10px; font-weight: 800; }
.booking-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: 0 4px 14px rgba(38,28,18,.08); }
.booking-tabs button span { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #81796e; background: #e9e2d6; font: 800 10px/1 Arial,sans-serif; }

.my-booking-list { display: grid; gap: 10px; margin-top: 12px; }
.my-booking-card { display: grid; grid-template-columns: 92px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 8px 24px rgba(47,34,20,.05); }
.my-booking-card.is-highlighted { border-color: rgba(197,45,36,.58); box-shadow: 0 0 0 3px rgba(197,45,36,.12), 0 12px 30px rgba(47,34,20,.1); }
.my-booking-art { position: relative; min-height: 226px; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.95); }
.my-booking-art > img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.my-booking-info { min-width: 0; padding: 14px 12px; }
.my-booking-info__top { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; }
.my-booking-info__top > div { min-width: 0; display: grid; gap: 2px; }
.my-booking-info__top small { color: #8c8478; font-size: 10px; }
.my-booking-info__top strong { overflow: hidden; font: 800 11px/1.2 Arial,sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.booking-status { width: fit-content; justify-self: end; white-space: nowrap; }
.booking-status i { background: #e59541; }
.booking-status.is-confirmed { color: #35704e; background: #eaf8ef; }
.booking-status.is-confirmed i { background: var(--green); }
.booking-status.is-changed { color: #315c7a; background: #e8f2f8; }
.booking-status.is-changed i { background: #4d88ac; }
.booking-status.is-cancelled { color: #887f74; background: #eeeae3; }
.booking-status.is-cancelled i { background: #988f83; }
.my-booking-info h2 { margin: 11px 0 9px; overflow-wrap: anywhere; font-size: 17px; letter-spacing: -.03em; }
.my-booking-info dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-block: 1px solid var(--line); }
.my-booking-info dl div { padding: 9px 0; }
.my-booking-info dl div + div { padding-left: 9px; border-left: 1px solid var(--line); }
.my-booking-info dl div:last-child { display: none; }
.my-booking-info dt { margin-bottom: 3px; color: #8a8276; font-size: 10px; }
.my-booking-info dd { margin: 0; font: 400 11px/1.45 Arial,"Thonburi",sans-serif; }
.my-booking-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 9px; }
.my-booking-actions button,
.my-booking-actions a { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 800; text-align: center; }
.my-booking-actions button:first-child { color: #fff; border-color: var(--ink); background: var(--ink); }
.my-booking-actions .is-danger { color: var(--red); }
.my-booking-actions a { grid-column: 1 / -1; }

.empty-bookings { min-height: 270px; display: grid; place-items: center; align-content: center; gap: 10px; color: #91897e; }
.empty-bookings span { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 400 24px/1 "Songti SC",serif; }
.empty-bookings p { margin: 0; font-size: 11px; }

.booking-dialog-backdrop { position: fixed; z-index: 300; inset: 0; display: grid; align-items: end; justify-items: center; background: rgba(17,16,14,.68); backdrop-filter: blur(4px); }
.booking-dialog { position: relative; width: min(100%,480px); display: grid; justify-items: center; padding: 34px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--paper); text-align: center; }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; background: transparent; font-size: 22px; }
.booking-dialog h2 { margin: 15px 0 7px; font-size: 19px; }
.booking-dialog p { margin: 0 0 16px; color: #756e63; font-size: 11px; line-height: 1.65; }
.booking-dialog > a { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; color: #fff; background: var(--green); font-size: 11px; font-weight: 800; }
.booking-dialog .dialog-danger-action { width: 100%; min-height: 46px; border: 0; border-radius: 9px; color: #fff; background: var(--red); font-size: 11px; font-weight: 800; }
.booking-dialog .dialog-danger-action:disabled { opacity: .55; }
.booking-dialog > button:last-child { min-height: 40px; margin-top: 4px; border: 0; color: #716a60; background: transparent; font-size: 10px; }

.liff-bottom-nav {
  position: fixed;
  z-index: 200;
  right: 0;
  bottom: 0;
  left: 50%;
  width: min(100%,480px);
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 8px;
  overflow: visible;
  padding: 8px 18px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(24,23,19,.12);
  border-radius: 22px 22px 0 0;
  background: rgba(255,253,247,.96);
  box-shadow: 0 -12px 36px rgba(32,23,15,.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.liff-bottom-nav__item {
  position: relative;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  color: #8d8478;
}

.liff-bottom-nav__item > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #d6ccbd;
  border-radius: 50%;
  font: 700 14px/1 "Songti SC",serif;
}

.liff-bottom-nav__item b { font-size: 10px; white-space: nowrap; }
.liff-bottom-nav__item.is-active { color: #fff; background: var(--ink); }
.liff-bottom-nav__item.is-active > span { border-color: var(--red); background: var(--red); }

.liff-bottom-nav__item--prominent {
  margin-top: -25px;
  padding-top: 2px;
  color: var(--red-dark);
  background: transparent;
}

.liff-bottom-nav__item--prominent > span {
  width: 56px;
  height: 56px;
  border: 4px solid #fff;
  color: #fff;
  background: linear-gradient(145deg,var(--red),var(--red-dark));
  box-shadow: 0 9px 24px rgba(197,45,36,.34);
  font: 500 24px/1 Arial,sans-serif;
}

.liff-bottom-nav__item--prominent.is-active {
  color: var(--red-dark);
  background: transparent;
}

.liff-bottom-nav__item--prominent.is-active > span {
  border-color: #fff;
  background: linear-gradient(145deg,var(--red),var(--red-dark));
  transform: translateY(-2px) scale(1.03);
}

@media (min-width: 481px) {
  body { background: #e9e1d4; }
  .booking-shell,
  .my-bookings-shell { border-inline: 1px solid rgba(24,23,19,.08); }
}

@media (max-width: 359px) {
  .booking-brand > span { display: none; }
  .booking-title { padding-inline: 14px; }
  .booking-title h1,
  .my-bookings-title h1 { font-size: 27px; }
  .booking-title li { font-size: 10px; }
  .booking-title li span { width: 18px; height: 18px; }
  .booking-layout { padding-inline: 8px; }
  .booking-panel { padding-inline: 10px; }
  .service-booking-grid { gap: 7px; }
  .booking-service-card { min-height: 150px; padding: 9px; }
  .booking-service-card__name { font-size: 12px; }
  .selected-service-card { grid-template-columns: 54px minmax(0,1fr); }
  .selected-service-card__cover { width: 54px; height: 54px; }
  .selected-service-card > button { grid-column: 1 / -1; width: 100%; }
  .booking-room-options { grid-template-columns: 1fr; }
  .room-thumb { height: 106px; }
  .booking-summary { grid-template-columns: 76px minmax(0,1fr); }
  .my-booking-card { grid-template-columns: 78px minmax(0,1fr); }
  .my-booking-info { padding-inline: 9px; }
  .liff-bottom-nav { padding-inline: 8px; }
  .liff-bottom-nav__item { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-progress span { transition: none; }
  .bookings-sync-note.is-connecting i { animation: none; }
}
