#widgetOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

#widgetOverlay.is-open { display: block; }

#widgetOverlay .bo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
}

#widgetOverlay .bo-layer {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 28px;
  pointer-events: none;
}

#widgetOverlay .bo-panel {
  position: relative;
  width: min(100%, 1220px);
  height: min(90vh, 880px);
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  pointer-events: auto;
}

#widgetOverlay .bo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(5,5,5,.82);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

#widgetOverlay .bo-close:hover {
  transform: scale(1.05);
  background: #111;
}

#widgetOverlay .bo-close:focus-visible {
  outline: 3px solid #f5c242;
  outline-offset: 3px;
}

#widgetOverlay .bo-checkout {
  width: 100%;
  height: 100%;
}

#widgetOverlay iframe#widgetFrame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

@media (max-width: 720px) {
  #widgetOverlay .bo-layer { padding: 12px; }
  #widgetOverlay .bo-panel {
    width: 100%;
    height: 90vh;
  }

}
