/* ==========================================================================
 * Modais BHM — oferta de continuar cadastro / pedido finalizado.
 * Nunca obrigatórios (fecham clicando fora ou em Fechar); altura fit-content.
 * ========================================================================== */

.bhm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}

.bhm-modal-box {
    background: #fff;
    border-radius: 10px;
    max-width: fit-content;
    width: 100%;
    min-width: min(320px, calc(100vw - 64px));
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px;
    height: fit-content !important;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Anula regras genéricas de .modal-content (popup.css/modal.css) que quebram
   o layout: .modal-content é fixed com min-width:50% e .modal-content p é flex. */
.bhm-modal-overlay .bhm-modal-box {
    position: static;
    min-width: min(320px, calc(100vw - 64px));
}

.bhm-modal-overlay .bhm-modal-box p {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: normal;
}

.bhm-modal-overlay .bhm-modal-box h3 {
    display: block;
    text-align: center;
}

.bhm-modal-box h3 {
    margin: 10px 0 8px;
    font-size: 1.15rem;
}

.bhm-modal-box p {
    margin: 0 0 12px;
    line-height: 1.5;
}

.bhm-modal-box p.bhm-strong {
    margin: 0 0 16px;
    font-weight: 500;
}

.bhm-modal-icon {
    font-size: 42px;
    line-height: 1;
}

.bhm-icon-orange { color: #FF6903; }
.bhm-icon-green { color: #4CAF50; }
.bhm-icon-blue { color: #2271b1; }

.bhm-modal-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.bhm-btn {
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.bhm-btn-orange {
    background: #FF6903;
    color: #fff;
    border: none;
}

.bhm-btn-ghost {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
}

.bhm-modal-note {
    margin: 0 0 16px !important;
    font-size: 13px;
    color: #555;
}

@media (max-width: 480px) {
    .bhm-modal-box {
        padding: 18px 14px;
    }
    .bhm-btn {
        width: 100%;
    }
}
