/* The contact number remains available when WhatsApp cannot open, even without JS. */
.site-footer {
  padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
}

.whatsapp-contact {
  position: fixed;
  z-index: 40;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(280px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.whatsapp-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px;
  border-radius: 10px;
  background: #075e54;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
}

.whatsapp-contact-link:hover {
  background: #064c44;
}

.whatsapp-contact-link svg {
  flex: 0 0 24px;
}

.whatsapp-contact p {
  margin: 8px 2px 0;
  font-size: .75rem;
  line-height: 1.4;
}

.whatsapp-contact strong {
  font-size: .875rem;
  user-select: text;
}

/* Keep the menu and its close control free in short mobile viewports. */
.nav-open .whatsapp-contact {
  display: none;
}

@media print {
  .site-footer { padding-bottom: 24px; }
  .whatsapp-contact { display: none; }
}
