/* =========================================================
   AÇÕES FLUTUANTES - FILIPE ASSIS | DEV
========================================================= */

.floating-actions {
  position: fixed;
  inset: 0;

  z-index: 1200;

  pointer-events: none;
}


/* =========================================================
   PROTEÇÃO CONTRA ESTILOS GLOBAIS
========================================================= */

.floating-actions,
.floating-actions * {
  box-sizing: border-box;
}


/* =========================================================
   SUBIR AO TOPO
========================================================= */

.floating-actions__top {
  position: absolute;

  left: 24px;
  bottom: 24px;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;

  background: rgba(12, 12, 12, 0.82);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: #ffffff;

  cursor: pointer;
  pointer-events: auto;

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(12px)
    scale(0.94);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.floating-actions__top.is-visible {
  opacity: 1;
  visibility: visible;

  transform:
    translateY(0)
    scale(1);
}

.floating-actions__top svg {
  width: 19px;
  height: 19px;

  display: block;
}

.floating-actions__top:hover {
  background: rgba(255, 255, 255, 0.08);

  border-color: rgba(255, 255, 255, 0.22);

  transform:
    translateY(-2px)
    scale(1.03);
}


/* =========================================================
   WHATSAPP - WRAPPER
========================================================= */

.floating-actions__whatsapp-wrapper {
  position: absolute;

  right: 24px;
  bottom: 24px;

  width: 66px;
  height: 66px;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: auto;

  z-index: 2;
}


/* =========================================================
   WHATSAPP - PULSO
========================================================= */

.floating-actions__whatsapp-pulse {
  position: absolute;

  width: 66px;
  height: 66px;

  border-radius: 50%;

  background: rgba(37, 211, 102, 0.5);

  pointer-events: none;

  z-index: 0;

  animation:
    whatsapp-pulse
    1.9s
    ease-out
    infinite;
}


/* =========================================================
   WHATSAPP - BOTÃO
========================================================= */

.floating-actions__whatsapp {
  position: relative;

  width: 66px;
  height: 66px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: #25d366;

  color: #ffffff;

  text-decoration: none;

  cursor: pointer;
  pointer-events: auto;

  z-index: 2;

  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.floating-actions__whatsapp:hover {
  transform:
    translateY(-2px)
    scale(1.04);

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08);

  filter: brightness(1.04);
}


/* =========================================================
   ÍCONE WHATSAPP
========================================================= */

.floating-actions__whatsapp-icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;

  pointer-events: none;
}

.floating-actions__whatsapp-icon svg {
  width: 36px;
  height: 36px;

  display: block;
}


/* =========================================================
   ANIMAÇÃO - PULSO
========================================================= */

@keyframes whatsapp-pulse {

  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }

  70% {
    transform: scale(1.45);
    opacity: 0;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }

}


/* =========================================================
   EXIT INTENT
========================================================= */

.exit-intent {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  font-family: "Inter", sans-serif;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;

  z-index: 50;

  isolation: isolate;
}


/* =========================================================
   EXIT INTENT - VISÍVEL
========================================================= */

.exit-intent.is-visible {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}


/* =========================================================
   EXIT INTENT - OVERLAY
========================================================= */

.exit-intent__overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.78);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;

  cursor: pointer;

  transition:
    opacity 0.35s ease;

  z-index: 0;
}

.exit-intent.is-visible .exit-intent__overlay {
  opacity: 1;
}


/* =========================================================
   EXIT INTENT - MODAL
========================================================= */

.exit-intent__modal {
  position: relative;

  width: min(560px, 100%);
  height: auto;

  display: block;

  padding: 38px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(22, 22, 22, 0.99),
      rgba(8, 8, 8, 0.99)
    );

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  color: #ffffff;

  opacity: 0;

  overflow: hidden;

  transform:
    translateY(20px)
    scale(0.96);

  transition:
    opacity 0.38s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: 2;
}

.exit-intent.is-visible .exit-intent__modal {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}


/* =========================================================
   EXIT INTENT - DETALHE SUPERIOR
========================================================= */

