/* Shared launcher styling for the existing chat and WhatsApp panels. */
.chat-overlay .chat-fab,
.wa-widget .wa-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  gap: 0;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 14px rgb(8 36 54 / .16);
  cursor: pointer;
  transform: none;
  filter: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.chat-overlay .chat-fab {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  left: auto;
  bottom: calc(24px + env(safe-area-inset-bottom));
  inset-inline-start: auto;
  inset-inline-end: calc(24px + env(safe-area-inset-right));
  background: #082436;
}

.wa-widget {
  right: calc(24px + env(safe-area-inset-right));
  left: auto;
  bottom: calc(84px + env(safe-area-inset-bottom));
}

.wa-widget .wa-toggle { background: #25d366; }
.wa-widget .wa-icon { width: 24px; height: 24px; font-size: 24px; }
.chat-launcher-icon { display: block; flex: none; width: 24px; height: 24px; }

.chat-overlay .chat-fab::after,
.wa-widget .wa-toggle::after { content: none; }

.chat-overlay .chat-fab:hover,
.wa-widget .wa-toggle:hover {
  transform: translateY(-3px);
  filter: none;
  box-shadow: 0 7px 18px rgb(8 36 54 / .22);
}

.chat-toggle:focus-visible ~ .chat-fab,
.wa-widget .wa-toggle:focus-visible {
  outline: 2px solid #a7e9ce;
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .chat-overlay .chat-fab {
    right: calc(16px + env(safe-area-inset-right));
    inset-inline-end: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .wa-widget {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .wa-widget .wa-panel { right: 0; left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-overlay .chat-fab,
  .wa-widget .wa-toggle { transition: none; }
  .chat-overlay .chat-fab:hover,
  .wa-widget .wa-toggle:hover { transform: none; }
}
