/* Product tour, interactive parts. Loaded after xee-tour.css. */

/* Nothing is covered any more: the caption sits under the window and the fade is gone, so every control works */
.xt-panels {
  -webkit-mask-image: none;
  mask-image: none;
}
.xt-caption {
  position: static;
  margin-top: 0.75rem;
}
.xt-hint {
  margin: 0.875rem auto 0;
  max-width: 980px;
  text-align: center;
  font-size: 0.875rem;
  color: #737373;
}
.xt-hint::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #22b45a;
  box-shadow: 0 0 0 0 rgb(34 180 90 / 0.5);
  animation: lv-ping 2s ease-out infinite;
}
@keyframes lv-ping {
  70%, 100% { box-shadow: 0 0 0 7px rgb(34 180 90 / 0); }
}

.xt [hidden] {
  display: none !important;
}

/* Things you can press */
.xt .lv-hit {
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.xt .lv-hit:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}
.xt .xw-link.lv-hit:hover:not([aria-current="page"]) { background: var(--x-grey); }
.xt .an-seg span.lv-hit:hover:not([aria-current="page"]) { background: #f9f9f8; color: var(--x-ink); }
.xt .xw-tabs span.lv-hit:hover:not([aria-current="page"]) { color: var(--x-ink); }
.xt .xw-btn.lv-hit:hover { border-color: #d4d4d0; background: #fafafa; }
.xt .xw-btn--ink.lv-hit:hover { background: #333; border-color: #333; }
.xt .xw-btn.lv-hit:active { transform: translateY(1px); }
.xt .xw-ctl.lv-hit:hover { border-color: #d4d4d0; color: var(--x-ink); }

/* Date range menu */
.xt .lv-ctl {
  position: relative;
  gap: 6px;
}
.xt .lv-caret { color: var(--x-faint); }
.xt .lv-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 132px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--x-line);
  border-radius: 10px;
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.2);
}
.xt .lv-opt {
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--x-ink-2);
  font: inherit;
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
}
.xt .lv-opt:hover { background: var(--x-grey); }
.xt .lv-opt.is-on { color: var(--x-ink); font-weight: 600; }

