/* Generator V2 — tip-only coachmarks (no page gray-out, never cover style menu) */

/*
  iPad stacking contract:
  1) Tip layer sits ABOVE the composer so the coachmark is visible (z ~3500).
  2) Tip root is pointer-events:none — only the bubble captures clicks.
     Style/prompt taps pass through to the real controls underneath.
  3) When .tg-select-menu.open: tip hides + composer/menu jump above tip (z ~6000)
     so the bottom-sheet style list is fully usable.
*/

/* Tip-only — NEVER a full-viewport fixed layer (that breaks iOS keyboard lift). */
.gv2-tour {
  position: static;
  pointer-events: none;
  z-index: auto;
}

.gv2-tour.is-active {
  pointer-events: none;
}

/* Hide tip while style dropdown / bottom sheet is open, or keyboard is up */
.gv2-tour.is-menu-open .gv2-tour__bubble,
body.tg-kb-open .gv2-tour__bubble {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

/* Outline the real control — no separate overlay ring */
.gv2-tour-target {
  outline: 2px solid rgba(125, 255, 176, 0.95);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Prompt box highlight — make the type-here target obvious on mobile */
.gv2-tour-target.tg-prompt-wrap,
.gv2-tour-target.tg-prompt-wrapper {
  outline: 2px solid rgba(125, 255, 176, 0.95);
  outline-offset: 4px;
  box-shadow: 0 0 0 3px rgba(125, 255, 176, 0.22);
}

.gv2-tour-target .tg-select-trigger,
.gv2-tour-target .tg-mini-select-trigger {
  box-shadow: 0 0 0 2px rgba(125, 255, 176, 0.55);
}

/* iPad keyboard: lift composer with bottom (transform is ignored on this device) */
@media (max-width: 1024px) {
  html body #tg-composer.tg-composer {
    transform: none !important;
    bottom: calc(var(--space-4, 1rem) + var(--kb-offset, 0px)) !important;
    transition: bottom 0.2s ease-out !important;
  }
}

@media (max-width: 768px) {
  html body #tg-composer.tg-composer {
    bottom: var(--kb-offset, 0px) !important;
  }
}
body.gv2-tour-menu-open .tg-composer {
  z-index: 6000 !important;
}

body.gv2-tour-menu-open .tg-custom-select,
body.gv2-tour-menu-open #tg-style-container-side,
body.gv2-tour-menu-open #tg-style-container-mobile {
  position: relative;
  z-index: 6100;
}

body.gv2-tour-menu-open .tg-select-menu,
body.gv2-tour-menu-open .tg-select-menu.open,
body.gv2-tour-menu-open .tg-composer .tg-select-menu,
body.gv2-tour-menu-open .tg-composer .tg-select-menu.open {
  z-index: 6200 !important;
}

/* Desktop sidebar: keep style dropdown above tip while open */
body.gv2-tour-menu-open .tg-sidebar {
  position: relative;
  z-index: 6000;
}

.gv2-tour__bubble {
  position: fixed;
  z-index: 3500;
  max-width: 280px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #101820;
  color: #f3f7f4;
  border: 1px solid rgba(120, 255, 180, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: auto;
}

.gv2-tour__step {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(125, 255, 176, 0.85);
}

.gv2-tour__text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.35;
}

.gv2-tour__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.gv2-tour__skip,
.gv2-tour__next,
.gv2-signup-nudge__primary,
.gv2-signup-nudge__secondary,
.gv2-signup-nudge__close {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
}

.gv2-tour__skip,
.gv2-signup-nudge__secondary {
  background: transparent;
  color: rgba(243, 247, 244, 0.75);
  padding: 8px 12px;
}

.gv2-tour__next,
.gv2-signup-nudge__primary {
  background: #7dffb0;
  color: #0b1510;
  font-weight: 700;
  padding: 8px 14px;
}

.gv2-signup-nudge {
  position: fixed;
  inset: 0;
  z-index: 130000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 10, 14, 0.55);
}

.gv2-signup-nudge__card {
  position: relative;
  width: min(420px, 100%);
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: #101820;
  color: #f3f7f4;
  border: 1px solid rgba(120, 255, 180, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-family: Georgia, "Times New Roman", serif;
}

.gv2-signup-nudge__card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.gv2-signup-nudge__card p {
  margin: 0 0 16px;
  line-height: 1.4;
  color: rgba(243, 247, 244, 0.88);
}

.gv2-signup-nudge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gv2-signup-nudge__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  color: rgba(243, 247, 244, 0.8);
  font-size: 22px;
  line-height: 1;
}

.gv2-wait-status {
  margin: 0;
  max-width: 280px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(186, 210, 198, 0.92);
  text-shadow: none;
  animation: none;
  text-align: center;
}
