/* FlyChat 2026.09.06 — scoped adapter for the installed Chatwoot 4.17 UI. */
body.flychat-wa {
  --slate-1:22 23 23; --slate-2:29 31 31; --slate-3:36 38 38;
  --slate-4:46 47 47; --slate-5:53 55 55; --slate-6:63 65 65;
  --slate-7:74 77 77; --slate-8:94 98 98; --slate-9:116 121 121;
  --slate-10:154 159 159; --slate-11:174 178 178; --slate-12:241 243 243;
  --blue-3:16 55 40; --blue-9:33 192 99; --blue-10:33 192 99; --blue-11:168 235 191;
  --fc-bg:#161717; --fc-rail:#1d1f1f; --fc-panel:#242626; --fc-hover:#2e2f2f;
  --fc-border:#2b2d2d; --fc-text:#f1f3f3; --fc-muted:#a6aaaa; --fc-green:#21c063;
  background:var(--fc-bg)!important; color:var(--fc-text); color-scheme:dark;
  font-family:'Segoe UI',Helvetica,Arial,sans-serif; overscroll-behavior:none;
}
body.flychat-wa #app { max-width:none!important; }
body.flychat-wa #app.h-screen { height:100vh; height:var(--fc-height,100dvh)!important; }
body.flychat-wa :is(.bg-n-background,.bg-n-surface-1,.bg-n-solid-1) {background-color:var(--fc-bg)!important;}
body.flychat-wa :is(.bg-n-surface-2,.bg-n-solid-2,.bg-n-slate-2,.bg-n-slate-3) {background-color:var(--fc-panel)!important;}
body.flychat-wa :is(.border-n-weak,.border-n-strong) {border-color:var(--fc-border)!important;}
body.flychat-wa :is(button,a,input,[contenteditable]):focus-visible {outline:2px solid var(--fc-green)!important;outline-offset:2px;}
body.flychat-wa * {scrollbar-width:thin;scrollbar-color:#484b4b transparent;}
body.flychat-wa.flyup-com-barra aside {width:64px!important;min-width:64px!important;background:var(--fc-rail)!important;}
body.flychat-wa #flyup-barra {padding:10px 0;gap:6px;background:var(--fc-rail);}
body.flychat-wa #flyup-barra .flyup-item {width:42px;height:42px;min-height:42px;border-radius:50%;color:#aeb3b3;}
body.flychat-wa #flyup-barra .flyup-item svg {width:24px;height:24px;stroke-width:1.7;}
body.flychat-wa #flyup-barra .flyup-item:hover {background:#343737;color:white;}
body.flychat-wa #flyup-barra .flyup-item.ativo {background:#374039;color:#e9f4eb;}
body.flychat-wa #flyup-barra-dica {background:#303333;border-color:#454848;color:white;}
body.flychat-wa .conversations-list-wrap {width:clamp(360px,30vw,460px)!important;min-width:0!important;border-right:1px solid var(--fc-border);}
body.flychat-wa .conversations-list-wrap > div:first-child {height:64px!important;min-height:64px;padding:0 20px!important;}
body.flychat-wa .conversations-list-wrap h1 {font-size:22px;font-weight:650;letter-spacing:-.35px;}
body.flychat-wa .fc-defaulting .relative.flex:has(>.i-lucide-arrow-up-down),
body.flychat-wa .fc-defaulting .relative.flex:has(>button>.i-lucide-arrow-up-down)>div {visibility:hidden!important;}
body.flychat-wa .conversations-list-wrap > div:first-child button {width:32px;height:32px;border-radius:50%;background:transparent!important;}
body.flychat-wa #flyup-busca {height:40px!important;min-height:40px;margin:2px 20px 10px!important;border:0!important;border-radius:24px!important;background:var(--fc-hover)!important;box-shadow:none!important;padding:0 14px!important;}
body.flychat-wa #flyup-busca input {font-family:inherit;font-size:14px!important;color:var(--fc-text)!important;height:38px!important;}
body.flychat-wa #flyup-busca svg {color:var(--fc-muted);width:18px;height:18px;margin-right:6px;}
body.flychat-wa .conversations-list-wrap ul:has(>li>a) {padding:0 20px 10px!important;gap:7px;border:0!important;min-height:42px;align-items:center;overflow-x:auto;}
body.flychat-wa .conversations-list-wrap ul:has(>li>a) > li {margin:0!important;}
body.flychat-wa .conversations-list-wrap ul:has(>li>a) > li:has(a[data-fc-tab="Todos"]) {order:-1;}
body.flychat-wa .conversations-list-wrap li>a[data-fc-tab] {border:1px solid var(--fc-border);border-radius:20px;padding:5px 11px!important;font-size:13px;line-height:20px;color:var(--fc-muted);}
body.flychat-wa .conversations-list-wrap li>a[data-fc-tab]::after {display:none!important;}
body.flychat-wa .conversations-list-wrap li>a.text-n-blue-11 {background:#103b2b!important;color:#c5f3d5!important;border-color:#174833!important;}
body.flychat-wa .conversations-list-wrap li>a[data-fc-tab]>div {background:transparent!important;color:inherit!important;padding:0!important;font-size:11px;min-width:0;}
body.flychat-wa .conversation {min-height:76px!important;height:76px!important;border:0!important;border-radius:12px;margin:0 10px!important;padding:0 12px!important;align-items:center!important;background:transparent!important;}
body.flychat-wa .conversation:hover {background:#222424!important;}
body.flychat-wa .conversation.active {background:var(--fc-hover)!important;}
body.flychat-wa .conversation>div:first-child {width:48px!important;flex-shrink:0!important;}
body.flychat-wa .conversation>div:first-child :is(span,img) {width:48px!important;height:48px!important;border-radius:50%!important;margin-top:0!important;}
body.flychat-wa .conversation>div:nth-child(2) {padding:12px 0 12px 7px!important;align-self:center;}
body.flychat-wa .conversation h4.conversation--user {font-size:16px!important;line-height:22px;font-weight:500!important;text-transform:none!important;padding-top:0!important;padding-right:54px!important;}
body.flychat-wa .conversation>div:nth-child(2)>div:nth-child(3) {font-size:14px!important;line-height:22px!important;height:22px!important;color:var(--fc-muted);padding-right:15px;}
body.flychat-wa .conversation>div:nth-child(2)>div.absolute {top:16px!important;right:14px!important;font-size:11px!important;color:var(--fc-muted);}
body.flychat-wa .conversation>div:nth-child(2)>div:last-child:not(.absolute) {display:none!important;}
body.flychat-wa .conversation-details-wrap {border:0!important;min-width:0!important;}
body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) {height:64px!important;min-height:64px!important;max-height:64px!important;flex:0 0 64px!important;flex-direction:row!important;padding:0 16px!important;gap:12px;background:var(--fc-bg)!important;}
body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap)>div:first-child {width:auto!important;flex:1;}
body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) .header-actions-wrap {width:auto!important;flex-shrink:0;}
body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) span[role="img"],
body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) .group\/avatar {width:40px!important;height:40px!important;border-radius:50%!important;}
body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) img {border-radius:50%;}
body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) .text-sm.font-medium.truncate {font-size:16px!important;}
body.flychat-wa #flyup-transferir {background:#263a2e!important;color:#c5eccc!important;border:0!important;margin-left:0!important;min-height:32px;font-weight:500!important;}
body.flychat-wa .conversation-details-wrap .resolve-actions button {background:transparent!important;box-shadow:none!important;}
body.flychat-wa .conversation-panel {background-color:var(--fc-bg)!important;background-image:url('/flychat-v20260906/wallpaper.svg')!important;background-repeat:repeat!important;background-size:374px 666px!important;padding:16px clamp(20px,4vw,64px) 16px!important;overscroll-behavior:contain;}
body.flychat-wa .message-bubble-container {margin-bottom:4px!important;}
body.flychat-wa .message-bubble-container>div.grid {max-width:76%;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'bubble' 'meta'!important;}
body.flychat-wa .message-bubble-container [class*="grid-area:avatar"] {display:none!important;}
body.flychat-wa .message-bubble-container [class*="grid-area:bubble"] {margin:0!important;}
body.flychat-wa :is(.left-bubble,.right-bubble) {padding:6px 9px 5px!important;border-radius:8px!important;color:#f1f3f3!important;max-width:580px!important;font-size:14px;line-height:20px;box-shadow:0 1px 1px #0003;}
body.flychat-wa .left-bubble {background:#242626!important;}
body.flychat-wa .right-bubble {background:#144d37!important;}
body.flychat-wa [data-flyup-apagada="1"] {background:#653535!important;border:1px solid #bd6767!important;}
body.flychat-wa :is(.left-bubble,.right-bubble).bg-n-solid-amber {background:#494027!important;}
body.flychat-wa :is(.left-bubble,.right-bubble).bg-n-ruby-4 {background:#653535!important;}
body.flychat-wa :is(.left-bubble,.right-bubble) .prose {font-family:inherit;font-size:14px;line-height:20px;}
body.flychat-wa :is(.left-bubble,.right-bubble) .prose p {margin:0!important;}
body.flychat-wa :is(.left-bubble,.right-bubble) .prose p+p {margin-top:8px!important;}
body.flychat-wa :is(.left-bubble,.right-bubble)>div.text-xs {font-size:10.5px!important;line-height:14px!important;margin-top:2px!important;justify-content:flex-end!important;color:#a9beb5!important;}
body.flychat-wa :is(.left-bubble,.right-bubble) time {color:#a9b8b3!important;font-size:10.5px!important;}
body.flychat-wa [data-bubble-name="image"] {padding:3px!important;max-width:330px!important;}
body.flychat-wa [data-bubble-name="image"] img {max-height:360px;object-fit:cover;width:auto;max-width:100%;}
body.flychat-wa [data-bubble-name="audio"] {min-width:240px;max-width:350px!important;}
body.flychat-wa .resizable-editor-wrapper {background:var(--fc-bg)!important;padding-top:36px;flex-shrink:0;}
body.flychat-wa .reply-box {position:relative;background:#242626!important;border-radius:28px!important;box-shadow:none!important;gap:4px!important;padding:6px 12px!important;margin:6px 12px 10px!important;width:calc(100% - 24px)!important;min-height:52px;}
body.flychat-wa .reply-box>.justify-between:not(.p-3) {position:absolute!important;left:8px;right:8px;bottom:calc(100% + 5px);width:calc(100% - 16px)!important;display:flex!important;justify-content:flex-start!important;gap:6px!important;flex-wrap:nowrap;min-height:28px;}
body.flychat-wa .reply-box>.justify-between:not(.p-3)>button {font-size:11px;height:26px!important;flex-shrink:0;background:transparent!important;border:0;}
body.flychat-wa #flyup-barra-ia {gap:3px!important;margin-left:0!important;white-space:nowrap;}
body.flychat-wa #flyup-barra-ia button {font-size:11px!important;font-weight:400!important;background:transparent!important;border:0!important;padding:4px 6px!important;margin:0!important;color:#b8c3bd!important;border-radius:12px!important;}
body.flychat-wa #flyup-barra-ia button:hover {background:#303a34!important;color:white!important;}
body.flychat-wa .reply-box__top {position:static!important;flex:1 1 80px!important;}
body.flychat-wa .reply-box__top .input {background:transparent!important;border:0!important;padding:6px 8px!important;box-shadow:none!important;}
body.flychat-wa .reply-box__top .ProseMirror {min-height:24px!important;max-height:140px!important;font-family:inherit;font-size:15px!important;line-height:24px!important;}
body.flychat-wa .reply-box__top .ProseMirror p {margin:0!important;}
body.flychat-wa .reply-box__top .ProseMirror p.empty-node:first-child::before {content:'Digite uma mensagem'!important;color:#9da3a3!important;}
body.flychat-wa .reply-box.is-private {background:#494027!important;}
body.flychat-wa .reply-box.is-private .ProseMirror p.empty-node:first-child::before {content:'Escreva uma nota privada'!important;color:#d6c89f!important;}
body.flychat-wa .reply-box .left-wrap button,body.flychat-wa .reply-box .file-uploads {width:34px!important;height:36px!important;position:relative!important;flex-shrink:0!important;}
body.flychat-wa .reply-box .left-wrap button {background:transparent!important;color:#d5d9d7!important;border:0!important;outline:0!important;}
body.flychat-wa .reply-box .left-wrap button span {width:22px!important;height:22px!important;}
body.flychat-wa .reply-box .right-wrap {display:contents!important;}
body.flychat-wa .reply-box .right-wrap button {order:6;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px;padding:0!important;overflow:hidden;border:0!important;border-radius:50%!important;background:#21c063!important;color:#102719!important;font-size:0!important;}
body.flychat-wa .reply-box .right-wrap button>span {display:none!important;}
body.flychat-wa .reply-box .right-wrap button::after {content:'➤';font-size:22px;}
body.flychat-wa .reply-box .right-wrap button:disabled {display:none!important;}
body.flychat-wa .emoji-dialog {left:0!important;right:auto!important;bottom:calc(100% + 44px)!important;width:360px!important;max-width:calc(100vw - 28px)!important;border-radius:16px!important;background:#242626!important;border:1px solid #393d3b;box-shadow:0 8px 32px #0006;}
body.flychat-wa .fc-tools,body.flychat-wa .fc-back {display:none;}
body.flychat-wa .fc-install {display:flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;height:54px;border:0;border-top:1px solid var(--fc-border);background:var(--fc-bg);color:var(--fc-green);font-size:14px;cursor:pointer;}
body.flychat-wa .fc-install img {width:30px;height:30px;}
body.flychat-wa .fc-install[hidden] {display:none!important;}
body.flychat-wa dialog.fc-install-dialog {background:#242626;color:#f1f3f3;border:1px solid #4b514e;border-radius:20px;padding:28px;max-width:420px;width:calc(100% - 40px);box-shadow:0 16px 80px #0008;}
body.flychat-wa dialog.fc-install-dialog::backdrop {background:#0008;}
body.flychat-wa dialog.fc-install-dialog h2 {font-size:22px;margin:0 0 16px;}
body.flychat-wa dialog.fc-install-dialog p {font-size:15px;line-height:1.6;}
body.flychat-wa dialog.fc-install-dialog button {border:0;background:#21c063;color:#102719;padding:10px 24px;border-radius:24px;margin-top:16px;cursor:pointer;}
body.flychat-wa .fc-empty {display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:12px;text-align:center;background:#161717;color:#a6aaaa;}
body.flychat-wa .fc-empty img {width:84px;height:84px;opacity:.85;margin-bottom:14px;}
body.flychat-wa .fc-empty h2 {font-weight:400;font-size:30px;color:#e6e9e7;margin:0;}
body.flychat-wa .fc-empty p {font-size:14px;max-width:360px;line-height:22px;margin:0 20px;}
body.flychat-wa .fc-native-empty {display:none!important;}
body.flychat-wa .conversation-details-wrap:has(.fc-empty) {justify-content:center!important;}
body.flychat-wa .fc-empty {min-height:60vh;}
@media(max-width:1100px){
  body.flychat-wa .conversations-list-wrap {width:340px!important;}
  body.flychat-wa #flyup-tarja-cliente {display:none!important;}
  body.flychat-wa #flyup-barra-ia button {font-size:10px!important;padding:4px!important;}
}
@media(max-width:767px){
  body.flychat-wa,body.flychat-wa #app {width:100%!important;min-width:0!important;overflow:hidden;}
  body.flychat-wa.flyup-com-barra aside {position:relative!important;transform:none!important;width:52px!important;min-width:52px!important;z-index:30;}
  body.flychat-wa.flyup-com-barra .backdrop-blur-lg:has(>button>.i-lucide-menu) {display:none!important;}
  body.flychat-wa #flyup-barra {gap:4px;padding-top:env(safe-area-inset-top,8px);padding-bottom:env(safe-area-inset-bottom,8px);}
  body.flychat-wa #flyup-barra .flyup-item {width:40px;height:40px;min-height:40px;}
  body.flychat-wa .conversations-list-wrap {width:100%!important;flex:1 1 100%!important;border:0;}
  body.flychat-wa .conversations-list-wrap>div:first-child {padding:0 14px!important;}
  body.flychat-wa .conversations-list-wrap h1 {font-size:22px;}
  body.flychat-wa #flyup-busca {margin:2px 12px 10px!important;}
  body.flychat-wa .conversations-list-wrap ul:has(>li>a) {padding-left:12px!important;padding-right:10px!important;}
  body.flychat-wa .conversation {margin:0 4px!important;padding:0 8px!important;}
  body.flychat-wa .conversation h4.conversation--user {font-size:15px!important;}
  body.flychat-wa .conversation>div:nth-child(2)>div:nth-child(3) {font-size:13px!important;}
  body.flychat-wa:not(.fc-chat-open) .conversation-details-wrap,body.flychat-wa .fc-empty {display:none!important;}
  body.flychat-wa.fc-chat-open .conversations-list-wrap,body.flychat-wa.fc-chat-open.flyup-com-barra aside {display:none!important;}
  body.flychat-wa.fc-chat-open .conversation-details-wrap {display:flex!important;width:100%!important;}
  body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) {padding:0 8px!important;gap:5px;height:60px!important;min-height:60px!important;max-height:60px!important;flex-basis:60px!important;}
  body.flychat-wa .fc-back {display:inline-flex!important;border:0;background:transparent;color:#e9edeb;font-size:26px;align-items:center;justify-content:center;width:32px;height:42px;flex-shrink:0;}
  body.flychat-wa .fc-back+button:has(.i-lucide-chevron-left) {display:none!important;}
  body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) .text-sm.font-medium.truncate {font-size:14px!important;}
  body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) span[role="img"],body.flychat-wa .conversation-details-wrap>div:first-child:has(.header-actions-wrap) .group\/avatar {width:34px!important;height:34px!important;}
  body.flychat-wa .header-actions-wrap {gap:2px!important;}
  body.flychat-wa .header-actions-wrap .actions--container {gap:2px!important;}
  body.flychat-wa #flyup-transferir {padding:3px 6px!important;font-size:10px!important;max-width:82px;overflow:hidden;}
  body.flychat-wa .resolve-actions button:first-child {width:30px;padding:0!important;font-size:0!important;}
  body.flychat-wa .resolve-actions button:first-child>span {display:none;}
  body.flychat-wa .resolve-actions button:first-child::after {content:'✓';font-size:20px;}
  body.flychat-wa .resolve-actions button+button {width:20px!important;}
  body.flychat-wa .conversation-panel {padding:12px 10px!important;}
  body.flychat-wa .message-bubble-container>div.grid {max-width:90%!important;}
  body.flychat-wa [data-bubble-name="image"] {max-width:260px!important;}
  body.flychat-wa [data-bubble-name="image"] img {max-height:300px;}
  body.flychat-wa .resizable-editor-wrapper {padding-top:0;}
  body.flychat-wa .reply-box {margin:5px 6px max(6px,env(safe-area-inset-bottom))!important;width:calc(100% - 12px)!important;padding:5px 8px!important;gap:0!important;min-height:50px;}
  body.flychat-wa .reply-box__top .input {padding:4px!important;}
  body.flychat-wa .reply-box__top .ProseMirror {font-size:16px!important;max-height:120px!important;}
  body.flychat-wa .reply-box>.justify-between:not(.p-3) {display:none!important;}
  body.flychat-wa .reply-box.fc-show-tools>.justify-between:not(.p-3) {display:flex!important;flex-wrap:wrap!important;background:#242626;border:1px solid #424844;border-radius:12px;padding:10px!important;}
  body.flychat-wa .reply-box.fc-show-tools #flyup-barra-ia {flex-wrap:wrap!important;}
  body.flychat-wa .reply-box.fc-show-tools #flyup-barra-ia button {font-size:12px!important;padding:8px!important;}
  body.flychat-wa .fc-tools {order:7;display:inline-flex;border:0;background:transparent;color:#bcc4bf;font-size:23px;align-items:center;justify-content:center;width:26px;height:36px;flex-shrink:0;}
  body.flychat-wa .reply-box .left-wrap button,body.flychat-wa .reply-box .file-uploads {width:30px!important;}
  body.flychat-wa .emoji-dialog {bottom:calc(100% + 8px)!important;width:min(360px,calc(100vw - 14px))!important;max-width:calc(100vw - 14px)!important;}
  body.flychat-wa .fc-install {height:48px;font-size:13px;}
}
@media(prefers-reduced-motion:reduce){body.flychat-wa * {animation:none!important;transition:none!important;}}
