.uii-tour {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
}

.uii-tour.is-active {
  pointer-events: auto;
}

.uii-tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.uii-tour.is-active .uii-tour-backdrop {
  opacity: 1;
}

.uii-tour-spotlight {
  position: fixed;
  border: 2px solid #c026d3;
  border-radius: 10px;
  box-shadow:
    0 0 0 9999px rgba(15, 23, 42, 0.52),
    0 0 0 4px rgba(192, 38, 211, 0.18);
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition:
    top 0.22s ease,
    left 0.22s ease,
    width 0.22s ease,
    height 0.22s ease,
    opacity 0.18s ease;
}

.uii-tour.is-active .uii-tour-spotlight.is-visible {
  opacity: 1;
}

.uii-tour-spotlight.is-hidden {
  display: none;
}

.uii-tour-popover {
  position: fixed;
  width: min(420px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  padding: 1.15rem 1.15rem 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    top 0.22s ease,
    left 0.22s ease;
  pointer-events: auto;
}

.uii-tour.is-active .uii-tour-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.uii-tour-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.uii-tour-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.uii-tour-body {
  margin: 0 1.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.uii-tour-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.uii-tour-restart {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}

.uii-tour-restart:hover {
  color: #0f172a;
}

.uii-tour-progress {
  flex: 1;
  text-align: center;
  font-size: 0.84rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.uii-tour-next {
  border: 0;
  border-radius: 999px;
  background: #c026d3;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  min-width: 5.5rem;
}

.uii-tour-next:hover {
  background: #a21caf;
}

.delivery-tour-link {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

body.uii-tour-open {
  overflow: hidden;
}
