/* =========================================================
   CHECKOUT.CSS
========================================================= */

.checkout-page {
    background-color: #f7f7fb;
}

.checkout-page .card {
    transition: box-shadow .2s ease;
}

/* ---------------- Quantity input ---------------- */
.checkout-page #qty {
    font-weight: 600;
    max-width: 70px;
}

/* ---------------- Payment cards ---------------- */
.payment-card {
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.payment-card:hover {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.payment-card label {
    cursor: pointer;
    margin: 0;
}

.payment-card input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc3545;
}

.payment-card:has(input[type="radio"]:checked) {
    border-color: #dc3545;
    background-color: #fff5f5;
    box-shadow: 0 0 0 1px #dc354533;
}

/* ---------------- Warranty options ---------------- */
.warranty-option {
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.warranty-option:hover {
    border-color: #0d6efd;
    background-color: #f5f9ff;
}

.warranty-option label {
    cursor: pointer;
    margin: 0;
}

.warranty-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0d6efd;
}

.warranty-option:has(input[type="radio"]:checked) {
    border-color: #0d6efd;
    background-color: #eef5ff;
    box-shadow: 0 0 0 1px #0d6efd33;
}

/* ---------------- COD / Online boxes ---------------- */
#codAdvanceBox .card,
#onlinePaymentBox .card {
    border-width: 1px;
}

/* ---------------- Sidebar ---------------- */
.checkout-sidebar {
    z-index: 10;
}

/* ---------------- Order error box ---------------- */
#orderErrorBox {
    font-size: 0.92rem;
    border-radius: 10px;
}

/* ---------------- Place order button ---------------- */
#placeOrderBtn {
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

#placeOrderBtn:disabled {
    opacity: 0.75;
}

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 991.98px) {
    .checkout-sidebar {
        position: static !important;
    }
}

@media (max-width: 575.98px) {
    .checkout-page .card-body {
        padding: 1rem;
    }
}