/* Widget isolado da tipografia e dos formulários da home. */
.contact-chat {
  --chat-purple: #5932c1;
  position: fixed;
  z-index: 1001;
  right: 24px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  width: 416px;
  height: 620px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 124px);
  max-height: calc(100dvh - 124px);
  overflow: hidden;
  border: 1px solid #e9e4f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 64px #27115f26, 0 2px 10px #27115f0d;
  color: #282332;
  font: 400 14px/1.65 'Plus Jakarta Sans', sans-serif;
  text-align: left;
  letter-spacing: normal;
  color-scheme: light;
  animation: contactChatAppear .2s ease-out;
}
.contact-chat *, .contact-chat *::before, .contact-chat *::after { box-sizing: border-box; }
.contact-chat [hidden], .contact-chat[hidden] { display: none !important; }
.contact-chat button, .contact-chat input { font: inherit; }
.contact-chat button { cursor: pointer; }
.contact-chat button:focus-visible, .contact-chat a:focus-visible,
.contact-chat__conversation:focus-visible, .contact-chat-launcher:focus-visible {
  outline: 3px solid #bda6ff;
  outline-offset: 3px;
}
.contact-chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 82px;
  padding: 15px 14px;
  background: var(--chat-purple);
  color: #fff;
}
.contact-chat__brand { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: transparent; }
.contact-chat__heading { flex: 1; min-width: 0; }
.contact-chat__heading strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.5; }
.contact-chat__heading span { display: block; margin-top: 2px; color: #e4dafa; font-size: 11px; }
.contact-chat__icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 36px;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
}
.contact-chat__icon-button:hover { background: #ffffff24; }
.contact-chat svg { width: 22px; height: 22px; }
.contact-chat__conversation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9c1d7 transparent;
  padding: 24px 18px;
}
.contact-chat__messages { display: flex; flex-direction: column; gap: 18px; }
.contact-chat__message { display: flex; align-items: flex-start; gap: 9px; animation: contactChatAppear .18s ease-out; }
.contact-chat__avatar { flex-shrink: 0; width: 30px; height: 30px; margin-top: 23px; }
.contact-chat__message > div { min-width: 0; max-width: calc(100% - 39px); }
.contact-chat__sender { display: block; margin: 0 0 5px 1px; font-size: 11px; font-weight: 700; line-height: 1.5; }
.contact-chat__bubble { padding: 13px 15px 9px; border-radius: 3px 14px 14px; background: #f4f2f7; }
.contact-chat__bubble p { margin: 0; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; }
.contact-chat__bubble time { display: block; margin-top: 5px; font-size: 9px; line-height: 1.3; color: #777080; }
.contact-chat__typing .contact-chat__bubble { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; color: #786b88; }
.contact-chat__typing-dots { display: flex; gap: 4px; }
.contact-chat__typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--chat-purple); animation: contactChatTyping 1s ease-in-out infinite; }
.contact-chat__typing-dots span:nth-child(2) { animation-delay: .15s; }
.contact-chat__typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes contactChatTyping { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.contact-chat__message--visitor { justify-content: flex-end; }
.contact-chat__message--visitor .contact-chat__bubble { border-radius: 14px 3px 14px 14px; background: var(--chat-purple); color: #fff; }
.contact-chat__message--visitor time { color: #e4dafa; text-align: right; }
.contact-chat__actions { display: flex; flex-direction: column; align-items: stretch; gap: 9px; padding-left: 39px; }
.contact-chat__actions:not(:empty) { margin-top: 16px; }
.contact-chat__choice {
  padding: 11px 15px;
  border: 1px solid #dcd1f6;
  border-radius: 11px;
  background: #fff;
  color: var(--chat-purple);
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.contact-chat__choice:hover { background: #f5f1fe; border-color: var(--chat-purple); }
.contact-chat__volume-form { display: flex; flex-direction: column; gap: 14px; }
.contact-chat__volume-options { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-chat__volume-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; margin: 0; padding: 11px 13px; border: 1px solid #e7e2ed; border-radius: 24px; background: #fff; color: #282332; font-size: 11px; line-height: 1.5; cursor: pointer; }
.contact-chat__volume-option:hover, .contact-chat__volume-option:has(input:checked) { border-color: var(--chat-purple); background: #f5f1fe; }
.contact-chat__volume-option:focus-within { outline: 2px solid #bda6ff; outline-offset: 2px; }
.contact-chat__volume-option input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--chat-purple); cursor: pointer; }
.contact-chat__volume-form .contact-chat__continue { width: 100%; border: 0; }
.contact-chat__footer { flex-shrink: 0; padding: 14px 16px 12px; border-top: 1px solid #f1edf6; background: #fff; }
.contact-chat__form { display: flex; align-items: center; gap: 8px; padding: 4px 5px 4px 16px; border: 1px solid #c5bece; border-radius: 26px; }
.contact-chat__form:focus-within { border-color: var(--chat-purple); box-shadow: 0 0 0 2px #5932c112; }
.contact-chat__form input {
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #282332;
  font-size: 13px;
}
.contact-chat__form input::placeholder { color: #81788d; opacity: 1; }
.contact-chat__send { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 7px; border: 0; border-radius: 50%; background: #f2edfc; color: var(--chat-purple); }
.contact-chat__send:hover { background: #e6dcfa; }
.contact-chat__privacy { margin: 9px 4px 0; color: #82788e; font-size: 9px; line-height: 1.7; text-align: center; }
.contact-chat__privacy a { color: #635372; text-decoration: underline; text-underline-offset: 2px; }
.contact-chat__error { margin: 8px 6px 0; color: #ab253b; font-size: 11px; line-height: 1.5; }
.contact-chat__continue { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 12px; border-radius: 11px; background: var(--chat-purple); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }
.contact-chat__continue:hover { background: #4825a7; }
.contact-chat button.contact-chat__continue { width: 100%; border: 0; font-size: 12px; font-weight: 700; line-height: 1.5; }
.contact-chat button.contact-chat__continue:disabled { opacity: .7; cursor: default; }
.contact-chat__continue svg { flex-shrink: 0; }
.contact-chat__spinner { width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: contactChatSpin .8s linear infinite; }
@keyframes contactChatSpin { to { transform: rotate(360deg); } }
.contact-chat__delivery-status { margin: 3px 0; padding: 12px; border-radius: 11px; background: #f3effc; font-size: 14px; line-height: 1.7; color: #3f3560; overflow-wrap: anywhere; }
.contact-chat__delivery-status.is-success { background: #edf7f1; color: #205b3c; }
.contact-chat__delivery-status.is-error { color: #ab253b; }
.contact-chat__restart:disabled { opacity: .5; cursor: wait; }
.contact-chat__restart { padding: 7px 0; border: 0; background: transparent; color: #786b88; font-size: 10px !important; text-decoration: underline; text-underline-offset: 3px; }
.contact-chat__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.floating-contact.contact-chat-launcher { z-index: 1002; width: 62px; height: 62px; right: 24px; bottom: 22px; }
.floating-contact.contact-chat-launcher.is-chat-open { visibility: visible; opacity: 1; pointer-events: auto; background: #5932c1; box-shadow: 0 7px 22px #5932c133; animation: none; }
.contact-chat-launcher > svg { width: 28px; height: 28px; }
.contact-chat.is-expanded { width: 540px; height: 780px; }
@keyframes contactChatAppear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .contact-chat, .contact-chat.is-expanded { right: 10px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 20px); max-width: none; height: 620px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px - env(safe-area-inset-bottom, 0px)); border-radius: 14px; }
  .contact-chat__header { gap: 8px; min-height: 74px; padding: 12px 10px; }
  .contact-chat__conversation { padding: 20px 14px; }
  .contact-chat__expand { display: none; }
  .contact-chat__form input { font-size: 16px; }
  .floating-contact.contact-chat-launcher { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-chat__spinner { animation: none; }
  .contact-chat__typing-dots span { animation: none; }
  .contact-chat, .contact-chat__message, .floating-contact.contact-chat-launcher { animation: none; transition: none; }
}
