/* Sticky WhatsApp + floating live chat launcher */
.floating-comms {
  position: fixed;
  bottom: clamp(72px, 12vh, 96px);
  inset-inline-start: clamp(12px, 3vw, 20px);
  z-index: 2400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.floating-comms__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  min-height: 52px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-comms__btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.floating-comms__btn:active {
  transform: translateY(0);
}

.floating-comms__whatsapp {
  background: #25d366;
  color: #fff;
}

.floating-comms__chat {
  background: linear-gradient(135deg, #1e5470, #34729c);
  color: #fff;
}

.floating-comms__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.floating-comms__label {
  display: none;
}

@media (min-width: 480px) {
  .floating-comms__label {
    display: inline;
  }

  .floating-comms__btn {
    padding: 0 18px;
  }
}

/* Avoid overlap with bottom nav & chat widget */
body.has-bottom-nav .floating-comms {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.card-chat-widget.is-open ~ .floating-comms,
.card-chat-widget.is-open + .floating-comms {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 768px) {
  .floating-comms {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}
