/* VastraLens product-tour theme for driver.js (SPEC-tours §3).
 *
 * One file, copied into Counter (app/tour-theme.css), Loom (app/tour-theme.css)
 * and the kiosk (static/tour-theme.css). Load it AFTER driver.js's own CSS.
 * Every tour passes popoverClass: 'vl-tour', so nothing here touches anything
 * else on the page.
 */
.vl-tour.driver-popover {
  --vl-cream: #FAF6EF;
  --vl-maroon: #7A1F2B;
  --vl-maroon-dark: #5C1620;
  --vl-gold: #B88A3D;
  --vl-ink: #332A28;
  background: var(--vl-cream);
  color: var(--vl-ink);
  border: 1px solid #E3DAD0;
  border-radius: 14px;
  padding: 18px 18px 14px;
  min-width: 260px;
  max-width: min(340px, calc(100vw - 32px));
  box-shadow: 0 14px 40px rgba(58, 12, 20, 0.35), 0 2px 8px rgba(58, 12, 20, 0.18);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.vl-tour .driver-popover-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vl-maroon);
  padding-right: 22px;
}
.vl-tour .driver-popover-description {
  font-size: 15px;
  line-height: 1.5;
  color: var(--vl-ink);
}
.vl-tour .driver-popover-close-btn {
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: #9C8F88;
}
.vl-tour .driver-popover-close-btn:hover,
.vl-tour .driver-popover-close-btn:focus-visible { color: var(--vl-maroon); }

.vl-tour .driver-popover-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vl-tour .driver-popover-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--vl-gold);
  font-variant-numeric: tabular-nums;
}
.vl-tour .driver-popover-navigation-btns { display: flex; gap: 8px; margin-left: auto; }
.vl-tour .driver-popover-navigation-btns button + button { margin-left: 0; }
.vl-tour .driver-popover-footer-btn {
  all: unset;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  font: 600 14px/1 Inter, "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  text-shadow: none;
  transition: transform .08s, background-color .15s;
}
/* Back: outline */
.vl-tour .driver-popover-prev-btn {
  color: var(--vl-maroon);
  border: 2px solid var(--vl-maroon);
  background: transparent;
}
/* Next / Done: the VastraLens chunky button */
.vl-tour .driver-popover-next-btn {
  color: #fff;
  background: var(--vl-maroon);
  border: 0;
  box-shadow: 0 3px 0 0 var(--vl-maroon-dark);
}
.vl-tour .driver-popover-next-btn:hover { background: #8A2432; }
.vl-tour .driver-popover-footer-btn:active { transform: translateY(2px); box-shadow: none; }
.vl-tour .driver-popover-footer-btn:focus-visible { outline: 3px solid var(--vl-gold); outline-offset: 2px; }
.vl-tour .driver-popover-btn-disabled { opacity: .4; pointer-events: none; }

/* The arrow takes the card's cream, side by side. */
.vl-tour .driver-popover-arrow { border-width: 7px; }
.vl-tour .driver-popover-arrow-side-left { border-left-color: var(--vl-cream); }
.vl-tour .driver-popover-arrow-side-right { border-right-color: var(--vl-cream); }
.vl-tour .driver-popover-arrow-side-top { border-top-color: var(--vl-cream); }
.vl-tour .driver-popover-arrow-side-bottom { border-bottom-color: var(--vl-cream); }

/* The highlighted element: a gold ring around the cut-out. */
.vl-tour-on .driver-active-element {
  outline: 3px solid #B88A3D;
  outline-offset: 4px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .vl-tour .driver-popover-footer-btn { transition: none; }
}
