#toast-container {
    position: fixed;
    z-index: 9999;
    top: 22px;
    right: 22px;
    display: flex;
    width: min(390px, calc(100% - 44px));
    flex-direction: column;
    gap: 12px;
}

.custom-toast {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: 16px;
    color: var(--text-primary);
    background: rgba(251, 245, 238, 0.98);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(110%);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    backdrop-filter: blur(12px);
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(97, 96, 61, 0.08);
    font-size: 1rem;
}

.custom-toast.success {
    border-left-color: var(--success);
}

.custom-toast.success .toast-icon {
    color: var(--success);
}

.custom-toast.error {
    border-left-color: var(--danger);
}

.custom-toast.error .toast-icon {
    color: var(--danger);
}

.custom-toast.warning {
    border-left-color: var(--secondary);
}

.custom-toast.warning .toast-icon {
    color: var(--secondary);
}

.custom-toast.info {
    border-left-color: var(--primary);
}

.custom-toast.info .toast-icon {
    color: var(--primary);
}

.toast-message {
    min-width: 0;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.55;
}

@media (max-width: 575px) {
    #toast-container {
        top: 14px;
        right: 14px;
        width: calc(100% - 28px);
    }
}
