/* ──────────────────────────────────────────────────────────────────────
   The Compare guide in the shop (2026-11-01): the round "?" button in the shop's top strip and a few extras for its window.
   Markup: views/partials/compare-help.ejs. The window itself (vh-header, vh-body, vh-row, vh-chip, vh-states ...) is the one of the 3D guide,
   public/css/viewer-help.css, which the shop links first. Tokens only, no colour of its own.
   ────────────────────────────────────────────────────────────────────── */

/* ── The "?" button: white with a brown ring and a brown "?", like the "?" on the 3D viewer, so a "?" looks the same everywhere ── */
.cmp-help-btn {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1.5px solid var(--color-primary-dark);
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--color-brown-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
/* the circle stays 30px (as tall as the strip's AR switch row, so the pinned header does not grow much); this ring makes the tap target 44px */
.cmp-help-btn::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
/* at the end of the phone tab row: beside the three tabs, centred on the row */
.shop-mobile-tabs-row .cmp-help-btn { align-self: center; margin-left: var(--space-2); }
.cmp-help-btn:hover { background-color: var(--color-primary-xlight); color: var(--color-charcoal); }
.cmp-help-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ── Chips that copy the real controls ── */
/* the Compare button on a product photo: white, thin ring; brown while the product is in the list (compare.css .cmp-card-btn) */
.vh-chip--card {
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  color: var(--color-brown-mid);
  box-shadow: var(--shadow-xs);
}
.vh-chip--card-on {
  background-color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-dark);
  color: #fff;
}
/* the bar at the bottom of the screen is charcoal with cream text (compare.css .cmp-tray) */
.vh-chip--tray {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
}

/* a one-line note at the end of the window */
.vh-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-section-alt);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--color-brown-mid);
}
.vh-note i { flex: 0 0 auto; margin-top: 2px; color: var(--color-primary-dark); }

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