/* =========================================================
   ProsperSites standard floating components — Visimed theme
   (cookie banner, back-to-top, whatsapp FAB)
   ========================================================= */

/* WhatsApp Floating Button */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow:
    0 10px 30px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(15, 22, 32, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsapp-pulse 2.4s ease-out infinite;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(37, 211, 102, 0.55),
    0 4px 12px rgba(15, 22, 32, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.whatsapp-fab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  70%  { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}
@media (max-width: 540px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
  .whatsapp-fab svg { width: 22px; height: 22px; }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
[data-theme="dark"] .cookie-banner {
  background: rgba(15, 22, 31, 0.92);
  color: var(--ink-2);
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cookie-banner__icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}
.cookie-banner__title {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.cookie-banner__desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.cookie-banner__desc a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-banner__btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cookie-banner__btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.cookie-banner__btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cookie-banner__btn--primary {
  background: var(--primary);
  color: #fff;
}
.cookie-banner__btn--primary:hover {
  background: var(--primary-deep);
}
@media (max-width: 540px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 16px;
  }
  .cookie-banner__actions { flex-direction: column-reverse; }
  .cookie-banner__btn { width: 100%; padding: 11px; }
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 79;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .back-to-top {
  background: rgba(15, 22, 31, 0.85);
  color: #fff;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .back-to-top {
    right: 16px;
    bottom: 76px;
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { animation: none; }
}

/* ProsperSites footer credit */
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-credit__heart {
  color: #E8743C;
  display: inline-block;
  animation: heart-beat 1.6s ease-in-out infinite;
}
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-credit__heart { animation: none; }
}
