/* 1.8.1 — shared booking layout. Size fields to the form, not the viewport.
 * Loaded after the legacy bundles; selectors remain inside the plugin shell.
 * Rates, availability, datepickers and checkout are owned by MotoPress.
 */
body.svu-active .svu-site .svu-booking-form {
  container: svu-booking / inline-size;
  min-width: 0;
}
body.svu-active .svu-site .svu-booking-form :is(form.mphb_sc_search-form, form.mphb-booking-form) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: end;
  gap: 18px 16px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
body.svu-active .svu-site .svu-booking-form :is(form.mphb_sc_search-form, form.mphb-booking-form) > * {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
  max-width: 100%;
  width: auto !important;
  margin: 0 !important;
  float: none;
}
body.svu-active .svu-site .svu-booking-form :is(form.mphb_sc_search-form, form.mphb-booking-form) > :is(.mphb_sc_search-adults, .mphb_sc_search-children, .mphb-adults-wrapper, .mphb-children-wrapper) {
  grid-column: auto !important;
}
body.svu-active .svu-site .svu-booking-form input[type="hidden"],
body.svu-active .svu-site .svu-booking-form label + br {
  display: none !important;
}
body.svu-active .svu-site .svu-booking-form label abbr {
  font-size: inherit;
  text-decoration: none;
}
/* MotoPress already supplies the required marker; do not announce it twice. */
body.svu-active .svu-site .svu-booking-form label abbr::after { content: none; }
body.svu-active .svu-site .svu-booking-form :is(input, select, button) {
  box-sizing: border-box;
  max-width: 100%;
}
@container svu-booking (min-width: 480px) {
  body.svu-active .svu-site .svu-booking-form :is(form.mphb_sc_search-form, form.mphb-booking-form) > :is(.mphb_sc_search-check-in-date, .mphb_sc_search-check-out-date, .mphb-check-in-date-wrapper, .mphb-check-out-date-wrapper) {
    grid-column: auto !important;
  }
}
@container svu-booking (min-width: 780px) {
  body.svu-active .svu-site :is(.svu-booking-form--horizontal, .svu-booking-form--book-page) form.mphb_sc_search-form {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, .65fr) minmax(0, .65fr) minmax(150px, 1fr) !important;
  }
  body.svu-active .svu-site :is(.svu-booking-form--horizontal, .svu-booking-form--book-page) form.mphb_sc_search-form > :is(.mphb_sc_search-check-in-date, .mphb_sc_search-check-out-date, .mphb_sc_search-submit-button-wrapper) {
    grid-column: auto !important;
  }
}
body.svu-active .svu-booking-drawer__panel { overscroll-behavior: contain; }
body.svu-active .svu-booking-drawer__head { flex-shrink: 0; }
