.lh-booking {
  --lh-booking-base: 16px;
  --lh-booking-border: #64748b;
  --lh-booking-muted: #475569;
  --lh-booking-error: #9f1c28;
  --lh-booking-rating: #234ed4;
  --lh-booking-white: #fff;
  --lh-booking-shadow: rgb(0 0 0 / 25%);
  --lh-booking-backdrop: rgb(17 24 39 / 70%);
  width: min(46em, calc(100vw - 2em));
  max-width: none;
  max-height: calc(100dvh - 2em);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1em;
  color: var(--lh-ink);
  background: var(--lh-paper);
  box-shadow: 0 1.5em 5em var(--lh-booking-shadow);
  font: inherit;
  font-size: var(--lh-booking-base);
  line-height: 1.6;
  overflow: hidden;
}

.lh-booking::backdrop {
  background: var(--lh-booking-backdrop);
}

.lh-booking,
.lh-booking * {
  box-sizing: border-box;
}

.lh-booking [hidden] {
  display: none;
}

.lh-booking__shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2em);
}

.lh-booking__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 0.75em 1.5em;
  border-bottom: 1px solid var(--lh-booking-border);
  background: var(--lh-booking-white);
}

.lh-booking__brand {
  font-size: 1.1em;
  font-weight: 700;
}

.lh-booking__close {
  display: grid;
  place-items: center;
  width: calc(var(--lh-booking-base) * 2.75);
  height: calc(var(--lh-booking-base) * 2.75);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--lh-ink);
  font: inherit;
  font-size: 2em;
  line-height: 1;
  cursor: pointer;
}

.lh-booking__body {
  min-height: 0;
  padding: 1.5em 2em 2em;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lh-booking__title {
  margin: 0 0 1em;
  font-family: inherit;
  font-size: clamp(1.4em, 4vw, 1.85em);
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}

.lh-booking__intro {
  margin: 0 0 1.5em;
  color: var(--lh-booking-muted);
  font-size: 1em;
}

.lh-booking__progress {
  margin: 1.25em 0;
  color: var(--lh-green);
  font-size: 1em;
  font-weight: 700;
}

.lh-booking__step {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lh-booking__step legend {
  width: 100%;
  margin-bottom: 1em;
  padding: 0;
  color: var(--lh-ink);
  font-size: 1.15em;
  font-weight: 650;
  line-height: 1.5;
}

.lh-booking__step label {
  color: var(--lh-ink);
  opacity: 1;
  font: inherit;
}

.lh-booking__names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
}

.lh-booking__form :is(input[type="text"], input[type="email"], input[type="number"], input[type="tel"], textarea, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3em;
  margin-top: 0.4em;
  padding: 0.7em 0.8em;
  border: 1px solid var(--lh-booking-border);
  border-radius: 0.4em;
  color: var(--lh-ink);
  background: var(--lh-booking-white);
  font: inherit;
  font-size: 1em;
}

.lh-booking__form textarea {
  min-height: 8em;
  resize: vertical;
}

.lh-booking__form :is(input, textarea)::placeholder {
  color: var(--lh-booking-muted);
  opacity: 1;
}

.lh-booking__form [aria-invalid="true"] {
  border-color: var(--lh-booking-error);
}

.lh-booking :focus-visible {
  outline: 3px solid var(--lh-green);
  outline-offset: 3px;
}

.lh-booking__ratings {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.15em;
}

.lh-booking__rating {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  min-height: 4.5em;
  padding: 0.35em 0;
  border: 1px solid transparent;
  border-radius: 0.3em;
  cursor: pointer;
}

.lh-booking__rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.lh-booking__rating:has(input:checked) {
  border-color: var(--lh-booking-rating);
  background: var(--lh-booking-white);
  font-weight: 700;
}

.lh-booking__rating:has(input:focus-visible) {
  outline: 3px solid var(--lh-green);
  outline-offset: 2px;
}

.lh-booking__star {
  color: var(--lh-booking-rating);
  font-size: 1.75em;
  line-height: 1.4;
}

.lh-booking__choices {
  display: grid;
  gap: 0.75em;
}

.lh-booking__choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  padding: 0.75em;
  border: 1px solid var(--lh-booking-border);
  border-radius: 0.4em;
  background: var(--lh-booking-white);
  cursor: pointer;
}

.lh-booking__choice input {
  flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
  margin: 0.25em 0 0;
  accent-color: var(--lh-green);
  font: inherit;
}

.lh-booking__choice:has(input:checked) {
  border-color: var(--lh-green);
  font-weight: 700;
}

.lh-booking__optional {
  margin: 1.5em 0 0.6em;
  font-weight: 650;
}

.lh-booking__hint,
.lh-booking__handoff {
  margin: 0.5em 0 1em;
  color: var(--lh-booking-muted);
  font-size: 1em;
  line-height: 1.6;
}

.lh-booking__handoff {
  margin-top: 1.5em;
}

.lh-booking__error {
  margin: 0.4em 0 0;
  color: var(--lh-booking-error);
  font-size: 1em;
}

.lh-booking__error:empty,
.lh-booking__status:empty {
  display: none;
}

.lh-booking__status {
  margin: 1em 0;
  font-size: 1em;
}

.lh-booking__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75em;
  margin-top: 1.5em;
}

.lh-booking__button {
  min-height: 3em;
  padding: 0.75em 1.15em;
  border: 1px solid var(--lh-green);
  border-radius: 0.4em;
  color: var(--lh-booking-white);
  background: var(--lh-green);
  font: inherit;
  font-size: 1em;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}

.lh-booking__button--secondary {
  color: var(--lh-green);
  background: transparent;
}

.lh-booking__button:disabled {
  border-color: var(--lh-booking-muted);
  color: var(--lh-booking-white);
  background: var(--lh-booking-muted);
  opacity: 1;
  cursor: wait;
}

.lh-booking__preview,
.lh-booking__mapping {
  margin: 0 0 1.25em;
  padding: 0.75em 1em;
  border: 1px solid var(--lh-booking-border);
  border-radius: 0.4em;
  color: var(--lh-booking-muted);
  background: var(--lh-booking-white);
  font-size: 1em;
}

.lh-booking--calendar {
  width: min(64em, calc(100vw - 2em));
}

.lh-booking__calendar {
  width: 100%;
  min-height: 10em;
  margin-top: 1em;
}

.lh-booking__calendar:has(iframe) {
  height: 44em;
}

.lh-booking__calendar iframe {
  display: block;
  width: 100%;
  height: 44em;
  border: 0;
}


.lh-booking a {
  color: var(--lh-green);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.lh-booking__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 40em) {
  .lh-booking,
  .lh-booking--calendar {
    width: calc(100vw - 1em);
    max-height: calc(100dvh - 1em);
  }

  .lh-booking__shell {
    max-height: calc(100dvh - 1em);
  }

  .lh-booking__header {
    padding: 0.5em 0.75em;
  }

  .lh-booking__body {
    padding: 1.1em 1em 1.5em;
  }

  .lh-booking__names {
    grid-template-columns: 1fr;
  }

  .lh-booking__ratings {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5em;
  }

  .lh-booking__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .lh-booking--calendar .lh-booking__body {
    padding-inline: 0.5em;
  }
}
