/* Shared floating WhatsApp enquiry control (LPC + Stay Booked layouts) */
.whatsapp-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font: 700 0.95rem/1.2 "Lato", system-ui, -apple-system, Segoe UI, sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, bottom 0.2s ease;
}

.whatsapp-float:hover {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #0b5c2e;
  outline-offset: 3px;
}

.whatsapp-float__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #fff;
}

.whatsapp-float__label {
  white-space: nowrap;
}

/* Sit above the cookie banner when it is visible */
body:has(#cookie-consent:not([hidden])) .whatsapp-float {
  bottom: max(132px, calc(env(safe-area-inset-bottom, 0px) + 120px));
}

@media (max-width: 520px) {
  .whatsapp-float {
    padding: 11px 14px 11px 12px;
    font-size: 0.9rem;
    gap: 8px;
  }

  body:has(#cookie-consent:not([hidden])) .whatsapp-float {
    bottom: max(168px, calc(env(safe-area-inset-bottom, 0px) + 156px));
  }
}
