/* cardly-tour.css - the guided tour (cardly-tour.js), ported from CollHub. Self-contained: it is
   loaded by the operator pages AND by the public storefront, which do not share a button style,
   so the tour styles its own buttons. Colours come from the face tokens (--surface, --ink, --brand),
   so the light and the dark operator theme both work. */
.tour-layer { position: fixed; inset: 0; z-index: 2600; pointer-events: none; }
.tour-blocker { position: absolute; inset: 0; pointer-events: auto; }
.tour-spot { position: absolute; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(10, 16, 26, .58); outline: 3px solid #f59e0b;
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
.tour-pop { position: absolute; width: 380px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; box-sizing: border-box;
  background: var(--surface, #fff); color: var(--ink, #17202b); border: 1px solid var(--line, #e3e7ec); border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 26, 42, .28); padding: 16px 18px 14px; pointer-events: auto;
  font-family: var(--font-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); text-align: left;
  animation: tour-pop .16s ease-out; transition: left .25s ease, top .25s ease; }
.tour-pop.is-center { width: 460px; }
.tour-pop.is-waiting, .tour-pop.is-leaving { visibility: hidden; }
@keyframes tour-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tour-count { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 700;
  color: #d97706; text-transform: uppercase; letter-spacing: .6px; }
.tour-pop h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; color: var(--ink, #17202b); font-family: inherit; }
.tour-pop h3 i { color: var(--brand, #1f3a5f); }
:root[data-theme="dark"] .tour-pop h3 i { color: #f59e0b; }
.tour-pop p { margin: 0 0 12px; color: var(--ink-2, #5b6672); line-height: 1.5; font-size: 14.5px; }
.tour-actions { display: flex; gap: 6px; align-items: center; }
.tour-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tour-btn:disabled { opacity: .7; cursor: default; }
.tour-next { background: #15803d; color: #fff; }
.tour-next:hover { background: #126c34; }
.tour-prev { background: #f59e0b; color: #1f1300; }
.tour-prev:hover { background: #e08e0b; }
.tour-sim { width: 100%; margin-bottom: 12px; background: var(--brand, #1f3a5f); color: var(--brand-on, #fff); }
.tour-sim:hover { filter: brightness(1.08); }
.tour-exit { margin-right: auto; background: none; border: 1px solid var(--line, #e3e7ec); color: var(--ink-2, #5b6672); }
.tour-exit:hover { color: var(--ink, #17202b); border-color: var(--ink-2, #5b6672); }
.tour-music { background: none; border: 1px solid var(--line, #e3e7ec); border-radius: 999px; padding: 2px 9px; font: inherit; font-size: 11px;
  font-weight: 700; color: var(--ink-2, #5b6672); text-transform: none; letter-spacing: 0; cursor: pointer; }
.tour-music:hover { color: var(--ink, #17202b); border-color: var(--brand, #1f3a5f); }

/* Phones and tablets: 44 px touch targets (C12). */
@media (pointer: coarse) {
  .tour-btn { min-height: 44px; }
  .tour-exit { min-height: 44px; }
  .tour-music { min-height: 32px; }
}
@media (max-width: 575.98px) {
  .tour-pop, .tour-pop.is-center { width: calc(100vw - 24px); }
}
