/* =========================================================
   토스트
========================================================= */

.toastStack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;

    display: grid;
    gap: 10px;

    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;

    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;

    background: rgba(255,255,255,0.97);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.14);
    backdrop-filter: blur(8px);

    color: var(--txt);
    font-size: var(--fs-13);
    line-height: 1.5;

    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition:
        opacity 0.22s ease,
        transform 0.22s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: toastPop 0.24s cubic-bezier(.2, .8, .2, 1);
}

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

@keyframes toastPop {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }

    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toastIcon {
    width: 22px;
    height: 22px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #f2f4f7;
    color: var(--txt);
    font-size: 12px;
    font-weight: 800;
}

.toast.ok {
    border-color: rgba(253, 204, 99, 0.62);
    background: rgba(255, 250, 235, 0.98);
}

.toast.ok .toastIcon {
    background: rgba(253, 204, 99, 0.28);
    color: #8a5a00;
}

.toast.warn {
    border-color: rgba(245, 124, 0, 0.3);
    background: rgba(255, 244, 229, 0.98);
}

.toast.warn .toastIcon {
    background: rgba(245, 124, 0, 0.15);
    color: #c25a00;
}

.toast.error {
    border-color: rgba(217, 45, 32, 0.24);
    background: rgba(254, 243, 242, 0.98);
}

.toast.error .toastIcon {
    background: rgba(217, 45, 32, 0.12);
    color: var(--bad);
}

.toast.info {
    border-color: rgba(43, 108, 255, 0.18);
    background: rgba(245, 248, 255, 0.98);
}

.toast.info .toastIcon {
    background: rgba(43, 108, 255, 0.12);
    color: #2b6cff;
}

.toastText {
    min-width: 0;
    word-break: keep-all;
}
