.custom-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-alert--visible {
    opacity: 1;
    transform: translateX(0);
}

.custom-alert--hiding {
    opacity: 0;
    transform: translateX(40px);
}

.custom-alert--error {
    background: #e74c3c;
}

.custom-alert--success {
    background: #27ae60;
}

.custom-alert--warning {
    background: #f39c12;
    color: #333;
}

.custom-alert--info {
    background: #3498db;
}

.custom-alert__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.custom-alert__message {
    flex: 1;
    word-break: break-word;
}

.custom-alert__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 0 0 0 8px;
    transition: opacity 0.2s;
}

.custom-alert__close:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .custom-alert-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .custom-alert {
        min-width: auto;
        max-width: none;
    }
}
