/* Shared WhatsApp launcher and progressively enhanced chat card. */
.whatsapp-widget { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 70; }
.whatsapp-launcher { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 28px #08121977; transition: background-color .2s; }
.whatsapp-launcher:hover { background: var(--accent-deep); }
.whatsapp-launcher > svg { width: 30px; height: 30px; }
.whatsapp-launcher::before { content: ''; position: absolute; inset: -5px; border: 1px solid #ec681055; border-radius: inherit; animation: whatsapp-pulse 3s ease-out infinite; pointer-events: none; }
@keyframes whatsapp-pulse { 0%, 100% { opacity: .1; transform: scale(1); } 35% { opacity: .6; } 75% { opacity: 0; transform: scale(1.2); } }
.whatsapp-card { position: absolute; right: 0; bottom: calc(100% + 16px); width: min(340px, calc(100vw - 28px)); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; border-radius: 18px; background: var(--surface); border: 1px solid #ffffff26; box-shadow: 0 20px 70px #08121999; opacity: 1; transform: none; transition: opacity .18s, transform .18s, display .18s allow-discrete; }
.whatsapp-card[hidden] { display: none; opacity: 0; transform: translateY(8px); }
@starting-style { .whatsapp-card:not([hidden]) { opacity: 0; transform: translateY(8px); } }
.whatsapp-head { display: flex; align-items: center; gap: 12px; background: var(--accent-deep); padding: 18px 14px; }
.whatsapp-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.whatsapp-mark svg { width: 30px; height: 28px; --mark-core: var(--surface); }
.whatsapp-head h2 { font: 700 16px/1.5 var(--font-body); color: #fff; }
.whatsapp-head p { font-size: 11px; color: #fff; }
.whatsapp-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; margin-left: auto; background: #08121922; }
.whatsapp-close svg { width: 18px; height: 18px; }
.whatsapp-body { padding: 20px; }
.whatsapp-bubble { padding: 16px; border: 1px solid #ffffff20; border-radius: 0 14px 14px 14px; background: var(--tile); color: #e5ebef; font-size: 14px; line-height: 1.75; }
.whatsapp-start { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; margin-top: 20px; border-radius: 28px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.whatsapp-start:hover { background: var(--accent-deep); }
.whatsapp-start svg { width: 16px; height: 16px; }
.whatsapp-quote { display: block; padding-block: 15px 2px; text-align: center; color: #c4cdd4; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; line-height: 1.8; }
@media (max-width: 640px) { .whatsapp-widget { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); } .whatsapp-launcher { width: 54px; height: 54px; } }
/* Phones: hidden while the contact page's inline quote form is in view (set by whatsapp.js). */
@media (max-width: 640px) {
  .whatsapp-widget, .inner-page .side-tab { transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  .is-quote-form-visible .whatsapp-widget, .is-quote-form-visible .side-tab { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-launcher, .whatsapp-card, .whatsapp-launcher::before { animation: none; transition: none; } }

