@font-face {
  font-family: HelveticaNeue;
  src: url('HelveticaNeue-Regular.ttf') format('truetype');
  font-display: swap;
}
:root { --accent: #e57e58; --ink: #222; --muted: #666; --bs-primary: #e57e58; }
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0 8px 52px; background: #fff; color: var(--ink);
  font-family: HelveticaNeue, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.4;
}
.site-header {
  height: 64px; max-width: 786px; margin: auto; display: flex;
  align-items: flex-start; justify-content: space-between; padding-top: 12px;
}
.brand { background: none; border: 0; padding: 0 2px; display: flex; align-items: center; gap: 6px; color: var(--accent); }
.home-icon { width: 30px; height: 30px; fill: currentColor; }
.brand-logo {
  display: block; width: 124px; height: 32px; background: var(--accent);
  mask: url('logo.svg') no-repeat center / contain;
  -webkit-mask: url('logo.svg') no-repeat center / contain;
}
.site-header nav { display: flex; align-self: flex-end; gap: 12px; padding: 0 25px 7px 0; }
.site-header nav a, .site-header nav button {
  color: #252525; text-decoration: none; background: none; border: 0; padding: 0; font-size: 14px;
}
.booking-card {
  max-width: 786px; min-height: calc(100dvh - 113px); margin: 0 auto; padding: 8px 12px 28px;
  border: 1px solid #ddd; border-radius: 5px; box-shadow: 0 0 3px #0003; outline: none;
}
h1 { font-size: 20px; font-weight: 600; margin: 12px 0 6px; line-height: 1.35; }
h2 { font-size: 16px; font-weight: 600; margin: 10px 0 5px; line-height: 1.35; }
p { margin: 0 0 6px; }
.subdued { font-size: 12px; color: #444; }
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; fill: currentColor; flex-shrink: 0; }
.btn { font-size: 12px; min-height: 32px; padding: 5px 16px; border-radius: 8px; box-shadow: 0 1px 3px #0003; }
.btn-primary {
  --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #d36d48; --bs-btn-hover-border-color: #d36d48;
  --bs-btn-active-bg: #bd5d3c; --bs-btn-active-border-color: #bd5d3c;
  --bs-btn-disabled-bg: #ce9c88; --bs-btn-disabled-border-color: #ce9c88; color: #fff;
}
.btn .icon { width: 14px; height: 14px; vertical-align: -2px; }
.book-table { min-width: 120px; }
.manage { width: 190px; color: #a34c56; border-color: #d7c4c7; }
.btn-outline-secondary { color: #444; border-color: #bcbcbc; }
.policies { margin-top: 20px; }
.policy { margin: 0 0 10px; }
.policy p { font-size: 12px; white-space: pre-line; }
.policy a { color: #925236; }
.policy img { max-width: 100%; height: auto; }
.crumb { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; font-size: 14px; color: #888; }
.crumb button { border: 0; padding: 0; background: transparent; color: #888; text-decoration: underline; }
.selection-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.selection { font-size: 15px; margin-bottom: 8px; }
.selection > div { display: flex; align-items: center; gap: 16px; min-height: 21px; }
.selection span { display: inline-flex; align-items: center; gap: 6px; }
.selection .icon { width: 16px; height: 16px; }
.form-label { font-size: 12px; font-weight: 400; margin-bottom: 4px; }
.form-control, .form-select { font-size: 14px; border-radius: 3px; min-height: 40px; }
.form-control:focus, .form-select:focus { border-color: #6750a4; box-shadow: 0 0 0 1px #6750a4; }
.form-control:disabled { background: #f5f5f5; }
.compact { max-width: 240px; margin: 8px 0 24px 12px; }
.form-container { max-width: 320px; margin: 20px auto; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.guest-picker { margin: 12px 0 28px 10px; width: 200px; background: #fff; box-shadow: 0 0 7px #dc7e5a; }
.guest-picker summary, .quantity-picker summary { cursor: pointer; list-style: none; text-align: center; position: relative; }
.guest-picker summary { height: 48px; line-height: 48px; padding: 0 30px; font-size: 14px; }
summary::-webkit-details-marker { display: none; }
.guest-picker summary::after, .quantity-picker summary::after {
  content: ''; position: absolute; right: 26px; top: calc(50% - 4px);
  width: 8px; height: 8px; border-right: 2px solid #777; border-bottom: 2px solid #777; transform: rotate(45deg);
}
.guest-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 4px 12px; }
.guest-grid button { background: #fff; border: 0; height: 34px; font-size: 18px; }
.guest-grid button:hover, .guest-grid button[aria-pressed='true'] { background: #fff0e9; color: #b75b3b; }
.party-title { font-size: 14px; margin: 0; font-weight: 700; }
.party-policy-title { font-size: 18px; font-weight: 400; margin-top: 0; }
.party-policy-copy { font-size: 14px; margin-top: 8px; }
.calendar { width: 320px; max-width: 100%; margin: 12px 0 20px 10px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.calendar-head button { border: 0; background: none; font-size: 22px; width: 36px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-grid .weekday { text-align: center; font-size: 12px; color: #666; margin-bottom: 6px; }
.calendar-grid button { border: 0; background: white; border-radius: 50%; height: 36px; color: #222; }
.calendar-grid button:hover:not(:disabled), .calendar-grid button.selected { background: var(--accent); color: white; }
.calendar-grid button.today { border: 1px solid var(--accent); }
.calendar-grid button:disabled { color: #c4c4c4; }
.filter { width: 180px; height: 50px; border: 1px solid #ff9800; border-radius: 0; text-align: center; padding-right: 36px; }
.section-block { margin: 22px 0 0 16px; }
.section-block + .section-block { margin-top: 14px; }
.section-heading { font-size: 16px; font-weight: 500; margin: 0 0 12px; }
.time-grid { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 8px; }
.time-chip {
  border: 0; border-radius: 9px; background: var(--accent); color: #fff; padding: 8px 5px;
  font-size: 12px; font-weight: 700; min-width: 64px; height: 32px; box-shadow: 0 1px 4px #0004;
}
.time-chip:hover { background: #cf704d; }
.preorder-selection { display: flex; justify-content: space-between; align-items: flex-start; font-size: 14px; font-weight: 600; margin: -2px 0 14px; }
.preorder-selection > div > div { min-height: 21px; }
.preorder-selection span { margin-left: 14px; }
.preorder-selection .icon { width: 16px; height: 16px; }
.cart-badge { text-align: center; font-weight: 400; margin: -8px 0 0; }
.cart-badge .icon { color: var(--accent); width: 32px; height: 32px; display: block; margin: auto; }
.cart-badge small { font-size: 12px; }
.preorder-title { margin: 0; }
.preorder-intro { max-width: 310px; font-size: 14px; margin-bottom: 16px; }
.menu-item { margin: 0 0 24px; }
.menu-product { display: flex; align-items: center; gap: 12px; }
.menu-image { width: 110px; height: 80px; background: #f2f2f2; position: relative; flex: 0 0 110px; display: grid; place-items: center; color: #b5b5b5; }
.menu-image .icon { width: 28px; height: 28px; }
.menu-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-information h2 { font-size: 16px; font-weight: 700; margin: 0; }
.menu-information strong { font-size: 16px; font-weight: 700; display: block; }
.money { font-variant-numeric: tabular-nums; }
.quantity-picker { width: 215px; position: relative; background: white; box-shadow: 0 0 5px #e57e5899; }
.quantity-picker summary { height: 50px; padding: 16px 32px 16px 12px; font-size: 12px; }
.quantity-panel { position: absolute; top: 50px; left: 0; right: 0; padding: 8px; background: white; box-shadow: 0 3px 5px #0003; z-index: 5; }
.quantity-panel label { font-size: 12px; }
.quantity-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 8px; }
.quantity-grid button { border: 0; background: white; height: 32px; }
.quantity-grid button:hover { background: #fff0e9; }
.menu-description { margin: 16px 8px 0; font-size: 14px; white-space: normal; }
.cart-heading, .cart-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid #bbb; }
.cart-heading h2 { font-size: 18px; font-weight: 400; margin: 12px 0 0; }
.cart-heading button { background: none; border: 0; color: #ae3232; font-size: 12px; padding: 6px 0 0; }
.cart-row > span:last-child { white-space: nowrap; }
.cart-total { text-align: right; margin-bottom: 0; }
.cart-actions { justify-content: flex-end; margin: 20px -4px 0 0; }
.cart-actions .btn { padding: 5px 8px; }
.customer-panel { max-width: 320px; margin: 20px auto 0; }
.customer-panel h1 { font-size: 18px; font-weight: 400; margin: 0 0 10px; }
.phone-field { display: flex; align-items: center; margin-top: 8px; }
.phone-field > span { width: 40px; flex: 0 0 40px; font-size: 12px; text-align: center; }
.phone-field input { border-radius: 10px; height: 48px; font-size: 12px; padding: 12px 15px; border-color: #88818f; }
.customer-panel .actions { justify-content: flex-end; margin-top: 12px; }
.customer-panel .btn { min-width: 90px; padding: 5px 12px; }
.customer-details { margin-top: 5px; }
.customer-field { margin-top: 5px; }
.customer-field .form-control { height: 40px; min-height: 40px; border: 1px solid #88818f; font-size: 12px; padding: 8px 10px; }
.customer-field textarea { resize: vertical; }
.customer-details .actions { margin-top: 8px; }
.manual-details { background: none; border: 0; text-decoration: underline; color: #888; font-size: 14px; padding: 6px 0 12px; }
.remember-device { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 10px 0 2px; cursor: pointer; }
.remember-device input { width: 16px; height: 16px; accent-color: var(--accent); }
.remembered-note { font-size: 12px; margin: 8px 0 0; }
.remembered-note .manual-details { font-size: 12px; padding: 0 0 0 4px; }
.total { font-weight: 700; margin-top: 18px; }
.notice-box { padding: 12px; border: 1px solid #e0cbbf; background: #fffaf5; border-radius: 4px; margin: 12px 0; font-size: 12px; }
.reservation-group { margin-top: 22px; }
.reservation-group + .reservation-group { border-top: 2px solid #bbb; padding-top: 20px; }
.reservation-group h2 { margin: 0 0 4px; }
.reservation-group .reservation-row:last-child { border-bottom: 0; }
.reservation-row { border-bottom: 1px solid #ddd; padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; }
.reservation-row p { font-size: 12px; }
.confirmation-actions { display: flex; justify-content: space-between; align-items: center; min-height: 24px; margin-top: 3px; }
.confirmation-actions > div { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.btn-export, .btn-confirmation-cancel { min-height: 24px; height: 24px; font-size: 12px; padding: 2px 10px; color: #222; background: white; border-radius: 9px; }
.btn-export { width: 110px; flex-shrink: 0; white-space: nowrap; border: 1px solid #ddd; }
.btn-confirmation-cancel { width: 162px; border: 1px solid #ffb7b7; box-shadow: 0 0 4px #ffb7b799; }
.btn-confirmation-cancel:hover { background: #fff5f5; border-color: #ff7777; }
.btn-confirmation-cancel .icon { color: #ff4040; width: 14px; height: 14px; }
.confirmation-number { text-align: left; margin: 0 0 16px; font-size: 12px; overflow-wrap: anywhere; }
.confirmation-number p { margin: 0; }
.confirmation-body { max-width: 340px; margin: auto; font-size: 13px; }
.confirmation-body h1 { font-size: 18px; font-weight: 600; margin-top: 16px; margin-bottom: 8px; }
.confirmation-body > h1:first-child { margin-bottom: 0; }
.confirmation-body .policies { margin-top: 12px; }
.confirmation-body .policy h2 { font-size: 15px; font-weight: 500; margin-top: 8px; margin-bottom: 4px; }
.confirmation-body .policy p { font-size: 12px; line-height: 1.4; }
.status { display: inline-block; border-radius: 12px; padding: 3px 10px; font-size: 12px; background: #e9f4e8; color: #326a32; }
.status.cancelled { background: #f4e9e9; color: #8c3c3c; }
#notice { position: fixed; left: 50%; bottom: 55px; transform: translateX(-50%); max-width: calc(100vw - 24px); width: 600px; padding: 14px 20px; background: #a13333; color: white; border-radius: 5px; z-index: 20; box-shadow: 0 2px 8px #0003; font-size: 13px; }
#loading { position: fixed; inset: 0; background: #fffc; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 10px; color: #88533d; }
#loading[hidden], #notice[hidden] { display: none; }
footer { position: fixed; bottom: 0; left: 0; width: 100%; padding: 8px 12px 4px; background: #fff; text-align: center; color: #444; font-size: 12px; z-index: 10; }
footer button { display: block; border: 0; background: transparent; font-size: 14px; color: #f44; margin: 0 auto; line-height: 20px; }
a { color: #98553a; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #6750a4; outline-offset: 3px; }
@media (max-width: 520px) {
  .site-header { height: 60px; }
  .site-header nav { padding-right: 5px; gap: 13px; }
  .booking-card { min-height: calc(100dvh - 110px); padding: 8px 12px 24px; }
  .desktop { display: none; }
  .calendar { margin-left: 0; }
  .reservation-row { flex-direction: column; }
  .menu-image { width: 90px; flex-basis: 90px; }
  .menu-information { min-width: 0; flex: 1; }
  .quantity-picker { width: 100%; max-width: 215px; }
  .menu-description { margin-left: 0; margin-right: 0; }
  .section-block { margin-left: 4px; }
  .time-grid { padding-left: 0; }
  .customer-panel { width: 100%; }
  .confirmation-actions { flex-wrap: wrap; gap: 8px; }
}

/* Date range shortcuts and grouped availability. */
.date-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.date-shortcut { border: 1px solid #efb6a3; background: #fbe9e2; color: #333; border-radius: 8px; padding: 8px 16px; font-size: 13px; }
.date-shortcut[aria-pressed="true"] { background: var(--accent); color: white; border-color: var(--accent); }
.date-results { width: 100%; margin: 16px 0; }
.available-date { border: 1px solid #ddd; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.available-date > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.available-date .section-block { margin-top: 14px; }

.calendar-toggle { background: none; border: 0; padding: 4px 0; color: #98553a; text-decoration: underline; font-size: 16px; }

/* Home-page chat launcher, aligned with the reservation panel. */
#chat-launcher { position:fixed; right:max(16px,calc((100vw - 786px)/2 + 8px)); bottom:66px; z-index:20; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.chat-greeting { display:flex; align-items:center; gap:8px; padding:14px; border:1px solid #eee; border-radius:16px; background:white; box-shadow:0 3px 5px #0003; max-width:calc(100vw - 32px); }
.chat-greeting[hidden] { display:none; }
.chat-greeting a { color:#444; text-decoration:none; font-size:16px; }
.chat-greeting button { border:0; background:none; color:#555; font-size:22px; padding:0 2px; cursor:pointer; line-height:1; }
.chat-launch-button { width:56px; height:56px; border-radius:17px; display:grid; place-items:center; background:#963a37; color:white; box-shadow:0 3px 6px #0004; }
.chat-launch-button:hover { background:#80312f; color:white; }
.chat-launch-button svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.7; }
.chat-launch-button:focus-visible,.chat-greeting a:focus-visible { outline:3px solid #e57e58; outline-offset:4px; }

/* Reservation changes */
.change-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid #e0cbbf; background: #fffaf5; border-radius: 4px; padding: 10px 12px; margin: 10px 0 14px; font-size: 13px; }
.change-banner > div { display: flex; flex-direction: column; gap: 2px; }
.change-banner .manual-details { font-size: 12px; padding: 0; }
.change-note { font-size: 12px; margin: 0 0 8px; }
.change-review h2 { font-size: 18px; margin-top: 8px; }
.change-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.change-compare > div { border: 1px solid #ddd; border-radius: 4px; padding: 10px 12px; }
.change-compare > div:last-child { border-color: var(--accent); box-shadow: 0 0 5px #dc7e5a55; }
.change-compare h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.change-compare p { font-size: 13px; margin: 0; line-height: 1.6; }
.change-review form { max-width: 420px; }
.btn-confirmation-change { min-height: 24px; height: 24px; font-size: 12px; padding: 2px 10px; color: #222; background: white; border-radius: 9px; width: 162px; border: 1px solid #f0b79f; box-shadow: 0 0 4px #dc7e5a66; margin-right: 8px; }
.btn-confirmation-change:hover { background: #fff0e9; color: #b75b3b; }
.changed-from { display: block; color: var(--muted); font-size: 12px; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }

/* Success message on the confirmation screen right after booking (0.2.6) */
.success-banner { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 14px; padding: 12px 14px; border: 1px solid #b9dfbf; border-left: 4px solid #2e8540; border-radius: 6px; background: #eef8f0; color: #1e5e2b; animation: success-in .35s ease-out; }
.success-banner svg { flex: 0 0 26px; width: 26px; height: 26px; }
.success-banner svg circle { fill: #2e8540; }
.success-banner svg path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success-banner strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.success-banner span { display: block; font-size: 12px; line-height: 1.4; }
@keyframes success-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .success-banner { animation: none; } }
