/* Keep inline date-calendar expansion within its own booking column. */
body.redesign-ui #bookingBasics > .field-grid {
  align-items: start;
}

/* Country minimum and compact size choices stay within the existing piece step. */
body.redesign-ui #bookingPiece .country-minimum .price-amount {
  font: 400 16px/1.6 var(--isekai-body);
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}

body.redesign-ui #bookingPiece .country-size-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.redesign-ui #bookingPiece .country-size-options .size-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19px;
  grid-template-rows: 22px 34px;
  align-content: center;
  min-width: 0;
  height: 88px;
  min-height: 88px;
  padding: 12px;
  gap: 4px 8px;
  align-items: center;
}

body.redesign-ui #bookingPiece .country-size-options .size-option > span {
  display: contents;
}

body.redesign-ui #bookingPiece .country-size-options .size-artist-choice {
  grid-column: 1 / -1;
  grid-template-rows: 22px;
  height: 52px;
  min-height: 52px;
}

body.redesign-ui #bookingPiece .country-size-options .option-title {
  display: block;
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  letter-spacing: .01em;
}

body.redesign-ui #bookingPiece .country-size-options .artist-recommended {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  margin-top: 0;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .02em;
}

body.redesign-ui #bookingPiece .country-size-options input[type="radio"] {
  grid-column: 2;
  grid-row: 1;
  flex: 0 0 19px;
}

body.redesign-ui #bookingPiece :is(#pieceSizeReveal, #piecePriceReveal) {
  animation: none;
}

/* Keep the close glyph identical when the interface language changes. */
body.redesign-ui #booking #closeBooking {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
}

/* Mobile booking controls follow the content instead of covering it. */
@media (max-width: 899px) {
  body.redesign-ui #booking .adaptive-progress {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
  }

  body.redesign-ui #booking .adaptive-nav {
    position: static;
    bottom: auto;
    z-index: auto;
    /* The form grid already supplies the spacing above these buttons. */
    margin-top: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border-top: 0;
    background: transparent;
  }

  body.redesign-ui #booking .booking-header:has(#closeBooking) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    column-gap: 12px;
    padding-top: 44px;
  }

  body.redesign-ui #booking .booking-header > :not(.booking-account-actions):not(#closeBooking) {
    grid-column: 1 / -1;
  }

  body.redesign-ui #booking .booking-account-actions:has(#openMyAccount) {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0 0 16px;
    padding-top: 0;
  }

  body.redesign-ui #booking #closeBooking {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    isolation: isolate;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 20px;
  }

  body.redesign-ui #booking #closeBooking::before {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: -1;
    border: 1px solid var(--line);
    border-radius: var(--isekai-radius);
    background: #101010;
    pointer-events: none;
  }
}
