@font-face {
  font-family: Noto;
  src: url("/fonts/noto-sans-thai/noto-sans-thai-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Noto;
  src: url("/fonts/noto-sans-thai/noto-sans-thai-600.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #073b48;
  --muted: #6a7c80;
  --cream: #fcf9f3;
  --orange: #f87812;
  --border: #e0e6e5;
  --peach: #fff0e2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    15px/1.6 Noto,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b071dc;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 66px;
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.topbar a {
  text-decoration: none;
}
.brand {
  font:
    bold 25px Georgia,
    serif;
  position: relative;
}
.brand span {
  color: var(--orange);
  font-size: 11px;
  position: absolute;
  right: 97px;
  top: -3px;
}
.back,
.chat {
  font: 32px Georgia;
  min-width: 44px;
  text-align: center;
}
.chat {
  font-size: 27px;
}
.page {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px 30px;
}
.product {
  text-align: center;
}
.kicker {
  color: #dc6408;
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 600;
  margin: 16px 0 6px;
}
.product h1 {
  font:
    bold clamp(32px, 7.7vw, 50px) / 1.1 Georgia,
    serif;
  letter-spacing: -1.5px;
  margin: 8px 0;
}
.byline {
  font-size: 17px;
  margin: 0 0 18px;
}
.gallery {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #f0e6d8;
}
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  aspect-ratio: 4/3;
}
.slides::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  position: relative;
  min-width: 0;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide figcaption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  max-width: 90%;
  background: #fffdf0df;
  padding: 2px 9px;
  font-size: 10px;
  border-radius: 8px;
}
.gallery-arrow {
  position: absolute;
  top: 44%;
  width: 36px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fffdf3e8;
  color: var(--ink);
  font-size: 27px;
  box-shadow: 0 2px 12px #0001;
}
.prev {
  left: 8px;
}
.next {
  right: 8px;
}
.gallery-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #143c46c9;
  color: white;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
}
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 28px;
  margin: 3px 0;
}
.dot {
  border: 0;
  background: none;
  width: 24px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
}
.dot:after {
  content: "";
  width: 6px;
  height: 6px;
  background: #c9ceca;
  border-radius: 50%;
}
.dot[aria-current="true"]:after {
  background: var(--orange);
  width: 18px;
  border-radius: 5px;
}
.gallery-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 10px;
}
.gallery-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin: 2px 6px 10px;
}
.story {
  margin: 14px 0 10px;
  padding: 18px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1e4, #fff8ef);
  text-align: left;
}
.story-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.story-kicker {
  margin: 0;
  color: #df650c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.story h2 {
  margin: 2px 0 1px;
  font-size: clamp(23px, 6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.story-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
.story-art {
  position: relative;
  flex: 0 0 88px;
  height: 86px;
}
.story-art img {
  position: absolute;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 9px #8e4b1e24;
}
.story-art img:first-child {
  top: 0;
  left: 0;
  transform: rotate(-12deg);
}
.story-art img:last-child {
  right: 0;
  bottom: 0;
  width: 55px;
  height: 55px;
  transform: rotate(12deg);
}
.story-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 14px 0 12px;
  padding: 0;
}
.story-benefits li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0 5px;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}
.story-benefits li + li {
  border-left: 1px solid #f3c9aa;
}
.story-benefits li > span {
  color: var(--orange);
  font-size: 23px;
  line-height: 1.2;
}
.story-benefits strong {
  font-weight: 600;
}
.story-occasion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 14px;
  background: #ffe4cf;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.story-occasion span {
  font-size: 21px;
  line-height: 1;
}
.dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--peach);
  border-radius: 15px;
  margin: 14px 0 24px;
  padding: 12px;
}
.date {
  display: flex;
  text-align: left;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.date + .date {
  border-left: 1px solid #ffc99d;
}
.date-icon {
  color: var(--orange);
  font-size: 25px;
}
.date small {
  font-size: 12px;
  display: block;
}
.date strong {
  display: block;
  font-size: 19px;
  line-height: 1.4;
}
h2 {
  font-size: 23px;
  line-height: 1.35;
  margin: 22px 0 4px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.subtle {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}
.pack {
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 14px 13px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  background: white;
  margin-bottom: 10px;
  transition: background 0.15s;
}
.pack.selected {
  border-color: var(--orange);
  background: var(--peach);
}
.pack-name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}
.pack small {
  font-size: 12px;
  display: block;
  font-weight: 400;
  margin-top: 3px;
}
.pack-price {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid #d9dfde;
  border-radius: 24px;
  background: white;
  padding: 2px;
}
.stepper button {
  width: 32px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.stepper output {
  width: 25px;
  text-align: center;
  font-weight: 600;
}
.selected .stepper button[data-delta="1"] {
  background: var(--orange);
  color: white;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: white;
  margin-top: 10px;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--orange);
  background: var(--peach);
}
.choice input {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
  margin: 4px 0 0;
  flex: none;
}
.choice strong {
  font-size: 16px;
}
.choice small {
  display: block;
  font-size: 12px;
}
.choice.disabled {
  border-color: #dce2e3;
  background: #eff1f1;
  color: #819094;
  cursor: not-allowed;
}
.choice.disabled input {
  accent-color: #aeb9bc;
  cursor: not-allowed;
}
.help {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 4px 18px;
}
.summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 17px;
  margin: 20px 0 12px;
}
.summary h2 {
  margin: 0 0 12px;
  font-size: 19px;
}
.summary-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 14px;
}
.summary-row span:last-child {
  text-align: right;
}
.summary-total {
  border-top: 1px solid var(--border);
  padding-top: 13px;
  margin-top: 13px;
  font-weight: 600;
  font-size: 19px;
}
.primary {
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 13px;
  padding: 13px 18px;
  min-height: 50px;
  width: 100%;
  font-size: 19px;
  font-weight: 600;
}
.secondary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--ink);
  min-height: 44px;
}
.bottom-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  text-decoration: underline;
  padding: 10px;
}
.notice {
  background: #fff0dd;
  border: 1px solid #f9c597;
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  margin: 12px 0;
}
.notice.error {
  background: #fff0ef;
  color: #963a28;
}
.loading {
  text-align: center;
  padding: 80px 20px;
}
.address {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: white;
}
.address h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.address label {
  display: block;
  font-size: 12px;
  margin: 10px 0;
}
.address input,
.address textarea,
.address select {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #cfdad8;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  margin-top: 4px;
}
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #173b45;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  max-width: calc(100% - 32px);
  width: 440px;
  z-index: 30;
  font-size: 14px;
}
.receipt {
  max-width: 560px;
  margin: 30px auto;
  padding: 0 20px;
}
.receipt-mark {
  font-size: 40px;
  text-align: center;
}
.receipt h1 {
  text-align: center;
  font-size: 27px;
}
.receipt-ref {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.6px;
}
.receipt .secondary {
  margin: 5px 0;
  width: 100%;
  text-align: center;
  display: block;
  text-decoration: none;
}
.status-pill {
  display: inline-block;
  background: var(--peach);
  color: #9a4a0b;
  border-radius: 24px;
  padding: 4px 12px;
  font-size: 12px;
}
.order-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
  text-align: left;
  width: 100%;
  color: var(--ink);
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 24px;
  max-width: min(480px, calc(100% - 28px));
  color: var(--ink);
  background: var(--cream);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #082e39a6;
}
dialog h2 {
  margin-top: 0;
}
dialog .secondary {
  margin-top: 10px;
  width: 100%;
}
dialog.review-insufficient {
  width: min(480px, calc(100% - 28px));
  padding: 20px;
}
.review-shortfall h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 25px;
  line-height: 1.3;
}
.review-pumpkin {
  font-size: 32px;
  line-height: 1;
  flex: none;
}
.review-shortfall .summary {
  margin: 0;
  padding: 14px 16px;
}
.review-shortfall .summary h2,
.review-shortfall .summary .help {
  display: none;
}
.review-shortfall .summary-row {
  font-size: 15px;
  margin: 7px 0;
}
.review-shortfall .summary-total {
  font-size: 20px;
  margin-top: 11px;
  padding-top: 11px;
}
.review-delivery {
  margin: 13px 3px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.review-delivery span {
  font-size: 17px;
  vertical-align: middle;
  margin-right: 4px;
}
.wallet-shortfall {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  background: var(--peach);
  border: 1px solid #ffbd80;
  border-radius: 13px;
  line-height: 1.35;
}
.wallet-shortfall-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: #dd610b;
}
.wallet-shortfall-icon svg {
  width: 40px;
  height: 40px;
}
.wallet-shortfall span:not(.wallet-shortfall-icon) {
  display: block;
  font-size: 14px;
}
.wallet-shortfall strong {
  display: block;
  color: #de5409;
  font-size: 21px;
  line-height: 1.3;
  margin-top: 2px;
}
.review-shortfall h3 {
  margin: 19px 3px 12px;
  font-size: 18px;
  line-height: 1.35;
}
.review-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 13px 15px;
  margin: 0 0 10px;
  border: 0;
  border-radius: 14px;
  color: white;
  text-align: left;
  text-decoration: none;
  line-height: 1.35;
}
.review-option-topup {
  background: #f36d13;
}
.review-option-admin {
  background: #075a55;
}
.review-option-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
}
.review-option-icon svg {
  width: 32px;
  height: 32px;
}
.review-line-mark {
  background: white;
  color: #075a55;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.review-option-copy {
  display: block;
  min-width: 0;
  flex: 1;
}
.review-option-copy strong,
.review-option-copy small {
  display: block;
}
.review-option-copy strong {
  font-size: 17px;
  font-weight: 700;
}
.review-option-copy small {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
}
.review-option-arrow {
  font-size: 32px;
  line-height: 1;
}
dialog .review-edit {
  margin-top: 13px;
  min-height: 48px;
  font-size: 16px;
}
.review-shortfall #reviewError {
  color: #963a28;
  font-size: 13px;
  margin: 8px 3px 0;
}
@media (max-width: 360px) {
  .review-shortfall h2 { font-size: 22px; }
  .review-option { gap: 9px; padding-inline: 11px; }
  .review-option-copy strong { font-size: 15px; }
  .review-option-copy small { font-size: 11px; }
}
.lang {
  font-size: 12px;
}
.receipt-address {
  white-space: pre-line;
  font-size: 14px;
}
.pending-recovery {
  margin-bottom: 16px;
}
@media (min-width: 900px) {
  .page {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 50px;
    padding-top: 24px;
  }
  .product {
    position: sticky;
    top: 20px;
    align-self: start;
  }
  .form-col {
    padding-top: 12px;
  }
  .product h1 {
    font-size: 44px;
  }
  .topbar {
    height: 84px;
  }
  .pack {
    padding: 18px;
  }
  .stepper button {
    width: 38px;
  }
  .brand {
    font-size: 28px;
  }
}
@media (max-width: 370px) {
  .page {
    padding: 0 14px 25px;
  }
  .story {
    padding: 16px 12px 12px;
  }
  .story-art {
    flex-basis: 70px;
  }
  .story h2 {
    font-size: 23px;
  }
  .story-benefits li {
    padding: 0 3px;
    font-size: 11px;
  }
  .pack {
    gap: 8px;
    padding: 12px 9px;
  }
  .pack-price {
    font-size: 14px;
  }
  .stepper button {
    width: 28px;
  }
  .stepper output {
    width: 22px;
  }
  .choice strong {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Batch-two announcement: content flows at every width; dates never share a prose line. */
.batch-announcement { text-align: left; padding: 20px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.batch-announcement > strong { display: block; font-size: 20px; line-height: 1.5; }
.batch-announcement p { margin: 12px 0 0; }
.batch-schedule { display: grid; gap: 12px; margin: 16px 0; }
.batch-schedule > div { min-width: 0; padding: 10px 12px; border-radius: 8px; background: #fffaf4; }
.batch-schedule dt { font-size: 13px; color: #566c70; }
.batch-schedule dd { margin: 3px 0 0; font-size: 16px; font-weight: 600; line-height: 1.6; }
.batch-schedule dd span { display: block; font-size: 13px; font-weight: 400; }
.date { min-width: 0; }
.date > div { min-width: 0; }
.date-icon { flex-shrink: 0; }
@media (max-width: 370px) {
  .batch-announcement { padding: 16px; }
  .dates { grid-template-columns: 1fr; gap: 12px; }
  .date { justify-content: flex-start; padding: 0 8px; }
  .date + .date { border-left: 0; border-top: 1px solid #ffc99d; padding-top: 12px; }
}
