/* ==============================================================
   Correções v7 — interação desktop/mobile sem camada bloqueadora
   ============================================================== */

/* Evita seleção acidental do texto do hero durante o arraste da RV.
   Não altera clique dos botões nem o scroll da página. */
.hero.hero-orbita-editorial,
.hero.hero-orbita-editorial .hero-title-block,
.hero.hero-orbita-editorial .hero-title-block *,
.hero.hero-orbita-editorial .hero-rv-background,
.hero.hero-orbita-editorial #heroRvFrame {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

body.hero-rv-dragging,
body.hero-rv-dragging * {
  -webkit-user-select: none !important;
  user-select: none !important;
  cursor: grabbing !important;
}

@media (min-width: 992px) {
  /* O iframe não captura wheel/scroll no desktop. O movimento por mouse é feito pela ponte JS do hero. */
  body .hero.hero-orbita-editorial .hero-rv-background,
  body .hero.hero-orbita-editorial .hero-rv-background iframe,
  body .hero.hero-orbita-editorial #heroRvFrame,
  body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-background,
  body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-background iframe,
  body.hero-rv-camera-active .hero.hero-orbita-editorial #heroRvFrame {
    pointer-events: none !important;
    touch-action: auto !important;
  }

  .hero.hero-orbita-editorial {
    cursor: grab !important;
  }

  body.hero-rv-dragging .hero.hero-orbita-editorial {
    cursor: grabbing !important;
  }
}

/* Ao ativar a câmera, não deixa nenhuma camada bloquear os botões do hero. */
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-editorial-content,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-title-block,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-niche-tags,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-niche-tags *,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-actions,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-actions *,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-cta-wrap,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-cta-wrap *,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-activate-btn,
body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-activate-btn * {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-activate-btn.is-hidden {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Mantém somente textos decorativos sem capturar clique; botões continuam clicáveis. */
.hero.hero-orbita-editorial .hero-title-block h1,
.hero.hero-orbita-editorial .hero-title-block h1 *,
.hero.hero-orbita-editorial .hero-editorial-description,
.hero.hero-orbita-editorial .hero-editorial-headline,
.hero.hero-orbita-editorial .hero-rv-demo,
.hero.hero-orbita-editorial .hero-rv-demo * {
  pointer-events: none !important;
}

.hero.hero-orbita-editorial .hero-niche-tags,
.hero.hero-orbita-editorial .hero-niche-tags *,
.hero.hero-orbita-editorial .hero-actions,
.hero.hero-orbita-editorial .hero-actions *,
.hero.hero-orbita-editorial .hero-rv-activate-btn,
.hero.hero-orbita-editorial .hero-rv-activate-btn *,
.header,
.header *,
.scroll-top,
.whatsapp-float {
  pointer-events: auto !important;
}

@media (max-width: 991px) {
  /* No mobile, o iframe nunca captura toque; rolagem vertical fica livre. */
  body .hero.hero-orbita-editorial .hero-rv-background,
  body .hero.hero-orbita-editorial .hero-rv-background iframe,
  body .hero.hero-orbita-editorial #heroRvFrame,
  body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-background,
  body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-background iframe,
  body.hero-rv-camera-active .hero.hero-orbita-editorial #heroRvFrame {
    pointer-events: none !important;
    touch-action: pan-y !important;
  }

  /* Botão da câmera com largura ajustada ao texto, sem sobra lateral excessiva. */
  .hero.hero-orbita-editorial .hero-rv-activate-btn,
  body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-activate-btn {
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 56px) !important;
    padding: 7px 12px !important;
    gap: 8px !important;
    align-self: center !important;
  }

  .hero.hero-orbita-editorial .hero-rv-activate-btn__label {
    max-width: none !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .hero.hero-orbita-editorial .hero-rv-activate-btn__icon {
    flex: 0 0 25px !important;
    width: 25px !important;
    height: 25px !important;
  }
}

@media (max-width: 374px) {
  .hero.hero-orbita-editorial .hero-rv-activate-btn,
  body.hero-rv-camera-active .hero.hero-orbita-editorial .hero-rv-activate-btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 6px !important;
  }
}
