:root {
  --gotab-orange: #ff6900;
  --orange-ink: #b54800;
  --orange-tint: #fff5f2;
  --line: #dee2e6;
  --radius-sm: 6px;
  --radius-md: 10px;
  font-family:
    'Barlow',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #222e3a;
  background: #f5f6f8;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  background: white;
  border-bottom: 1px solid #ddd;
}
header span {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #53606d;
}
main {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px #172b4d08;
}
h1 {
  font-size: 27px;
  margin: 0 0 8px;
}
h2 {
  font-size: 17px;
  margin: 0 0 20px;
}
.intro,
p,
small {
  color: #53606d;
  line-height: 1.5;
}
.intro {
  margin-top: 0;
}
section {
  padding: 25px 0;
  border-top: 1px solid #eaecf0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
label .optional,
h2 span {
  font-weight: 400;
  color: #53606d;
}
.label-text {
  display: block;
}
.optional {
  white-space: nowrap;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 11px;
  border: 1px solid #a5adb8;
  border-radius: 5px;
  background: white;
  color: #222e3a;
  min-height: 45px;
}
/* Chrome draws the native arrow against the border; draw our own 14px in. */
select {
  appearance: none;
  padding-right: 40px;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2353606d' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E")
    no-repeat right 14px center / 12px;
}
/* High-contrast modes can hide background images, so keep the native arrow there. */
@media (forced-colors: active) {
  select {
    appearance: auto;
  }
}
small {
  font-weight: 400;
}
.field {
  display: flex;
  flex-direction: column;
}
label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 400;
}
.checkbox input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 0;
  accent-color: #aa3c00;
}
.note:not(:empty) {
  margin-top: 8px;
  color: #663000;
}
.example {
  align-self: flex-start;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}
