/**
 * Reusable global interactive tour guide (coach-marks) — styled to the Figma
 * "tour guide" card + "Background blur" scrim (node 8NUenCPGOiipzaCqxk9QRN).
 *
 * The scrim is a single fixed layer with a frosted dark tint; clip-path punches
 * a sharp hole around the target, so the highlighted element stays crisp and
 * interactive while everything else is blurred + dimmed. Works in any stacking
 * context (including inside the Bootstrap compare modal).
 */

.visbl-tour__scrim,
.visbl-tour__tip {
  position: fixed;
  box-sizing: border-box;
}

.visbl-tour__scrim {
  inset: 0;
  z-index: 2147483000;
  background: rgba(14, 14, 14, 0.4);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  cursor: default;
}

/* Allie's launcher is fixed to the corner and the scrim only punches a hole,
   so the launcher shows through the spotlight as soon as a tall card is
   highlighted on a narrower screen and reads as part of that card. Clipped
   rather than hidden on purpose: the tour drops any step whose target is
   display:none, visibility:hidden or transparent, and its last step points at
   this very launcher. */
body[data-visbl-tour-spotlight] #chatFab,
body[data-visbl-tour-spotlight] #chatWidgetContainer {
  clip-path: inset(100%);
  pointer-events: none;
}

.visbl-tour__tip {
  z-index: 2147483002;
  width: 420px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid #e4e8f7;
  border-radius: 8px;
  box-shadow: 0 18px 88px -4px rgba(24, 39, 75, 0.14), 0 8px 28px -6px rgba(24, 39, 75, 0.12);
  padding: 16px;
  color: #000000;
  font-family: 'Wavehaus', 'Montserrat', Arial, Helvetica, sans-serif;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.visbl-tour__tip.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* Step-change motion only (added by JS on next/back/finish, never during scroll):
   the dialog glides to its new spot while the spotlight hole morphs. Ease-out so
   the motion starts fast — big moves (with scroll) feel as snappy as small ones. */
.visbl-tour__scrim.is-animating {
  -webkit-transition: -webkit-clip-path 0.22s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.22s ease;
  transition: clip-path 0.22s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.22s ease;
}

.visbl-tour__tip.is-animating {
  transition: opacity 0.2s ease, transform 0.2s ease,
    top 0.22s cubic-bezier(0.33, 1, 0.68, 1), left 0.22s cubic-bezier(0.33, 1, 0.68, 1);
}

.visbl-tour__arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
}

