
/*
 * Shop archive Add-to-Cart popup.
 * Intentionally mirrors the Featured Products popup visual language.
 * Scoped with .tpe-shop-cart-popup so Featured Products keeps its own instance/settings.
 */
.tpe-shop-cart-popup{
    position:fixed;
    z-index:999999;
    display:none;
    box-sizing:border-box;
    max-width:calc(100vw - 24px);
    border:1px solid #e3e8ee;
    background:var(--tpe-shop-popup-bg,#fff);
    width:min(var(--tpe-shop-popup-width,460px),calc(100vw - 24px));
    padding:24px;
    border-radius:var(--tpe-shop-popup-radius,8px);
    box-shadow:0 12px 35px rgba(0,0,0,.16);
}
.tpe-shop-cart-popup.is-open{display:block}
.tpe-shop-cart-popup[data-position="top-right"]{top:20px;right:20px}
.tpe-shop-cart-popup[data-position="top-center"]{top:20px;left:50%;transform:translateX(-50%)}
.tpe-shop-cart-popup[data-position="bottom-right"]{bottom:20px;right:20px}
.tpe-shop-cart-popup[data-position="bottom-center"]{bottom:20px;left:50%;transform:translateX(-50%)}

.tpe-shop-cart-popup .tpe-cart-popup__close{
    position:absolute;
    right:12px;
    top:9px;
    border:0;
    background:transparent;
    color:var(--tpe-shop-popup-close,#68717c);
    font-size:27px;
    line-height:1;
    cursor:pointer;
    padding:4px;
    box-shadow:none;
}
.tpe-shop-cart-popup .tpe-cart-popup__close:hover{color:#E31E2D}

.tpe-shop-cart-popup .tpe-cart-popup__message{
    padding-right:32px;
    font-size:15px;
    line-height:1.6;
    margin-bottom:18px;
    color:var(--tpe-shop-popup-message,#1D344A);
}
.tpe-shop-cart-popup .tpe-cart-popup__message strong{
    color:var(--tpe-shop-popup-product,#0878BE);
    font-weight:600;
}
.tpe-shop-cart-popup .tpe-cart-popup__actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.tpe-shop-cart-popup .tpe-cart-popup__actions a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    border-radius:9px;
    text-decoration:none!important;
    text-transform:uppercase;
    font-weight:600;
    border:1px solid transparent;
    transition:all .2s ease;
}
.tpe-shop-cart-popup .tpe-cart-popup__view{
    background:var(--tpe-shop-popup-view-bg,#01182A);
    color:var(--tpe-shop-popup-view-color,#fff);
    border-color:var(--tpe-shop-popup-view-bg,#01182A);
}
.tpe-shop-cart-popup .tpe-cart-popup__view:hover{
    background:#0878BE;
    color:#fff;
    border-color:#0878BE;
}
.tpe-shop-cart-popup .tpe-cart-popup__checkout{
    background:#fff;
    color:var(--tpe-shop-popup-checkout,#0878BE);
    border-color:var(--tpe-shop-popup-checkout,#0878BE);
}
.tpe-shop-cart-popup .tpe-cart-popup__checkout:hover{
    background:var(--tpe-shop-popup-checkout,#0878BE);
    color:#fff;
    border-color:var(--tpe-shop-popup-checkout,#0878BE);
}

@media(max-width:767px){
    .tpe-shop-cart-popup{
        left:12px!important;
        right:12px!important;
        top:auto!important;
        bottom:calc(12px + env(safe-area-inset-bottom))!important;
        transform:none!important;
        width:auto!important;
    }
    .tpe-shop-cart-popup .tpe-cart-popup__actions{grid-template-columns:1fr}
}
