/* Overlay and spotlight */
.tour-overlay {
  position: fixed;
  inset: 0;
  pointer-events: auto;
  /* we will control clicks */
  z-index: 69999999;
}

.tour-spotlight {
  position: absolute;
  z-index: 79999999;
  /* create a dark screen but a clear hole by using a huge box-shadow */
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
  border-radius: 8px;
  transition: all 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;

  /* clicks go through to controls */
}

/* Popover */
.tour-popover {
  position: absolute;
  z-index: 89999999;
  max-width: 340px;
  max-height: fit-content;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tour-popover h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.tour-popover p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #333;
  line-height: 1.35;
}

.tour-header {
  display: flex;
  justify-content: space-between; /* spreads them apart */
  align-items: center; /* vertically centers them */
}

.tour-header ion-icon[data-action="close"] {
  color: red;
  padding-left: 5px;
  font-size: x-large;
}

.tour-controls {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-top: 25px;
}

.tour-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border: 0;
  cursor: pointer;
}

.tour-step-indicator {
  font-size: large;
  padding-inline: 5px;
  margin-top: -1px;
}

.tour-controls ion-icon {
  cursor: pointer; /* hand cursor on hover */
  font-size: x-large;
}

.tour-controls ion-icon.disabled {
  color: #000 !important;
  opacity: 0.6;
  pointer-events: none; /* prevent clicking */
  cursor: default;
}

.tour-controls ion-icon,
.tour-controls .tour-step-indicator {
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

.tour-step-spacer {
  display: inline-block;
  width: 5px; /* adjust spacing here */
}

/* simple */

.tour-controls-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
}

.tour-controls-simple .btn-close {
  margin: 0;
  padding: 0;
  background: none;
  color: #555 !important;
  cursor: pointer;
  font-size: 14px;
}

.tour-controls-simple .btn-next {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff !important;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* end simple */

/* small arrow */
.tour-popover::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: -1;
}

/* responsivity */
@media (max-width: 480px) {
  .tour-popover {
    max-width: 92vw;
    font-size: 14px;
  }
}

/* Sheet style */
.tour-popover.sheet {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
  left: 0 !important;
  margin: 0;
  padding: 20px;
  z-index: 99999999;
}

/* Top sheet */
.tour-popover.sheet.top {
  bottom: auto;
  top: 0 !important;
  border-radius: 0 0 20px 20px;
}

/* Bottom sheet */
.tour-popover.sheet.bottom {
  top: auto;
  bottom: 0 !important;
}

/* Spacer for sheet mode */
.tour-sheet-spacer {
  width: 100%;
  pointer-events: none;
}
