/* Модалка корзины (Fancybox #data) — стиль draxter */
.service_modal:has(#data.cart-popup){
    --fancybox-bg:rgba(20,21,26,.48);
}
.service_modal:has(#data.cart-popup) .fancybox__content{
    padding:0;
    border-radius:24px;
    box-shadow:0 24px 60px rgba(20,22,40,.22);
    background:#fff;
    color:#14151A;
    overflow:hidden;
    max-width:min(720px, calc(100vw - 32px));
}
.service_modal:has(#data.cart-popup) .carousel__button.is-close{
    top:16px;
    right:16px;
    width:40px;
    height:40px;
    border-radius:12px;
    background:#f5f5f7;
    color:#7A7E8C;
    box-shadow:none;
    opacity:1;
    transition:background .15s ease, color .15s ease;
}
.service_modal:has(#data.cart-popup) .carousel__button.is-close:hover{
    background:#ececff;
    color:#3D3DFF;
}

#data.cart-popup{
    min-width:0;
    max-width:none;
    width:100%;
    text-align:left;
    font-family:'Onest', Arial, sans-serif;
    color:#14151A;
    box-sizing:border-box;
}
#data.cart-popup *{ box-sizing:border-box; }

.cart-popup__header{
    padding:28px 56px 20px 28px;
    border-bottom:1px solid #E8E8EE;
}
.cart-popup__title{
    margin:0;
    font-family:'SONGER SemiExpanded','Onest',sans-serif;
    font-size:24px;
    font-weight:800;
    line-height:1.2;
    text-transform:uppercase;
    letter-spacing:.01em;
    color:#14151A;
    text-align:center;
}
.cart-popup__body{
    padding:0 28px 28px;
}
.cart-popup__list{
    max-height:min(52vh, 420px);
    overflow-y:auto;
    margin:0 -8px;
    padding:0 8px;
}
.cart-popup__table,
.cart-popup__table tbody,
.cart-popup__table tr,
.cart-popup__table td{
    display:block;
    width:100%;
}
.cart-popup__row{
    display:grid !important;
    grid-template-columns:72px minmax(0, 1fr) 44px;
    gap:12px 16px;
    align-items:start;
    padding:18px 0;
    border-top:1px solid #E8E8EE;
    height:auto !important;
}
.cart-popup__row:first-child{ border-top:0; }
.cart-popup__image{
    width:72px;
    max-width:72px;
    padding:0;
}
.cart-popup__image a{
    display:block;
    width:72px;
    height:72px;
    border-radius:12px;
    overflow:hidden;
    background:#F5F5F7;
    border:1px solid #E8E8EE;
}
.cart-popup__image img{
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:cover;
    border-radius:0;
    vertical-align:top;
}
.cart-popup__image .nophoto{
    width:36px;
    height:36px;
    margin:18px;
}
.cart-popup__info{
    min-width:0;
    padding:0;
}
.cart-popup__name{
    display:inline;
    font-size:16px;
    font-weight:600;
    line-height:1.35;
    color:#3D3DFF;
    text-decoration:none;
}
.cart-popup__name:hover{ color:#2A29E0; }
.cart-popup__preorder{
    font-size:13px;
    font-weight:500;
    color:#7A7E8C;
}
.cart-popup__variant{
    margin-top:4px;
    font-size:14px;
    line-height:1.4;
    color:#7A7E8C;
}
.cart-popup__sumline{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:4px;
    margin-top:8px;
    font-size:15px;
    line-height:1.4;
    color:#14151A;
}
.cart-popup__times,
.cart-popup__equals{
    color:#7A7E8C;
}
.cart-popup__line-total,
.cart-popup__sumline .totalb{
    font-weight:700;
    color:#14151A;
}
.cart-popup__remove-cell{
    padding:0;
    text-align:right;
}
.cart-popup__remove{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    border-radius:50%;
    background:#FFF0EE;
    color:#FF3B30;
    cursor:pointer;
    transition:background-color .15s ease, transform .15s ease;
}
.cart-popup__remove input.remove_cart{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    opacity:0;
    cursor:pointer;
}
.cart-popup__remove-icon{
    display:block;
    width:18px;
    height:18px;
    pointer-events:none;
}
.cart-popup__remove:hover{
    background-color:#FFE4E1;
    transform:scale(1.04);
}
.cart-popup__total{
    margin-top:8px;
    padding:20px 0 0;
    border-top:1px solid #E8E8EE;
    font-size:18px;
    line-height:1.45;
    text-align:center;
    font-weight:600;
}
.cart-popup__total strong{
    font-weight:700;
}
.cart-popup__discount{
    display:block;
    margin-top:4px;
    font-size:14px;
    font-weight:500;
    color:#7A7E8C;
}
.cart-popup__minorder{
    margin-top:10px;
    font-size:14px;
    font-weight:500;
    line-height:1.45;
    color:#FF3B30;
}
.cart-popup__empty{
    margin:24px 0 0;
    text-align:center;
    font-size:16px;
    color:#7A7E8C;
}
.cart-popup__actions{
    display:flex;
    gap:12px;
    margin-top:24px;
}
.cart-popup__btn{
    flex:1 1 0;
    min-width:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:56px;
    padding:12px 20px;
    border:0;
    border-radius:14px;
    font-family:'Onest', Arial, sans-serif;
    font-size:15px;
    font-weight:600;
    line-height:1.25;
    text-align:center;
    cursor:pointer;
    transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.cart-popup__btn--ghost{
    background:#F5F5F7;
    color:#14151A;
}
.cart-popup__btn--ghost:hover{
    background:#ECECFF;
    color:#3D3DFF;
}
.cart-popup__btn--primary{
    background:#3D3DFF;
    color:#fff;
}
.cart-popup__btn--primary:hover{
    background:#2A29E0;
}
.cart-popup__slash{
    color:rgba(255,255,255,.75);
    font-weight:500;
}
.cart-popup__checkout,
.cart-popup .cartt_chekout{
    color:#fff;
    font-weight:700;
}

@media (max-width:640px){
    .cart-popup__header{
        padding:24px 48px 16px 20px;
    }
    .cart-popup__body{
        padding:0 20px 20px;
    }
    .cart-popup__title{
        font-size:20px;
    }
    .cart-popup__actions{
        flex-direction:column;
    }
    .cart-popup__row{
        grid-template-columns:64px minmax(0, 1fr) 40px;
        gap:10px 12px;
    }
    .cart-popup__image,
    .cart-popup__image a{
        width:64px;
        height:64px;
    }
}
