/* WhatsApp button (every page) and pop-up (front page), partials/whatsapp.php, ticket #38588.
   Same look as balaskasdelicatessen.com. z-index 1030: under the Bootstrap order pop-up (#newsletter-modal). */
.whatsapp-fab { position: fixed; right: clamp(16px, 2vw, 32px); bottom: calc(clamp(16px, 2vw, 32px) + env(safe-area-inset-bottom)); z-index: 1030; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 25, 50, 0.28); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s; }
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible { color: #fff; transform: scale(1.07); box-shadow: 0 10px 28px rgba(0, 25, 50, 0.36); }
.whatsapp-fab .wa-icon { width: 32px; height: 32px; }

.whatsapp-popup { position: fixed; right: clamp(16px, 2vw, 32px); bottom: calc(clamp(16px, 2vw, 32px) + 58px + 16px + env(safe-area-inset-bottom)); z-index: 1030; box-sizing: border-box; width: min(320px, calc(100vw - 32px)); padding: 22px 22px 20px; background: #fff; color: #040e1a; border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 25, 50, 0.3); text-align: left; opacity: 0; transform: translateY(10px); transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.whatsapp-popup[hidden] { display: none; }
.whatsapp-popup::after { content: ""; position: absolute; right: 21px; bottom: -7px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.whatsapp-popup.is-open { opacity: 1; transform: none; }
.whatsapp-popup__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: none; border: 0; border-radius: 50%; color: #040e1a; cursor: pointer; }
.whatsapp-popup__close:hover,
.whatsapp-popup__close:focus-visible { background: rgba(0, 25, 50, 0.08); }
.whatsapp-popup__close svg { width: 18px; height: 18px; }
.whatsapp-popup__text { margin: 0 24px 16px 0; font-size: 16px; line-height: 1.45; font-weight: 600; color: #040e1a; }
.whatsapp-popup__link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #25d366; color: #040e1a; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background 0.25s; }
.whatsapp-popup__link:hover,
.whatsapp-popup__link:focus-visible { background: #1ebe5b; color: #040e1a; text-decoration: none; }
.whatsapp-popup__link .wa-icon { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .whatsapp-fab { width: 52px; height: 52px; }
  .whatsapp-fab .wa-icon { width: 28px; height: 28px; }
  .whatsapp-popup { bottom: calc(clamp(16px, 2vw, 32px) + 52px + 14px + env(safe-area-inset-bottom)); }
  .whatsapp-popup::after { right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab,
  .whatsapp-popup { transition: none; }
}
