/* BH Tolerância — Modal (isolado do app principal) */
.bh-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  z-index: 9999;
}
.bh-modal[aria-hidden="false"] { display: flex; }

.bh-modal__panel{
  width: min(980px, calc(100vw - 24px));
  height: min(80vh, 720px);
  background: var(--card, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.12));
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bh-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.12));
  background: linear-gradient(180deg, rgba(0,0,0,.03), transparent);
}

.bh-modal__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.bh-chip{
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0,0,0,.12));
  background: rgba(0,0,0,.04);
}

.bh-modal__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.bh-btn{
  appearance:none;
  border: 1px solid var(--border, rgba(0,0,0,.14));
  background: var(--card, #fff);
  color: var(--text, #111);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.bh-btn:hover{ filter: brightness(.98); }
.bh-btn:active{ transform: translateY(1px); }

.bh-btn--primary{
  background: var(--brand, #0A66C2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(10,102,194,.22);
}

.bh-modal__body{
  flex:1;
  position: relative;
}

.bh-modal__iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}

/* Botão em destaque dentro do expander */
.bh-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(220, 38, 38, .25);
  background: linear-gradient(180deg, rgba(220,38,38,.10), rgba(220,38,38,.04));
  margin: 12px 0 14px;
}

.bh-cta__text b{ font-weight: 900; }
.bh-cta__text{
  color: var(--text, #111);
  line-height: 1.25;
}
.bh-cta__muted{
  color: var(--muted, rgba(0,0,0,.65));
  font-size: 13px;
  margin-top: 4px;
}

@media (max-width: 520px){
  .bh-cta{ flex-direction: column; align-items: stretch; }
  .bh-btn{ width:100%; }
}

/* ===== Ícones (SVG inline) nos botões do modal ===== */
.bh-btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.bh-btn .icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.bh-btn .label{
  line-height: 1;
}