.exit-intent__modal::before {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  width: 180px;
  height: 1px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.55),
      transparent
    );

  pointer-events: none;

  z-index: 1;
}


/* =========================================================
   EXIT INTENT - GLOW
========================================================= */

.exit-intent__modal::after {
  content: "";

  position: absolute;

  top: -120px;
  right: -100px;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.035);

  filter: blur(20px);

  pointer-events: none;

  z-index: 0;
}


/* =========================================================
   EXIT INTENT - CONTEÚDO
========================================================= */

.exit-intent__content {
  position: relative;

  width: 100%;
  height: auto;

  display: block !important;

  margin: 0;
  padding: 0;

  opacity: 1 !important;
  visibility: visible !important;

  color: #ffffff;

  z-index: 3;
}


/* Garante que os elementos internos não sejam ocultados
   por regras globais do site */

.exit-intent__content > * {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   EXIT INTENT - FECHAR
========================================================= */

.exit-intent__close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);

  color: rgba(255, 255, 255, 0.7);

  cursor: pointer;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;

  z-index: 10;
}

.exit-intent__close svg {
  width: 17px;
  height: 17px;

  display: block;
}

.exit-intent__close:hover {
  color: #ffffff;

  background: rgba(255, 255, 255, 0.08);

  border-color: rgba(255, 255, 255, 0.18);

  transform: rotate(4deg);
}


/* =========================================================
   EXIT INTENT - BADGE
========================================================= */

.exit-intent__badge {
  display: inline-flex !important;
  align-items: center;

  width: auto;
  min-height: 28px;

  padding: 0 11px;

  margin: 0 0 20px;

  border: 1px solid rgba(255, 86, 86, 0.2);
  border-radius: 999px;

  background: rgba(255, 72, 72, 0.08);

  color: rgba(255, 137, 137, 0.95);

  font-size: 11px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   EXIT INTENT - EYEBROW
========================================================= */

.exit-intent__eyebrow {
  display: block;

  margin: 0 0 8px;

  color: rgba(255, 255, 255, 0.5);

  font-size: 13px;
  font-weight: 500;

  line-height: 1.4;
}


/* =========================================================
   EXIT INTENT - TÍTULO
========================================================= */

.exit-intent__title {
  display: block;

  max-width: 460px;

  margin: 0;
  padding: 0;

  color: #ffffff;

  font-size: clamp(
    28px,
    3vw,
    38px
  );

  font-weight: 600;

  line-height: 1.08;

  letter-spacing: -0.035em;
}


/* =========================================================
   EXIT INTENT - DESCRIÇÃO
========================================================= */

.exit-intent__description {
  display: block;

  max-width: 470px;

  margin: 18px 0 0;

  color: rgba(255, 255, 255, 0.58);

  font-size: 14px;
  font-weight: 400;

  line-height: 1.7;
}


/* =========================================================
   EXIT INTENT - OFERTA
========================================================= */

.exit-intent__offer {
  position: relative;

  width: 100%;

  display: block;

  margin-top: 27px;

  padding: 22px;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.035);
}


/* =========================================================
   EXIT INTENT - LABEL
========================================================= */

.exit-intent__offer-label {
  display: block;

  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.52);

  font-size: 12px;
  font-weight: 500;

  line-height: 1.4;
}


/* =========================================================
   EXIT INTENT - PREÇO
========================================================= */

.exit-intent__price {
  display: flex;
  align-items: flex-end;

  gap: 8px;

  width: 100%;
}

.exit-intent__price-prefix {
  display: block;

  padding-bottom: 5px;

  color: rgba(255, 255, 255, 0.46);

  font-size: 12px;
  font-weight: 400;
}

.exit-intent__price strong {
  display: block;

  color: #ffffff;

  font-size: 38px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: -0.04em;
}


/* =========================================================
   EXIT INTENT - BENEFÍCIOS
========================================================= */

.exit-intent__benefits {
  display: flex;
  flex-wrap: wrap;

  gap: 8px 18px;

  width: 100%;

  margin-top: 17px;
}

