/* ── Toast notifications ── */
.wti-toast-stack {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(400px, calc(100vw - 2rem));
    pointer-events: none;
}

.wti-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.wti-toast--show {
    transform: translateX(0);
    opacity: 1;
}

.wti-toast--hide {
    transform: translateX(110%);
    opacity: 0;
}

.wti-toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.wti-toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #1f2937;
    font-weight: 500;
}

.wti-toast-close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.wti-toast-close:hover {
    color: #374151;
}

.wti-toast--success {
    border-left: 4px solid #16a34a;
}

.wti-toast--success .wti-toast-icon {
    color: #16a34a;
}

.wti-toast--error {
    border-left: 4px solid #dc2626;
}

.wti-toast--error .wti-toast-icon {
    color: #dc2626;
}

.wti-toast--info {
    border-left: 4px solid #2563eb;
}

.wti-toast--info .wti-toast-icon {
    color: #2563eb;
}

@media (max-width: 575.98px) {
    .wti-toast-stack {
        top: auto;
        bottom: 5.5rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .wti-toast {
        transform: translateY(110%);
    }

    .wti-toast--show {
        transform: translateY(0);
    }

    .wti-toast--hide {
        transform: translateY(110%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wti-toast {
        transition: none;
    }
}
