/* Toasts globais — acima da barra admin e modais comuns */
.ddt-toast-root {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    max-width: min(440px, calc(100vw - 24px));
    pointer-events: none;
}

.ddt-toast-root .ddt-toast {
    pointer-events: auto;
}

.ddt-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #f5f0ea;
    background: #2d2b33;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid #f28a1a;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.ddt-toast--out {
    opacity: 0;
    transform: translateX(18px);
}

.ddt-toast--success {
    border-left-color: #349517;
}

.ddt-toast--error {
    border-left-color: #c9302c;
}

.ddt-toast--info {
    border-left-color: #5b9bd5;
}

.ddt-toast--warning {
    border-left-color: #f28a1a;
}

.ddt-toast__text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.ddt-toast__close {
    flex-shrink: 0;
    margin: -4px -6px -4px 0;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.ddt-toast__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

body.has-ddt-admin-bar .ddt-toast-root {
    top: 56px;
}

@media (max-width: 520px) {
    .ddt-toast-root {
        left: 12px;
        right: 12px;
        align-items: stretch;
    }

    .ddt-toast {
        width: 100%;
    }
}
