/* Keep the display face for page-level moments and make service data easier to scan. */
.service-row time,
.calendar-day-number,
.booking-preview-header h2,
.booking-preview-summary > strong {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.02em;
}

.service-row time,
.calendar-day-number {
  font-weight: 750;
}

.service-when {
  display: flex;
  align-items: center;
  gap: 11px;
}

.booking-date-icon {
  width: 45px;
  flex: 0 0 45px;
  overflow: hidden;
  border: 1px solid rgba(32, 35, 30, .16);
  border-radius: 9px;
  background: #fffdf8;
  text-align: center;
  box-shadow: 0 5px 14px rgba(43, 40, 34, .07);
}

.booking-date-icon small {
  display: block;
  padding: 4px 3px 3px;
  background: var(--tomato);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1;
}

.booking-date-icon strong {
  display: grid;
  height: 31px;
  place-items: center;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.schedule-title {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}

.schedule-date-icon {
  width: 42px;
  flex-basis: 42px;
}

.schedule-date-icon strong {
  height: 27px;
  font-size: 16px;
}

.service-row.has-booking-date {
  grid-template-columns: 132px minmax(0, 1fr) auto auto;
}

.service-row.has-booking-date time {
  font-size: 15px;
}

.booking-preview-header h2 {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -.035em;
}

.booking-preview-summary > strong {
  font-size: 17px;
  font-weight: 750;
}

.bookings-heading > p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.bookings-header h1 {
  font-size: 38px;
}

.bookings-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.bookings-summary > * {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, .76);
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.bookings-summary > * + * {
  margin-left: 0;
}

.bookings-summary strong {
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}

.bookings-summary .attention {
  border-color: rgba(175, 124, 0, .2);
  background: #fff0c8;
  color: #795b0e;
}

.bookings-summary .attention strong {
  color: #795b0e;
}

.bookings-summary .waiting {
  border-color: rgba(53, 79, 67, .14);
  background: var(--sage-soft);
  color: var(--sage);
}

.bookings-summary a:hover,
.bookings-summary a:focus-visible {
  border-color: currentColor;
  text-decoration: none;
}

.guest-autocomplete {
  position: relative;
}

.guest-autocomplete-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 18px 48px rgba(43, 40, 34, .18);
}

.guest-autocomplete-results[hidden] {
  display: none;
}

.guest-autocomplete-result {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.guest-autocomplete-result:last-child {
  border-bottom: 0;
}

.guest-autocomplete-result:hover,
.guest-autocomplete-result:focus-visible {
  background: var(--sage-soft);
  outline: 0;
}

.guest-autocomplete-result > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.guest-autocomplete-result strong {
  font-size: 13px;
}

.guest-autocomplete-result small,
.guest-autocomplete-empty {
  color: var(--muted);
  font-size: 11px;
}

.guest-autocomplete-result > small {
  flex: 0 0 auto;
  text-align: right;
}

.guest-autocomplete-result .guest-autocomplete-warning {
  color: #8a6300;
}

.guest-autocomplete-empty {
  padding: 15px 14px;
}

.schedule-summary {
  margin: 0 0 0 3px;
  gap: 6px;
}

.schedule-summary > * {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.grid-two > .stack {
  align-self: start;
  align-content: start;
}

.bookings-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px) max-content;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.header-booking-search {
  width: 100%;
  min-width: 0;
}

.header-booking-search .booking-search-input {
  width: 100%;
}

.header-booking-search .booking-search-results {
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
}

.bookings-new-button {
  justify-self: end;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
}

.header-booking-search svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
  transform: translateY(-50%);
}

.header-booking-search input[type='search'] {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 243, .8);
  color: var(--ink);
  outline: none;
  box-shadow: 0 8px 24px rgba(43, 40, 34, .035);
}

.header-booking-search input[type='search']:focus {
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(222, 87, 63, .1);
}

.toolbar-search-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--sage);
  font-size: 11px;
  font-weight: 750;
}

.toolbar-search-toggle:hover,
.toolbar-search-toggle.active {
  background: var(--sage-soft);
}

.toolbar-search-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.toolbar-search {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 620px) max-content max-content;
  justify-content: end;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.toolbar-search[hidden] {
  display: none;
}

.toolbar-search .booking-search-input {
  width: 100%;
}

.toolbar-search input[type='search'] {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
}

.toolbar-search input[type='search']:focus {
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(222, 87, 63, .1);
}

.calendar-toolbar:has(.toolbar-search:not([hidden])) {
  row-gap: 12px;
}

.search-summary {
  margin: 0 0 18px;
}

@media (min-width: 1181px) {
  .toolbar-search {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .bookings-header {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .header-booking-search {
    display: none;
  }

  .toolbar-search-toggle {
    display: flex;
  }
}

@media (max-width: 760px) {
  .bookings-summary {
    margin-top: 10px;
  }

  .schedule-summary {
    width: 100%;
    margin: 2px 0 0;
  }

  .toolbar-search-toggle {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .bookings-header {
    display: flex;
  }

  .bookings-new-button {
    justify-self: auto;
  }

  .service-row.has-booking-date {
    grid-template-columns: 76px 1fr;
  }

  .service-row.has-booking-date .service-when {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .service-row.has-booking-date > *:nth-child(n+3) {
    grid-column: 2;
  }

  .toolbar-search {
    grid-template-columns: 1fr auto;
    justify-content: stretch;
  }

  .toolbar-search .booking-search-input {
    grid-column: 1 / -1;
  }
}
