/* =========================================================
   DAMIAN PHILPOTT — PAYMENT & REVIEW — COMPACT V1
   ---------------------------------------------------------
   DESKTOP ONLY / STEP 7 ONLY.
   Built on verified v1.0.72 clean global background+glass.

   PURPOSE
   - Reduce Step 7's natural vertical height by tightening
     its existing spacing and component heights.
   - Do NOT force a shell height.
   - Do NOT change container display/flex behaviour.
   - Do NOT move the Booknetic footer.
   - Do NOT affect Steps 1–6 or mobile.
   ========================================================= */

@media screen and (min-width: 1001px) {

    /* Scope every rule to the active Payment & Review step. */
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_appointment_container_body {
        padding-top: 12px !important;
        padding-bottom: 10px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_confirm_step_body {
        gap: 14px !important;
        padding: 0 18px 4px !important;
    }

    /* Loyalty credit row */
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) #booknetic-redeem-points-container {
        min-height: 44px !important;
        margin-bottom: 7px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic-use-coins-btn {
        min-height: 30px !important;
    }

    /* Booking summary heading/card rhythm */
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .dp-payment-summary-card::before {
        margin-bottom: 6px !important;
        padding-bottom: 6px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .dp-payment-summary-card .booknetic_panel_footer {
        margin-top: 9px !important;
    }

    /* Discount code area */
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_add_coupon {
        margin-top: 10px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) #booknetic_coupon,
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_coupon_ok_btn,
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_coupon_cancel_btn {
        height: 34px !important;
        min-height: 34px !important;
    }

    /* Booking total */
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_confirm_sum_price {
        min-height: 44px !important;
        margin-top: 10px !important;
        padding-top: 8px !important;
    }

    /* Payment method heading + cards */
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_payment_methods::before {
        margin-bottom: 7px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_payment_methods {
        gap: 7px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_payment_method.dp-payment-local,
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_payment_method.dp-payment-sumup {
        min-height: 58px !important;
        padding: 9px 13px !important;
        grid-template-columns: 30px minmax(0,1fr) !important;
        column-gap: 10px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_payment_method.dp-payment-local img,
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_payment_method.dp-payment-sumup img {
        width: 24px !important;
        height: 24px !important;
    }

    /* Online payment amount area */
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_payment_methods_footer {
        margin-top: 9px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_deposit_price {
        min-height: 38px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_deposit_radios {
        gap: 7px !important;
        margin-top: 7px !important;
    }

    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_deposit_radios > div {
        min-height: 34px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    /* Step 7 footer — tighter padding only; position/flow untouched. */
    #booknetic_theme_8:has(
        .booknetic_appointment_step_element.booknetic_active_step[data-step-id="confirm_details"]
    ) .booknetic_appointment_container_footer {
        margin-top: 2px !important;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }
}
