/* --- SWEETALERT CUSTOM STYLING --- */

.ecars-swal-popup {
    border-radius: 12px !important;
    padding: 2em !important;
}

.swal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.swal-veh-title {
    font-size: 20px;
    color: #4682B4; /* Steel Blue */
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.cost-group {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.group-header {
    font-size: 13px;
    font-weight: 800;
    color: #4682B4; /* Steel Blue */
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding: 5px 0;
    color: #444;
}

.shipping-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 800;
    color: #00008B;
}

.group-total-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    font-size: 15px;
    font-weight: 700;
    color: #006400; /* Deep Green */
}

/* --- THE GRAND TOTAL BOX --- */
.swal-grand-total-container {
    background: #fdf2f2; /* Light Red tint */
    border: 2px solid #DC143C; /* Crimson */
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* --- 2-COLUMN GRID FOR POPUP --- */
.cost-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    column-gap: 20px; /* Space between columns */
    row-gap: 5px;    /* Small space between rows */
    margin-bottom: 10px;
}

/* Ensure rows inside grid align nicely */
.cost-grid-2-col .cost-row, 
.cost-grid-2-col .shipping-row {
    border-bottom: 1px dotted #eee; /* Light separator for grid items */
    padding: 6px 0;
}

/* Remove border from last 2 items so it looks clean */
.cost-grid-2-col .cost-row:nth-last-child(-n+2),
.cost-grid-2-col .shipping-row:nth-last-child(-n+2) {
    border-bottom: 0;
}

/* Mobile Fallback: Stack them if screen is tiny */
@media (max-width: 500px) {
    .cost-grid-2-col {
        grid-template-columns: 1fr; /* Back to 1 column */
        gap: 0;
    }
}

.total-info {
    text-align: left;
}

.total-label {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #DC143C; /* Crimson */
}

.total-amount-box {
    font-size: 18px;
    font-weight: 900;
    color: #DC143C; /* Crimson */
}

/* --- BUTTONS --- */
.et-swal-confirm-btn {
    background-color: #DC143C !important; /* Crimson */
    color: white !important;
    padding: 12px 10px !important;
    font-size: 16px;
    font-weight: 700 !important;
    border-radius: 6px !important;
    margin: 10px !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.3s;
}

.et-swal-confirm-btn:hover {
    background-color: #b01030 !important;
}

.et-swal-cancel-btn {
    background-color: #f4f4f4 !important;
    color: #666 !important;
    padding: 12px 10px !important;
    font-size: 16px;
    font-weight: 600 !important;
    border-radius: 6px !important;
    margin: 10px !important;
    border: 1px solid #ddd !important;
    cursor: pointer;
}

.ecars-swal-content {
    font-size: 16px !important; 
    line-height: 1.5 !important;
    font-weight: 500;
}