.example figcaption {
  margin-bottom: 8px;
  font-size: 13px;
  color: #53606d;
}
.example img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
.button {
  display: inline-block;
  text-align: center;
  background: #c94900;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 18px;
}
#submit {
  width: 100%;
  background: var(--gotab-orange);
  color: #1a1a1a;
  font-weight: 700;
}
#submit:hover:not(:disabled) {
  background: #e85f00;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: white;
  color: #aa3c00;
  border: 1px solid #aa3c00;
}
fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
.terms,
footer {
  font-size: 13px;
  text-align: center;
}
a {
  color: #aa3c00;
}
footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eaecf0;
}
#message:not(:empty) {
  padding: 15px;
  background: #fff4e8;
  border: 1px solid #ce8c43;
  border-radius: 5px;
  margin: 20px 0;
  color: #663000;
}
*:focus-visible {
  outline: 3px solid #1767b0;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
textarea {
  resize: vertical;
  line-height: 1.4;
}
/* Framed on gotab.com: the site supplies its own header, footer and page chrome. */
.embed {
  background: white;
}
.embed header,
.embed footer {
  display: none;
}
.embed main {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
section > label + fieldset,
section > fieldset + fieldset,
section > fieldset + .grid {
  margin-top: 20px;
}
legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}
legend a {
  margin-left: 6px;
  font-weight: 400;
}
.choices label.check {
  margin-top: 8px;
  align-items: center;
}
.choices.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.choices.inline legend {
  width: 100%;
}
.choices.inline label.check {
  margin-top: 0;
}
button.link {
  margin: 0;
  padding: 4px 0;
  background: none;
  color: #aa3c00;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
button.link:disabled {
  cursor: not-allowed;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0 0 4px;
}
.section-head p {
  margin: 0;
}
/* Store hours: common weeks to start from, then sets of hours, each the days it covers and its ranges. */
.pattern-label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #53606d;
}
.patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pattern {
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #8b939d;
  border-radius: 22px;
  background: white;
  color: #222e3a;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pattern[aria-current='true'] {
  border-color: #222e3a;
  background: #222e3a;
  color: white;
}
@media (forced-colors: active) {
  .pattern[aria-current='true'] {
    forced-color-adjust: none;
    border-color: Highlight;
    background: Highlight;
    color: HighlightText;
  }
}
.hour-sets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hour-set {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.set-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  width: 100%;
}
.set-title {
  width: 130px;
  font-weight: 700;
}
.set-head .remove-set {
  margin-left: auto;
}
.set-empty {
  color: #663000;
  font-size: 14px;
  font-weight: 600;
}
.ranges {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 10px;
  min-width: 0;
}
.ghost {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: #53606d;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.ghost:hover,
.remove-range:hover {
  background: #f1f3f5;
  color: #222e3a;
}
.range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.range select {
  width: 132px;
  height: 40px;
  min-height: 40px;
  padding: 0 32px 0 10px;
  background-position: right 10px center;
  border-radius: var(--radius-sm);
}
.range-dash {
  color: #6b7480;
}
.range .next-day {
  padding: 3px 8px;
  border-radius: 4px;
  background: #eff4ff;
  color: #2d5ba8;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.remove-range {
  display: grid;
  margin: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: #6b7480;
  cursor: pointer;
}
.range-error {
  flex-basis: 100%;
  color: #b3261e;
  font-size: 13px;
}
.range select[aria-invalid='true'] {
  border-color: #b3261e;
}
.day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.day-chip {
  width: 52px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #8b939d;
  border-radius: var(--radius-sm);
  background: white;
  color: #53606d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
/* Solid, so an open day differs from a closed one by more than its colour. */
.day-chip[aria-pressed='true'] {
  border-color: var(--orange-ink);
  background: var(--orange-ink);
  color: white;
}
/* Dashed: another set has this day, and choosing it moves it here. */
.day-chip.elsewhere {
  border-style: dashed;
}
/* High-contrast modes replace that fill, so open days take the system's highlight colours there. */
@media (forced-colors: active) {
  .day-chip[aria-pressed='true'] {
    forced-color-adjust: none;
    border-color: Highlight;
    background: Highlight;
    color: HighlightText;
  }
}
.add-set {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 0 16px;
  border: 1px dashed #8b939d;
  border-radius: var(--radius-md);
  background: white;
  color: var(--orange-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hours-summary {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hours-summary h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #53606d;
}
.hours-summary dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 24px;
  margin: 0;
}
.hours-summary dt {
  font-weight: 700;
}
.hours-summary dd {
  margin: 0;
}
.footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 14px;
}
.footnote .icon {
  margin-top: 4px;
}
.footnote strong {
  color: #2d5ba8;
  font-weight: 600;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}
/* Taxes: name and rate side by side, one row per tax. */
.tax {
  display: grid;
  grid-template-columns: 1fr 9em auto;
  align-items: end;
  gap: 12px 16px;
  margin-bottom: 14px;
}
/* Remove follows the checkbox, on screen as in the tab order. */
.tax .remove-tax {
  grid-row: 2;
  grid-column: 3;
  align-self: center;
}
.tax .tax-inclusive {
  grid-column: 1 / 3;
  margin-top: -4px;
  font-size: 14px;
}
/* Tips: a card per option with its own Default button, then what a guest would see on a $40 check. */
.tip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.tip-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  overflow: hidden;
}
/* Drawn 2px wide without moving the card's contents. */
.tip-card.is-default {
  border-color: var(--gotab-orange);
  box-shadow: 0 0 0 1px var(--gotab-orange);
}
.tip-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 18px;
}
.overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #53606d;
}
.tip-box {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #a5adb8;
  border-radius: var(--radius-sm);
  background: white;
}
.tip-box:focus-within {
  border-color: var(--gotab-orange);
  box-shadow: 0 0 0 1px var(--gotab-orange);
}
.tip-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 26px;
  font-weight: 800;
  -moz-appearance: textfield;
}
/* The page's focus ring goes around the box, as on the file pickers. */
.tip-box input:focus-visible {
  outline: none;
}
.tip-box:has(input:focus-visible) {
  outline: 3px solid #1767b0;
  outline-offset: 3px;
}
.tip-box input::-webkit-inner-spin-button,
.tip-box input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tip-box span {
  color: #6b7480;
  font-size: 20px;
  font-weight: 400;
}
.tip-default {
  display: flex;
  margin: auto 0 0;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  color: #53606d;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.tip-card.is-default .tip-default {
  background: var(--orange-tint);
  color: var(--orange-ink);
}
.tips-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid #e8e2a4;
  border-radius: var(--radius-sm);
  background: #fffeec;
  color: #574500;
}
.tip-preview {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #f7f7f7;
}
.preview-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.preview-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.preview-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: #222e3a;
}
.preview-tile strong {
  font-size: 17px;
}
.preview-tile .amount {
  color: #53606d;
  font-size: 14px;
}
.preview-tile.custom {
  color: #53606d;
  font-weight: 600;
}
.preview-tile.is-default {
  border-color: #222e3a;
  box-shadow: 0 0 0 1px #222e3a;
}
/* Uploads */
.uploads {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.upload {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.upload > .label-text {
  font-size: 14px;
  font-weight: 600;
}
.choose {
  position: relative;
  align-self: flex-start;
  flex-direction: row;
  padding: 10px 18px;
  border: 1px dashed #aa3c00;
  border-radius: 6px;
  color: #aa3c00;
  cursor: pointer;
}
.choose input {
  position: absolute;
  inset: 0;
  opacity: 0;
  min-height: 0;
  cursor: pointer;
}
.choose:has(input:disabled) {
  opacity: 0.55;
  cursor: wait;
}
.choose:has(input:focus-visible) {
  outline: 3px solid #1767b0;
  outline-offset: 3px;
}
.files {
  margin: 0;
  padding: 0;
  list-style: none;
}
.files li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eaecf0;
  font-size: 14px;
}
.file-name {
  overflow-wrap: anywhere;
  font-weight: 600;
}
.files .failed .file-status {
  color: #663000;
}
.consent p,
.consent label {
  font-size: 14px;
}
.consent label.check {
  margin: 4px 0;
}
@media (max-width: 600px) {
  header {
    padding: 15px;
  }
  .pattern {
    padding: 0 12px;
    font-size: 14px;
  }
  /* A set's title and remove share a row; its seven days fill the next. */
  .hour-set {
    padding: 12px;
  }
  .set-title {
    width: auto;
  }
  .set-days {
    order: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }
  .day-chip {
    width: auto;
    font-size: 14px;
  }
  .hour-set .add-range {
    margin-left: -6px;
  }
  /* Opening and closing times share a row with remove; the Next day badge and errors go below. */
  .range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  }
  .range select {
    width: 100%;
    min-width: 0;
    padding: 0 26px 0 8px;
    background-position: right 8px center;
  }
  .range .remove-range {
    grid-row: 1;
    grid-column: 4;
  }
  .range .next-day {
    grid-column: 1 / 4;
    justify-self: start;
  }
  .range-error {
    grid-column: 1 / -1;
  }
  .preview-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tax {
    grid-template-columns: 1fr 7em;
  }
  .tax .remove-tax {
    grid-row: auto;
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0;
  }
  main {
    margin: 16px;
    padding: 22px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 24px;
  }
}
/* The smallest phones: a little more room so each day's three letters fit. */
@media (max-width: 360px) {
  .hour-set {
    padding: 10px;
  }
  .set-days {
    gap: 3px;
  }
  .day-chip {
    font-size: 13px;
  }
}

#menu-results article { border-top: 1px solid #eaecf0; margin-top: 20px; padding-top: 20px; }
#menu-results pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#menu-results label { flex-direction: row; align-items: flex-start; margin-top: 16px; }
#menu-results input[type="checkbox"] { width: auto; min-height: auto; margin-top: 4px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
label.check input { width: auto; min-height: auto; margin-top: 3px; }
label.check span { display: flex; flex-direction: column; gap: 3px; }
/* Home details start a row of their own, after the submitter's phone. */
#submitter-phone-field + label { grid-column: 1; }
