.bm-ph,
.bm-ph * {
  box-sizing: border-box;
}

.bm-ph__button.bm-srp-history-button:focus-visible,
.bm-ph__close:focus-visible {
  outline: 2px solid var(--bm-ph-white, #fff);
  outline-offset: 2px;
}

/* Modal shell shared with the Boosted Media price-history graph plugin. */
.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);
  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 {
  cursor: pointer;
}
.bm-ph__button:not(.elementor-button) {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--bm-ph-button-border, #222) !important;
  background: var(--bm-ph-button-bg, transparent) !important;
  color: var(--bm-ph-button-color, inherit) !important;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.bm-ph__button:not(.elementor-button):hover,
.bm-ph__button:not(.elementor-button):focus-visible {
  color: var(--bm-ph-button-color-hover, var(--bm-ph-button-color, inherit)) !important;
  background: var(--bm-ph-button-bg-hover, var(--bm-ph-button-bg, transparent)) !important;
  border-color: var(--bm-ph-button-border-hover, var(--bm-ph-button-border, #222)) !important;
}
.bm-srp-elementor-card .bm-ph__button.bm-srp-history-button,
.bm-srp-mini-card .bm-ph__button.bm-srp-history-button {
  border-radius: 7px !important;
}
.bm-srp-elementor-card .bm-ph__button.bm-srp-history-button:hover,
.bm-srp-elementor-card .bm-ph__button.bm-srp-history-button:focus-visible,
.bm-srp-mini-card .bm-ph__button.bm-srp-history-button:hover,
.bm-srp-mini-card .bm-ph__button.bm-srp-history-button:focus-visible {
  border-color: color-mix(in srgb, var(--bm-srp-button-accent, #ff0041) 34%, rgba(255,255,255,.20)) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bm-srp-button-accent, #ff0041) 7%, rgba(255,255,255,.035)), rgba(255,255,255,.016)),
    color-mix(in srgb, var(--bm-srp-button-accent, #ff0041) 7%, #050607) !important;
  color: #fff !important;
}
.bm-ph__empty {
  text-align: center;
  padding: 2rem 0 1rem;
  opacity: .75;
}

.bm-ph__dialog .bm-ph__title {
  color: var(--bm-ph-red, #FF0041) !important;
}
.bm-ph__dialog .bm-ph__product {
  color: var(--bm-ph-white, #FFFFFF) !important;
}
