/* CHECKOUT PAGE CSS */

:root{
    --primary:#0d6efd;
    --primary2:#0aa2ff;
    --dark:#111827;
    --muted:#64748b;
    --bg:#f4f7f6;
    --border:#eef0f3;
    --danger:#dc3545;
}

.checkout-wrap{
    padding:35px 0;
    background:var(--bg);
}

.checkout-wrap .section-title{
    font-weight:900;
    font-size:24px;
    margin:0 0 18px;
    padding-bottom:10px;
    position:relative;
}

.checkout-wrap .section-title::after{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width:65px;
    height:4px;
    background:var(--primary);
    border-radius:20px;
}

.checkout-card{
    background:#fff;
    border-radius:22px;
    border:1px solid var(--border);
    box-shadow:0 12px 32px rgba(0,0,0,.07);
}

.checkout-wrap .form-control,
.checkout-wrap .form-select{
    border-radius:13px;
    padding:13px 15px;
    border:1px solid #dbe2ea;
    box-shadow:none!important;
    min-height:48px;
}

.checkout-wrap .form-control:focus,
.checkout-wrap .form-select:focus{
    border-color:var(--primary);
}

.checkout-wrap textarea.form-control{
    min-height:110px;
}

.checkout-wrap .trust-box{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    box-shadow:none;
}

.product-img{
    width:78px;
    height:78px;
    object-fit:cover;
    border-radius:15px;
    border:1px solid #e5e7eb;
    background:#fff;
    flex-shrink:0;
}

.qty-btn{
    width:34px;
    height:34px;
    border:0;
    background:#eef6ff;
    color:var(--primary);
    font-weight:900;
}

.qty-input{
    width:38px;
    border:0;
    text-align:center;
    font-weight:900;
    background:transparent;
}

.summary-box{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
}

.pay-option{
    border:2px solid #e5e7eb;
    border-radius:16px;
    padding:14px;
    cursor:pointer;
    background:#fff;
    transition:.2s;
}

.pay-option.active{
    border-color:var(--primary);
    background:#eef6ff;
}

.pay-option.disabled{
    opacity:.55;
    cursor:not-allowed;
    background:#f8f9fa;
}

.confirm-btn{
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    border:none;
    border-radius:16px;
    padding:15px;
    font-weight:900;
    color:#fff;
    box-shadow:0 10px 24px rgba(13,110,253,.25);
}

.confirm-btn:hover{
    color:#fff;
    transform:translateY(-2px);
}

.sticky-summary{
    position:sticky;
    top:90px;
}

.variant-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    font-weight:800;
    color:#475569;
    margin-top:4px;
}

.field-error{
    color:#dc3545;
    font-size:13px;
    font-weight:700;
    margin-top:6px;
}

.input-error{
    border-color:#dc3545!important;
}

/* Fraud Modal */
#fraudModal .modal-content{
    border-radius:22px;
    overflow:hidden;
}

/* Mobile */
@media(max-width:991px){
    .sticky-summary{
        position:static;
    }

    .checkout-card{
        margin-bottom:16px;
    }
}

@media(max-width:576px){
    .checkout-wrap{
        padding:18px 0 25px;
    }

    .checkout-wrap .container{
        padding-left:12px;
        padding-right:12px;
    }

    .checkout-card{
        border-radius:18px;
        padding:16px!important;
        box-shadow:0 8px 22px rgba(0,0,0,.06);
    }

    .checkout-wrap .section-title{
        font-size:20px;
    }

    .checkout-wrap .form-control,
    .checkout-wrap .form-select{
        min-height:46px;
        padding:11px 13px;
        font-size:14px;
        border-radius:12px;
    }

    .product-img{
        width:58px;
        height:58px;
        border-radius:12px;
    }

    .pay-option{
        padding:13px;
        border-radius:14px;
    }

    .summary-box{
        padding:15px;
        border-radius:15px;
    }

    .confirm-btn{
        padding:14px;
        font-size:15px;
        border-radius:14px;
    }
}