/* Modal shell */
.bm-ph__modal[hidden] { display: none !important; }
.bm-ph__modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: grid;
  place-items: center;
  z-index: 9999;
}
.bm-ph__dialog {
  background: var(--bm-ph-bg, #fff);
  color: inherit;
  width: min(92vw, 760px);
  border-radius: 16px;
  border: 2px solid var(--bm-ph-red, #FF0041); /* Boosted Red border */
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
}
.bm-ph__close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
.bm-ph__title { color: var(--bm-ph-red, #c70000); margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; }
.bm-ph__product { color: var(--bm-ph-white, #fff); margin: 0 0 .25rem; font-size: 1.125rem; font-weight: 700; }
.bm-ph__canvas { max-width: 100%; height: auto; display: block; }
.bm-ph__button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}
.bm-ph__empty { text-align: center; padding: 2rem 0 1rem; opacity: .75; }

/* Force Price History heading to Boosted Red, even if theme sets h3 to white */
.bm-ph__dialog .bm-ph__title { color: var(--bm-ph-red, #FF0041) !important; }
/* Keep product title white on Dark 1 */
.bm-ph__dialog .bm-ph__product { color: var(--bm-ph-white, #FFFFFF) !important; }