.entry-form,
.form-field,
.form-pair {
  display: grid;
  min-width: 0;
}

.entry-form {
  gap: 1.125rem;
}

.form-field {
  gap: .375rem;
}

.form-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.form-field label,
.form-label-row label {
  margin: 0;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin: 0;
}

.form-check input {
  margin: .125rem 0 0;
}

.entry-form [hidden] {
  display: none;
}

.auth-card h1 {
  margin-bottom: 1.5rem;
}

.auth-form .button {
  margin-top: .25rem;
}

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .75rem;
}

.form-label-row a,
.auth-alternate {
  font-size: .875rem;
}

.auth-alternate {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 1.5rem;
  padding-top: 1.125rem;
  text-align: center;
}

.booking-layout-postcode {
  grid-template-columns: minmax(0, 1fr);
  max-width: 42rem;
}

.booking-layout-postcode .booking-main {
  min-height: 0;
}

#area-form {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: .75rem;
  align-items: end;
  margin-top: 1.25rem;
}

#area-form .button {
  min-height: 46px;
}

.area-result {
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.area-result p {
  margin: 0;
}

.availability-alert {
  margin-top: .625rem;
}

.availability-alert summary {
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
}

#waitlist-form {
  margin-top: 1rem;
  max-width: 28rem;
}

#waitlist-form .button {
  justify-self: start;
}

.account-options {
  min-width: 0;
  margin: 0;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
}

.account-options label {
  position: relative;
  margin: 0;
}

.account-options input[type="radio"] {
  width: 1px;
  height: 1px;
  min-height: 0;
}

.account-options span {
  display: grid;
  height: 100%;
  place-items: center;
  padding: .625rem .375rem;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.account-options input:checked + span {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink-dark);
}

.account-options input:focus-visible + span {
  outline: 2px solid #8fac98;
  outline-offset: -2px;
}

#checkout-auth .booking-actions {
  margin-top: .25rem;
  padding-top: 1.125rem;
}

#booking-error:not(:empty) {
  margin-top: 1rem;
}

@media (max-width: 520px) {
  #area-form,
  .form-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  #area-form {
    gap: .75rem;
  }
}
