/* lxToast — notificaciones site-wide */

#lx-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 40px));
}

.lx-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow:
        0 1px 1px rgba(17, 24, 39, 0.04),
        0 4px 10px rgba(17, 24, 39, 0.08),
        0 16px 32px rgba(17, 24, 39, 0.1);
    font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f232a;
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    border-left: 3px solid #97a0ae;
    min-width: 280px;
}

.lx-toast--in {
    transform: translateX(0);
    opacity: 1;
}

.lx-toast__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #97a0ae;
    margin-top: 1px;
}

.lx-toast__icon svg {
    width: 20px;
    height: 20px;
}

.lx-toast__body {
    flex: 1;
    min-width: 0;
}

.lx-toast__title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.lx-toast__message {
    font-size: 13px;
    line-height: 1.45;
    color: #5b6472;
    word-break: break-word;
}

.lx-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #97a0ae;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s;
}

.lx-toast__close:hover {
    background: #f3f4f7;
    color: #1f232a;
}

.lx-toast__close svg {
    width: 14px;
    height: 14px;
}

/* Levels */
.lx-toast--error {
    border-left-color: #dc2626;
}

.lx-toast--error .lx-toast__icon {
    color: #dc2626;
}

.lx-toast--warning {
    border-left-color: #d97706;
}

.lx-toast--warning .lx-toast__icon {
    color: #d97706;
}

.lx-toast--success {
    border-left-color: #16a34a;
}

.lx-toast--success .lx-toast__icon {
    color: #16a34a;
}

.lx-toast--info {
    border-left-color: #5e64ff;
}

.lx-toast--info .lx-toast__icon {
    color: #5e64ff;
}

@media (max-width: 520px) {
    #lx-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .lx-toast {
        min-width: 0;
    }
}
