.toast-area {
    display: grid;
    gap: 10px;
    pointer-events: none;
    position: fixed;
    right: 22px;
    top: 22px;
    width: min(420px, calc(100vw - 32px));
    z-index: 1000;
}

.toast {
    align-items: center;
    animation: toast-in 0.18s ease-out;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
    display: grid;
    gap: 10px;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    min-height: 48px;
    padding: 10px 12px;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.toast-danger,
.toast-negative {
    background: #fff1f3;
    border-color: #fecdd6;
    color: #be123c;
}

.toast-error,
.toast-warning {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

.toast-info {
    background: #eff8ff;
    border-color: #b2ddff;
    color: #175cd3;
}

.toast-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    display: inline-flex;
    font-size: 16px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.toast-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    min-width: 0;
}

.toast-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.54);
    border: 0;
    border-radius: 999px;
    color: currentColor;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 28px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.86);
}

.toast-hide {
    opacity: 0;
    transform: translateY(-8px);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

@media (max-width: 720px) {
    .toast-area {
        left: 16px;
        right: 16px;
        top: 16px;
        width: auto;
    }
}
