
#alert-container {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    width: min(420px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

#alert-container .alert-toast {
    --alert-accent: #1890ff;
    --alert-bg: #f2f8ff;
    --alert-border: #bae0ff;
    --alert-icon: "\f129";
    --alert-glow: rgba(24, 144, 255, 0.22);
    position: relative;
    margin: 0;
    padding: 14px 44px 14px 56px;
    border: 1px solid var(--alert-border) !important;
    border-left: 4px solid var(--alert-accent) !important;
    border-radius: 10px;
    background-color: var(--alert-bg) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--alert-bg) 100%) !important;
    box-shadow: 0 10px 28px rgba(30, 128, 185, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
    color: #334155 !important;
    font-family: var(--merchant-font-family, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 13px;
    line-height: 1.6;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    animation: alertSlideDown 0.28s ease-out;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

#alert-container .alert-toast,
#alert-container .alert-toast span,
#alert-container .alert-toast div,
#alert-container .alert-toast p {
    color: inherit !important;
}

#alert-container .alert-toast::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--alert-accent);
    box-shadow: 0 6px 14px var(--alert-glow);
    transform: translateY(-50%);
}

#alert-container .alert-toast::after {
    content: var(--alert-icon);
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: "FontAwesome";
    font-size: 12px;
    font-weight: 700;
}

#alert-container .alert-toast.alert-success {
    --alert-accent: #52c41a;
    --alert-bg: #f6ffed;
    --alert-border: #b7eb8f;
    --alert-icon: "\f00c";
    --alert-glow: rgba(82, 196, 26, 0.22);
}

#alert-container .alert-toast.alert-danger {
    --alert-accent: #ff4d4f;
    --alert-bg: #fff2f0;
    --alert-border: #ffccc7;
    --alert-icon: "\f00d";
    --alert-glow: rgba(255, 77, 79, 0.22);
}

#alert-container .alert-toast.alert-warning {
    --alert-accent: #faad14;
    --alert-bg: #fffbe6;
    --alert-border: #ffe58f;
    --alert-icon: "\f071";
    --alert-glow: rgba(250, 173, 20, 0.22);
}

#alert-container .alert-toast.alert-info {
    --alert-accent: #1890ff;
    --alert-bg: #f2f8ff;
    --alert-border: #91d5ff;
    --alert-icon: "\f129";
    --alert-glow: rgba(24, 144, 255, 0.22);
}

#alert-container .alert-toast.fade:not(.show) {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    filter: blur(2px);
}

#alert-container .alert-toast .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    background-size: 10px;
    opacity: 0.45;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

#alert-container .alert-toast .btn-close:hover {
    background-color: rgba(15, 23, 42, 0.06);
    opacity: 0.8;
    transform: rotate(90deg);
}

#alert-container .alert-toast .btn-close:focus {
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.14);
    opacity: 0.8;
}

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    #alert-container {
        top: 62px;
        width: calc(100vw - 24px);
    }

    #alert-container .alert-toast {
        padding: 13px 40px 13px 52px;
        border-radius: 9px;
    }
}
