/* ================================================================
   MPCRBM – Booking Summary Card CSS
   Step 3 only · Matches reference image 3
   ================================================================ */

/* ── Hide the "1 Search / 2 Choose Vehicle / 3 Place Order" step labels ── */
#mpcrbm_progress_bar_holder,
.tabListsNext {
    display: none !important;
}

/* ── Hide booking summary from Step 2 by default ──
   The plugin's own JS will set display:block when navigating to Step 3 */
.mpcrbm_order_summary {
    display: none !important;
}

.mpcrbm_order_summary.active,
.mpcrbm_order_summary[style*="block"],
.mpcrbm_order_summary[style*="flex"] {
    display: flex !important;
}


/* ── Full summary card shell ── */
.mpcr_full_summary_card {
    width: 340px;
    min-width: 300px;
    flex-shrink: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* sticky wrapper */
.mpcr_full_summary_card .sticky_on_scroll {
    position: sticky;
    top: 20px;
    border-radius: 14px;
    border: 1px solid #dde3ef;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .09);
    overflow: hidden;
    background: #fff;
}

/* ── Dark navy header ── */
.mpcr_summary_header {
    background: #1e2d6b;
    color: #fff;
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .2px;
}

.mpcr_summary_header i {
    font-size: 18px;
    opacity: .85;
}

/* ── Card body ── */
.mpcr_summary_body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ════════════════════════════════
   (A) Car image + name row
   ════════════════════════════════ */
.mpcr_summary_car_row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f7;
}

.mpcr_summary_car_img {
    width: 96px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef1f8;
    flex-shrink: 0;
}

.mpcr_summary_car_img img,
img.mpcrbm_summary_car_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mpcr_summary_car_info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mpcr_summary_car_info strong,
.mpcr_summary_car_info .mpcrbm_product_name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1f36;
    line-height: 1.3;
    display: block;
}

.mpcr_car_plan {
    font-size: 11px;
    font-weight: 600;
    color: #8b96ad;
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* ════════════════════════════════
   (B) Location + Date timeline
   ════════════════════════════════ */
.mpcr_summary_timeline {
    background: #f0f3f9;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #e2e8f5;
}

/* "Location: Pune" line */
.mpcr_timeline_location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.mpcr_timeline_location strong {
    color: #1e2d6b;
    font-weight: 700;
}

/* Pickup → To → Return row */
.mpcr_timeline_dates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mpcr_date_block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.mpcr_date_block--right {
    text-align: right;
}

/* Date bold */
.mpcr_date_label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1f36;
}

/* Time muted */
.mpcr_time_label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* "To" circular navy badge */
.mpcr_to_badge {
    background: #1e2d6b;
    color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30, 45, 107, .3);
}

/* Duration dashed separator */
.mpcr_duration_row {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
}

/* ════════════════════════════════
   (C) Detail Key-Value rows
   ════════════════════════════════ */
.mpcr_detail_rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mpcr_detail_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 13px;
    color: #8b96ad;
    border-bottom: 1px solid #f3f4f6;
}

.mpcr_detail_row span {
    color: #8b96ad;
    font-weight: 400;
}

.mpcr_detail_row strong {
    font-size: 13px;
    font-weight: 700;
    color: #1a1f36;
    text-align: right;
}

.mpcr_qty_row strong {
    color: #1e2d6b;
}

/* ════════════════════════════════
   (D) Price Breakdown
   ════════════════════════════════ */
.mpcr_price_section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.mpcr_price_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.mpcr_val {
    font-weight: 700;
    color: #1a1f36;
}

/* Thin divider above total */
.mpcr_price_divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Total row */
.mpcr_total_row {
    font-size: 16px;
    font-weight: 800;
    color: #1a1f36;
    padding-top: 6px;
    border-top: 2px solid #1e2d6b;
}

.mpcr_total_row .mpcr_val {
    color: #1e2d6b;
    font-size: 17px;
}

/* Extra service rows injected by JS */
.mpcr_extra_breakdown .justifyBetween,
.mpcr_extra_breakdown>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #374151;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

/* ── Previous button ── */
.mpcr_prev_btn {
    display: block;
    width: calc(100% - 44px);
    margin: 4px 22px 20px;
    padding: 12px 20px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
}

.mpcr_prev_btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* ── Step 3 layout: summary card + checkout form side by side ── */
.mpcrbm_order_summary .sticky_section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 20px;
    box-sizing: border-box;
}

.mpcrbm_order_summary .flexWrap {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* checkout form column */
.mpcrbm_order_summary .mpcrbm_mainSection {
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Hide old plugin-generated summary blocks in Step 3
   (we have our own clean card above) ── */
.mpcr_full_summary_card div.mpcrbm_transport_summary {
    display: none !important;
}

/* ── Quantity badge ── */
.mpcrbm_car_qty_display {
    display: inline-block;
    background: #e0e7ff;
    color: #1e2d6b;
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 13px;
    font-weight: 700;
}

/* ================================================================
   STEP 2 — vehicle list goes full-width (no sidebar)
   ================================================================ */
.mpcrbm_main_content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

/* On step 2 the main section takes full width since no sidebar */
.mpcrbm_main_content>.mpcrbm_mainSection {
    flex: 1 1 100%;
    width: 100%;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .mpcrbm_order_summary .flexWrap {
        flex-direction: column-reverse;
    }

    .mpcr_full_summary_card {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 600px) {
    .mpcr_summary_body {
        padding: 16px;
    }

    .mpcr_summary_header {
        padding: 13px 16px;
    }

    .mpcr_timeline_dates {
        flex-direction: column;
        align-items: center;
    }

    .mpcr_date_block--right {
        text-align: left;
    }

    .mpcr_to_badge {
        transform: rotate(90deg);
    }
}
/* ── Spec rows (Brand, Fuel, Seats) ── */
.mpcr_spec_row {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.mpcr_spec_row:hover {
    background: #f8fafc;
}

.mpcr_spec_row:last-child {
    border-bottom: none;
}

.mpcr_spec_row span {
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.mpcr_spec_row span i {
    margin-right: 8px;
    color: #3b82f6;
    font-size: 16px;
}

.mpcr_spec_row strong {
    color: #1e293b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Ensure the summary header icon is prominent */
.mpcr_summary_header {
    background: #1e2d6b;
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
}

.mpcr_summary_header i {
    font-size: 22px;
    margin-right: 12px;
    opacity: 0.9;
}

.mpcr_summary_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

/* Hide legacy elements that might clutter the view */
.mpcrbm_transport_summary_area .mpcr_total_price_label {
    display: none !important;
}

/* ── Razorpay Info & Advance Row ── */
.mpcrbm_rzp_info_box {
    animation: fadeInSlideUp 0.4s ease-out;
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mpcr_advance_row {
    background: #fff5f5;
    padding: 12px 0;
    margin-top: 15px;
    border-radius: 6px;
    border: 1px dashed #f5b0a6;
}

.mpcr_advance_row span:first-child {
    padding-left: 10px;
}

.mpcr_advance_row span:last-child {
    padding-right: 10px;
}

.mpcrbm_razorpay_pay_btn {
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    width: 100%;
}
