.aous_toast_container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aous_toast_container.left {
    left: 20px;
    right: unset;
}

.aous_toast {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 12px 1rem;
    margin-bottom: 4px;
    width: 400px;
    max-width: 90vw;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transform: translateY(-40px) scale(0.95);
    opacity: 0;
    transition:
        transform 0.35s cubic-bezier(.16, 1, .3, 1),
        opacity 0.25s ease;
}

html[dir="rtl"] .aous_toast {
    direction: rtl;
}

.aous_toast.aous_toast_show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.aous_toast.aous_toast_hide {
    transform: translateY(-40px) scale(0.96);
    opacity: 0;
}

@keyframes aous_stack {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.aous_toast.show-progress::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    width: 100%;
    transform-origin: left;
    animation: aous_toast_progress var(--aous-duration) linear forwards;
}

@keyframes aous_toast_progress {
    to {
        transform: scaleX(0);
    }
}

.aous_toast.show-progress:hover::before {
    animation-play-state: paused;
}

.aous_toast_icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
}

.aous_toast_icon svg {
    --aous-aw-icon-size: 1.4rem;
    stroke-width: 2;
}

.aous_toast_icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, currentColor, transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.aous_toast_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aous_toast_title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3a3a3a;
    line-height: 1.3;
}

.aous_toast_message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.aous_toast_close {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    color: #666;
    font-size: 18px;
}

.aous_toast_close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.aous_toast.aous_toast_success {
    color: #10b981;
}

.aous_toast.aous_toast_success .aous_toast_icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.aous_toast.aous_toast_error {
    color: #ef4444;
}

.aous_toast.aous_toast_error .aous_toast_icon {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.aous_toast.aous_toast_warning {
    color: #f59f00;
}

.aous_toast.aous_toast_warning .aous_toast_icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    background: linear-gradient(135deg, #fef3c7, #f59f00);
    color: #a56923;
}

.aous_toast.aous_toast_info {
    color: #3b82f6;
}

.aous_toast.aous_toast_info .aous_toast_icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.aous_toast.aous_toast_alert .aous_toast_icon {
    background: linear-gradient(135deg, #ffc1c1, #f76707);
    color: #ffffff;
}

.aous_toast.aous_toast_alert {
    color: #f76707;
}

@media (max-width: 768px) {
    .aous_toast_container {
        left: 0;
        right: 0;
        transform: unset;
    }

    .aous_toast_icon {
        width: 34px;
        height: 34px;
    }

    .aous_toast_icon svg {
        --aous-aw-icon-size: 1.25rem;
    }

    .aous_toast_title {
        font-size: 14px;
    }

    .aous_toast {
        width: min(400px, 95vw);
    }
}
