/**
 * WCCG Toast Notification System Styles
 * Modern, glassmorphism-inspired notifications.
 */

.wccg-toast-container {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 100020;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.wccg-toast {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1f1f1f;
    padding: 13px 18px;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.11);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    min-width: 260px;
    transform: translateX(-18px);
    opacity: 0;
    transition: opacity 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wccg-toast.active {
    transform: translateX(0);
    opacity: 1;
}

.wccg-toast-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wccg-primary-color);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.wccg-toast-icon svg {
    width: 14px;
    height: 14px;
}

.wccg-toast.toast-remove .wccg-toast-icon {
    background: #ff4d4d;
}

/* RTL Support */
[dir="rtl"] .wccg-toast-container {
    left: auto;
    right: 28px;
}

[dir="rtl"] .wccg-toast {
    transform: translateX(18px);
}

[dir="rtl"] .wccg-toast.active {
    transform: translateX(0);
}

@media (min-width: 1025px) {
    body.wccg-mega-drawer-present .wccg-toast-container {
        left: 100px;
    }

    body.wccg-mega-drawer-present.wccg-mega-drawer-rtl .wccg-toast-container,
    [dir="rtl"] body.wccg-mega-drawer-present .wccg-toast-container {
        left: auto;
        right: 100px;
    }
}

@media (max-width: 480px) {
    .wccg-toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    [dir="rtl"] .wccg-toast-container {
        left: 16px;
        right: 16px;
    }

    .wccg-toast {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}
