.j-widget-chat,
.j-widget-demo {
  --widget-brand: var(--brand, #1c3d52);
  --widget-ink: var(--ink, #131a20);
  --widget-paper: var(--paper, #f7f5f1);
  --widget-line: var(--line, #e1ded6);
  --widget-seal: var(--seal, #8c6d2f);
  font-family: var(--sans, Inter, sans-serif);
  color: var(--widget-ink);
  line-height: 1.55;
}
.j-widget-chat [hidden], .j-widget-demo [hidden] { display: none !important; }
.j-widget-chat *, .j-widget-demo * { box-sizing: border-box; }
.j-widget-chat :is(button, input, select, textarea), .j-widget-demo :is(button, input, textarea) { font: inherit; }
.j-widget-chat :is(button, a), .j-widget-demo :is(button, a) { -webkit-tap-highlight-color: transparent; }
.j-widget-chat button, .j-widget-demo button { cursor: pointer; }
.j-widget-chat button:disabled, .j-widget-demo button:disabled { cursor: wait; opacity: .55; }
.j-widget-chat :focus-visible, .j-widget-demo :focus-visible { outline: 2px solid var(--widget-seal); outline-offset: 4px; }
.j-widget-chat .sr-only, .j-widget-demo .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.j-widget-chat .chatbtn {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 75;
  display: inline-flex; gap: 12px; align-items: center; min-height: 52px;
  padding: 14px 21px; border: 1px solid #ffffff40; border-radius: 2px;
  background: var(--widget-brand); color: #fff; font-size: 13px;
  box-shadow: 0 8px 32px #12293a20;
}
.j-widget-chat .chatbtn svg { width: 20px; height: 20px; }
.j-widget-chat .chatbtn:hover { background: #12293a; }
.j-widget-chat .chatw {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90;
  display: none; flex-direction: column; width: min(410px, calc(100vw - 32px));
  max-height: min(720px, calc(100svh - 40px)); background: var(--widget-paper);
  border: 1px solid var(--widget-brand); box-shadow: 0 24px 80px #12293a35; overflow: auto;
}
.j-widget-chat .chatw.open { display: flex; }
.j-widget-chat .chd { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 24px; background: var(--widget-brand); color: #fff; border-bottom: 3px solid var(--widget-seal); }
.j-widget-chat .chd .who { font-size: 18px; letter-spacing: -.045em; font-weight: 300; }
.j-widget-chat .chd .st2 { margin-top: 5px; font-size: 10px; letter-spacing: .05em; color: #d5e3ea; }
.j-widget-chat .chd .dot { display: inline-block; width: 5px; height: 5px; margin-right: 5px; background: #cdb680; border-radius: 50%; }
.j-widget-chat #chatlive-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 12px; border: 1px solid #ffffff40; background: transparent; color: #fff; }
.j-widget-chat #chatlive-close svg { width: 18px; height: 18px; }
.j-widget-chat .cgate { display: flex; flex-direction: column; gap: 13px; padding: 25px 24px; }
.j-widget-chat .cgate-h { margin: 0 0 7px; font-size: 14px; line-height: 1.65; }
.j-widget-chat .cgate-phone { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.j-widget-chat .cgate-phone label { color: #4c555c; font-size: 11px; }
.j-widget-chat .cgate-phone select { min-width: 0; width: 100%; min-height: 48px; padding: 12px 34px 12px 13px; border: 1px solid var(--widget-line); border-radius: 0; background: #fff; color: var(--widget-ink); font-size: 14px; }
.j-widget-chat .cgate-phone input { margin-bottom: 0; }
.j-widget-chat .cgate-phone-note { margin: 0; color: #596168; font-size: 11px; line-height: 1.6; }
.j-widget-chat .cgate-phone select[aria-invalid="true"] { border-color: #9f3c33; }
.j-widget-chat .cgate input { min-width: 0; width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--widget-line); border-radius: 0; background: #fff; color: var(--widget-ink); font-size: 14px; }
.j-widget-chat .cgate input[aria-invalid="true"] { border-color: #9f3c33; }
.j-widget-chat .cgate-erro { margin: 0; color: #9f3c33; font-size: 13px; }
.j-widget-chat .cgate-nota { margin: 1px 0 0; color: #596168; font-size: 11px; line-height: 1.7; }
.j-widget-chat .cgate-nota a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.j-widget-chat .btn, .j-widget-demo .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid var(--widget-brand); border-radius: 0; background: var(--widget-brand); color: #fff; font-size: 13px; }
.j-widget-chat .cbd { display: flex; flex: 1 1 auto; flex-direction: column; gap: 13px; min-height: 120px; max-height: min(360px, 42svh); overflow-y: auto; padding: 23px; overscroll-behavior: contain; }
.j-widget-chat .cbd .msg { align-self: flex-start; max-width: 92%; padding: 13px 15px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.j-widget-chat .cbd .msg.a { background: #e9eff3; border-left: 2px solid #a7bdc9; }
.j-widget-chat .cbd .msg.u { align-self: flex-end; background: var(--widget-brand); color: #fff; }
.j-widget-chat .cbd .msg.s { align-self: stretch; max-width: 100%; background: #f5efe1; color: #65501e; border-left: 2px solid var(--widget-seal); font-size: 12px; }
.j-widget-chat .msg p, .j-widget-demo .msg p { margin: 0 0 7px; }
.j-widget-chat .msg p:last-child, .j-widget-demo .msg p:last-child { margin-bottom: 0; }
.j-widget-chat .msg :is(ul, ol), .j-widget-demo .msg :is(ul, ol) { margin: 7px 0 0; padding-left: 20px; }
.j-widget-chat #chatlive-captcha { padding: 0 24px 12px; }
.j-widget-chat .cft-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; flex-shrink: 0; gap: 8px; padding: 15px 20px; border-top: 1px solid var(--widget-line); }
.j-widget-chat .cft-in textarea, .j-widget-demo .ex-send textarea { display: block; box-sizing: border-box; min-width: 0; width: 100%; min-height: 88px; max-height: 180px; padding: 11px 13px; resize: none; overflow-y: hidden; border: 1px solid var(--widget-line); border-radius: 0; background: #fff; color: var(--widget-ink); font: inherit; font-size: 14px; line-height: 1.5; }
.j-widget-chat .msg.u, .j-widget-demo .thread .msg.in { white-space: pre-wrap; }
.j-widget-chat .cft-in button { padding-inline: 14px; }
.j-widget-chat .cft { padding: 0 24px 15px; color: #596168; font-size: 10px; }
.j-widget-chat .widget-interest-link { margin: 0 24px 20px; font-size: 12px; }
.widget-interest-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; border-bottom: 1px solid currentColor; color: var(--widget-brand, #1c3d52); text-decoration: none; }
.j-widget-demo { margin-block: 35px 0; }
.j-widget-demo .widget-demo-note { display: grid; grid-template-columns: 190px 1fr; gap: 25px; padding: 22px 0; border-block: 1px solid var(--widget-line); margin-bottom: 35px; }
.j-widget-demo .widget-demo-label { color: var(--widget-seal); font: 10px/1.6 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.j-widget-demo .widget-demo-note p { max-width: 780px; margin: 0; color: #4c555c; font-size: 13px; line-height: 1.8; }
.j-widget-demo .widget-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.j-widget-demo .assento { display: flex; flex-direction: column; min-width: 0; min-height: 530px; background: #fff; border: 1px solid var(--widget-line); }
.j-widget-demo .assento-hd { padding: 28px; border-bottom: 1px solid var(--widget-line); }
.j-widget-demo .seat { display: block; color: var(--widget-seal); font: 10px/1.6 var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.j-widget-demo .assento-hd h3 { margin: 13px 0 10px; color: var(--widget-brand); font-size: clamp(18px, 1.95vw, 25.5px); font-weight: 300; line-height: 1.12; letter-spacing: -.045em; }
.j-widget-demo .assento-hd p { max-width: 400px; margin: 0; color: #596168; font-size: 13px; line-height: 1.7; }
.j-widget-demo .thread { display: flex; flex-direction: column; flex: 1; gap: 15px; max-height: 360px; min-height: 145px; overflow-y: auto; padding: 25px; overscroll-behavior: contain; }
.j-widget-demo .thread .msg { position: relative; max-width: 92%; padding: 13px 15px 26px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.j-widget-demo .thread .msg.in { align-self: flex-end; color: #fff; background: var(--widget-brand); }
.j-widget-demo .thread .msg.out { align-self: flex-start; color: var(--widget-ink); background: #e9eff3; border-left: 2px solid #a7bdc9; }
.j-widget-demo .thread .msg.sys { align-self: stretch; max-width: 100%; padding: 11px 0; color: #596168; font-size: 12px; }
.j-widget-demo .thread .msg .t { position: absolute; right: 12px; bottom: 7px; font: 9px/1 var(--mono, monospace); opacity: .65; }
.j-widget-demo .replies { display: grid; gap: 9px; padding: 0 25px 20px; }
.j-widget-demo .replies button { min-height: 44px; padding: 12px 14px; border: 1px solid #c2ced5; border-radius: 0; color: var(--widget-brand); background: transparent; font-size: 12px; text-align: left; line-height: 1.5; }
.j-widget-demo .replies button:hover { background: #e9eff3; }
.j-widget-demo .ex-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 18px 25px; border-top: 1px solid var(--widget-line); }
.j-widget-demo .ex-nota { min-height: 20px; margin: 0; padding: 0 25px 15px; color: #596168; font-size: 11px; }
.j-widget-demo .assento.espelho { background: #12293a; border-color: #12293a; color: #fff; }
.j-widget-demo .espelho .assento-hd { border-color: #ffffff25; }
.j-widget-demo .espelho .seat { color: #cdb680; }
.j-widget-demo .espelho .assento-hd h3 { color: #fff; }
.j-widget-demo .espelho .assento-hd p { color: #bbcad3; }
.j-widget-demo .espelho-bd { flex: 1; padding: 28px; }
.j-widget-demo .espelho-vazio { max-width: 300px; color: #bbcad3; font-size: 14px; font-weight: 300; line-height: 1.8; }
.j-widget-demo .esp-topo { display: flex; flex-wrap: wrap; gap: 13px; align-items: baseline; margin-bottom: 25px; }
.j-widget-demo .esp-area { color: #fff; font-size: 19px; font-weight: 300; letter-spacing: -.04em; }
.j-widget-demo .esp-tag { padding: 4px 7px; background: #d1e0e8; color: #12293a; font: 9px/1.6 var(--mono, monospace); letter-spacing: .03em; }
.j-widget-demo .esp-l { display: grid; grid-template-columns: 115px 1fr; gap: 18px; padding: 12px 0; border-top: 1px solid #ffffff25; }
.j-widget-demo .esp-l .k { padding-top: 2px; color: #b5c4cc; font: 9px/1.6 var(--mono, monospace); text-transform: uppercase; letter-spacing: .08em; }
.j-widget-demo .esp-l .v { min-width: 0; color: #edf1f3; font-size: 13px; overflow-wrap: anywhere; }
.j-widget-demo .espelho-ft { padding: 18px 28px; border-top: 1px solid #ffffff25; }
.j-widget-demo .espelho-ft p { margin: 0; color: #bbcad3; font-size: 11px; line-height: 1.8; }
.j-widget-demo #desafio-box { display: flex; justify-content: center; margin-top: 25px; }
.j-widget-demo > .widget-interest-link { margin-top: 28px; font-size: 13px; }
.j-widget-chat .typing, .j-widget-demo .typing { display: flex; gap: 5px; align-items: center; }
.j-widget-chat .typing span, .j-widget-demo .typing i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #637987; animation: widget-pulse 1.2s infinite; }
.j-widget-chat .typing span:nth-child(2), .j-widget-demo .typing i:nth-child(2) { animation-delay: .15s; }
.j-widget-chat .typing span:nth-child(3), .j-widget-demo .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes widget-pulse { 0%, 70%, 100% { opacity: .3; } 35% { opacity: 1; } }
@media (max-width: 800px) {
  .j-widget-demo .widget-seats { grid-template-columns: 1fr; gap: 20px; }
  .j-widget-demo .widget-demo-note { grid-template-columns: 1fr; gap: 12px; }
  .j-widget-demo .assento { min-height: 440px; }
  .j-widget-demo .assento.espelho { min-height: 330px; }
}
@media (max-width: 480px) {
  .j-widget-chat .chatbtn { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 48px; padding: 12px 15px; font-size: 12px; }
  .j-widget-chat .chatw { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .j-widget-chat .chd { padding: 18px; }
  .j-widget-chat .cgate { padding: 20px 18px; }
  .j-widget-chat .cft-in { padding-inline: 15px; }
  .j-widget-chat :is(.cgate input, .cft-in textarea, .cgate-phone select), .j-widget-demo .ex-send textarea { font-size: 16px; }
  .j-widget-demo .assento-hd, .j-widget-demo .espelho-bd { padding: 22px; }
  .j-widget-demo .thread { padding: 22px; }
  .j-widget-demo .replies { padding-inline: 22px; }
  .j-widget-demo .ex-send { padding: 16px; }
  .j-widget-demo .ex-send .btn { padding-inline: 12px; }
  .j-widget-demo .esp-l { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .j-widget-chat .typing span, .j-widget-demo .typing i { animation: none; opacity: .6; }
}
