/* ============================================================
   ATLANTICA PUBLIC — PANIER AJAX
   ============================================================ */

.atl-cart-ajax-toast-container {
    position: fixed;
    top: 112px;
    right: 24px;
    z-index: 100002;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
}

.atl-cart-ajax-toast {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 13px;
    padding: 14px 14px 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 20px 55px rgba(17, 17, 17, 0.13),
        0 5px 16px rgba(17, 17, 17, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    pointer-events: auto;
}

.atl-cart-ajax-toast + .atl-cart-ajax-toast {
    margin-top: 10px;
}

.atl-cart-ajax-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.atl-cart-ajax-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 17px;
}

.atl-cart-ajax-toast-success .atl-cart-ajax-toast-icon {
    background: #eff9e9;
    color: #5ea83a;
}

.atl-cart-ajax-toast-error .atl-cart-ajax-toast-icon {
    background: #fef1f2;
    color: #c2414d;
}

.atl-cart-ajax-toast-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.atl-cart-ajax-toast-content strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111111;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.atl-cart-ajax-toast-content span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #66737d;
    font-size: 11px;
    line-height: 1.5;
}

.atl-cart-ajax-toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #f5f8fa;
    color: #8a97a1;
    font-size: 11px;
    cursor: pointer;
    transition:
        background 180ms ease,
        color 180ms ease;
}

.atl-cart-ajax-toast-close:hover {
    background: #eaf7fd;
    color: #1c96d9;
}

.atl-cart-ajax-spin {
    display: inline-block;
    animation: atlCartAjaxSpin 800ms linear infinite;
}

.atl-cart-count.is-updated {
    animation: atlCartBadgePop 420ms ease;
}

.atl-product-add-btn.is-success,
.atl-product-card-action.is-success {
    opacity: 0.94;
}

@keyframes atlCartAjaxSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes atlCartBadgePop {
    0% {
        transform: scale(0.75);
    }

    55% {
        transform: scale(1.16);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 767.98px) {
    .atl-cart-ajax-toast-container {
        top: 78px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .atl-cart-ajax-toast {
        grid-template-columns: 38px minmax(0, 1fr) 28px;
        gap: 11px;
        padding: 12px;
        border-radius: 14px;
    }

    .atl-cart-ajax-toast-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
}
