#toast_type {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

.bfx-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm, 9px);
    box-shadow: var(--shadow, 0 8px 24px rgba(16,24,52,0.16));
    color: #fff;
    background: var(--muted, #7A8399);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity .25s ease, transform .25s ease;
}

    .bfx-toast.bfx-toast--show {
        opacity: 1;
        transform: translateY(0);
    }

    .bfx-toast.bfx-toast--hide {
        opacity: 0;
        transform: translateY(-16px);
    }

.bfx-toast--success {
    background: #1F8A57;
}

.bfx-toast--info {
    background: var(--blue, #2F6FED);
}

.bfx-toast--warning {
    background: var(--orange, #F59E42);
}

.bfx-toast--error {
    background: var(--red, #E5484D);
}

.bfx-toast__icon {
    flex-shrink: 0;
    font-size: 17px;
    line-height: 1;
}

.bfx-toast__body {
    flex: 1;
    min-width: 0;
}

.bfx-toast__title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.bfx-toast__message {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.95;
    word-break: break-word;
}

.bfx-toast__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #fff;
    opacity: 0.85;
    cursor: pointer;
    padding: 2px;
    margin: -2px -4px -2px 0;
}

    .bfx-toast__close:hover,
    .bfx-toast__close:focus-visible {
        opacity: 1;
        background: rgba(255,255,255,0.18);
        outline: none;
    }

    .bfx-toast__close .material-icons {
        font-size: 18px;
    }

.bfx-toast__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(255,255,255,0.35);
    transform-origin: left;
    animation-name: bfx-toast-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes bfx-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.bfx-toast__buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.bfx-toast__btn {
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

    .bfx-toast__btn:hover,
    .bfx-toast__btn:focus-visible {
        background: rgba(255,255,255,0.24);
        outline: none;
    }

@media (max-width: 480px) {
    #toast_type {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bfx-toast {
        transition: opacity .01ms linear;
        transform: none !important;
    }

    .bfx-toast__progress {
        animation: none;
    }
}
