/* ===== Modal container ===== */
#popup_container {
    min-width: 280px;
    max-width: 560px; /* un poco más compacto */
    background: #fff;
    border: 1px solid #e5e7eb; /* más sutil */
    border-top: 4px solid #2E7CEE; /* tu verde */
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    overflow: hidden;
}

/* ===== Header / Title ===== */
#popup_title {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #111827;
    background: #f9fafb;
    border-bottom: 1px solid #eef2f7;
}

/* ===== Content ===== */
#popup_content {
    padding: 14px 16px 8px;
}

/* Mensaje */
#popup_message {
    min-height: auto !important;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left; /* mejora mucho para textos */
    font-size: 14px;
    line-height: 1.45;
    color: #374151;
    padding: 10px 2px;
}

/* ===== Panel inferior ===== */
#popup_panel {
    text-align: right; /* OK a la derecha se ve más “pro” */
    padding: 12px 16px !important;
    background: #fff;
    border-top: 1px solid #eef2f7;
}

    /* Botón OK (asumiendo que es un input/button dentro del panel) */
    #popup_panel input[type="button"],
    #popup_panel button {
        appearance: none;
        border: 1px solid #2E7CEE;
        background: #2E7CEE;
        color: #fff;
        font-weight: 700;
        padding: 8px 16px;
        border-radius: 10px;
        cursor: pointer;
        transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;
        box-shadow: 0 8px 18px rgba(1,114,50,.22);
    }

        #popup_panel input[type="button"]:hover,
        #popup_panel button:hover {
            filter: brightness(1.05);
        }

        #popup_panel input[type="button"]:active,
        #popup_panel button:active {
            transform: translateY(1px);
        }

        #popup_panel input[type="button"]:focus-visible,
        #popup_panel button:focus-visible {
            outline: 3px solid rgba(1,114,50,.25);
            outline-offset: 2px;
        }

/* ===== Tipos (opcional si puedes poner clase al container o content) ===== */
#popup_container.is-warning {
    border-top-color: #f59e0b;
}

#popup_container.is-error {
    border-top-color: #ef4444;
}

#popup_container.is-info {
    border-top-color: #2563eb;
}

#popup_container.is-success {
    border-top-color: #10b981;
}

/* Opcional: mensaje centrado SOLO si es 1 línea */
#popup_message.one-line {
    text-align: center;
}
