.agl-tour[hidden],
.agl-tour__spotlight[hidden] {
  display: none !important;
}

html.agl-tour-active {
  scroll-behavior: auto !important;
}

.agl-tour {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.agl-tour__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 31, 0.72);
}

.agl-tour__spotlight {
  position: fixed;
  z-index: 1;
  border: 3px solid #56dba5;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(7, 20, 31, 0.72), 0 0 0 7px rgba(86, 219, 165, 0.2);
  pointer-events: none;
  transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease;
}

.agl-tour__panel {
  position: fixed;
  z-index: 2;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #cfe2df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(3, 18, 28, 0.28);
  padding: 20px;
  color: #101923;
}

.agl-tour__panel.is-centered {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}

.agl-tour__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.agl-tour__progress {
  position: relative;
  display: block;
  min-width: 104px;
  padding-bottom: 9px;
  color: #5d6b7d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.agl-tour__progress::before,
.agl-tour__progress::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 4px;
}

.agl-tour__progress::before {
  width: 100%;
  background: #dce8e8;
}

.agl-tour__progress::after {
  width: var(--agl-tour-progress, 10%);
  background: #d33373;
  transition: width 180ms ease;
}

.agl-tour__skip {
  border: 0;
  background: transparent;
  color: #5d6b7d;
  padding: 6px 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.agl-tour__skip:hover,
.agl-tour__skip:focus-visible {
  color: #d33373;
}

.agl-tour__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #d33373;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.agl-tour__panel h2 {
  margin: 0 0 10px;
  color: #101923;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.agl-tour__panel p {
  margin: 0;
  color: #526176;
  font-size: 15px;
  line-height: 1.58;
  font-weight: 600;
}

.agl-tour__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.agl-tour__button {
  min-height: 44px;
  border: 1px solid #c7d7df;
  border-radius: 8px;
  background: #ffffff;
  color: #172131;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  cursor: pointer;
}

.agl-tour__button--next {
  border-color: #d33373;
  background: linear-gradient(180deg, #fc6f8f, #d33373);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 155, 101, 0.22);
}

.agl-tour__button:hover,
.agl-tour__button:focus-visible,
.agl-tour__skip:focus-visible {
  outline: 3px solid rgba(38, 128, 255, 0.28);
  outline-offset: 2px;
}

.agl-tour__button--next:hover,
.agl-tour__button--next:focus-visible {
  border-color: #d33373;
  background: #d33373;
}

.agl-tour-replay {
  position: fixed;
  right: 76px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #c8ddd8;
  border-radius: 8px;
  background: #ffffff;
  color: #102433;
  padding: 7px 13px 7px 8px;
  box-shadow: 0 10px 28px rgba(4, 29, 40, 0.18);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.agl-tour-replay span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e3f8ef;
  color: #d33373;
  font-size: 16px;
  font-weight: 950;
}

.agl-tour-replay:hover,
.agl-tour-replay:focus-visible {
  border-color: #d33373;
  outline: 3px solid rgba(38, 128, 255, 0.24);
  outline-offset: 2px;
}

html.agl-tour-active .agl-tour-replay {
  visibility: hidden;
}

@media (max-width: 640px) {
  .agl-tour__panel,
  .agl-tour__panel.is-centered {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: auto;
    max-height: min(68vh, 560px);
    transform: none;
    padding: 18px;
  }

  .agl-tour__spotlight {
    border-width: 2px;
  }

  .agl-tour__panel h2 {
    font-size: 22px;
  }

  .agl-tour__panel p {
    font-size: 14px;
  }

  .agl-tour__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .agl-tour__button {
    width: 100%;
  }

  .agl-tour__button--next:only-child {
    grid-column: 2;
  }

  .agl-tour-replay {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agl-tour__spotlight,
  .agl-tour__progress::after {
    transition: none;
  }
}
