/* Static base styles for the tour runtime (runtime.js). Linked normally (not inline) so the
   builder's own preview stays valid under a `style-src 'self'` CSP: script only ever mutates this
   already-loaded stylesheet's CSSOM (insertRule / rule.style, never an element's inline style
   attribute) to place the highlight box and tooltip. The exported tour.js does not use this file —
   it has no server to fetch it from on a customer's site, so it builds the same rules itself via a
   created <style> element instead (see RULES in runtime.js; keep the two in sync). */
.tour-hl, .tour-tip, .tour-tip * { box-sizing: border-box; }

.tour-hl {
  position: fixed;
  pointer-events: none;
  border: 2px solid #0b6e4f;
  border-radius: 8px;
  box-shadow: 0 0 0 100vmax rgba(15, 15, 15, .55);
  transition: top .16s ease, left .16s ease, width .16s ease, height .16s ease;
  z-index: 2147483000;
}

.tour-tip {
  position: fixed;
  width: min(320px, calc(100vw - 24px));
  background: #fff;
  color: #1d1b16;
  border: 1px solid #857e71;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
  z-index: 2147483001;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: top .16s ease, left .16s ease;
}
.tour-tip:focus { outline: 3px solid #0b6e4f; outline-offset: 2px; }
.tour-tip .tour-step-line { margin: 0 0 6px; color: #625d52; font-size: 12px; }
.tour-tip h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.tour-tip .tour-body { margin: 0 0 14px; color: #3c382f; }
.tour-tip .tour-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tour-tip button {
  font: inherit; border: 1px solid #857e71; background: #f4f1ea; color: #1d1b16;
  border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 32px;
}
.tour-tip button.tour-primary { background: #0b6e4f; color: #fff; border-color: #0b6e4f; margin-left: auto; }
.tour-tip button.tour-skip { background: none; border-color: transparent; color: #625d52; text-decoration: underline; padding: 7px 4px; }
.tour-tip button:disabled { opacity: .4; cursor: default; }

.tour-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tour-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .tour-hl, .tour-tip { transition: none !important; }
}
