:root {
  font-family: var(--nomi-booking-font-family, Arial, sans-serif);
  color: var(--nomi-booking-text, #202820);
  background: var(--nomi-booking-background, transparent);
  font-synthesis: none;
  --ink: var(--nomi-booking-text, #202820);
  --muted: var(--nomi-booking-muted, #596359);
  --line: var(--nomi-booking-border, #cbd2cb);
  --primary: var(--nomi-booking-primary, #263c2c);
  --on-primary: var(--nomi-booking-on-primary, #fff);
  --surface: var(--nomi-booking-surface, #fff);
  --radius: var(--nomi-booking-radius, 6px);
  --spacing: var(--nomi-booking-spacing, 14px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
main {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
  display: flow-root;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: color-mix(in srgb, var(--surface) 28%, transparent);
}
main.inline-layout {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
  margin: 20px 0 12px;
}
h4 {
  font-size: 15px;
  margin: 0 0 6px;
}
p {
  margin: 0 0 16px;
}
.stage {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.steps {
  list-style: none;
  display: flex;
  padding: 22px 0;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.steps li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}
.steps li:not(:last-child)::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
  margin: 0 12px 0 4px;
}
.steps li:last-child {
  flex: 0 0 auto;
}
.step-label {
  white-space: nowrap;
}
.step-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
}
.steps [aria-current] {
  color: var(--ink);
  font-weight: 700;
}
.steps [aria-current] .step-number,
.steps .is-complete .step-number {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: var(--spacing);
}
.fields.two {
  grid-template-columns: 1fr 1fr;
}
label {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--spacing);
}
label span {
  font-weight: 400;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 12px;
  font: 16px var(--nomi-booking-font-family, Arial, sans-serif);
  min-height: 48px;
}
textarea {
  resize: vertical;
}
button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 20px;
  font: 600 14px/1.5 var(--nomi-booking-font-family, Arial, sans-serif);
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--nomi-booking-focus, #986315);
  outline-offset: 3px;
}
.small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
#search + .small {
  margin: 14px 0 0;
}
.section-heading {
  margin: 28px 0 20px;
}
.section-heading h2 {
  margin-bottom: 8px;
}
.section-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.summary-card > div {
  min-width: 0;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.booking-summary {
  font-weight: 600;
  line-height: 1.6;
}
.summary-card .booking-summary {
  margin: 0;
}
.summary-card .text-button {
  flex-shrink: 0;
  margin: 0;
}
.details-summary {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}
.slot-group {
  margin: 20px 0;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  align-items: stretch;
}
.slot {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  color: var(--ink);
  padding: 14px 8px;
  border: 1px solid var(--line);
  font-size: 18px;
}
.slot small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
}
.slot-arrival {
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.slot .slot-relative {
  font-size: 10px;
  font-weight: 600;
}
.slot-requested:not([aria-pressed="true"]) {
  border-color: var(--primary);
}
.slot-selected-mark {
  display: none;
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 12px;
}
.slot[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.slot[aria-pressed="true"] .slot-selected-mark {
  display: block;
}
.slot-short {
  background: #fff7e8;
  color: #563b13;
  border-color: #986315;
}
.slot .sitting-kind {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 700;
}
.slot-short .sitting-kind {
  background: #f5dfb6;
  color: #563b13;
}
.slot .slot-departure {
  font-weight: 700;
}
.slot-short[aria-pressed="true"] {
  background: #563b13;
  color: #fff;
  border-color: #563b13;
}
#selection {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#selection > .small {
  margin: 12px 0 0;
}
.notice {
  border-left: 2px solid var(--nomi-booking-notice-accent, #986315);
  padding: 10px 12px;
  background: var(--nomi-booking-notice-background, #f4f5f1);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.notice.short-notice {
  background: #fff7e8;
  color: #563b13;
  border-color: #986315;
}
#hold-notices:not(:empty),
#confirmed-notices:not(:empty) {
  margin-top: 16px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.check input {
  width: 19px;
  min-height: 19px;
  margin: 0;
  flex-shrink: 0;
}
.timer {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.timer strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.text-button {
  background: transparent;
  color: var(--ink);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 0;
  margin-top: 8px;
  font-weight: 400;
}
.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.alternatives-actions,
.confirmation-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}
.alternatives-actions .text-button {
  margin: 0;
}
.day-row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
#week {
  margin-top: 24px;
}
.field-error {
  display: block;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
}
[aria-invalid="true"] {
  border: 2px solid var(--nomi-booking-notice-accent, #986315);
}
#message {
  font-size: 14px;
  background: var(--nomi-booking-notice-background, #f4f5f1);
  border-left: 3px solid var(--nomi-booking-notice-accent, #986315);
  padding: 12px;
  line-height: 1.5;
}
#search-message,
#selection-message,
#details-message,
#hold-message {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}
#message:empty,
#search-message:empty,
#selection-message:empty,
#details-message:empty,
#hold-message:empty,
#copy-status:empty {
  display: none;
}
#expired-actions {
  border-left: 3px solid var(--nomi-booking-notice-accent, #986315);
  padding: 0 14px 14px;
  margin: 18px 0;
}
#expired-actions button {
  margin: 4px 4px 4px 0;
}
.success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--on-primary);
  background: var(--primary);
  margin-bottom: 16px;
  font-size: 22px;
}
#done-heading {
  margin-bottom: 8px;
}
.confirmation-summary {
  margin: 24px 0;
}
.reference {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  margin-top: 24px;
}
.reference p {
  margin: 0;
  min-width: 0;
  color: var(--muted);
}
.reference strong {
  display: block;
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.reference .text-button {
  margin: 0;
  flex-shrink: 0;
  font-size: 12px;
}
#reference {
  user-select: all;
}
#confirmation-note {
  margin-bottom: 0;
}
#copy-status {
  margin-bottom: 12px;
}
.confirmation-actions {
  align-items: center;
}
.directions-link {
  font-size: 13px;
  padding: 10px 0;
}
#another {
  margin-top: 20px;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (hover: hover) {
  .slot:not(:disabled):not([aria-pressed="true"]):hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
  }
  .text-button:hover,
  a:hover {
    text-decoration-thickness: 2px;
  }
}
@media (max-width: 540px) {
  main {
    padding: 20px 16px;
  }
  h2 {
    font-size: 22px;
  }
  .fields,
  .fields.two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .steps {
    margin-bottom: 24px;
    padding: 18px 0;
    gap: 8px;
  }
  .steps li {
    flex: 0 0 auto;
    gap: 6px;
  }
  .steps li:not(:last-child)::after {
    display: none;
  }
  .steps li:not([aria-current]) .step-label {
    display: none;
  }
  .steps [aria-current] {
    flex: 1;
  }
  .step-number {
    width: 26px;
    height: 26px;
  }
  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .slot {
    padding: 12px 5px;
    font-size: 17px;
  }
  .summary-card {
    padding: 12px;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }
  .summary-card .text-button {
    min-height: 44px;
  }
  .booking-summary {
    font-size: 14px;
  }
  .reference {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .alternatives-actions {
    flex-direction: column;
    align-items: stretch;
  }
  button[type="submit"],
  #choose {
    width: 100%;
  }
}
@media (max-width: 340px) {
  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
