/* ================= RESET ================= */
:root {
  --fundo-app: #f3f3f3;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box !important;
}

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  -webkit-text-size-adjust: 100% !important;
  overscroll-behavior-x: none !important;
}

body {
  background: #f3f3f3;
  touch-action: pan-y !important;
}

input,
textarea,
select,
button {
  font-size: 16px !important;
}

button,
a,
.banco-item,
.pergunta-btn {
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

img,
video {
  max-width: 100% !important;
  height: auto;
}

.header {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.logo {
  height: 38px;
}

.topo-app {
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
}

.topo-esquerda {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-olx {
  width: 80px;
  height: auto;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff7a00;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
}

.saldo {
  background: #7900dc;
  color: #fff;
  padding-top: 50px;
  position: relative;
  max-width: 100%;
}

.saldo::after {
  content: "⋮";
  position: absolute;
  top: 30px;
  right: 20px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.saldo-container {
  max-width: 390px;
  margin: 0 auto;
  padding: 0 16px;
}

.saldo-titulo {
  font-size: 20px;
  margin-bottom: 12px;
}

.saldo-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 27px;
}

.valor {
  display: flex;
  align-items: flex-end;
  font-size: 14px;
  font-weight: 600;
}

.valor.negativo {
  color: #ff3b30;
}

.rs {
  font-size: 24px;
  font-weight: 700;
  margin-right: 5px;
  margin-bottom: 6px;
}

.numero {
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
  margin-right: 2px;
}
.centavos {
  font-size: 23px;
  font-weight: 400;
  margin-left: 3px;
  margin-bottom: 7px;
}

.btn-sacar {
  background: #ff7a00;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
}

.saldo-inferior {
  background: #4b008f;
  padding: 16px 0;
}

.saldo-infos {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saldo-infos p {
  font-size: 15px;
  font-weight: 500;
  margin: 6px 0;
}

.saldo-infos strong {
  font-weight: 800;
}

.seta {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.btn-orange {
  background: #ff6a33;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.card .btn-orange {
  display: block;
  margin: 8px auto 0 auto;
  padding: 12px 26px;
}

.conteudo {
  width: 100%;
  max-width: 410px;
  margin: 40px auto;
  padding: 0 12px;
}

.card {
  margin: -20px auto -20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 22px;
  box-sizing: border-box;
}

.card-top {
  display: flex;
  gap: 14px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
}

.card p {
  font-size: 14px;
  color: #6f6f6f;
  margin-top: 4px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 35, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 12px;
  overflow-y: auto;
}

.modal-bancos {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 92dvh;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s ease;
}

.overlay.ativo .modal-bancos {
  transform: translateY(0);
}

.header-ativar {
  background: #7900dc;
  color: #fff;
  padding: 18px 20px;
  border-radius: 26px 26px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-texto {
  flex: 1;
}

.header-texto h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
}

.header-texto p {
  font-size: 13px;
  margin: 0;
  opacity: .9;
}

.btn-fechar,
.btn-voltar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.btn-voltar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: 20px;
}

#lista-bancos-tela {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 18px 24px;
  background: #fff;
}

#lista-bancos-tela h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
}

#lista-bancos-tela::before {
  content: "Selecione seu banco abaixo para continuar o cadastro da sua conta de recebimento.";
  display: block;
  background: #f8f3ff;
  color: #5b4b66;
  padding: 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 18px;
  border: 1px solid #eee4ff;
}

.lista-bancos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banco-item {
  min-height: 64px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.banco-item:hover {
  background: #faf6ff;
  border-color: #9b22e6;
  transform: translateY(-1px);
}

.banco-item.ativo {
  background: #f4e9ff;
  border-color: #7900dc;
}

.banco-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
}

.banco-item span {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

#formulario-pix {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(92dvh - 90px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

.form-pix {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 24px;
}

.form-pix input,
.form-pix select {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  font-size: 16px !important;
  font-weight: 500;
  transition: 0.2s;
  scroll-margin-top: 120px;
}

.form-pix input:focus,
.form-pix select:focus {
  outline: none;
  border-color: #6E0AD6;
}

.info-banco {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px;
  padding: 16px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #fafafa;
}

.info-banco img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.info-banco strong {
  font-size: 15px;
}

.termos-box {
  font-size: 12px;
  color: #6f6f6f;
}

.termos-box a {
  color: #6E0AD6;
  text-decoration: underline;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-container input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.footer-form {
  position: static;
  background: #fff;
  padding: 12px 0 20px;
  border-top: none;
  z-index: 10;
  margin-top: 8px;
}

.btn-continuar {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 28px;
  background-color: #ff6a33;
  color: white;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-continuar:disabled {
  background-color: #ffb199;
  cursor: not-allowed;
}

.btn-continuar:hover:not(:disabled) {
  background-color: #e85c28;
}

.modal-bancos.modo-formulario {
  height: auto;
}

.passo-frase {
  display: none;
  font-size: 14px;
  color: #6f6f6f;
  margin: 0 20px 20px 20px;
  line-height: 1.4;
  transition: 0.3s ease;
}

.outro-banco-input {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0 20px 20px 20px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
}

.outro-banco-input img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.outro-banco-input input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  font-size: 16px !important;
  font-weight: 500;
  transition: 0.2s;
}

.outro-banco-input input:focus {
  outline: none;
  border-color: #6E0AD6;
}

.info-prazo {
  max-width: 390px;
  margin: 16px auto 8px;
  padding: 16px;
  background: #cfe5ec;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
}

.info-icon {
  width: 21px;
  height: 21px;
  min-width: 21px;
  border-radius: 50%;
  border: 2px solid #2aa7c9;
  color: #2aa7c9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.info-prazo strong {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.info-prazo p {
  font-size: 14px;
  line-height: 1.5;
  color: #14506b;
  margin-top: 4px;
}

.historico {
  width: 100%;
  max-width: 410px;
  margin: 14px auto;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-sizing: border-box;
}

.historico h2 {
  font-size: 18px;
  margin-bottom: 18px;
}

.item-historico {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.icone {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.icone.vermelho {
  color: #ff4d4d;
}

.icone.cinza {
  color: #888;
}

.info {
  flex: 1;
}

.tipo {
  font-size: 13px;
  color: #7a7a7a;
}

.info p {
  font-size: 14px;
  margin: 2px 0;
}

.info small {
  font-size: 12px;
  color: #9a9a9a;
}

.historico hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 14px 0;
}

#telaConfirmacao {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.confirmacao-conta {
  padding: 22px;
  overflow-y: auto;
  max-height: calc(92dvh - 80px);
  -webkit-overflow-scrolling: touch;
}

.confirmacao-conta h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.box-confirmacao {
  display: flex;
  gap: 14px;
  border: 1px solid #9aa4b2;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.confirm-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
}

.box-confirmacao p {
  font-size: 14px;
  margin: 4px 0;
}

.alerta-confirmacao {
  background: #fff4dd;
  color: #8a5a00;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-salvar {
  width: 100%;
  border: none;
  border-radius: 24px;
  background: #ff7a00;
  color: white;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.loading-bancos {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e9d8ff;
  border-top-color: #6e0ad6;
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}

.loading-bancos p {
  font-size: 14px;
  font-weight: 600;
  color: #6e0ad6;
}

.tela-chat {
  position: fixed;
  inset: 0;
  background: #f1f1f1;
  z-index: 99999;
  display: none;
  flex-direction: column;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

@supports (height: 100svh) {
  .tela-chat {
    height: 100svh;
    min-height: 100svh;
  }
}

.chat-topo {
  min-height: 70px;
  background: #7900dc;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  flex-shrink: 0;
}

.chat-voltar {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px !important;
  font-weight: 300;
  cursor: pointer;
  width: auto;
  height: auto;
  padding: 0;
  margin-right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.chat-menu {
  display: none !important;
}

.chat-logo {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #6e0ad6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chat-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.chat-info strong {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
}

.chat-info p {
  font-size: 11px;
  color: #fff;
  margin-top: 1px;
}

.verificado-ig {
  display: none;
}

.status-atendimento {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}

.status-online {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #25D366;
}

.chat-alerta-preto {
  background: #7900dc;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.4;
  flex-shrink: 0;
}

.alerta-linha {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alerta-linha p {
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.icone-seguranca {
  display: none;
}

.chat-body {
  flex: 1 1 auto;
  min-height: 0;
  background: #f1f1f1;
  padding: 14px 10px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-data {
  text-align: center;
  color: #555;
  font-size: 13px;
  margin: 8px 0 12px;
}

.chat-dica-seguranca {
  align-self: center;
  width: calc(100% - 30px);
  max-width: 360px;
  margin: 14px auto 10px;
  padding: 14px 16px;
  background: #fff0bf;
  border: 1px solid #ead48d;
  border-radius: 12px;
  text-align: center;
  color: #9a6a00;
  flex-shrink: 0;
}

.chat-dica-seguranca strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.chat-dica-seguranca p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg {
  display: none;
  align-self: flex-start;
  background: #fff;
  color: #222;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #aaa;
  max-width: 78%;
  font-size: 14px;
  line-height: 1.35;
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word;
  flex-direction: column;
  margin-left: 42px;
  position: relative;
}

.chat-msg::before {
  content: "";
  position: absolute;
  left: -34px;
  bottom: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #7900dc url("../imagens/iconeolx.png") center/cover no-repeat;
}

.chat-msg.aparecer-msg {
  display: flex;
  animation: aparecerMensagem 0.25s ease forwards;
}

.chat-msg-user {
  align-self: flex-end;
  background: #7900dc;
  color: #fff;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  max-width: 72%;
  font-size: 14px;
  line-height: 1.35;
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word;
  display: flex;
  flex-direction: column;
}

.chat-msg-user .msg-hora {
  color: rgba(255,255,255,.75);
}

.msg-hora {
  display: block;
  font-size: 10px;
  color: #777;
  margin-top: 6px;
  text-align: right;
}

.digitando {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
}

.digitando img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.bolha-digitando {
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  gap: 4px;
  border: 1px solid #ddd;
}

.bolha-digitando span {
  width: 6px;
  height: 6px;
  background: #999;
  border-radius: 50%;
  animation: digitando 1s infinite;
}

.bolha-digitando span:nth-child(2) {
  animation-delay: .2s;
}

.bolha-digitando span:nth-child(3) {
  animation-delay: .4s;
}

.card-pix {
  display: none;
  align-self: flex-start;
  flex-direction: column;
  width: 300px;
  max-width: 78%;
  padding: 14px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-left: 42px;
  position: relative;
}

.card-pix::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #7900dc url("../imagens/iconeolx.png") center/cover no-repeat;
}

.card-pix.aparecer-msg {
  display: flex !important;
}

.card-pix h3 {
  font-size: 15px;
  text-align: center;
  font-weight: 800;
  color: #222;
  margin-bottom: 4px;
}

.card-pix > p {
  font-size: 12px;
  color: #555;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 8px;
}

.tempo-expiracao {
  margin: 8px 0 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.barra-tempo {
  height: 3px;
}

#barraProgresso {
  width: 100%;
  height: 100%;
  background: #ff7a00;
}

.tempo-texto {
  padding: 7px;
  font-size: 11px;
  text-align: center;
}

#contadorTempo {
  color: #ff7a00;
  font-weight: 800;
}

.imagem-box {
  width: 100%;
  height: 120px;
  background: transparent;
  border-radius: 10px;
  margin: 6px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagem-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.instrucao {
  margin: 6px 0 !important;
  font-size: 11px !important;
  line-height: 1.3;
  text-align: center;
  color: #555;
}

.codigo-box {
  padding: 7px;
  margin-bottom: 6px;
  border-radius: 6px;
}

.codigo-box span {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
  word-break: break-all;
}

.btn-copiar,
.btn-enviar,
.btn-outline {
  width: 100%;
  height: 36px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 8px;
}

.btn-copiar {
  background: #7900dc;
  color: #fff;
  border: none;
}

.btn-enviar {
  background: #22c55e;
  color: #fff;
  border: none;
}

.btn-outline {
  background: #fff;
  color: #7900dc;
  border: 1.5px dashed #7900dc;
}

.perguntas-container {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 0 42px;
  max-width: 390px;
}

.perguntas-container.mostrar {
  display: flex;
}

.pergunta-btn {
  background: #7900dc;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.pergunta-btn:hover {
  background: #6200b8;
  transform: scale(1.03);
}

.pergunta-btn:active {
  transform: scale(0.96);
}

.chat-input {
  position: sticky;
  bottom: 0;
  z-index: 20;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.chat-input textarea {
  flex: 1;
  min-height: 44px;
  max-height: 110px;
  overflow-y: auto;
  padding: 13px 16px;
  border-radius: 24px;
  border: 1px solid #ddd;
  font-size: 16px !important;
  outline: none;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
  background: #fff;
}

.chat-input button {
  flex-shrink: 0;
  background: #7900dc;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
}

.banner-protocolo {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.banner-protocolo img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

@keyframes aparecerMensagem {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes digitando {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: .5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

@keyframes piscar {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.processando {
  animation: piscar 1s infinite;
}

body.modal-aberto {
  overflow: hidden !important;
  height: 100dvh !important;
  touch-action: none !important;
}

body.modal-aberto #tela-principal,
body.modal-aberto .topo-app,
body.modal-aberto .saldo,
body.modal-aberto .info-prazo,
body.modal-aberto .conteudo,
body.modal-aberto .historico {
  pointer-events: none;
}

@media (max-width: 480px) {
  .conteudo,
  .historico,
  .info-prazo {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
  }

  .saldo-container {
    width: 100%;
  }

  .modal-bancos {
    width: calc(100% - 20px);
    max-width: 420px;
  }

  .chat-msg,
  .chat-msg-user {
    max-width: 82%;
  }

  .card-pix {
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .chat-topo,
  .chat-body,
  .chat-input {
    width: 100%;
    max-width: 100%;
  }

  .chat-msg,
  .chat-msg-user {
    max-width: 80%;
  }

  .card-pix {
    max-width: 260px;
  }
}

@media (min-width: 768px) {
  .tela-chat {
    background: #e5ddd5;
    padding: 20px;
    align-items: center;
    justify-content: center;
  }

  .chat-topo,
  .chat-body,
  .chat-input {
    width: 100%;
    max-width: 900px;
  }

  .chat-topo {
    border-radius: 12px 12px 0 0;
  }

  .chat-body {
    background: #efeae2;
  }

  .chat-input {
    border-radius: 0 0 12px 12px;
  }

  .chat-msg,
  .chat-msg-user,
  .card-pix {
    max-width: 70%;
  }
}

@media (min-width: 1400px) {
  .chat-topo,
  .chat-body,
  .chat-input {
    max-width: 1100px;
  }

  .chat-msg,
  .chat-msg-user,
  .card-pix {
    max-width: 60%;
  }
}

.tela-venda {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 12px;
  position: relative;
  background: var(--fundo-app) !important;
  overflow-x: hidden !important;
}

.venda-topo {
  height: 82px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #eee;
}

.venda-logo {
  width: 54px;
  height: auto;
}

.venda-topo::before {
  content: "♡";
  position: absolute;
  right: 58px;
  top: 25px;
  font-size: 28px;
  color: #222;
}

.venda-topo::after {
  content: "↗";
  position: absolute;
  right: 22px;
  top: 25px;
  font-size: 25px;
  color: #222;
}

.produto-imagem {
  width: 100%;
  height: 380px;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.produto-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.produto-imagem::after {
  content: "🛡️ Garantia da OLX";
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  color: #222;
  padding: 9px 14px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.produto-imagem::before {
  content: "📷 1/4";
  position: absolute;
  right: 14px;
  top: 14px;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 2;
}

.produto-info {
  background: #fff;
  padding: 22px 24px;
  margin: 0;
}


.produto-info h1 {
  font-size: 25px;
  line-height: 1.15;
  color: #111;
  font-weight: 700;
  margin-bottom: 12px;
}

.produto-info h2 {
  font-size: 42px;
  color: #16051f;
  font-weight: 800;
  margin-bottom: 8px;
}

.venda-sucesso {
  width: calc(100% - 32px);
  margin: 18px auto;
  background: #e9fff1;
  color: #147a35;
  border: 1px solid #bcecc9;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.venda-sucesso span {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.cards-venda {
  width: calc(100% - 32px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-pessoa {
  background: #fff;
  border-radius: 22px;
  padding: 18px 14px;
  min-height: 160px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  border: 1px solid #f0f0f0;
}

.card-pessoa small {
  display: block;
  color: #7900dc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-pessoa strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
  color: #111;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-pessoa p {
  font-size: 13px;
  color: #777;
  line-height: 1.35;
}

.card-pessoa span {
  display: inline-block;
  margin-top: 12px;
  background: #e9fff1;
  color: #157a35;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.card-pessoa b {
  display: block;
  color: #7900dc;
  font-size: 23px;
  font-weight: 800;
  margin-top: 8px;
}

.overlay-carteira {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 35, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  z-index: 1000;
  padding: 20px;

  transition: opacity 0.45s ease;
}

.overlay-carteira.mostrar {
  opacity: 1;
  pointer-events: auto;
}

.card-parabens-venda {
  width: 100%;
  max-width: 350px;

  background: #fff;
  border-radius: 24px;

  padding: 28px 22px 22px;

  text-align: center;

  box-shadow:
    0 20px 50px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,255,255,.35);

  transform: translateY(28px) scale(.92);
  opacity: 0;

  transition:
    transform .5s cubic-bezier(.2, .9, .25, 1.2),
    opacity .45s ease;
}

.overlay-carteira.mostrar .card-parabens-venda {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.icone-parabens {
  width: 68px;
  height: 68px;

  margin: 0 auto 16px;

  border-radius: 50%;

  background: #22c55e;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 38px;
  font-weight: 900;

  box-shadow: 0 10px 25px rgba(34,197,94,.35);
}

.card-parabens-venda h2 {
  font-size: 24px;
  font-weight: 800;
  color: #161616;
  margin-bottom: 10px;
}

.card-parabens-venda p {
  font-size: 14px;
  line-height: 1.45;
  color: #666;
  margin-bottom: 22px;
}

.card-parabens-venda .btn-ir-carteira {
  position: relative;
  left: auto;
  top: auto;
  transform: none;

  width: 100%;
  max-width: none;
  min-height: 56px;

  border: none;
  border-radius: 18px;

  background: linear-gradient(135deg, #7900dc, #9b00ff);
  color: #fff;

  font-size: 16px;
  font-weight: 800;

  cursor: pointer;

  opacity: 1;
  pointer-events: auto;

  box-shadow: 0 12px 28px rgba(121,0,220,.32);

  overflow: hidden;
}

.card-parabens-venda .btn-ir-carteira::before {
  content: "🛒";
  margin-right: 8px;
}

.card-parabens-venda .btn-ir-carteira:active {
  transform: scale(.97);
}

@keyframes aparecerBotaoCarteira {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  body {
    background: #fff;
  }

  .tela-venda,
  .tela-carteira {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 380px) {
  .produto-imagem {
    height: 250px;
  }

  .cards-venda {
    gap: 9px;
  }

  .card-pessoa {
    padding: 13px 11px;
  }

  .produto-info h2 {
    font-size: 34px;
  }

  .venda-sucesso strong {
    font-size: 16px;
  }

  .item-estatistica span {
    font-size: 10px;
  }
}

@media (min-width: 768px) {

  body {
    display: block !important;
    background: #f3f3f3 !important;
  }

  #telaCarteira,
  .tela-carteira {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 100vh !important;
    background: #f3f3f3 !important;
  }

  #telaCarteira .topo-app,
  #telaCarteira .saldo,
  #telaCarteira .saldo-inferior {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  #telaCarteira .saldo-container {
    max-width: 390px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #telaCarteira .info-prazo {
    max-width: 390px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #telaCarteira .conteudo,
  #telaCarteira .historico {
    max-width: 410px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #telaVenda,
  .tela-venda {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.header-ativar .btn-voltar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 8px 0 0 !important;

  border: none !important;
  border-radius: 50% !important;

  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;

  font-size: 0 !important;
  line-height: 1 !important;
}

.header-ativar .btn-voltar::before {
  content: "←";
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  font-size: 22px;
  font-weight: 500;
  line-height: 1;

  transform: translateY(-1px);
}

.card-pix {
  width: 250px !important;
  max-width: 250px !important;

  padding: 10px 10px !important;
  border-radius: 12px !important;

  gap: 6px !important;
  margin-top: 2px !important;
  margin-bottom: 2px !important;
}

.card-pix h3 {
  font-size: 13px !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.card-pix > p {
  font-size: 11px !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

.tempo-expiracao {
  margin: 4px 0 6px !important;
  border-radius: 7px !important;
}

.barra-tempo {
  height: 3px !important;
}

.tempo-texto {
  padding: 5px !important;
  font-size: 10px !important;
}

.banner-protocolo {
  margin-bottom: 6px !important;
  border-radius: 10px !important;
}

.banner-protocolo img {
  max-height: 90px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}

.codigo-box {
  padding: 5px !important;
  margin-bottom: 4px !important;
  border-radius: 6px !important;
}

.codigo-box span {
  font-size: 10px !important;
  line-height: 1.2 !important;
  margin-bottom: 3px !important;
}

.btn-copiar,
.btn-enviar,
.btn-outline {
  height: 32px !important;
  min-height: 32px !important;

  border-radius: 999px !important;

  font-size: 11px !important;
  font-weight: 800 !important;

  margin-bottom: 5px !important;
  padding: 0 10px !important;
}

.btn-outline {
  margin-bottom: 0 !important;
}

.card-pix .msg-hora {
  font-size: 9px !important;
  margin-top: 2px !important;
}

.chat-msg {
  padding: 10px 12px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  max-width: 76% !important;
}

@media (max-width: 480px) {
  .card-pix {
    width: 245px !important;
    max-width: calc(100% - 72px) !important;
    padding: 10px !important;
  }

  .banner-protocolo img {
    max-height: 110px !important;
  }

  .btn-copiar,
  .btn-enviar,
  .btn-outline {
    height: 31px !important;
    font-size: 10.5px !important;
  }
}

#listaFormulariosAdmin,
.lista-formularios {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;

  width: 100% !important;
  min-height: 20px !important;

  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}

.form-card-admin {
  display: block !important;
  width: 100% !important;

  opacity: 1 !important;
  visibility: visible !important;

  background: #fff !important;
  border: 1px solid #ececf1 !important;
  border-radius: 22px !important;

  padding: 16px !important;
  margin: 0 !important;

  box-shadow: 0 8px 24px rgba(0,0,0,.04) !important;
}

.form-card-topo {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;

  padding-bottom: 14px !important;
  margin-bottom: 14px !important;

  border-bottom: 1px solid #ececf1 !important;
}

.form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.form-grid > div {
  display: block !important;
  background: #fafafa !important;
  border: 1px solid #f0f0f3 !important;
  border-radius: 16px !important;
  padding: 12px !important;
}

.form-grid small {
  display: block !important;
  font-size: 10px !important;
  color: #71717a !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  margin-bottom: 5px !important;
}

.form-grid p {
  display: block !important;
  color: #222 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

.form-protocolo {
  grid-column: span 2 !important;
}

.form-acoes {
  display: flex !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.form-acoes button {
  flex: 1 !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 12px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.btn-alterar-protocolo {
  background: #efe5ff !important;
  color: #7900dc !important;
}

.btn-excluir-form {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .form-protocolo {
    grid-column: span 1 !important;
  }

  .form-acoes {
    flex-direction: column !important;
  }
}

.codigo-box-oculto {
  display: none !important;
}

@media (max-width: 480px) {

  .tela-venda {
    width: 100%;
    min-height: 100svh;
    padding-bottom: 12px !important;
  }

  .venda-topo {
    height: 62px;
  }

  .venda-logo {
    width: 45px;
  }

  .venda-topo::before {
    top: 16px;
    right: 56px;
    font-size: 25px;
  }

  .venda-topo::after {
    top: 16px;
    right: 20px;
    font-size: 22px;
  }

  .produto-imagem {
    height: clamp(220px, 34svh, 300px);
  }

  .produto-imagem::after {
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .produto-imagem::before {
    top: 10px;
    right: 10px;
    font-size: 11px;
  }

  .venda-sucesso {
    width: calc(100% - 24px);
    margin: 10px auto;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.2;
    gap: 10px;
  }

  .venda-sucesso span {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 22px;
  }

  .produto-info {
    padding: 14px 18px;
  }

  .produto-info h1 {
    font-size: 21px;
    margin-bottom: 7px;
  }

  .produto-info h2 {
    font-size: 34px;
    margin-bottom: 0;
  }

  .cards-venda {
    width: calc(100% - 24px);
    margin: 10px auto 0;
    gap: 8px;
  }

  .card-pessoa {
    min-height: 135px;
    padding: 12px 10px;
    border-radius: 16px;
  }

  .card-pessoa small {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .card-pessoa strong {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .card-pessoa p {
    font-size: 11px;
    line-height: 1.25;
  }

  .card-pessoa span {
    margin-top: 7px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .card-pessoa b {
    margin-top: 6px;
    font-size: 20px;
  }
}

.header-ativar .btn-voltar {
  display: none !important;
}

.modal-bancos.modo-formulario .header-ativar .btn-voltar {
  display: flex !important;
}

#lista-bancos-tela {
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

body.modal-aberto {
  overflow: hidden !important;
  height: 100dvh !important;
}

@media (max-width: 767px) {
  .overlay {
    padding: 10px !important;
    overflow: hidden !important;
  }

  .modal-bancos {
    width: calc(100% - 4px) !important;
    max-width: 420px !important;
    max-height: calc(100dvh - 20px) !important;
  }

  .modal-bancos.modo-formulario .header-ativar {
    padding: 16px 18px !important;
    gap: 12px !important;
  }

  .modal-bancos.modo-formulario .header-texto h2 {
    font-size: 18px !important;
    margin-bottom: 3px !important;
  }

  .modal-bancos.modo-formulario .header-texto p {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  .modal-bancos.modo-formulario .btn-voltar,
  .modal-bancos.modo-formulario .btn-fechar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  .modal-bancos.modo-formulario {
    height: auto !important;
    overflow: hidden !important;
  }

  #formulario-pix {
    flex: 0 1 auto !important;
    max-height: none !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }

  .info-banco {
    margin: 12px 20px 10px !important;
    padding: 12px 14px !important;
    gap: 11px !important;
  }

  .info-banco img {
    width: 30px !important;
    height: 30px !important;
  }

  .form-pix {
    gap: 10px !important;
    padding: 0 20px 8px !important;
  }

  .form-pix input:not([type="checkbox"]),
  .form-pix select {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
  }

  .checkbox-container {
    min-height: 28px !important;
    gap: 8px !important;
  }

  .checkbox-container input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
  }

  .termos-box {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .footer-form {
    margin-top: 2px !important;
    padding: 8px 0 6px !important;
  }

  .btn-continuar {
    min-height: 52px !important;
    padding: 14px 16px !important;
    border-radius: 28px !important;
    font-size: 16px !important;
  }

  #telaConfirmacao,
  .confirmacao-conta {
    max-height: none !important;
    overflow: hidden !important;
  }

  .confirmacao-conta {
    padding: 18px 20px !important;
  }

  .confirmacao-conta h2 {
    font-size: 21px !important;
    margin-bottom: 14px !important;
  }

  .box-confirmacao {
    gap: 12px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
  }

  .confirm-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  .box-confirmacao p {
    font-size: 13px !important;
    margin: 3px 0 !important;
    line-height: 1.3 !important;
  }

  .alerta-confirmacao {
    padding: 14px !important;
    margin-bottom: 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .btn-salvar {
    min-height: 50px !important;
    padding: 13px 14px !important;
  }

  #telaCarteira,
  .tela-carteira {
    width: 100% !important;
    min-height: 100svh !important;
    background: #f3f3f3 !important;
  }

  #telaCarteira .topo-app,
  .tela-carteira .topo-app {
    height: 56px !important;
  }

  #telaCarteira .saldo,
  .tela-carteira .saldo {
    padding-top: 28px !important;
  }

  #telaCarteira .saldo::after,
  .tela-carteira .saldo::after {
    top: 20px !important;
  }

  #telaCarteira .saldo-titulo,
  .tela-carteira .saldo-titulo {
    font-size: 18px !important;
    margin-bottom: 9px !important;
  }

  #telaCarteira .saldo-topo,
  .tela-carteira .saldo-topo {
    padding-bottom: 19px !important;
  }

  #telaCarteira .numero,
  .tela-carteira .numero {
    font-size: 52px !important;
  }

  #telaCarteira .saldo-inferior,
  .tela-carteira .saldo-inferior {
    padding: 12px 0 !important;
  }

  #telaCarteira .info-prazo,
  .tela-carteira .info-prazo {
    margin: 10px auto 7px !important;
    padding: 13px !important;
  }

  #telaCarteira .info-prazo p,
  .tela-carteira .info-prazo p {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  #telaCarteira .conteudo,
  .tela-carteira .conteudo {
    margin: 9px auto !important;
  }

  #telaCarteira .card,
  .tela-carteira .card {
    margin: 0 auto !important;
    padding: 17px !important;
  }

  #telaCarteira .historico,
  .tela-carteira .historico {
    margin: 9px auto 12px !important;
    padding: 14px !important;
  }

  #telaCarteira .historico h2,
  .tela-carteira .historico h2 {
    margin-bottom: 13px !important;
  }

  #telaVenda,
  .tela-venda {
    width: 100% !important;
    min-height: 100svh !important;
    padding-bottom: 10px !important;
  }

  .venda-topo {
    height: 64px !important;
  }

  .venda-logo {
    width: 48px !important;
  }

  .venda-topo::before,
  .venda-topo::after {
    top: 50% !important;
    transform: translateY(-50%);
  }

  .produto-imagem {
    height: clamp(240px, 34svh, 315px) !important;
  }

  .produto-imagem::after {
    left: 13px !important;
    bottom: 12px !important;
    padding: 7px 11px !important;
    font-size: 12px !important;
  }

  .venda-sucesso {
    width: calc(100% - 24px) !important;
    margin: 10px auto !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .venda-sucesso span {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 22px !important;
  }

  .produto-info {
    padding: 14px 18px !important;
  }

  .produto-info h1 {
    font-size: 21px !important;
    margin-bottom: 7px !important;
  }

  .produto-info h2 {
    font-size: 34px !important;
    margin-bottom: 0 !important;
  }

  .cards-venda {
    width: calc(100% - 24px) !important;
    margin: 10px auto 0 !important;
    gap: 9px !important;
  }

  .card-pessoa {
    min-height: 132px !important;
    height: auto !important;
    padding: 12px 11px !important;
    border-radius: 17px !important;
    overflow: visible !important;
  }

  .card-pessoa small {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }

  .card-pessoa strong {
    font-size: 14px !important;
    margin-bottom: 5px !important;
  }

  .card-pessoa p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .card-pessoa span {
    margin-top: 7px !important;
    padding: 5px 7px !important;
    font-size: 9px !important;
  }

  .card-pessoa b {
    margin-top: 6px !important;
    font-size: 20px !important;
  }

  .tela-chat {
    overflow: hidden !important;
  }

  .chat-topo {
    min-height: 64px !important;
    padding: 9px 13px !important;
  }

  .chat-alerta-preto {
    padding: 9px 15px !important;
  }

  .chat-body {
    padding: 11px 10px 13px !important;
    gap: 9px !important;
  }

  .chat-input {
    padding-top: 9px !important;
    padding-bottom: calc(9px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 767px) and (min-height: 760px) {
  #telaCarteira,
  .tela-carteira,
  #telaVenda,
  .tela-venda {
    height: 100svh !important;
    max-height: 100svh !important;
    overflow: hidden !important;
  }
}

@media (max-width: 767px) and (max-height: 759px) {
  #telaCarteira,
  .tela-carteira,
  #telaVenda,
  .tela-venda {
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
  }

  .modal-bancos.modo-formulario {
    max-height: calc(100dvh - 12px) !important;
  }

  #formulario-pix,
  #telaConfirmacao,
  .confirmacao-conta {
    max-height: calc(100dvh - 92px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

#telaCarteira .saldo {
  padding-top: 50px !important;
}

#telaCarteira .saldo::after {
  display: none !important;
  content: none !important;
}

#telaCarteira .saldo-titulo {
  margin-bottom: 16px !important;
}

#telaCarteira .saldo-topo {
  padding-bottom: 32px !important;
}

#telaCarteira .info-prazo {
  margin-top: 20px !important;
  margin-bottom: 16px !important;
}

#telaCarteira .conteudo {
  width: calc(100% - 40px) !important;
  max-width: 410px !important;
  margin: 16px auto 20px !important;
  padding: 0 !important;
}

#telaCarteira .conteudo .card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

#telaCarteira .historico {
  width: calc(100% - 40px) !important;
  max-width: 410px !important;
  margin: 0 auto 20px !important;
}

#telaCarteira .info-prazo {
  width: calc(100% - 40px) !important;
  max-width: 410px !important;
}

#telaCarteira .card {
  padding: 22px 20px !important;
}

@media (max-width: 380px) {
  #telaCarteira .saldo {
    padding-top: 58px !important;
  }

  #telaCarteira .conteudo,
  #telaCarteira .info-prazo,
  #telaCarteira .historico {
    width: calc(100% - 28px) !important;
  }
}

.tela-chat {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;

  height: 100dvh !important;
  min-height: 100dvh !important;

  background: #f1f1f1 !important;
  overflow: hidden !important;

  display: none;
  flex-direction: column;

  z-index: 999999 !important;
  isolation: isolate;
}

body.chat-aberto {
  width: 100% !important;
  height: 100dvh !important;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  touch-action: none !important;
}

.chat-topo {
  position: relative !important;
  z-index: 30 !important;

  width: 100% !important;
  min-height: 70px !important;

  flex: 0 0 70px !important;

  background: #7900dc !important;
}

.chat-voltar {
  align-self: center !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;

  width: 38px !important;
  height: 38px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 1 !important;
  transform: translateY(-7px) !important;
}

.chat-body {
  position: relative !important;

  flex: 1 1 auto !important;
  min-height: 0 !important;

  width: 100% !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  padding-bottom: 96px !important;

  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

.chat-input {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  width: 100% !important;

  z-index: 50 !important;

  flex-shrink: 0 !important;

  background: #fff !important;
  border-top: 1px solid #ddd !important;

  padding: 10px 12px !important;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;

  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.07);
}

.chat-input::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: -1;
}

@media (max-width: 767px) {
  .tela-chat {
    padding: 0 !important;
  }

  .chat-topo,
  .chat-body,
  .chat-input {
    max-width: none !important;
  }

  .chat-body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 767px) {

  .chat-topo {
    min-height: 60px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
    padding: 6px 10px !important;
    gap: 7px !important;
  }

  .chat-logo {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .chat-info strong {
    font-size: 15px !important;
    line-height: 1.1 !important;
  }

  .chat-info p,
  .status-atendimento {
    font-size: 11px !important;
  }

  .chat-voltar {
    width: 30px !important;
    height: 36px !important;
    margin: 0 2px 0 0 !important;
    font-size: 25px !important;
    transform: translateY(-2px) !important;
  }

  .chat-alerta-preto {
    padding: 6px 12px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .alerta-linha {
    gap: 5px !important;
  }

  .alerta-linha p {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .chat-body {
    gap: 5px !important;
    padding: 8px 8px calc(70px + env(safe-area-inset-bottom)) !important;
    background: #efeae2 !important;
  }

  .chat-data {
    font-size: 11px !important;
    margin: 3px 0 6px !important;
  }

  .chat-dica-seguranca {
    width: calc(100% - 36px) !important;
    margin: 5px auto 7px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }

  .chat-dica-seguranca strong {
    font-size: 12px !important;
    margin-bottom: 3px !important;
  }

  .chat-dica-seguranca p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .chat-msg {
    max-width: 80% !important;
    margin-left: 34px !important;
    padding: 7px 9px !important;
    border: none !important;
    border-radius: 8px 8px 8px 2px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08) !important;
  }

  .chat-msg::before {
    left: -29px !important;
    bottom: 2px !important;
    width: 23px !important;
    height: 23px !important;
  }

  .chat-msg-user {
    max-width: 80% !important;
    padding: 7px 9px !important;
    border-radius: 8px 8px 2px 8px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    background: #7900dc !important;
color: #fff !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08) !important;
  }

  .chat-msg-user .msg-hora {
    color: #667781 !important;
  }

  .msg-hora {
    font-size: 9px !important;
    margin-top: 2px !important;
  }

  .digitando {
    margin-left: 18px !important;
    gap: 4px !important;
  }

  .digitando img {
    width: 23px !important;
    height: 23px !important;
  }

  .bolha-digitando {
    padding: 6px 8px !important;
    gap: 3px !important;
    border-radius: 8px !important;
  }

  .card-pix {
    margin-left: 34px !important;
    margin-top: 1px !important;
    margin-bottom: 3px !important;
    padding: 9px !important;
  }

  .card-pix::before {
    left: -29px !important;
    width: 23px !important;
    height: 23px !important;
  }

  .perguntas-container {
    gap: 6px !important;
    padding: 5px 0 2px 34px !important;
  }

  .pergunta-btn {
    padding: 8px 12px !important;
    border-radius: 18px !important;
    font-size: 12px !important;
  }

  .chat-input {
    min-height: 62px !important;
    padding: 7px 8px !important;
    padding-bottom: calc(7px + env(safe-area-inset-bottom)) !important;
    gap: 6px !important;
    background: #f0f2f5 !important;
  }

  .chat-input textarea {
    min-height: 44px !important;
    height: 44px !important;
    max-height: 88px !important;
    padding: 11px 14px !important;
    border: none !important;
    border-radius: 22px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    background: #fff !important;
  }

  .chat-input button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
  }
}

.input-foto-chat {
  display: none !important;
}

.chat-input {
  display: flex !important;
  align-items: flex-end !important;
  gap: 6px !important;
}

.chat-input textarea {
  flex: 1 !important;
  min-width: 0 !important;
}

.chat-input .btn-foto-chat,
.chat-input .btn-enviar-chat {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;

  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer;
  flex-shrink: 0 !important;
}

.chat-input .btn-foto-chat {
  background: transparent !important;
  color: #667781 !important;
}

.chat-input .btn-foto-chat svg {
  width: 25px;
  height: 25px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-input .btn-foto-chat:active {
  background: #e3e6e8 !important;
  transform: scale(.95);
}

.chat-input .btn-enviar-chat {
  background: #7900dc !important;
  color: #fff !important;
  font-size: 20px !important;
}

.chat-msg-foto {
  width: min(240px, 75%);
  align-self: flex-end;

  display: flex;
  flex-direction: column;

  padding: 5px;
  background: #7900dc;

  border-radius: 12px 12px 3px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14);
}

.chat-msg-foto img {
  display: block;
  width: 100%;
  max-height: 300px;

  border-radius: 8px;
  object-fit: cover;
}

.chat-msg-foto .msg-hora {
  padding: 2px 4px 0;
  color: rgba(255, 255, 255, .8) !important;
}

.input-foto-chat {
  display: none !important;
}

.chat-input .btn-foto-chat {
  width: 52px !important;
  height: 48px !important;
  min-width: 52px !important;

  padding: 2px 4px !important;
  border: none !important;
  border-radius: 8px !important;

  background: transparent !important;
  color: #667781 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;

  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.chat-input .btn-foto-chat svg {
  width: 23px !important;
  height: 23px !important;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.chat-input .btn-foto-chat span {
  display: block !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #667781 !important;
}

.chat-input .btn-foto-chat:hover {
  background: #e9edef !important;
}

.chat-input .btn-foto-chat:active {
  transform: scale(.96);
}

@media (min-width: 768px) {
  .chat-input {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    width: calc(100% - 40px) !important;
    max-width: 900px !important;

    margin: 0 !important;
    border-radius: 0 0 12px 12px !important;
  }

  .chat-input textarea {
    height: 48px !important;
    min-height: 48px !important;
  }

  .chat-input .btn-enviar-chat {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
}

@media (min-width: 1400px) {
  .chat-input {
    max-width: 1100px !important;
  }
}

.chat-input {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;

  background: #f0f2f5 !important;
  padding: 8px 10px !important;
  padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
}

.chat-campo-mensagem {
  flex: 1 1 auto;
  min-width: 0;

  min-height: 46px;

  display: flex;
  align-items: center;

  background: #ffffff;
  border: 1px solid #e1e4e6;
  border-radius: 24px;

  padding: 0 15px;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-campo-mensagem textarea {
  width: 100% !important;
  min-width: 0 !important;

  min-height: 44px !important;
  max-height: 100px !important;

  padding: 11px 0 !important;

  border: none !important;
  border-radius: 0 !important;
  outline: none !important;

  background: transparent !important;

  color: #222 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;

  resize: none !important;
  overflow-y: auto !important;

  box-shadow: none !important;
}

.chat-campo-mensagem textarea::placeholder {
  color: #707981;
  opacity: 1;
}

.chat-input .btn-foto-chat,
.chat-input .btn-enviar-chat {
  flex: 0 0 auto !important;
}

.chat-input .btn-enviar-chat {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;

  border-radius: 50% !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 767px) {
  .chat-input {
    gap: 7px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .chat-campo-mensagem {
    min-height: 44px;
    border-radius: 22px;
    padding: 0 13px;
  }

  .chat-campo-mensagem textarea {
    min-height: 42px !important;
    font-size: 15px !important;
  }

  .chat-input .btn-enviar-chat {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
}