.visbl-tour__close {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #73788c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.visbl-tour__close:hover { color: #13151a; }

.visbl-tour__title {
  margin: 0 0 16px;
  padding-right: 26px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.33;
  color: #000000;
}

.visbl-tour__body {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #535766;
}

.visbl-tour__body a,
.visbl-tour__body strong.visbl-tour__link {
  color: #002bc6;
  text-decoration: underline;
  font-weight: 600;
}

/* Icon list body (e.g. step 1) */
.visbl-tour__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.visbl-tour__li {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #535766;
}

.visbl-tour__li strong {
  font-weight: 700;
  color: #535766;
}

.visbl-tour__li--icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visbl-tour__li--icon p {
  margin: 0;
  flex: 1 0 0;
  min-width: 0;
}

.visbl-tour__ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
  background: #ffffff;
  color: #535766;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visbl-tour__ico svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* Allie step: brand mark + "Ask Allie" pill on the left, sample question on the right.
   The badge mirrors the Figma "Chatbot Allie" component (69x105): mark on top, pill
   tucked under it, soft floor shadow below. */
.visbl-tour__allie {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.visbl-tour__allie-badge {
  position: relative;
  flex-shrink: 0;
  width: 69px;
  height: 105px;
}

.visbl-tour__allie-svg {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 1.5px;
  width: 65.5px;
  height: 69.6px;
  display: block;
}

.visbl-tour__allie-pill {
  position: absolute;
  top: 67.9px;
  left: 0;
  right: 0;
  height: 21.1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecff;
  color: #376cf3;
  font-size: 13.81px;
  font-weight: 700;
  line-height: 12.553px;
  letter-spacing: -0.4143px;
  border-radius: 60px;
  white-space: nowrap;
}

.visbl-tour__allie-shadow {
  position: absolute;
  top: 90.3px;
  left: 9.5px;
  width: 49.25px;
  height: 14.78px;
  display: block;
}

.visbl-tour__allie-quote {
  margin: 0;
  flex: 1 0 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.33;
  color: #535766;
}

/* Allie callout card: 319x201 with a 254px content column (Figma 371:15205 / 408:4088).
   The 1px border sits inside the Figma frame, so padding + border = 16px / 32.5px. */
.visbl-tour__tip.visbl-tour__tip--allie {
  width: 319px;
  padding: 15px 31.5px;
}

.visbl-tour__tip--allie .visbl-tour__title {
  font-size: 18px;
}

.visbl-tour__tip--allie .visbl-tour__close {
  top: 14px;
  right: 18px;
}

/* Mobile Allie (node 408:4088): question on the left, brand mark on the right. */
@media (max-width: 991px) {
  .visbl-tour__tip--allie .visbl-tour__allie {
    flex-direction: row-reverse;
  }
}

.visbl-tour__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visbl-tour__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.visbl-tour__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7cbd9;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.visbl-tour__dot.is-active {
  background: #002bc6;
  width: 16px;
  border-radius: 8px;
}

.visbl-tour__btns {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.visbl-tour__btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-transform: lowercase;
  line-height: 1.33;
  cursor: pointer;
  border-radius: 45px;
  border: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.visbl-tour__btn--text {
  background: #ffffff;
  color: #002bc6;
  padding: 13px 16px;
}

.visbl-tour__btn--text:hover { color: #0022a3; }

.visbl-tour__btn--primary {
  background: #002bc6;
  color: #f5f7fc;
  padding: 13px 24px;
}

.visbl-tour__btn--primary:hover { background: #0022a3; }

@media (max-width: 600px) {
  .visbl-tour__tip { padding: 16px; }
  .visbl-tour__title { font-size: 17px; }
  .visbl-tour__btn { font-size: 15px; }
  .visbl-tour__btn--primary { padding: 12px 20px; }
  .visbl-tour__btn--text { padding: 12px 12px; }
}

/* Lifted apply/message/save callout (mobile step 4). Floats above the bottom
   card as a lit white bar over the dimmed table (Figma 533-9422). */
.visbl-tour__callout {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 244px;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(24, 39, 75, 0.18);
  font-family: 'Wavehaus', 'Montserrat', Arial, Helvetica, sans-serif;
}

.visbl-tour__callout-apply {
  background: #002bc6;
  color: #f5f7fc;
  font-weight: 700;
  text-transform: lowercase;
  font-size: 16px;
  line-height: 1;
  padding: 13px 28px;
  border-radius: 45px;
}

.visbl-tour__callout-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #c0c0c0;
  border-radius: 8px;
  background: #ffffff;
  color: #002bc6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visbl-tour__callout-ico svg { width: 22px; height: 22px; display: block; }

/* Bottom-sheet card (mobile): compact so it sits low and leaves more air above
   the spotlight, which can be a low table row (e.g. the Fees step). */
@media (max-width: 991px) {
  .visbl-tour__tip.is-sheet { padding: 14px; }
  .visbl-tour__tip.is-sheet .visbl-tour__title { margin-bottom: 10px; }
  .visbl-tour__tip.is-sheet .visbl-tour__body { margin-bottom: 10px; line-height: 1.4; }
  .visbl-tour__tip.is-sheet .visbl-tour__dots { padding: 4px 0; }
  .visbl-tour__tip.is-sheet .visbl-tour__btn--primary { padding: 11px 20px; }
  .visbl-tour__tip.is-sheet .visbl-tour__btn--text { padding: 11px 12px; }
}
