:root{
    --sndan-main:#00c8c8;
    --sndan-bg:#f6f8fa;
    --sndan-card:#ffffff;
    --sndan-border:#e8edf2;
    --sndan-text:#1f2937;
}

.sndan-checkout-wrapper{
    max-width:1400px;
    margin:40px auto;
    padding:0 20px;
}

.sndan-checkout-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 420px;
    gap:24px;
    align-items:start;
}

.sndan-content-column{
    min-width:0;
}

.sndan-content-column{
    width:100%;
}

.sndan-summary-column{
    width:100%;
}

.sndan-checkout-grid{
    width:100% !important;
}

.sndan-summary-column{
    min-width:0;
}

.sndan-summary-sticky{
    position:sticky;
    top:20px;
}

.sndan-card{
    background:var(--sndan-card);
    border:1px solid var(--sndan-border);
    border-radius:20px;
    padding:24px;
    margin-bottom:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.04);
}

.sndan-card h3{
    margin:0 0 20px;
    font-size:18px;
    font-weight:700;
    color:var(--sndan-text);
}

.sndan-place-order-btn{
    width:100%;
    border:none;
    border-radius:18px;
    height:62px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    color:#fff;
    background:var(--sndan-main);
    transition:.25s;
}

.sndan-place-order-btn:hover{
    transform:translateY(-2px);
}


#sndan-coupon-box,
#sndan-shipping-methods,
#sndan-payment-methods{
    min-height:120px;
    border:2px dashed #dce4ea;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#94a3b8;
    font-size:14px;
}



@media(max-width:991px){

    .sndan-checkout-grid{
        grid-template-columns:1fr;
    }

    .sndan-summary-column{
        order:2;
    }

    .sndan-content-column{
        order:1;
    }

    .sndan-summary-sticky{
        position:relative;
        top:auto;
    }

    .sndan-card{
        border-radius:16px;
        padding:18px;
    }

    .sndan-place-order-btn{
        position:sticky;
        bottom:10px;
        z-index:100;
    }
}

.sndan-fields-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    align-items:start;
}

.sndan-fields-grid .form-row{
    width:100% !important;
    margin:0 !important;
    float:none !important;
}

.sndan-fields-grid .form-row-wide,
.sndan-fields-grid #order_comments_field{
    grid-column:1 / -1;
}

.sndan-fields-grid label{
    display:block;
    margin-bottom:7px;
    font-size:13px;
    font-weight:700;
    color:#334155;
}

.sndan-fields-grid input,
.sndan-fields-grid select,
.sndan-fields-grid textarea,
.sndan-fields-grid .select2-selection{
    width:100% !important;
    min-height:48px;
    border:1px solid #dbe5ee !important;
    border-radius:12px !important;
    background:#fff !important;
    padding:0 14px !important;
    box-shadow:none !important;
}

.sndan-fields-grid textarea{
    min-height:96px;
    padding:14px !important;
}

@media(max-width:767px){
    .sndan-fields-grid{
        grid-template-columns:1fr;
    }
}

#sndan-order-summary table{
    width:100%;
    border:none !important;
    margin:0 !important;
}

#sndan-order-summary thead{
    display:none;
}

#sndan-order-summary tr{
    border:none !important;
}

#sndan-order-summary td,
#sndan-order-summary th{
    border:none !important;
    padding:10px 0 !important;
}

#sndan-order-summary tbody .cart_item{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
    padding:12px 0 !important;
    border-bottom:1px solid #edf2f7 !important;
}

#sndan-order-summary .product-name{
    display:flex;
    gap:10px;
    align-items:center;
}

#sndan-order-summary .pressmart-product-thumb img{
    width:58px !important;
    height:58px !important;
    object-fit:cover;
    border-radius:12px;
    border:1px solid #edf2f7;
}

#sndan-order-summary .pressmart-product-desc{
    font-size:13px;
    font-weight:700;
    color:#334155;
    line-height:1.5;
}

#sndan-order-summary .product-total{
    font-size:14px;
    font-weight:800;
    color:#00a6a6;
    white-space:nowrap;
}

#sndan-order-summary .quantity{
    margin-top:8px;
    display:inline-flex;
    align-items:center;
    border:1px solid #dbe5ee;
    border-radius:12px;
    overflow:hidden;
}

#sndan-order-summary .quantity input[type="button"]{
    width:32px;
    height:32px;
    border:none;
    background:#f8fafc;
    color:#00a6a6;
    font-weight:800;
}

