/* v1087 (phones only): property page "Book your stay" bottom sheet. Loaded for max-width 800px - the width at
   which the booking card becomes a bottom sheet. The computer layout does not load this file. */
@media (max-width: 800px) {
  /* 7: the header is dimmed with the page and cannot be tapped while the sheet is open */
  body.msite-booking-open .ys-v732-headstack,
  body.msite-booking-open .ys-shared-header-v732 { z-index: 300 !important; }

  /* the sheet uses the real visible height (phone toolbars) */
  #bookingBox.ys-booking-card { max-height: min(88vh, calc(100dvh - 56px)); overscroll-behavior: contain; }

  /* 1: came from "Select" - no second booking question, no room dropdown, no meal dropdown */
  #bookingBox.ys87-picked .pdp9-book-head,
  #bookingBox.ys87-picked .ys-discount-note,
  #bookingBox.ys87-picked .ys880-jlabel,
  #bookingBox.ys87-picked .pdp9-journey,
  #bookingBox.ys87-picked .ys-room-field,
  #bookingBox.ys87-picked #mealPlanField { display: none !important; }
  .ys87-pick { display: none; }
  #bookingBox.ys87-picked .ys87-pick { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    margin: 4px 0 14px; padding: 12px 14px; border: 1.5px solid #E8661E; border-radius: 14px; background: #FFF8F1; }
  .ys87-pick-l { min-width: 0; }
  .ys87-pick-l small { display: block; color: #9A4A00; font: 700 11px/1.2 Inter, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
  .ys87-pick-l strong { display: block; margin-top: 3px; color: #062B5C; font-size: 1rem; line-height: 1.3; }
  .ys87-pick-l span { display: block; margin-top: 2px; color: #5B6575; font-size: .8rem; line-height: 1.35; }
  .ys87-pick-r { flex: none; text-align: right; }
  .ys87-pick-r del { display: block; color: #8A94A3; font-size: .78rem; }
  .ys87-pick-r b { display: block; color: #17233A; font-size: 1.15rem; line-height: 1.2; }
  .ys87-pick-r small { display: block; color: #6B7280; font-size: .72rem; }
  .ys87-change { margin-top: 4px; padding: 6px 0 2px; border: 0; background: none; color: #C2410C;
    font: 700 13px/1 Inter, system-ui, sans-serif; text-decoration: underline; cursor: pointer; min-height: 32px; }

  /* 5: room dropdown fits (labels are shortened by the script; this keeps any long name on one line) */
  #bookingBox #roomTypeSelect { text-overflow: ellipsis; padding-right: 30px; }

  /* 2: total and the main button stay at the bottom of the sheet */
  #bookingBox .ys87-foot { position: sticky; bottom: 0; z-index: 4; margin: 14px -18px 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid #E6EAF0; box-shadow: 0 -8px 18px rgba(6,43,92,.07); }
  #bookingBox .ys87-foot .ys-estimated-total { margin: 0 0 8px; padding: 0; border: 0; background: none; }
  #bookingBox .ys87-foot .ys-booking-submit { width: 100%; min-height: 50px; margin: 0; font-size: 16px; }
  #bookingBox .ys87-pin { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 4;
    width: 100%; min-height: 50px; box-shadow: 0 -6px 0 6px #fff, 0 6px 18px rgba(232,102,30,.25); }
}
