.whatsapp-widget { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.whatsapp-widget-panel { width: 318px; overflow: hidden; border: 1px solid rgba(7, 48, 29, .12); border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(7,48,29,.24), 0 6px 18px rgba(37,211,102,.16), 0 0 0 1px rgba(255,255,255,.7); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.96); transform-origin: bottom right; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.whatsapp-widget-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.whatsapp-widget-header { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px 12px; color: #fff; background: #075e54; }
.whatsapp-widget-avatar { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: #25d366; }
.whatsapp-widget-avatar svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-widget-agent { min-width: 0; flex: 1; }
.whatsapp-widget-agent strong { display: block; font-size: 14px; line-height: 1.2; }
.whatsapp-widget-agent span { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: rgba(255,255,255,.82); font-size: 11px; }
.whatsapp-widget-agent i { width: 7px; height: 7px; border-radius: 50%; background: #45e388; box-shadow: 0 0 0 2px rgba(69,227,136,.15); }
.whatsapp-widget-close { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.whatsapp-widget-close:hover { background: rgba(255,255,255,.12); }
.whatsapp-widget-body { padding: 12px; background: #ece5dd; }
.whatsapp-widget-time { display: block; margin: 0 0 5px; color: #7a817d; font-size: 9px; text-align: center; }
.whatsapp-widget-body p { max-width: 260px; margin: 0 0 10px; border-radius: 3px 10px 10px 10px; background: #fff; box-shadow: 0 1px 2px rgba(7,48,29,.12); color: #26332d; font-size: 13px; line-height: 1.45; padding: 9px 10px; }
.whatsapp-widget-composer { display: flex; align-items: center; gap: 7px; min-height: 46px; padding: 5px 5px 5px 12px; border: 1px solid #d7ddd9; border-radius: 24px; background: #fff; box-shadow: 0 2px 8px rgba(7,48,29,.08); }
.whatsapp-widget-composer input { min-width: 0; flex: 1; height: 34px; border: 0; outline: 0; background: transparent; color: #26332d; font-size: 13px; }
.whatsapp-widget-composer input::placeholder { color: #8a9690; }
.whatsapp-widget-composer button { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: #25d366; color: #fff; cursor: pointer; }
.whatsapp-widget-composer button:hover { background: #20bd5a; }
.whatsapp-widget-composer button svg { width: 18px; height: 18px; fill: currentColor; }
.whatsapp-widget-start { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border-radius: 22px; background: #25d366; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.whatsapp-widget-start:hover { color: #fff; background: #20bd5a; }
.whatsapp-widget-start svg { width: 20px; height: 20px; fill: currentColor; }
.whatsapp-widget-launcher { position: relative; display: grid; width: 58px; height: 58px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #25d366; box-shadow: 0 8px 24px rgba(7,48,29,.28); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-widget-launcher:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(7,48,29,.34); }
.whatsapp-widget-launcher svg { width: 34px; height: 34px; fill: #fff; }
.whatsapp-widget-alert { position: absolute; top: -5px; right: -4px; display: grid; width: 21px; height: 21px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #e53935; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; animation: whatsapp-alert-pulse 1.8s ease-out infinite; }
.whatsapp-widget-alert[hidden] { display: none; }
@keyframes whatsapp-alert-pulse { 0%, 75%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.42); } 35% { box-shadow: 0 0 0 7px rgba(229,57,53,0); } }
.whatsapp-widget-panel{max-height:calc(100dvh - 110px);overflow-y:auto}
.whatsapp-widget [type="button"]:focus-visible,.whatsapp-widget [type="submit"]:focus-visible{outline:3px solid #ffb349;outline-offset:3px}
.whatsapp-widget-composer:focus-within{border-color:#25a96a;box-shadow:0 0 0 2px #25a96a25}
body:has(dialog[open]) .whatsapp-widget{visibility:hidden}
body:has(.exp-collection:not([hidden])) .whatsapp-widget{bottom:calc(160px + env(safe-area-inset-bottom))}
@media(max-width:575px){.whatsapp-widget{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}.whatsapp-widget-panel{width:min(318px,calc(100vw - 24px))}.whatsapp-widget-launcher{width:54px;height:54px}.whatsapp-widget-composer input{font-size:16px}.whatsapp-widget-close{min-width:36px;min-height:36px}}
@media(max-height:450px){.whatsapp-widget{gap:6px}.whatsapp-widget-panel{max-height:calc(100dvh - 90px)}}
@media(prefers-reduced-motion:reduce){.whatsapp-widget *{transition:none!important;animation:none!important}}
/* The collapsed panel's empty footprint must not intercept page interactions. */
.whatsapp-widget{pointer-events:none}
.whatsapp-widget-launcher{pointer-events:auto}
.whatsapp-widget-panel{pointer-events:none}
.whatsapp-widget-panel.is-open{pointer-events:auto}