/* Hover a chart */
.xt .an-plot { cursor: crosshair; }
.xt .lv-cross {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px solid #a3a3a3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}
.xt .lv-tip {
  position: absolute;
  top: 6px;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 140px;
  margin-left: 10px;
  padding: 7px 9px;
  background: #fff;
  border: 1px solid var(--x-line);
  border-radius: 9px;
  box-shadow: 0 10px 26px -8px rgb(0 0 0 / 0.22);
  font-size: 11px;
  color: var(--x-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}
.xt .lv-tip--left { transform: translateX(calc(-100% - 20px)); }
.xt .lv-tip b { color: var(--x-ink); font-weight: 600; }
.xt .lv-tip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.xt .lv-tip em { margin-left: auto; padding-left: 10px; font-style: normal; font-weight: 600; color: var(--x-ink); font-variant-numeric: tabular-nums; }
.xt .lv-tip i { width: 7px; height: 7px; border-radius: 2px; background: var(--x-blue); }
.xt .lv-tip i.d1 { background: #c9c9c5; }
.xt .an-plot.lv-hover .lv-cross,
.xt .an-plot.lv-hover .lv-tip { opacity: 1; }

/* Small "something changed" animations */
.xt .lv-pop { animation: lv-pop 420ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes lv-pop {
  from { opacity: 0.35; transform: translateY(5px); }
}
.xt .lv-redraw { animation: lv-draw 520ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes lv-draw {
  from { stroke-dashoffset: 1; }
}
.xt .lv-in { animation: lv-row 520ms ease; }
@keyframes lv-row {
  from { background: #eaf4ec; }
}
.xt .lv-dim { opacity: 0.45; transition: opacity 200ms ease; }

/* Sortable headers */
.xt .kw-row--head .lv-hit:hover,
.xt .ad-row--head .lv-hit:hover { color: var(--x-ink); }
.xt [aria-sort="ascending"]::after { content: " ↑"; }
.xt [aria-sort="descending"]::after { content: " ↓"; }
.xt [aria-sort] { color: var(--x-ink); }
.xt .kw-row:not(.kw-row--head):hover,
.xt .ad-row:not(.ad-row--head):hover { background: var(--x-side); }
.xt .kw-d:not(.kw-d--up):not(.kw-d--down) { color: var(--x-muted); font-weight: 500; }

/* A/B tests: history */
.xt .lv-hist { padding: 2px 14px; }
.xt .lv-hist-head,
.xt .lv-hist-row {
  display: grid;
  grid-template-columns: 1fr auto 56px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--x-line);
}
.xt .lv-hist-row:last-child { border-bottom: 0; }
.xt .lv-hist-head { min-height: 30px; color: var(--x-faint); font-size: 11px; }
.xt .lv-hist-row > span:first-child { display: grid; gap: 1px; }
.xt .lv-hist-row b { font-weight: 600; }
.xt .lv-hist-row small { color: var(--x-muted); font-size: 11px; }
.xt .lv-hist-row .xw-sub { text-align: right; }

/* ASO: listing */
.xt .lv-listing { display: grid; gap: 10px; }
.xt .lv-field { padding: 10px 14px; display: grid; gap: 8px; }
.xt .lv-field-top { display: flex; align-items: center; justify-content: space-between; }
.xt .lv-field-top b { font-weight: 600; }
.xt .lv-input {
  padding: 7px 10px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: var(--x-side);
  color: var(--x-ink);
}
.xt .lv-suggest {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px dashed #d4d4d0;
  border-radius: 9px;
}
.xt .lv-suggest .xw-label { padding: 0; }
.xt .lv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.xt .lv-chip {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--x-grey);
  color: var(--x-ink-2);
  font-size: 11.5px;
}
.xt .lv-chip--new {
  background: #eaf4ec;
  color: #2e6b3e;
  animation: lv-pop 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Apple Ads: performance */
.xt .lv-perf {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 14px 16px;
}
.xt .lv-perf .an-plot { flex: 1; }
.xt .an-key { --k: var(--x-blue); }

@media (max-width: 720px) {
  .xt-hint { padding-inline: 0.5rem; font-size: 0.8125rem; }
  .xt .lv-hist-head,
  .xt .lv-hist-row { grid-template-columns: 1fr auto; }
  .xt .lv-hist-head span:last-child,
  .xt .lv-hist-row .xw-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xt .lv-pop, .xt .lv-redraw, .xt .lv-in, .xt .lv-chip--new, .xt-hint::before { animation: none; }
}

/* Without the fade the window can be a little shorter */
.xt-panel .xw {
  height: clamp(23rem, 42vw, 30rem);
}

/* Smaller product tabs */
.hero-tab {
  gap: 0.375rem;
  padding: 0.5rem 0.75rem 0.75rem;
  border-radius: 0 0 1.5rem 1.5rem;
}
.hero-chip {
  gap: 0.375rem;
  height: 2rem;
  padding: 0 0.75rem 0 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.hero-chip-icon {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.3125rem;
}
.hero-chip-icon svg {
  width: 0.6875rem;
  height: 0.6875rem;
}
@media (min-width: 900px) {
  .hero-tab::before,
  .hero-tab::after {
    width: 1.5rem;
    height: 1.5rem;
  }
  .hero-tab::before {
    background: radial-gradient(circle at 0 100%, transparent 1.5rem, #ffffff calc(1.5rem + 0.5px));
  }
  .hero-tab::after {
    background: radial-gradient(circle at 100% 100%, transparent 1.5rem, #ffffff calc(1.5rem + 0.5px));
  }
}

/* The demo pointer (tour-demo.js) */
.xt-panels { position: relative; }
.lv-cursor {
  position: absolute;
  top: -4px;
  left: -3px;
  z-index: 30;
  width: 24px;
  height: 24px;
  pointer-events: none;
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.45, 0, 0.2, 1), opacity 250ms ease;
  will-change: transform;
}
.lv-cursor.is-on { opacity: 1; }
.lv-cursor svg {
  display: block;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.28));
  transition: transform 120ms ease;
  transform-origin: 20% 12%;
}
.lv-cursor.is-down svg { transform: scale(0.86); }
.lv-cursor-tip {
  position: absolute;
  top: 22px;
  left: 14px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #171717;
  color: #fff;
  font: 500 11px/1.3 "Geist", system-ui, sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.lv-cursor.has-tip .lv-cursor-tip { opacity: 1; transform: none; }
.lv-ripple {
  position: absolute;
  z-index: 29;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgb(23 23 23 / 0.16);
  pointer-events: none;
  animation: lv-ripple 600ms ease-out forwards;
}
@keyframes lv-ripple {
  from { transform: scale(0.3); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}
@media (hover: none) { .lv-cursor { display: none; } }
