.floating-whatsapp{--page:#fff;--green:#25b96f;--button-size:92px;--ring-width:2px;position:fixed;right:max(26px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));z-index:50;font-family:var(--font);color:var(--ink)}
.tooth-chat{position:relative;isolation:isolate;display:block;width:var(--button-size);height:var(--button-size);padding:var(--ring-width);border:0;border-radius:50%;background:#e9e9f5;cursor:pointer;box-shadow:0 16px 45px -20px #7776b34d,0 2px 8px #6e72a012;-webkit-tap-highlight-color:transparent}
.orbit{position:absolute;inset:0;overflow:hidden;border-radius:inherit;z-index:-1}
.orbit::before{content:"";position:absolute;inset:-30%;background:conic-gradient(from 30deg,transparent 0deg,transparent 160deg,#d7c6ff 220deg,#b4b6ff 270deg,#82c5ff 310deg,#fff 330deg,transparent 355deg);transform:rotate(0deg)}
.avatar-surface{position:relative;display:grid;width:100%;height:100%;place-items:center;border-radius:50%;background:radial-gradient(circle at 32% 23%,#fdfcff,#eeedf8 55%,#e5e4f2);box-shadow:inset 0 1px 3px #ffffff, inset 0 -8px 18px #bcbad31a;overflow:hidden}
.tooth-sculpture{width:112px;height:126px;filter:drop-shadow(0 8px 5px #9296b54a);transform:rotate(-7deg)}
.whatsapp-badge{position:absolute;right:0;bottom:2px;width:43px;height:43px;display:grid;place-items:center;border:4px solid var(--page);border-radius:50%;background:var(--green);color:white;box-shadow:0 3px 10px #17945522}
.whatsapp-badge svg{width:28px;height:28px}.button-name{font-size:14px;letter-spacing:.02em;margin:25px 0 0;color:#565b71}
.tooth-chat:focus-visible{outline:3px solid #9d9fe8;outline-offset:8px}
.chat-note{position:absolute;bottom:calc(100% + 24px);left:50%;transform:translateX(-50%);width:260px;padding:20px;border:1px solid #e9e9f3;border-radius:18px;background:var(--page);box-shadow:0 12px 35px #4e537310;text-align:left;font-size:14px;line-height:1.65}
.chat-note[hidden]{display:none}.chat-note strong{font-weight:500}.chat-note p{font-size:12px;color:#797e92;margin:8px 0 0}

.floating-whatsapp .tooth-sculpture{width:64px;height:72px;filter:drop-shadow(0 4px 3px #9296b54a)}
.floating-whatsapp .whatsapp-badge{width:30px;height:30px;border-width:3px;bottom:0;right:-1px}
.floating-whatsapp .whatsapp-badge svg{width:21px;height:21px}
.floating-whatsapp .chat-note{left:auto;right:0;transform:none;bottom:calc(100% + 16px);width:min(280px,calc(100vw - 32px));background:#fff}
@media(prefers-reduced-motion:no-preference){
 .chat-motion .orbit::before{animation:chat-border-orbit 4s linear infinite}
 .floating-whatsapp .tooth-chat{transition:box-shadow .25s,transform .25s}
 .floating-whatsapp .tooth-chat:hover{transform:translateY(-3px);box-shadow:0 20px 48px -18px #7776b35c,0 2px 8px #6e72a018}
 .floating-whatsapp .tooth-chat:active{transform:scale(.97)}
 @keyframes chat-border-orbit{to{transform:rotate(360deg)}}
}
@media(max-width:600px){
 .floating-whatsapp{--button-size:72px;right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}
 .floating-whatsapp .tooth-sculpture{width:50px;height:57px}
 .floating-whatsapp .whatsapp-badge{width:25px;height:25px;border-width:2px}
 .floating-whatsapp .whatsapp-badge svg{width:18px;height:18px}
 body[data-in-hand] .controls{padding-bottom:110px}
}
