/**
 * Onboarding tooltips — styled to the Sherry Shop design system.
 * Uses the site's own --ss-* tokens (white/ink palette, Fraunces + Inter,
 * dark-ink pill buttons) so the popovers read as part of the shop chrome,
 * not a generic overlay. White is the primary colour; the muted accent is
 * used only as a hairline. No drop shadow, non-blocking.
 */

/* Non-blocking: the (transparent) overlay passes clicks straight through to
   the page, and never dims or spotlights anything. */
.driver-overlay,
svg.driver-overlay {
  pointer-events: none !important;
}
.driver-active .driver-overlay { background: transparent !important; }

.driver-popover.sherry-tour {
  background: var(--ss-glass-strong, rgba(255, 255, 255, 0.92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ss-line-strong, rgba(15, 15, 16, 0.14));
  border-radius: var(--ss-radius-card, 14px);
  box-shadow: none;
  max-width: 320px;
  padding: 18px 18px 14px;
  font-family: var(--ss-font-ui, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--ss-ink, #0f0f10);
}

.driver-popover.sherry-tour .driver-popover-title {
  font-family: var(--ss-font-display, 'Fraunces', Georgia, serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ss-ink, #0f0f10);
  margin: 0 0 7px;
}

.driver-popover.sherry-tour .driver-popover-description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ss-ink-2, #5a5a5e);
}

.driver-popover.sherry-tour .driver-popover-description em {
  font-style: italic;
  color: var(--ss-ink, #0f0f10);
}

.driver-popover.sherry-tour .driver-popover-description strong {
  font-weight: 600;
  color: var(--ss-ink, #0f0f10);
}

/* Arrow tinted to the frosted card */
.driver-popover.sherry-tour .driver-popover-arrow {
  border-color: var(--ss-glass-strong, rgba(255, 255, 255, 0.92));
}

/* Footer + progress */
.driver-popover.sherry-tour .driver-popover-footer {
  margin-top: 14px;
  gap: 8px;
}

.driver-popover.sherry-tour .driver-popover-progress-text {
  color: var(--ss-ink-3, #8a8a8e);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* Buttons share the shop's pill language */
.driver-popover.sherry-tour button {
  font-family: var(--ss-font-ui, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--ss-radius-pill, 999px);
  padding: 8px 16px;
  text-shadow: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ss-dur, 220ms) var(--ss-ease, ease),
              color var(--ss-dur, 220ms) var(--ss-ease, ease),
              transform var(--ss-dur, 220ms) var(--ss-ease, ease);
}

/* Next / Done — the dark-ink pill, mirroring the "AI SEARCH" button */
.driver-popover.sherry-tour .driver-popover-next-btn {
  background: var(--ss-ink, #0f0f10);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.driver-popover.sherry-tour .driver-popover-next-btn:hover {
  background: #1f1f22;
  transform: translateY(-1px);
}

/* Back — quiet ghost button */
.driver-popover.sherry-tour .driver-popover-prev-btn {
  background: transparent;
  color: var(--ss-ink-2, #5a5a5e);
  border-color: var(--ss-line-strong, rgba(15, 15, 16, 0.14));
}

.driver-popover.sherry-tour .driver-popover-prev-btn:hover {
  background: rgba(15, 15, 16, 0.04);
  color: var(--ss-ink, #0f0f10);
}

/* Close (×) — hard reset so the theme's <button> styling can't bleed in
   (that's what produced the olive blob). The × is drawn with a centered SVG
   mask instead of the text glyph, so it can't drift off-centre on the glyph's
   font metrics. The original "×" character is hidden via font-size:0. */
.driver-popover.sherry-tour .driver-popover-close-btn {
  all: unset;
  position: absolute;
  top: 9px;
  right: 9px;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  display: block;
  border-radius: 50%;
  background: transparent;
  font-size: 0;
  cursor: pointer;
  transition: background 140ms ease;
}

.driver-popover.sherry-tour .driver-popover-close-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 2.2l7.6 7.6M9.8 2.2l-7.6 7.6' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 2.2l7.6 7.6M9.8 2.2l-7.6 7.6' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  background-color: var(--ss-ink-3, #8a8a8e);
  transition: background-color 140ms ease;
}

.driver-popover.sherry-tour .driver-popover-close-btn:hover,
.driver-popover.sherry-tour .driver-popover-close-btn:focus {
  background: rgba(15, 15, 16, 0.06);
  box-shadow: none;
  outline: none;
}

.driver-popover.sherry-tour .driver-popover-close-btn:hover::before,
.driver-popover.sherry-tour .driver-popover-close-btn:focus::before {
  background-color: var(--ss-ink, #0f0f10);
}
