.wb-help-label {
  align-items: center;
  gap: 4px;
}

.wb-help-host {
  --wb-help-size: 16px;
}

.wb-help-button {
  width: var(--wb-help-size);
  height: var(--wb-help-size);
  min-width: var(--wb-help-size);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0;
  margin-left: 4px;
  color: var(--gs-text-muted, #94a3b8);
  background: transparent;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: 0.82;
  vertical-align: middle;
  box-sizing: border-box;
}

.wb-help-button__icon {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.wb-help-button:hover,
.wb-help-button:focus,
.wb-help-button[aria-expanded="true"] {
  color: var(--gs-text, #e2e8f0);
  background: var(--gs-panel-elevated, rgba(148, 163, 184, 0.14));
  opacity: 1;
  outline: none;
}

.wb-help-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.45);
}

.wb-help-host--toolbar {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
}

.wb-help-button--toolbar {
  --wb-help-size: 14px;
  margin-left: 2px;
  color: currentColor;
  opacity: 0.72;
}

.wb-help-host--block-card {
  position: relative !important;
}

.wb-help-button--block-card {
  --wb-help-size: 17px;
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
  margin-left: 0;
  color: var(--gs-text-muted, #94a3b8);
  background: var(--gs-bg, rgba(15, 23, 42, 0.9));
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.22);
}

.wb-help-host--section {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
}

.wb-help-button--section {
  --wb-help-size: 15px;
  margin-left: auto;
}

.wb-help-host--style-section {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
}

.wb-help-button--style-section {
  --wb-help-size: 15px;
  margin-left: 4px;
}

.wb-help-button--inline {
  --wb-help-size: 15px;
  margin-left: 5px;
}

.wb-help-popover {
  position: fixed;
  z-index: 10050;
  width: max-content;
  max-width: min(340px, calc(100vw - 16px));
  border: 1px solid var(--gs-border-soft, #475569);
  border-radius: 8px;
  background: var(--gs-panel, #1e293b);
  color: var(--gs-text, #e2e8f0);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.38);
  padding: 10px 12px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.4;
}

.wb-help-popover[hidden],
.wb-help-popover__section[hidden],
.wb-help-popover__link[hidden] {
  display: none;
}

.wb-help-popover__title {
  margin-bottom: 6px;
  color: var(--gs-text, #e2e8f0);
  font-size: 12px;
  font-weight: 700;
}

.wb-help-popover__description,
.wb-help-popover__section {
  color: var(--gs-text-muted, #94a3b8);
}

.wb-help-popover__section {
  margin-top: 6px;
}

.wb-help-popover__section strong {
  display: block;
  margin-bottom: 2px;
  color: var(--gs-text, #e2e8f0);
  font-size: 11px;
}

.wb-help-popover__section pre {
  white-space: pre-wrap;
  margin: 0;
  color: var(--gs-text-muted, #94a3b8);
  font: inherit;
}

.wb-help-popover__section ul {
  margin: 0;
  padding-left: 16px;
}

.wb-help-popover__section li {
  margin: 2px 0;
}

.wb-help-popover__link {
  display: inline-flex;
  margin-top: 8px;
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
}

.wb-help-popover__link:hover {
  text-decoration: underline;
}
