/* OVERLAY */
.cart-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:1999;
}
.cart-overlay.active{

    opacity:1;

    visibility:visible;
}
/* SIDEBAR */

.cart-sidebar{

    position:fixed;

    top:0;
    right:-450px;

    width:420px;
    height:100vh;

    background:white;

    z-index:2000;

    transition:.4s;

    display:flex;
    flex-direction:column;
}
.cart-sidebar.active{
    right:0;
}
/* HEADER */
.cart-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px;

    border-bottom:1px solid #eee;
}

.cart-header button{

    border:none;
    background:none;

    font-size:22px;

    cursor:pointer;
}
/* ITEMS */
.cart-items{

    flex:1;

    overflow:auto;

    padding:60px 20px 20px;
}

.cart-item{

    display:flex;

    gap:15px;

    margin-bottom:20px;
}

.cart-item-image{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:12px;
}

.cart-empty-state{
    margin:20px 0;
    color:#7a706e;
    text-align:center;
}

.site-status{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:2600;
    max-width:min(380px, calc(100vw - 48px));
    padding:14px 18px;
    border-radius:12px;
    background:#3e3131;
    color:#fff;
    box-shadow:0 12px 35px rgba(0,0,0,.2);
}

.site-status[data-tone="success"]{
    background:#357651;
}

.site-status[data-tone="error"]{
    background:#9d3342;
}

.cart-image{

    width:90px;
    height:90px;

    background:#ddd;

    border-radius:12px;
}


.cart-price{
    margin-top:10px;
    font-weight:700;
}
/* FOOTER */
.cart-footer{

    padding:25px;

    border-top:1px solid #eee;
}

.cart-total{

    font-size:22px;

    font-weight:700;

    margin-bottom:20px;
}

.checkout-btn{

    width:100%;

    padding:16px;

    border:none;

    background:#D9B4B4;

    color:white;

    cursor:pointer;

    border-radius:10px;

    font:inherit;

    font-weight:700;
}

.cart-application-note{
    margin:-8px 0 18px;
    color:#6f6767;
    font-size:13px;
    line-height:1.45;
}

.cart-icon{

    display:flex;

    align-items:center;

    justify-content:center;

    position:relative;

    height:80px;

    cursor:pointer;

}

#cartCount{

    position:absolute;

    top:16px;

    right:-8px;

    width:20px;
    height:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#d9b2b2;

    color:#fff;

    font-size:11px;

    font-weight:600;

}


.cart-item{

    position:relative;

    display:flex;

    align-items:center;

    gap:15px;
}

.cart-info{

    flex:1;
}

.remove-cart-item{

    width:32px;
    height:32px;

    border:none;

    border-radius:50%;

    background:#f2f2f2;

    cursor:pointer;

    transition:.3s;
}

.remove-cart-item:hover{

    background:#e0e0e0;
}

.removeCartItem{

    width:32px;
    height:32px;

    border:none;

    border-radius:50%;

    background:#f1f1f1;

    cursor:pointer;

    margin-left:auto;

    transition:.3s;
}

.removeCartItem:hover{

    background:#e2e2e2;
}

.cart-checkout-contact{
    margin:16px 0;
}

.cart-checkout-contact label{
    display:block;
    margin-bottom:7px;
    font-size:13px;
    font-weight:600;
}

.cart-checkout-contact input{
    width:100%;
    min-height:46px;
    padding:0 14px;
    border:1px solid #e5dedd;
    border-radius:12px;
    outline:none;
}

.cart-checkout-contact input:focus{
    border-color:#c9949c;
    box-shadow:0 0 0 4px rgba(201,148,156,.13);
}

.checkout-phone-status{
    min-height:18px;
    margin:6px 0 0;
    color:#b43f4c;
    font-size:12px;
}

.checkout-phone-status.error{
    color:#b43f4c;
}

.checkout-phone-status.success{
    color:#357651;
}

.checkout-btn:disabled{
    opacity:.62;
    cursor:not-allowed;
}
.cart-item-image{
    width:100%;
    height:100%;
    object-fit:contain;
}
