/*
 * Toasts (Toastify, montados pelo showMessage do base.js), no padrão das
 * telas novas: cartão branco, cantos de 16px, texto em Inter nas cores da
 * marca e o tipo só na bolinha do ícone. Nada de degradê nem borda lateral.
 *
 * Cores dos tipos, as mesmas das telas: sucesso verde, erro vermelho,
 * atenção laranja e aviso no roxo da marca.
 */

.toastify {
    --toast-cor: #4131DD;
    --toast-fundo-icone: #EEEDFD;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 380px;
    max-width: calc(100vw - 32px);
    padding: 14px 12px 14px 14px;
    border-radius: 16px;
    background: #fff;
    color: #1F2437;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    box-shadow: 0 12px 32px rgba(20, 24, 60, .16), 0 1px 3px rgba(20, 24, 60, .08);
    z-index: 99999 !important; /* Acima dos modais do Bootstrap (1050-1060) */
}

.toastify-right {
    right: 20px;
}

.toastify-top {
    top: 20px;
}

.toastify.toast-success {
    --toast-cor: #15803D;
    --toast-fundo-icone: #E3F4E8;
}

.toastify.toast-error {
    --toast-cor: #C62828;
    --toast-fundo-icone: #FDECEC;
}

.toastify.toast-warning {
    --toast-cor: #B45309;
    --toast-fundo-icone: #FDF1DC;
}

.toastify.toast-info {
    --toast-cor: #4131DD;
    --toast-fundo-icone: #EEEDFD;
}

.toast-icon {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: var(--toast-fundo-icone);
    color: var(--toast-cor);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.toast-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 5px;
}

.toast-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1F2437;
}

.toast-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #3A4154;
    overflow-wrap: anywhere;
}

/* Sem título, a mensagem é o texto principal */
.toast-content > .toast-message:first-child {
    font-weight: 500;
    color: #1F2437;
}

.toastify-close {
    flex: none;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8A91A3;
    font-size: 14px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toastify-close:hover {
    background: #F4F5F9;
    color: #1F2437;
}

/* Celular: no alto, ocupando a largura, com 16px de margem */
@media (max-width: 640px) {
    .toastify {
        width: auto;
        max-width: none;
        left: 16px;
        right: 16px;
        margin: 0;
    }

    .toastify-right {
        right: 16px;
    }

    .toastify-top {
        top: 12px;
    }
}
