:root {
  --tm-bg: #f4f7fb;
  --tm-surface: #ffffff;
  --tm-surface-soft: #f8fafc;
  --tm-text: #172033;
  --tm-muted: #667085;
  --tm-line: #dce3ec;
  --tm-primary: #b3261e;
  --tm-primary-dark: #8f1e18;
  --tm-gold: #f0b323;
  --tm-gold-soft: #fff6d8;
  --tm-green: #177245;
  --tm-blue: #175cd3;
  --tm-danger: #b42318;
  --tm-shadow: 0 16px 42px rgba(24, 34, 48, .09);
  --tm-radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body.site-light,
body.account-page,
body.tm-success-page,
body.tm-cancel-page,
body.tm-light-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfcfe 0%, #f1f5f9 55%, #eaf0f6 100%) !important;
  color: var(--tm-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.site-light a,
body.account-page a,
body.tm-success-page a,
body.tm-cancel-page a,
body.tm-light-page a { color: inherit; }

.tm-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--tm-line);
  box-shadow: 0 8px 24px rgba(24, 34, 48, .06);
  backdrop-filter: blur(12px);
}
.tm-site-header-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.tm-site-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.tm-site-brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 14px; border: 1px solid var(--tm-line); }
.tm-site-brand-name { font-size: 18px; line-height: 1.1; font-weight: 900; color: var(--tm-text); }
.tm-site-brand-tag { margin-top: 3px; color: var(--tm-muted); font-size: 12px; font-weight: 700; }
.tm-site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tm-site-nav a { text-decoration: none; padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 800; color: #475467; }
.tm-site-nav a:hover { background: #f2f4f7; color: var(--tm-text); }
.tm-site-nav a.is-active { background: var(--tm-gold-soft); color: #7a4d00; }

.tm-page { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 52px; }
.tm-page-narrow { width: min(720px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 60px; }
.tm-card-light {
  background: var(--tm-surface);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow);
  padding: 22px;
}
.tm-card-soft { background: var(--tm-surface-soft); border: 1px solid var(--tm-line); border-radius: 16px; padding: 18px; }
.tm-eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: #8a5a00; }
.tm-title { margin: 8px 0 10px; font-size: clamp(30px, 5vw, 52px); line-height: 1.03; letter-spacing: -.035em; color: var(--tm-text); }
.tm-lead { margin: 0; max-width: 720px; color: var(--tm-muted); font-size: 17px; line-height: 1.65; }
.tm-muted { color: var(--tm-muted); }
.tm-small { font-size: 13px; }

.tm-btn-light,
.tm-btn-primary {
  appearance: none;
  border: 1px solid var(--tm-primary);
  background: var(--tm-primary);
  color: #fff !important;
  text-decoration: none;
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tm-btn-light:hover,
.tm-btn-primary:hover { background: var(--tm-primary-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(179, 38, 30, .18); }
.tm-btn-light.secondary { background: #fff; color: var(--tm-text) !important; border-color: #cfd7e3; box-shadow: none; }
.tm-btn-light.secondary:hover { background: #f8fafc; }
.tm-btn-light.gold { background: var(--tm-gold); border-color: #d99b00; color: #3f2b00 !important; }
.tm-btn-light.full { width: 100%; }
.tm-btn-light.small { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.tm-btn-light:disabled, .tm-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.tm-form-grid { display: grid; gap: 15px; }
.tm-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-field-light { display: grid; gap: 7px; }
.tm-field-light label { font-size: 13px; font-weight: 900; color: #344054; }
.tm-field-light input,
.tm-field-light select,
.tm-field-light textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd7e3;
  border-radius: 12px;
  background: #fff;
  color: var(--tm-text);
  padding: 11px 13px;
  font: inherit;
  outline: none;
}
.tm-field-light textarea { min-height: 118px; resize: vertical; }
.tm-field-light input:focus,
.tm-field-light select:focus,
.tm-field-light textarea:focus { border-color: #d99b00; box-shadow: 0 0 0 4px rgba(240, 179, 35, .18); }
.tm-check-light { display: flex; align-items: flex-start; gap: 10px; color: #475467; line-height: 1.45; }
.tm-check-light input { margin-top: 3px; width: 18px; height: 18px; }

.tm-alert-light { padding: 13px 15px; border-radius: 12px; border: 1px solid var(--tm-line); background: #f8fafc; color: #344054; line-height: 1.45; }
.tm-alert-light.success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.tm-alert-light.error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.tm-alert-light.info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }

.tm-home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 20px; align-items: stretch; }
.tm-home-main { padding: clamp(26px, 5vw, 54px); background: linear-gradient(135deg, #fffdf5 0%, #fff 58%, #fff3f1 100%); }
.tm-home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tm-home-actions-primary .tm-home-cta { flex: 1 1 190px; min-width: 0; }
.tm-action-note { margin: 11px 0 0; color: var(--tm-muted); font-size: 13px; font-weight: 700; }
.tm-status-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tm-status-chip { padding: 8px 11px; border-radius: 999px; border: 1px solid var(--tm-line); background: #fff; font-size: 13px; font-weight: 800; color: #475467; }
.tm-status-chip.open { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.tm-status-chip.closed { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.tm-location-panel { display: grid; gap: 16px; }
.tm-location-map { min-height: 170px; border-radius: 16px; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(135deg, #fff6d8, #ffe8e6); border: 1px solid #f0d68f; }
.tm-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.tm-feature { background: #fff; border: 1px solid var(--tm-line); border-radius: 16px; padding: 20px; }
.tm-feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tm-gold-soft); color: #7a4d00; font-weight: 1000; }
.tm-feature h3 { margin: 13px 0 6px; font-size: 18px; }
.tm-feature p { margin: 0; color: var(--tm-muted); line-height: 1.55; }

.tm-newsletter { margin-top: 20px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr); gap: 20px; align-items: center; }
.tm-newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.tm-newsletter-form input { min-height: 48px; border: 1px solid #cfd7e3; border-radius: 12px; padding: 11px 13px; font: inherit; }

.tm-account-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.tm-account-sidebar { position: sticky; top: 94px; display: grid; gap: 8px; }
.tm-account-sidebar a { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 11px; text-decoration: none; font-weight: 800; color: #475467; }
.tm-account-sidebar a:hover, .tm-account-sidebar a.is-active { background: var(--tm-gold-soft); color: #7a4d00; }
.tm-account-content { min-width: 0; display: grid; gap: 18px; }
.tm-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tm-metric { padding: 18px; border: 1px solid var(--tm-line); border-radius: 16px; background: #fff; }
.tm-metric-label { color: var(--tm-muted); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tm-metric-value { margin-top: 7px; font-size: 30px; font-weight: 1000; }
.tm-points-card { background: linear-gradient(135deg, #fff6d8 0%, #fff 66%, #fff0ee 100%); border-color: #efd594; }
.tm-progress { height: 10px; border-radius: 999px; background: #eef2f6; overflow: hidden; }
.tm-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--tm-gold); }

.tm-order-history { display: grid; gap: 12px; }
.tm-order-history-item { border: 1px solid var(--tm-line); border-radius: 15px; background: #fff; padding: 17px; display: grid; gap: 12px; }
.tm-order-history-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tm-order-status { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; background: #f2f4f7; color: #475467; }
.tm-order-status.paid, .tm-order-status.preparing, .tm-order-status.ready, .tm-order-status.completed { background: #ecfdf3; color: #067647; }
.tm-order-status.canceled, .tm-order-status.checkout_canceled, .tm-order-status.checkout_expired { background: #fef3f2; color: #b42318; }
.tm-order-lines { display: grid; gap: 5px; color: #475467; }

.tm-auth-card { padding: clamp(22px, 5vw, 34px); }
.tm-auth-top { text-align: center; margin-bottom: 24px; }
.tm-auth-logo { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; border: 1px solid var(--tm-line); }
.tm-auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }

.tm-success-icon { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: #ecfdf3; color: #067647; font-size: 38px; font-weight: 1000; }
.tm-success-card { text-align: center; padding: clamp(26px, 6vw, 46px); }
.tm-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.tm-site-footer { border-top: 1px solid var(--tm-line); background: #fff; color: #667085; }
.tm-site-footer-inner { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.tm-site-footer a { text-decoration: underline; }

/* Light-theme overrides for legacy global components. */
body.site-light .top,
body.account-page .top { background: rgba(255,255,255,.94) !important; border-bottom-color: var(--tm-line) !important; }
body.site-light .card,
body.account-page .card { background: #fff !important; border-color: var(--tm-line) !important; color: var(--tm-text) !important; box-shadow: var(--tm-shadow) !important; }
body.site-light .muted,
body.account-page .muted { color: var(--tm-muted) !important; }

@media (max-width: 900px) {
  .tm-home-hero, .tm-newsletter, .tm-account-shell { grid-template-columns: 1fr; }
  .tm-feature-grid, .tm-account-grid { grid-template-columns: 1fr; }
  .tm-account-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .tm-site-header-inner { min-height: 64px; width: min(100% - 20px, 1180px); }
  .tm-site-brand-tag { display: none; }
  .tm-site-nav a:not(.tm-btn-light) { display: none; }
  .tm-page, .tm-page-narrow { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .tm-form-grid.two, .tm-newsletter-form { grid-template-columns: 1fr; }
  .tm-home-main, .tm-card-light { padding: 18px; }
  .tm-account-sidebar { grid-template-columns: 1fr 1fr; }
  .tm-success-actions .tm-btn-light { width: 100%; }
}

/* Ordering account and reward experience. */
.tm-order-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tm-order-account-bar {
  margin: 0 0 18px;
  border: 1px solid #f0d58c;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff8df 0%, #fff 62%, #fff0ee 100%);
  box-shadow: 0 12px 34px rgba(16, 24, 40, .07);
  padding: 15px 18px;
}
.tm-order-account-bar > div { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; color: #344054; }
.tm-order-account-bar strong { color: #1d2939; }
.tm-inline-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tm-inline-actions a { font-weight: 900; }
.tm-reward-summary-row { color: #7a4d00; }
.tm-rewards-signed-out {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  background: #fff;
  padding: 15px;
}
.tm-rewards-selector { display: grid; gap: 12px; }
.tm-rewards-balance-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 13px 15px; border-radius: 15px; background: #fff7d8; border: 1px solid #efd58f; }
.tm-rewards-balance-line strong { font-size: 18px; color: #7a4d00; }
.tm-rewards-range-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: end; }
.tm-rewards-range-wrap input[type="range"] { width: 100%; accent-color: #168d45; min-height: 44px; }
.tm-rewards-number-wrap { display: grid; gap: 5px; }
.tm-rewards-number-wrap label { font-size: 12px; font-weight: 900; color: #475467; }
.tm-rewards-number-wrap input { min-height: 48px; border: 1px solid #cfd7e3; border-radius: 13px; background: #fff; color: #101828; font: inherit; font-weight: 900; padding: 10px 12px; }
.tm-rewards-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.tm-reward-selection { padding: 12px 14px; border-radius: 13px; background: #ecfdf3; border: 1px solid #abefc6; color: #067647; font-weight: 900; }
.tm-reward-earn { padding: 10px 12px; border-radius: 12px; background: #eff8ff; color: #175cd3; font-size: 13px; font-weight: 800; }
.checkout-final-row { background: #f8fafc !important; color: #101828 !important; border: 1px solid #d0d5dd; }
.checkout-final-row .muted, .checkout-final-row [style*="color:rgba"] { color: #667085 !important; }

/* Result pages. */
.tm-narrow-page, .tm-page.tm-narrow-page { width: min(720px, calc(100% - 28px)); }
.tm-result-card { text-align: center; padding: clamp(26px, 6vw, 48px); }
.tm-result-card h1 { margin: 8px 0 10px; font-size: clamp(34px, 7vw, 52px); }
.tm-result-icon { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 38px; font-weight: 1000; }
.tm-result-icon.neutral { background: #f2f4f7; color: #344054; }
.tm-result-icon.success { background: #ecfdf3; color: #067647; }
.tm-lead { color: #475467; line-height: 1.65; font-size: 17px; }
.tm-alert { padding: 13px 15px; border: 1px solid #d0d5dd; border-radius: 13px; background: #f8fafc; color: #344054; line-height: 1.5; }
.tm-alert.success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.tm-alert.error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.tm-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 720px) {
  .tm-order-nav [data-account-signed-out].ghost { display: none !important; }
  .tm-order-account-bar > div { align-items: flex-start; }
  .tm-inline-actions { width: 100%; margin-left: 0; }
  .tm-rewards-range-wrap { grid-template-columns: 1fr; }
  .tm-rewards-number-wrap { max-width: 180px; }
}
.tm-confirmation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; text-align: left; }
.tm-confirmation-grid > div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--tm-line); border-radius: 14px; background: #f8fafc; }
.tm-confirmation-grid span, .tm-reward-confirmation span { color: #667085; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.tm-confirmation-grid strong { font-size: 18px; }
.tm-reward-confirmation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; text-align: left; }
.tm-reward-confirmation > div { display: grid; gap: 4px; padding: 14px; border: 1px solid #efd58f; border-radius: 14px; background: #fff8df; }
.tm-reward-confirmation strong { font-size: 20px; color: #7a4d00; }
@media (max-width: 620px) { .tm-confirmation-grid, .tm-reward-confirmation { grid-template-columns: 1fr; } }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.tm-rewards-promo { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 20px; align-items: center; background: linear-gradient(135deg, #fff8df 0%, #fff 55%, #fff0ee 100%); border-color: #efd58f; }
.tm-rewards-promo .tm-home-actions { grid-column: 1 / -1; margin-top: 0; }
.tm-rewards-promo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.tm-rewards-promo-metrics > div { display: grid; gap: 4px; text-align: center; padding: 14px 10px; background: rgba(255,255,255,.82); border: 1px solid #efd58f; border-radius: 14px; }
.tm-rewards-promo-metrics strong { font-size: 24px; color: #7a4d00; }
.tm-rewards-promo-metrics span { color: #667085; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.tm-newsletter-form { grid-template-columns: minmax(130px, .55fr) minmax(220px, 1fr) auto; align-items: start; }
.tm-newsletter-message { grid-column: 1 / -1; min-height: 20px; font-size: 13px; font-weight: 800; }
.tm-newsletter-message.success { color: #067647; }
.tm-newsletter-message.error { color: #b42318; }
@media (max-width: 900px) { .tm-rewards-promo { grid-template-columns: 1fr; } .tm-newsletter-form { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .tm-rewards-promo-metrics { grid-template-columns: 1fr; } }

.tm-newsletter-consent { grid-column: 1 / -1; font-size: 12px; }
.tm-language-switch{display:inline-flex;gap:3px;padding:3px;border:1px solid #d7dfeb;border-radius:10px;background:#f8fafc;vertical-align:middle}
.tm-language-switch a{min-width:34px!important;padding:6px 7px!important;border-radius:7px!important;text-align:center;text-decoration:none!important;font-size:11px!important;font-weight:900!important;color:#667085!important}
.tm-language-switch a.is-active{background:#fff!important;color:#175cd3!important;box-shadow:0 2px 7px rgba(16,24,40,.09)}
@media(max-width:720px){.tm-language-switch{order:20}.tm-site-nav .tm-language-switch{margin-left:auto}}
