/* Poradnik: przyciemnienie, obramówka, kreseczka, dymek. */
.ep-tour {
  position: fixed;
  inset: 0;
  z-index: 200000;
  isolation: isolate;
  pointer-events: none;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.ep-tour--paused {
  visibility: hidden;
}

.ep-tour__shade {
  position: fixed;
  background: rgba(10, 10, 10, 0.55);
  pointer-events: auto;
}

.ep-tour--glide .ep-tour__shade,
.ep-tour--glide .ep-tour__ring,
.ep-tour--glide .ep-tour__bubble {
  transition:
    top 0.62s cubic-bezier(0.22, 0.8, 0.28, 1),
    left 0.62s cubic-bezier(0.22, 0.8, 0.28, 1),
    width 0.62s cubic-bezier(0.22, 0.8, 0.28, 1),
    height 0.62s cubic-bezier(0.22, 0.8, 0.28, 1),
    max-height 0.62s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.ep-tour--glide .ep-tour__line {
  opacity: 0;
  transition: opacity 0.12s linear;
}

.ep-tour__bubble--in .ep-tour__kicker,
.ep-tour__bubble--in .ep-tour__title,
.ep-tour__bubble--in .ep-tour__text,
.ep-tour__bubble--in .ep-tour__note {
  animation: ep-tour-in 0.4s ease;
}

@keyframes ep-tour-in {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-tour--glide .ep-tour__shade,
  .ep-tour--glide .ep-tour__ring,
  .ep-tour--glide .ep-tour__bubble,
  .ep-tour__bubble--in .ep-tour__kicker,
  .ep-tour__bubble--in .ep-tour__title,
  .ep-tour__bubble--in .ep-tour__text,
  .ep-tour__bubble--in .ep-tour__note {
    transition: none;
    animation: none;
  }
}

.ep-tour__ring {
  position: fixed;
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow:
    0 0 0 4px #fbbf24,
    0 0 0 8px rgba(251, 191, 36, 0.45);
  pointer-events: none;
  z-index: 100001;
}

.ep-tour__line {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100002;
  overflow: visible;
  transition: opacity 0.28s ease 0.22s;
}

.ep-tour__bubble {
  position: fixed;
  z-index: 100003;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  max-height: min(52vh, 340px);
  overflow: hidden;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.ep-tour__body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ep-tour__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
}

.ep-tour__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.ep-tour__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
}

.ep-tour__note {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 700;
  color: #9a3412;
}

.ep-tour__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.ep-tour__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ep-tour__btn--ghost {
  background: transparent;
  color: #525252;
}

.ep-tour__btn--primary {
  background: #dc2626;
  color: #fff;
}

.ep-tour__btn--primary:focus-visible,
.ep-tour__btn--ghost:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}
