﻿/* =========================
   PREMIUM CART TOAST
========================= */

.cart-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 360px;
    background: #ffffff;
    border-radius: 22px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 20px 45px rgba(2, 0, 57, 0.12);
    border: 1px solid rgba(2, 0, 57, 0.06);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

    /* SHOW */

    .cart-toast.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    /* SUCCESS */

    .cart-toast.success {
        border-left: 5px solid #00b67a;
    }

    /* ERROR */

    .cart-toast.error {
        border-left: 5px solid #ff4d4f;
    }

/* ICON */

.toast-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SUCCESS ICON */

.cart-toast.success .toast-icon {
    background: linear-gradient( 135deg, #e8fff4, #d9fff0);
}

    .cart-toast.success .toast-icon i {
        color: #00b67a;
    }

/* ERROR ICON */

.cart-toast.error .toast-icon {
    background: linear-gradient( 135deg, #fff1f0, #ffe2e0);
}

    .cart-toast.error .toast-icon i {
        color: #ff4d4f;
    }

.toast-icon i {
    font-size: 24px;
}

/* CONTENT */

.toast-content {
    flex: 1;
}

    .toast-content h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #020039;
        letter-spacing: -0.2px;
    }

    .toast-content p {
        margin: 6px 0 0;
        font-size: 14px;
        line-height: 1.5;
        color: #5f6470;
    }

/* MOBILE */

@media(max-width: 576px) {
    .cart-toast {
        width: calc(100% - 32px);
        right: 16px;
        left: 16px;
        top: 16px;
    }
}
.cart-btn {
    position: relative;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .btn-loader span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        animation: dotBounce 1.4s infinite ease-in-out both;
    }

        .btn-loader span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .btn-loader span:nth-child(2) {
            animation-delay: -0.16s;
        }

        .btn-loader span:nth-child(3) {
            animation-delay: 0s;
        }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: .4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .btn-loader span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: white;
        display: block;
    }

        .btn-loader span:nth-child(1) {
            animation: dotLoader 1.4s infinite;
        }

        .btn-loader span:nth-child(2) {
            animation: dotLoader 1.4s .2s infinite;
        }

        .btn-loader span:nth-child(3) {
            animation: dotLoader 1.4s .4s infinite;
        }

@keyframes dotLoader {

    0%,100% {
        opacity: .3;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}