/* ==========================================================================
   Way Home - Global Widgets (WhatsApp Floating Button & LGPD Cookie Banner)
   ========================================================================== */

/* --- WhatsApp Floating Button --- */
.wh-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease;
  outline: none;
}

.wh-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: #22bf5b;
}

.wh-whatsapp-btn:active {
  transform: scale(0.96);
}

.wh-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  transition: transform 0.2s ease;
}

.wh-whatsapp-tooltip {
  position: absolute;
  left: 68px;
  right: auto;
  background: #1e1e1e;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wh-whatsapp-tooltip::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent #1e1e1e transparent transparent;
}

.wh-whatsapp-btn:hover .wh-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulsing aura */
.wh-whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  opacity: 0.6;
  z-index: -1;
  animation: wh-pulse-anim 2.5s infinite;
}

@keyframes wh-pulse-anim {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* --- LGPD Cookie Banner --- */
.wh-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(184, 93, 56, 0.18);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  padding: 18px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2c2523;
  display: none;
  animation: wh-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wh-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wh-cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wh-cookie-text {
  flex: 1 1 500px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #524742;
}

.wh-cookie-text strong {
  color: #1e1815;
  font-size: 14px;
}

.wh-cookie-text a {
  color: #b85d38;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.wh-cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wh-cookie-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.wh-cookie-btn-accept {
  background: #b85d38;
  color: #ffffff;
}

.wh-cookie-btn-accept:hover {
  background: #a04f2d;
  box-shadow: 0 2px 8px rgba(184, 93, 56, 0.3);
}

.wh-cookie-btn-essential {
  background: #f4ede6;
  color: #524742;
  border-color: #dfd3c7;
}

.wh-cookie-btn-essential:hover {
  background: #eae0d6;
  color: #2c2523;
}

@media (max-width: 640px) {
  .wh-whatsapp-btn {
    bottom: 18px;
    left: 18px;
    right: auto;
    width: 52px;
    height: 52px;
  }
  .wh-whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
  .wh-whatsapp-tooltip {
    display: none;
  }
  .wh-cookie-banner {
    padding: 16px;
  }
  .wh-cookie-actions {
    width: 100%;
  }
  .wh-cookie-btn {
    flex: 1;
    text-align: center;
    padding: 11px 12px;
  }
}
