/* =====================================================================
   Toast do E-Digital (feedback não bloqueante). JS: js/Shared/ToastEdigital.js
   Borda igual em todos os lados; o tipo aparece só no ícone.
   ===================================================================== */
.ed-toasts {
    --ed-toast-rodape: 0px;
    position: fixed;
    right: 24px;
    bottom: calc(24px + var(--ed-toast-rodape));
    z-index: 1090;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 380px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

.ed-toasts:empty {
    display: none;
}

.ed-toast {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f2;
    border-radius: 12px;
    box-shadow: 0 12px 32px -12px rgba(15, 36, 71, .35);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.ed-toast.is-in {
    opacity: 1;
    transform: translateY(0);
}

.ed-toast.is-out {
    opacity: 0;
    transform: translateY(8px);
}

.ed-toast *,
.ed-toast *::before,
.ed-toast *::after {
    box-sizing: border-box;
}

.ed-toast__ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.ed-toast__ic svg {
    width: 16px;
    height: 16px;
}

.ed-toast--sucesso .ed-toast__ic {
    background: #ecfdf3;
    color: #15803d;
}

.ed-toast--erro .ed-toast__ic {
    background: #fdecec;
    color: #c62828;
}

.ed-toast--info .ed-toast__ic {
    background: #eef3ff;
    color: #1d4ed8;
}

.ed-toast__txt {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 4px;
}

.ed-toast__titulo {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #0f2447;
}

.ed-toast__detalhe {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #5b6b85;
    overflow-wrap: anywhere;
}

.ed-toast__x {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin: 1px -2px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #5b6b85;
    cursor: pointer;
}

.ed-toast__x:hover {
    background: #f5f8fc;
    color: #0f2447;
}

.ed-toast__x:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 1px;
}

.ed-toast__x svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 640px) {
    .ed-toasts {
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--ed-toast-rodape));
        width: auto;
        max-width: 380px;
        align-items: stretch;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ed-toast,
    .ed-toast.is-in,
    .ed-toast.is-out {
        transition: none;
        transform: none;
    }
}
