.bpHelpWrap {
  position: relative;
  display: inline-flex;
}

.bpHelpMenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 41000;
  display: none;
  width: min(280px, 88vw);
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
}

.bpHelpMenu.is-open {
  display: grid;
  gap: 6px;
}

.bpHelpMenu button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.bpTourBackdrop {
  position: fixed;
  inset: 0;
  z-index: 40000;
  display: none;
  pointer-events: none;
  background: rgba(3, 7, 18, .68);
}

.bpTourBackdrop.is-open {
  display: block;
}

.bpTourHighlight {
  position: fixed;
  z-index: 40001;
  display: none;
  pointer-events: none;
  border: 3px solid var(--accent);
  border-radius: 14px;
  box-shadow:
    0 0 0 5px rgba(121, 167, 255, .2),
    0 0 30px rgba(121, 167, 255, .45);
  transition:
    top .18s ease,
    left .18s ease,
    width .18s ease,
    height .18s ease;
}

.bpTourHighlight.is-open {
  display: block;
}

.bpTourBubble {
  position: fixed;
  z-index: 40002;
  display: none;
  width: min(380px, calc(100vw - 28px));
  padding: 16px;
  color: var(--text);
  background:
    linear-gradient(
      180deg,
      var(--panel),
      var(--panel2)
    );
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
}

.bpTourBubble.is-open {
  display: block;
}

.bpTourEyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bpTourBubble h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.bpTourBubble p {
  margin: 0;
  color: var(--noteText);
  line-height: 1.55;
}

.bpTourProgress {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.bpTourActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.bpTourNav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.bpTourSkip {
  background: transparent;
  box-shadow: none;
}

.bpContextHint {
  position: fixed;
  z-index: 39000;
  display: none;
  width: min(330px, calc(100vw - 28px));
  padding: 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .42);
}

.bpContextHint.is-open {
  display: block;
}

.bpContextHint h4 {
  margin: 0 0 6px;
}

.bpContextHint p {
  margin: 0;
  color: var(--noteText);
  line-height: 1.5;
}

.bpContextHintActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.bpTourTargetActive {
  position: relative;
  z-index: 40001 !important;
}

/*
 * Upgrade prompts can be opened while Settings is still visible.
 * Keep the upgrade dialog above every standard modal and tutorial layer.
 */
#upgradeOverlay {
  z-index: 42000;
}

/*
 * Native select options cannot contain a nested badge. Emphasize the paid
 * choices so their PRO entitlement marker is visually distinct in the switch.
 */
#platformSelect option[value="woocommerce"],
#platformSelect option[value="bigcommerce"] {
  color: #ffd166;
  font-weight: 800;
}

:root[data-theme="light"]
  #platformSelect option[value="woocommerce"],
:root[data-theme="light"]
  #platformSelect option[value="bigcommerce"] {
  color: #8a5a00;
}

@media (max-width: 760px) {
  .bpTourBubble,
  .bpContextHint {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    width: auto;
  }

  .bpTourActions {
    align-items: stretch;
    flex-direction: column;
  }

  .bpTourNav {
    width: 100%;
    margin-left: 0;
  }

  .bpTourNav button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bpTourHighlight {
    transition: none;
  }
}
