/* HCH Quote Booking Flow v1.1.6 - display only. Scoped to body.hchqbf-on (kill switches remove the class + this file). */
/* 1. Phone booking sheet always scrolls (same rule as hch-mobile-booking-fix; harmless when both are live). */
@media (max-width: 991px) {
  body.hchqbf-on.hchx-v2 .hchx-sheet-open #primary.listingsidebar2 {
    max-height: 88vh !important; max-height: 88dvh !important; overflow-y: auto !important;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
  }
}
/* 2. "From your quote" panel */
body.hchqbf-on .hchqbf-panel { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #cfe3df; border-radius: 12px; background: #f4faf9; color: #14202e; font-size: 14px; line-height: 1.45; }
body.hchqbf-on .hchqbf-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1f6f65; margin: 0 0 2px; }
body.hchqbf-on .hchqbf-when { font-weight: 700; font-size: 15px; margin: 0 0 8px; }
body.hchqbf-on .hchqbf-lines { margin: 0; padding: 0; }
body.hchqbf-on .hchqbf-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
body.hchqbf-on .hchqbf-row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.hchqbf-on .hchqbf-tot { border-top: 1px solid #cfe3df; margin-top: 4px; padding-top: 7px; font-weight: 700; font-size: 15px; }
body.hchqbf-on .hchqbf-fee { color: #4a5a6a; font-size: 13px; }
body.hchqbf-on .hchqbf-card, body.hchqbf-on .hchqbf-cash { font-weight: 700; }
body.hchqbf-on .hchqbf-note { margin: 8px 0 0; font-size: 12.5px; color: #4a5a6a; }
body.hchqbf-on .hchqbf-links { margin: 10px 0 0; font-size: 13px; }
body.hchqbf-on .hchqbf-links a { color: #1f5f9e; text-decoration: underline; }
body.hchqbf-on .hchqbf-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; border: 1px solid #f0c36d; background: #fff8e6; color: #3d2c00; }
body.hchqbf-on .hchqbf-alert.hchqbf-stop { border-color: #e7a3a3; background: #fdf0f0; color: #5c1111; }
body.hchqbf-on .hchqbf-alert b { display: block; margin-bottom: 2px; }
body.hchqbf-on .hchqbf-alert a { color: inherit; text-decoration: underline; font-weight: 700; }
body.hchqbf-on .hchqbf-btn { display: inline-block; margin: 8px 8px 0 0; padding: 9px 14px; border-radius: 8px; background: #1e3554; color: #fff !important; text-decoration: none !important; font-weight: 700; }
/* 3. When the theme box agrees with the quote, the quote breakdown replaces it (the theme box stays in the page for the booking code). */
body.hchqbf-match #show_cost_form { display: none !important; }
body.hchqbf-quote .hchx-quote-btn { display: none !important; }
body.hchqbf-stopbook #submit_booking_front { opacity: .45; cursor: not-allowed; }
/* 4. Phone bar: quote total + "Book these dates" */
body.hchqbf-match .hchx-mbar-info > :not(.hchqbf-mbar) { display: none !important; }
body.hchqbf-on .hchqbf-mbar strong { display: block; }
/* 5. After a guest count is picked the theme replaces the label without its padding, so the text ran over the person icon (every listing). */
body.hchqbf-on #booking_form_request #booking_guest_no_wrapper:not(:has(.text_selection)) { padding-left: 28px; }
/* ===== v1.1.0 ===== */
/* 6. t1311u: the booking box always ends with Estimated total / Process fee / Total if paid by card / Total if paid by cash or cashier's check */
body.hchqbf-on #show_cost_form .hchqbf-feebox { display: block !important; margin: 2px 0 0; padding: 6px 0 0; border-top: 1px dashed #cfd8e3; }
body.hchqbf-on #show_cost_form .hchqbf-feerow { display: flex !important; justify-content: space-between; gap: 10px; visibility: visible !important; }
body.hchqbf-on #show_cost_form .hchqbf-feerow .cost_explanation, body.hchqbf-on #show_cost_form .hchqbf-feerow .cost_value { display: block !important; white-space: normal; }
body.hchqbf-on #show_cost_form .hchqbf-feerow .cost_explanation { flex: 1 1 auto; width: auto !important; min-width: 0; }
body.hchqbf-on #show_cost_form .hchqbf-feerow .cost_value { flex: 0 0 auto; width: auto !important; white-space: nowrap !important; text-align: right; }
body.hchqbf-on #show_cost_form .hchqbf-feerow.hchqbf-fee { color: #4a5a6a; font-size: 14px; }
body.hchqbf-on #show_cost_form .hchqbf-feerow.hchqbf-card .cost_explanation, body.hchqbf-on #show_cost_form .hchqbf-feerow.hchqbf-card .cost_value,
body.hchqbf-on #show_cost_form .hchqbf-feerow.hchqbf-cash .cost_explanation, body.hchqbf-on #show_cost_form .hchqbf-feerow.hchqbf-cash .cost_value { font-weight: 700; color: #1e3554; }
body.hchqbf-on #show_cost_form .hchqbf-feenote { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: #4a5a6a; }
/* 7. decision 4: "From $X / night" before dates */
body.hchqbf-on #listing_main_image_price_id .hchqbf-from-pre { font-size: 15px; font-weight: 600; color: #4a5a6a; }
/* 8. decision 5: login pop-up "Create an account" link */
#loginmodal .hchqbf-create { margin: 12px 0 0; font-size: 15px; text-align: center; }
#loginmodal .hchqbf-create a { font-weight: 700; color: #1f5f9e; text-decoration: underline; }
/* 9. decision 3: /booking stay summary */
.hchqbf-summary { box-sizing: border-box; max-width: 640px; margin: 0 auto 18px; padding: 14px 16px; border: 1px solid #cfe3df; border-radius: 12px; background: #f3faf8; color: #1e3554; font-size: 14.5px; line-height: 1.45; }
.hchqbf-summary .hchqbf-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #2f7d6d; }
.hchqbf-summary .hchqbf-sum-apt { font-size: 17px; font-weight: 800; margin: 2px 0; }
.hchqbf-summary .hchqbf-when { color: #4a5a6a; margin-bottom: 8px; }
.hchqbf-summary .hchqbf-row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.hchqbf-summary .hchqbf-tot { border-top: 1px solid #cfe3df; padding-top: 7px; font-weight: 700; }
.hchqbf-summary .hchqbf-fee { color: #4a5a6a; font-size: 13.5px; }
.hchqbf-summary .hchqbf-card, .hchqbf-summary .hchqbf-cash { font-weight: 700; }
.hchqbf-summary .hchqbf-note { margin: 8px 0 0; font-size: 12.5px; color: #4a5a6a; }
/* ===== v1.1.5 (owner t1319u) ===== */
/* 10. A guest who arrived from a quote does not see the top-right "Check availability" button (it confuses new customers; their dates are already chosen).
   Only the button is hidden: the "Questions? 469-306-9811" link in the same block stays. Visitors without quote context keep the button. */
body.hchqbf-on.hchqbf-quote .hchx-head-cta .hchx-cta,
body.hchqbf-on.hchqbf-quote .hchx-head-cta button[data-hchx-open-booking] { display: none !important; }
/* 11. /booking: the theme shifts "Welcome to HCH Registration Page" down 40px with position:relative; top:40px (no layout space), so a card placed right after it
   covered the title. Push the stay card down by that offset (+4px) so the title stays readable above it. */
.hch_booking_form_wrapper .title-wrap + .hchqbf-summary { margin-top: 44px; }
/* ===== v1.1.6 ===== */
/* 12. With the modern register card (hch-register-modern) the title block is static (no 40px theme shift), so the 44px push from rule 11 is not needed:
   the card's own 20px bottom margin is the gap. Without the modern card rule 11 still applies. */
body.hchrm-on .hch_booking_form_wrapper .title-wrap + .hchqbf-summary { margin-top: 0; }
