/* O botão acompanha a marca; o atendimento continua no widget oficial. */
body.av-chat-enabled { --av-chat-bottom:24px; --av-chat-right:24px; }
.av-chat { font:14px/1.6 'DM Sans',sans-serif; color:#243252; }
.av-chat[hidden],.av-chat-notice[hidden] { display:none!important; }
.av-chat-launcher,body.av-chat-enabled #__talkjs_launcher {
  display:block!important;
  position:fixed!important;
  right:var(--av-chat-right)!important;
  bottom:var(--av-chat-bottom)!important;
  width:60px!important;
  height:60px!important;
  box-sizing:border-box!important;
  border:1px solid #d0ad68!important;
  border-radius:50%!important;
  background-color:#303f69!important;
  box-shadow:0 7px 24px #17213830!important;
  z-index:950!important;
  cursor:pointer;
  transition:background-color .2s,box-shadow .2s;
}
.av-chat-launcher,body.av-chat-enabled #__talkjs_launcher.closed {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23e4c78d' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8 8 0 0 1-8 8H4l-1 2v-10a8 8 0 1 1 17 0Z'/%3E%3Cpath d='M7 9h9M7 13h6'/%3E%3C/svg%3E")!important;
  background-position:center!important;
  background-size:28px 28px!important;
  background-repeat:no-repeat!important;
}
.av-chat-launcher:hover,body.av-chat-enabled #__talkjs_launcher:hover { background-color:#243252!important; box-shadow:0 9px 28px #17213845!important; }
.av-chat-launcher:focus-visible,body.av-chat-enabled #__talkjs_launcher:focus-visible,.av-chat-notice a:focus-visible,.av-chat-dismiss:focus-visible { outline:3px solid #bd8731; outline-offset:4px; }
.av-chat-launcher[aria-busy="true"] { cursor:wait; opacity:.7; }
.av-chat-notice {
  position:fixed;
  right:var(--av-chat-right);
  bottom:calc(var(--av-chat-bottom) + 76px);
  width:min(330px,calc(100vw - 32px));
  box-sizing:border-box;
  padding:26px;
  background:#f7f5ef;
  border:1px solid #d0ad68;
  box-shadow:0 12px 38px #17213826;
  z-index:950;
}
.av-chat-notice strong { display:block; padding-right:24px; font-size:16px; }
.av-chat-notice p { font-size:13px; margin:16px 0; }
.av-chat-notice a { display:block; color:#303f69; text-decoration:underline; text-underline-offset:4px; margin-top:12px; font-size:13px; }
.av-chat-notice .av-chat-contact { display:flex; justify-content:space-between; font-weight:600; }
.av-chat-dismiss { position:absolute; top:12px; right:10px; width:36px; height:36px; padding:0; background:transparent; color:#303f69; border:0; font-size:25px; cursor:pointer; }
body.av-chat-enabled .__talkjs_popup {
  right:var(--av-chat-right)!important;
  bottom:calc(var(--av-chat-bottom) + 76px)!important;
  width:min(390px,calc(100vw - 32px))!important;
  height:min(600px,calc(100dvh - var(--av-chat-bottom) - 100px))!important;
  max-height:calc(100dvh - var(--av-chat-bottom) - 100px)!important;
  z-index:949!important;
}
@media(max-width:680px) {
  body.av-chat-enabled { --av-chat-bottom:calc(76px + env(safe-area-inset-bottom,0px)); --av-chat-right:16px; }
  .av-chat-launcher,body.av-chat-enabled #__talkjs_launcher { width:54px!important; height:54px!important; }
  body.av-chat-enabled .__talkjs_popup { top:auto!important; left:auto!important; }
}
@media print { .av-chat,body.av-chat-enabled [id^="__talkjs_popup_container_"] { display:none!important; } }
@media(prefers-reduced-motion:reduce) { .av-chat-launcher,body.av-chat-enabled #__talkjs_launcher { transition:none; } }

/* Keep the focused form clear while typing on a phone. */
@media(max-width:680px){body.av-chat-enabled:has(.alameda form :is(input,select,textarea):focus) .av-chat-launcher,body.av-chat-enabled:has(.alameda form :is(input,select,textarea):focus) #__talkjs_launcher.closed{visibility:hidden!important;pointer-events:none!important}}
