/* Backdrop */
.tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

/* Centered dialog */
.tour-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 600px;
  background: var(--white-colour);
  border-radius: 1vmin;
  border: 1vmin solid #ffda79;
  box-shadow: rgba(0, 0, 0, 0.2) 0 3.5vmin 0 -2vmin;
  padding: 3vmin;
  user-select: none;
  isolation: isolate;
}

/* Dialog content */
.tour-title {
  font-size: 2.5vmin;
  font-weight: 700;
  color: var(--dark-colour);
  margin-bottom: 1vmin;
}
.tour-text {
  font-size: 1.75vmin;
  font-weight: 300;
  color: var(--grey-colour);
  min-height: 8vmin;
  display: flex;
  align-items: center;
}

.tour-step-count {
  font-size: 1.5vmin;
  font-weight: 700;
  color: var(--grey-colour);
}
.tour-actions {
  display: flex;
  gap: 1vmin;
  justify-content: space-between;
  align-items: center;
}

.tour-actions .simpleButton p {
  font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/*                                  HIGHLIGHT                                 */
/* -------------------------------------------------------------------------- */

.tour-highlight {
  box-shadow: none !important;
  /* box-shadow: 0 0 0 0.5vmin #ffda79, 1.5vmin 1.5vmin 0 0 rgba(0, 0, 0, 0.2) !important; */
  box-shadow: 0 0 0 0.9vmin #ffda79 !important;
  transform: scale(1.1);
  transition: none !important;
  transition: transform 0.02s ease !important;
  cursor: pointer;
}

.tour-actions .circleButton {
  background: transparent;
  padding: 0.5vmin;
  position: absolute;
  top: 0.5vmin;
  right: 0.5vmin;
  box-shadow: none;
}
.tour-actions .circleButton svg {
  fill: var(--grey-colour);
  opacity: 0.5;
}

.tour-actions .simpleButton {
  touch-action: manipulation;
}

.tour-connector {
  color: #ffda79;
}
.tour-connector-path {
  stroke-width: 1vmin;
  opacity: 1;
}

/* -------------------------------------------------------------------------- */
/*                             TOUR BLOCKED TOAST                             */
/* -------------------------------------------------------------------------- */

.tour-blocked-hint {
  position: fixed;
  padding: 2vmin;
  border-radius: 0.5vmin;
  background: var(--dark-colour);
  color: var(--white-colour);
  font-size: 2vmin;
  font-weight: 300;
  text-wrap: balance;
  width: 30vmin;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.2) 0 2vmin 0 -1vmin;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease-out;
  border: 0.5vmin solid rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------- */
/*                                   PULSATE                                  */
/* -------------------------------------------------------------------------- */

.tour-highlight {
  --hl-scale: 1.1;
}
.pulsate-bck-slow {
  animation: pulse 3s ease-in-out infinite both;
  will-change: transform;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(var(--hl-scale));
  }
  50% {
    transform: scale(calc(var(--hl-scale) * 0.9));
  }
}
