/* Sticky WhatsApp — Tvflash theme */
.tvf-sticky-wa {
  --tvf-sticky-z: 480;
  pointer-events: none;
}

.tvf-sticky-wa a {
  pointer-events: auto;
  text-decoration: none;
}

.tvf-sticky-wa__fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  z-index: var(--tvf-sticky-z);
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--wa, #25d366), var(--wa-dark, #1aab57));
  color: #fff;
  font-size: 1.65rem;
  border: 2px solid rgba(240, 180, 41, 0.45);
  box-shadow:
    0 4px 18px rgba(37, 211, 102, 0.45),
    0 0 0 4px rgba(240, 180, 41, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tvf-sticky-wa__fab:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.55),
    0 0 0 6px rgba(240, 180, 41, 0.18);
}

.tvf-sticky-wa__fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(240, 180, 41, 0.35);
  animation: tvf-wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes tvf-wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.tvf-sticky-wa__bar {
  display: none;
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  z-index: calc(var(--tvf-sticky-z) + 1);
  min-height: 3.15rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #000;
  background: linear-gradient(135deg, var(--gold, #f0b429), var(--gold-light, #ffd166));
  box-shadow: 0 6px 28px rgba(240, 180, 41, 0.35), 0 2px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tvf-sticky-wa__bar i {
  font-size: 1.25rem;
}

.tvf-sticky-wa__bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(240, 180, 41, 0.45), 0 4px 14px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .tvf-sticky-wa__bar {
    display: flex;
  }

  body.tvf-has-sticky-wa {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .tvf-sticky-wa__fab {
    bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .tvf-sticky-wa__fab {
    bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.75rem;
  }
}

.tvf-sticky-wa.is-hidden {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tvf-sticky-wa.is-hidden a {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .tvf-sticky-wa__fab::after {
    animation: none;
  }
}
