/*=========================================
CHECKOUT MODAL
=========================================*/

.ts-checkout-modal{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    z-index:999999;

}

.ts-checkout-modal.show{

    display:flex;

}

.ts-checkout-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(4px);

}

/*=========================================
BOX
=========================================*/

.ts-checkout-box{

    position:relative;

    width:560px;

    max-width:95%;

    max-height:90vh;

    overflow-y:auto;

    background:#fff;

    border-radius:22px;

    padding:25px;

    z-index:2;

    box-shadow:0 25px 70px rgba(0,0,0,.18);

}

/*=========================================
HEADER
=========================================*/

.ts-checkout-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-direction:row-reverse;

    margin-bottom:25px;

}

.ts-checkout-user{

    display:flex;

    align-items:center;

    gap:12px;

}

.ts-user-avatar{

    width:54px;

    height:54px;

    border-radius:50%;

    object-fit:cover;

    background:#fff;

    border:2px solid #f3f3f3;

    flex-shrink:0;

}

.ts-checkout-user h4{

    margin:0;

    font-size:20px;

    font-weight:700;

    color:#222;

}

.ts-checkout-user span{

    display:block;

    margin-top:4px;

    color:#888;

    font-size:14px;

}

.ts-checkout-close{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:none;

    background:#f5f5f5;

    border-radius:50%;

    color:#ff3b30;

    font-size:24px;

    cursor:pointer;

    transition:.25s;

}

.ts-checkout-close:hover{

    background:#ffecec;

}

/*=========================================
TOTAL
=========================================*/

.ts-checkout-total{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.ts-checkout-total strong{

    display:block;

    font-size:20px;

    color:#222;

}

#tsCheckoutTotal{

    font-size:28px;

    font-weight:700;

    color:#111;

}

#tsCouponToggle{

    color:#ff4d4f;

    text-decoration:none;

    font-size:15px;

}

/*=========================================
CARD
=========================================*/

.ts-checkout-card{

    background:#fff;

    border:1px solid #ececec;

    border-radius:14px;

    padding:18px;

    margin-bottom:18px;

}

.ts-card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

.ts-card-header span{

    font-size:18px;

    font-weight:700;

}

.ts-card-header button{

    border:none;

    background:none;

    color:#0A5BFF;

    cursor:pointer;

    font-size:14px;

}

/*=========================================
ADDRESS
=========================================*/

.ts-checkout-address{

    background:#fafafa;

    border:1px solid #e8e8e8;

    border-radius:12px;

    padding:15px;

    cursor:pointer;

    transition:.25s;

}

.ts-checkout-address:hover{

    border-color:#0A5BFF;

}

/*=========================================
SELECT
=========================================*/

#tsCheckoutGateway{

    width:100%;

    height:48px;

    border-radius:12px;

    border:1px solid #ddd;

    padding:0 15px;

    font-size:15px;

    background:#fff;

}

/*=========================================
PRODUCT
=========================================*/

#tsCheckoutSummary{

    display:flex;

    align-items:center;

    gap:15px;

}

#tsCheckoutSummary img{

    width:70px;

    height:70px;

    border-radius:12px;

    object-fit:cover;

}

.ts-product-info{

    flex:1;

}

.ts-product-info h4{

    margin:0 0 8px;

    font-size:17px;

}

.ts-product-info span{

    display:block;

    color:#666;

    margin-bottom:5px;

}

.ts-product-price{

    font-size:20px;

    font-weight:700;

}

/*=========================================
DETAILS
=========================================*/

.ts-summary-toggle{

    width:100%;

    height:46px;

    border:none;

    background:#f8f8f8;

    border-radius:12px;

    cursor:pointer;

    font-size:15px;

    font-weight:700;

}

#tsCheckoutDetails{

    margin-top:15px;

}

/*=========================================
COUPON
=========================================*/

.ts-checkout-coupon{

    display:flex;

    gap:10px;

    margin-bottom:20px;

}

.ts-checkout-coupon input{

    flex:1;

    height:48px;

    border:1px solid #ddd;

    border-radius:12px;

    padding:0 15px;

}

.ts-checkout-coupon button{

    width:110px;

    border:none;

    border-radius:12px;

    background:#0A5BFF;

    color:#fff;

    cursor:pointer;

}

/*=========================================
BUTTON
=========================================*/

.ts-complete-btn{

    width:100%;

    height:56px;

    border:none;

    border-radius:14px;

    background:#0A5BFF;

    color:#fff;

    font-size:18px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.ts-complete-btn:disabled{

    background:#d6d6d6;

    cursor:not-allowed;

}

/*=========================================
SCROLL
=========================================*/

.ts-checkout-box::-webkit-scrollbar{

    width:7px;

}

.ts-checkout-box::-webkit-scrollbar-thumb{

    background:#d9d9d9;

    border-radius:20px;

}

/*=========================================
MOBILE
=========================================*/

@media(max-width:768px){

.ts-checkout-box{

    width:100%;

    max-width:100%;

    height:100%;

    max-height:100%;

    border-radius:20px 20px 0 0;

    margin-top:auto;

}

.ts-checkout-total{

    flex-direction:column;

    align-items:flex-start;

    gap:10px;

}

.ts-checkout-coupon{

    flex-direction:column;

}

.ts-checkout-coupon button{

    width:100%;

}

}

.ts-user-avatar{

    width:54px;

    height:54px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid #f2f2f2;

    background:#fff;

    flex-shrink:0;

}