.exit-intent__benefits span {
  position: relative;

  display: block;

  padding-left: 14px;

  color: rgba(255, 255, 255, 0.56);

  font-size: 12px;
  font-weight: 400;

  line-height: 1.5;
}

.exit-intent__benefits span::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 0;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #25d366;

  transform: translateY(-50%);
}


/* =========================================================
   EXIT INTENT - AÇÕES
========================================================= */

.exit-intent__actions {
  display: flex;
  align-items: center;

  gap: 14px;

  width: 100%;

  margin-top: 24px;
}


/* =========================================================
   EXIT INTENT - WHATSAPP
========================================================= */

.exit-intent__whatsapp {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 0 20px;

  border: none;
  border-radius: 999px;

  background: #25d366;

  color: #ffffff;

  font-size: 13px;
  font-weight: 600;

  line-height: 1;

  text-decoration: none;

  cursor: pointer;

  box-shadow:
    0 10px 26px
    rgba(37, 211, 102, 0.18);

  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.exit-intent__whatsapp:hover {
  transform: translateY(-2px);

  filter: brightness(1.04);

  box-shadow:
    0 14px 32px
    rgba(37, 211, 102, 0.24);
}


/* =========================================================
   EXIT INTENT - ÍCONE WHATSAPP
========================================================= */

.exit-intent__whatsapp-icon {
  width: 19px;
  height: 19px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.exit-intent__whatsapp-icon svg {
  width: 19px;
  height: 19px;

  display: block;
}


/* =========================================================
   EXIT INTENT - CONTINUAR
========================================================= */

.exit-intent__continue {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 8px;

  border: none;

  background: transparent;

  color: rgba(255, 255, 255, 0.42);

  font-size: 12px;
  font-weight: 500;

  cursor: pointer;

  transition:
    color 0.25s ease;
}

.exit-intent__continue:hover {
  color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .floating-actions__top {
    left: 16px;
    bottom: 16px;

    width: 44px;
    height: 44px;
  }


  .floating-actions__whatsapp-wrapper {
    right: 16px;
    bottom: 16px;

    width: 58px;
    height: 58px;
  }


  .floating-actions__whatsapp-pulse,
  .floating-actions__whatsapp {
    width: 58px;
    height: 58px;
  }


  .floating-actions__whatsapp-icon,
  .floating-actions__whatsapp-icon svg {
    width: 32px;
    height: 32px;
  }


  .exit-intent {
    padding: 16px;
  }


  .exit-intent__modal {
    padding:
      32px 22px 24px;

    border-radius: 20px;
  }


  .exit-intent__badge {
    margin-bottom: 16px;
  }


  .exit-intent__title {
    font-size: 28px;
  }


  .exit-intent__description {
    font-size: 13px;
  }


  .exit-intent__offer {
    padding: 18px;

    margin-top: 22px;
  }


  .exit-intent__price {
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;
  }


  .exit-intent__price-prefix {
    padding-bottom: 0;
  }


  .exit-intent__price strong {
    font-size: 34px;
  }


  .exit-intent__benefits {
    flex-direction: column;

    gap: 9px;
  }


  .exit-intent__actions {
    flex-direction: column;
    align-items: stretch;

    gap: 8px;
  }


  .exit-intent__whatsapp,
  .exit-intent__continue {
    width: 100%;
  }

}


/* =========================================================
   MOBILE PEQUENO
========================================================= */

@media (max-width: 480px) {

  .exit-intent__modal {
    max-height:
      calc(100vh - 24px);

    overflow-y: auto;
  }


  .exit-intent__title {
    font-size: 25px;
  }


  .exit-intent__description {
    line-height: 1.6;
  }

}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .floating-actions__top,
  .floating-actions__whatsapp,
  .exit-intent,
  .exit-intent__overlay,
  .exit-intent__modal,
  .exit-intent__whatsapp {
    transition: none;
  }


  .floating-actions__whatsapp-pulse {
    animation: none;
  }

}