.studio-chat{position:fixed;z-index:90;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:grid;justify-items:end;gap:9px;color:#252721;font:400 14px/1.5 var(--font)}
.studio-chat [hidden]{display:none!important}
.studio-chat button,.studio-chat input{font:inherit;color:inherit}
.studio-chat button{cursor:pointer}
.chat-launch,.chat-form button{display:grid;place-items:center;background:#272d25;color:#faf9f4!important;border:0}
.chat-launch{width:48px;height:48px;border-radius:50%;box-shadow:0 3px 14px #25272122}
.chat-launch svg{width:24px;height:24px}
.chat-welcome,#studio-chat-panel{background:#faf9f5;border:1px solid #d6d8cd;box-shadow:0 5px 26px #24282217;border-radius:10px}
.chat-welcome{display:flex;align-items:center;max-width:calc(100vw - 36px)}
.chat-teaser,.chat-dismiss,.chat-close{background:transparent;border:0}
.chat-teaser{padding:12px 4px 12px 15px;text-align:left}
.chat-dismiss,.chat-close{min-width:34px;min-height:40px;font-size:20px!important}
.chat-dots{display:flex;align-items:center;gap:4px;min-height:21px}
.chat-dots i{width:5px;height:5px;border-radius:100%;background:#798470;animation:chat-pulse 1s ease-in-out infinite alternate}
.chat-dots i:nth-child(2){animation-delay:.17s}.chat-dots i:nth-child(3){animation-delay:.34s}
@keyframes chat-pulse{from{opacity:.35}to{opacity:1;transform:translateY(-2px)}}
#studio-chat-panel{width:min(350px,calc(100vw - 36px));max-height:calc(100dvh - 100px);display:flex;flex-direction:column;overflow:hidden}
#studio-chat-panel header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #dedfd6}
#studio-chat-panel header small,#studio-chat-panel header strong{display:block}
#studio-chat-panel header small{font-size:9px;letter-spacing:.14em;color:#64705f}
#studio-chat-panel header strong{font-size:18px;font-weight:500}
.chat-scroll{overflow:auto;overscroll-behavior:contain;max-height:38dvh;padding:15px}
.chat-log p{margin:0 16px 8px 0;padding:9px 12px;background:#edeee6;border-radius:6px;overflow-wrap:anywhere}
.chat-log .visitor{background:#343c31;color:white;margin:8px 0 8px 22px}
.chat-topics{display:flex;flex-wrap:wrap;gap:5px}
.chat-topics button{background:transparent;border:1px solid #c5c9bd;border-radius:4px;padding:6px 8px;font-size:12px}
.chat-form{display:flex;gap:8px;margin:0 15px;border-top:1px solid #d6d8cd;padding-top:12px}
.chat-form input{flex:1;min-width:0;border:0;background:transparent;font-size:16px}
.chat-form button{width:38px;height:38px;border-radius:5px}
.chat-email{margin:9px 16px 14px;align-self:flex-start;font-size:12px;text-decoration:underline;text-underline-offset:3px}
@media(prefers-reduced-motion:reduce){.chat-dots i{animation:none}}