#sndan-order-summary .quantity .qty{
    width:42px !important;
    height:32px !important;
    border:none !important;
    text-align:center;
    padding:0 !important;
}

#sndan-order-summary tfoot tr{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #edf2f7 !important;
}

#sndan-order-summary tfoot th,
#sndan-order-summary tfoot td{
    font-size:14px;
    color:#64748b;
}

#sndan-order-summary .order-total{
    border-bottom:none !important;
    margin-top:8px;
}

#sndan-order-summary .order-total th,
#sndan-order-summary .order-total td{
    font-size:18px !important;
    font-weight:900 !important;
    color:#0f172a !important;
}

#sndan-order-summary .order-total .amount{
    color:#00a6a6 !important;
}

/* ===== بطاقة المنتج داخل الشيك اوت ===== */

#sndan-order-summary{
    display:flex;
    flex-direction:column;
    gap:16px;
}

#sndan-order-summary .sndan-cart-card{
    display:flex;
    gap:14px;
    padding:14px;
    border:1px solid #e5edf3;
    border-radius:18px;
    background:#fff;
    align-items:flex-start;
    position:relative;
    width:100%;
box-sizing:border-box;
min-width:0;
}

#sndan-order-summary .sndan-product-image{
    flex-shrink:0;
}

#sndan-order-summary .sndan-product-image img{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:14px;
}

#sndan-order-summary .sndan-product-info{
    flex:1;
    min-width:0;
}

#sndan-order-summary .sndan-product-title{
    font-size:14px;
    line-height:1.8;
    font-weight:700;
    margin-bottom:10px;
}

#sndan-order-summary .sndan-product-title a{
    color:#0f172a;
    text-decoration:none;
}

#sndan-order-summary .sndan-product-footer{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:12px;
}

#sndan-order-summary .sndan-product-price{
    display:flex;
    flex-direction:column;
    gap:5px;
}

#sndan-order-summary .sndan-unit-price{
    color:#64748b;
    font-size:13px;
}

#sndan-order-summary .sndan-line-price{
    color:#00b6b6;
    font-weight:800;
    font-size:18px;
}

#sndan-order-summary .sndan-remove{
    position:absolute;
    top:10px;
    left:10px;
    width:28px;
    height:28px;
    border-radius:50%;
    background:#fff0f0;
    color:#ef4444;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:0;
}

#sndan-order-summary .sndan-remove:before{
    content:"✕";
    font-size:14px;
}

#sndan-order-summary .quantity{
    display:flex;
    align-items:center;
    border:1px solid #dbe5ee;
    border-radius:12px;
    overflow:hidden;
}

#sndan-order-summary .quantity .minus,
#sndan-order-summary .quantity .plus{
    width:36px;
    height:36px;
    border:none;
    background:#f8fafc;
}

#sndan-order-summary .quantity .qty{
    width:50px !important;
    border:none !important;
    text-align:center;
}

#sndan-order-summary .sndan-summary-row,
#sndan-order-summary .sndan-summary-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
}

#sndan-order-summary .sndan-summary-total{
    border-top:1px solid #e5edf3;
    margin-top:10px;
    padding-top:16px;
}

#sndan-order-summary .sndan-summary-total strong{
    color:#00b6b6;
    font-size:24px;
}

@media(max-width:767px){

#sndan-order-summary .sndan-product-image img{
    width:75px;
    height:75px;
}

#sndan-order-summary .sndan-product-footer{
    flex-direction:column;
    align-items:flex-start;
}

}

#sndan-order-summary .sndan-summary-row,
#sndan-order-summary .sndan-summary-total{
    clear:both;
    width:100%;
    box-sizing:border-box;
    margin:0;
}

#sndan-order-summary .sndan-summary-row{
    border-top:1px solid #edf2f7;
}

#sndan-order-summary .sndan-summary-total{
    border-top:2px solid #dbe5ee;
}

#sndan-order-summary .quantity{
    display:flex !important;
    align-items:center !important;
    overflow:hidden !important;
    border:1px solid #dbe5ee !important;
    border-radius:14px !important;
    background:#fff !important;
}

#sndan-order-summary .quantity .qty{
    border:none !important;
    outline:none !important;
    box-shadow:none !important;
    background:#fff !important;
    text-align:center !important;
    margin:0 !important;
}

#sndan-order-summary .quantity .plus,
#sndan-order-summary .quantity .minus{
    border:none !important;
    box-shadow:none !important;
    background:#f8fafc !important;
}

@media(max-width:991px){

    .sndan-payment-card{
        order:99;
    }

}