.whatsapp-widget { position: fixed; z-index: 12000; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); font-family: inherit; }
.whatsapp-trigger { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: #087b50; color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.32), 0 0 0 0 rgba(37,211,102,.3); cursor: pointer; font: inherit; font-size: .94rem; font-weight: 700; line-height: 1; transition: background-color .2s ease, box-shadow .25s ease, transform .2s ease; }
.whatsapp-trigger:hover, .whatsapp-trigger:focus-visible { transform: translateY(-2px); background: #096b48; box-shadow: 0 10px 32px rgba(0,0,0,.38), 0 0 0 5px rgba(37,211,102,.18); }
.whatsapp-trigger:focus-visible, .whatsapp-close:focus-visible, .whatsapp-submit:focus-visible { outline: 2px solid #8de9b4; outline-offset: 3px; }
.whatsapp-trigger svg { width: 25px; height: 25px; fill: currentColor; flex: 0 0 auto; }
.whatsapp-panel { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(360px, calc(100vw - 32px)); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: #202326; color: #f4f7f5; box-shadow: 0 18px 55px rgba(0,0,0,.48); transform-origin: bottom right; animation: whatsapp-panel-in .2s ease-out both; }
.whatsapp-panel[hidden] { display: none !important; }
@keyframes whatsapp-panel-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.whatsapp-panel-header { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 16px; background: #087b50; }
.whatsapp-brand-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.whatsapp-brand-icon svg { width: 24px; height: 24px; fill: currentColor; }
.whatsapp-heading { display: grid; gap: 3px; min-width: 0; }
.whatsapp-heading strong { font-size: 1rem; line-height: 1.2; }
.whatsapp-heading small { color: rgba(255,255,255,.86); font-size: .78rem; }
.whatsapp-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; margin-left: auto; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.whatsapp-close:hover { background: rgba(255,255,255,.12); }
.whatsapp-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.whatsapp-chat-body { padding: 18px; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0) 0 0/14px 14px, #191c1e; }
.whatsapp-greeting { width: fit-content; max-width: 88%; margin: 0 0 10px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px 16px 16px 16px; background: #2b3032; color: #f7f8f7; font-size: .94rem; line-height: 1.5; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.whatsapp-note { margin: 0 0 14px; color: #adb7b2; font-size: .76rem; line-height: 1.45; }
.whatsapp-form { display: grid; gap: 10px; }
.whatsapp-form textarea { display: block; width: 100%; min-height: 72px; resize: vertical; padding: 12px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: #252a2b; color: #fff; font: inherit; font-size: .9rem; line-height: 1.45; }
.whatsapp-form textarea::placeholder { color: #a8b0ad; }
.whatsapp-form textarea:focus { border-color: #45d49b; outline: 2px solid rgba(69,212,155,.18); }
.whatsapp-submit { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border: 1px solid #10a86d; border-radius: 11px; background: #087b50; color: #fff; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 700; transition: background-color .2s ease, border-color .2s ease; }
.whatsapp-submit:hover { border-color: #24c989; background: #096b48; }
.whatsapp-submit svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 520px) {
  .whatsapp-widget { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .whatsapp-trigger { min-height: 52px; gap: 8px; padding: 0 15px; font-size: .88rem; }
  .whatsapp-panel { width: min(360px, calc(100vw - 28px)); }
}