/*
 * Royal Servicess LLC
 * Mobile Booking Cleanup V2.9
 *
 * Presentation only.
 * No pricing, availability, or form logic changes.
 */

@media screen and (max-width: 760px) {

    /*
     * Step 1: reservation selection summary.
     * Keep the form and vehicle-selection controls.
     */
    body .guided-reserve-sidebar
    > .guided-reservation-summary {
        display: none !important;
    }

    /*
     * Step 2: availability reservation summary.
     * Keep the live availability check and actions.
     */
    body .guided-availability-sidebar
    > .guided-availability-summary {
        display: none !important;
    }

    /*
     * Step 3: handover reservation dashboard.
     * Keep pickup/delivery choices and hold actions.
     */
    body .booking-guide-sidebar
    > .booking-reservation-dashboard {
        display: none !important;
    }

    /*
     * Step 4: remove only the duplicated checkout
     * total-at-a-glance sidebar panel.
     *
     * The sidebar remains in the DOM so existing
     * summary JavaScript can still update its
     * data nodes. The authoritative server amounts
     * are not affected.
     */
    body .booking-checkout-v2__sidebar
    > .checkout-sticky-summary[data-checkout-summary] {
        display: none !important;
    }

    /*
     * Step 4: hide the redundant insurance
     * explanation, but keep the insurance
     * radio choices and supporting terms.
     */
    body .booking-guided-checkout
    .royal-insurance-intro-v29 {
        display: none !important;
    }
}


/* ROYAL V291 MOBILE SUMMARY FIX */

/*
 * Only remove redundant visual summaries.
 * Existing DOM elements remain available to
 * the booking JavaScript.
 */
@media screen and (max-width: 760px) {

    /*
     * Availability page:
     * Hide the repeated five-step progress strip.
     */
    body .guided-availability-shell
    .guided-availability-progress {
        display: none !important;
    }

    /*
     * Handover / Step 4 transition:
     * Hide the redundant reservation dashboard,
     * including when nesting differs by stage.
     */
    body .booking-guide-sidebar
    .booking-reservation-dashboard,
    body [data-guided-handover-page]
    .booking-reservation-dashboard,
    body .booking-reservation-dashboard {
        display: none !important;
    }
}
