﻿:root {
  color-scheme: light;
  --bg: #f5f1ea;
  --panel: #ffffff;
  --ink: #203d31;
  --muted: #6d756f;
  --line: #ded4c7;
  --accent: #a75f3c;
  --accent-dark: #87482d;
  --warn: #fff1e6;
  --danger: #9f3328;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
}

button, input { font: inherit; }

.app-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px 18px;
}

.brand img {
  width: 98px;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(41, 34, 26, 0.07);
}

.hidden { display: none !important; }

.muted, .privacy {
  color: var(--muted);
  line-height: 1.55;
}

.privacy {
  margin: 18px 0 0;
  font-size: 14px;
}

.language-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.language-button, .primary, .ghost {
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
}

.language-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}

.primary {
  width: 100%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.primary:active { background: var(--accent-dark); }
.primary:disabled { cursor: wait; opacity: 0.65; }

.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}



.nav-group {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-group .icon-button {
  border: 0;
  border-radius: 0;
}

.nav-group .icon-button + .icon-button {
  border-left: 1px solid var(--line);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}
.nav-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wide {
  width: 100%;
  margin-top: 10px;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}


.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-actions .ghost {
  min-height: 40px;
}
.form {
  display: grid;
  gap: 16px;
}

label, fieldset {
  display: grid;
  gap: 7px;
}

label span, legend {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

input[type="text"], input[type="tel"], input:not([type]) {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.divider {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.checkbox {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.booking-box, .amount-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 14px 0 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-box {
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  align-items: start;
}

.booking-box span, .amount-row span {
  color: var(--muted);
  font-size: 13px;
}

.booking-box span {
  padding-top: 1px;
  line-height: 1.35;
}

.booking-box strong {
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
}


.payment-methods {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.payment-method {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf4;
}

.payment-method h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
}

.payment-method dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.payment-method dl div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: baseline;
}

.payment-method dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.payment-method dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  word-break: break-word;
}

.pay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.line-pay {
  background: #06c755;
  color: #fff;
}

.line-pay:active {
  background: #05a847;
}
.pay-link:active {
  background: #14271f;
}
.notice {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--warn);
  color: var(--danger);
  font-weight: 800;
  line-height: 1.5;
}


.message-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.message-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.message-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
pre {
  max-height: 56vh;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 8px;
  background: #101820;
  color: #edf4f2;
  font-family: "Microsoft JhengHei", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  line-height: 1.55;
}


.recheck-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 11px 12px;
  border-radius: 8px;
  background: #eef5f0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(32, 61, 49, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 16px;
  max-width: 532px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: #203d31;
  color: #fff;
  line-height: 1.45;
}

@media (min-width: 560px) {
  .app-shell { padding-top: 28px; }
  .language-grid { grid-template-columns: 1fr 1fr; }
}









