/* =====================================================================
   Chat estilo WhatsApp + tela de acompanhamento
   ===================================================================== */

:root {
  --wa-verde: #008069;
  --wa-verde-2: #00A884;
  --wa-fundo: #EFEAE2;
  --wa-eu: #D9FDD3;
  --wa-texto: #111B21;
  --wa-meta: #667781;
  --wa-azul: #53BDEB;
  --wa-fonte: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body { height: 100%; }
body.tela-app { margin: 0; background: #D1D7DB; font-family: var(--wa-fonte); color: var(--wa-texto); overflow: hidden; }

.app {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-width: 480px; height: 100dvh; margin: 0 auto;
  background: var(--wa-fundo); box-shadow: 0 0 40px rgba(0, 0, 0, .12);
}
@media (min-width: 700px) {
  body.tela-app { background: linear-gradient(180deg, var(--wa-verde) 0 127px, #D1D7DB 127px); }
  .app { height: calc(100dvh - 38px); margin-top: 19px; border-radius: 10px; overflow: hidden; }
}

/* ---------- Topo ---------- */
.wa-topo {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: calc(10px + env(safe-area-inset-top)) 10px 10px; background: var(--wa-verde); color: #fff; z-index: 5;
}
.wa-topo a.voltar { color: #fff; text-decoration: none; font-size: 24px; line-height: 1; padding: 4px 6px; }
.wa-topo img { width: 40px; height: 40px; border-radius: 50%; }
.wa-topo .nome { flex: 1; min-width: 0; }
.wa-topo .nome b { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.wa-topo .nome b svg { width: 16px; height: 16px; }
.wa-topo .nome small { display: block; font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-topo button { background: none; border: 0; color: #fff; font-size: 13px; cursor: pointer; padding: 8px; border-radius: 8px; opacity: .9; }
.wa-topo button:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Mensagens ---------- */
.wa-mensagens {
  flex: 1; overflow-y: auto; padding: 12px 4% 16px; display: flex; flex-direction: column; gap: 3px;
  background-color: var(--wa-fundo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d6cfc4' stroke-width='1.2' opacity='.55'%3E%3Ccircle cx='20' cy='22' r='7'/%3E%3Cpath d='M70 14l6 10H64z'/%3E%3Crect x='92' y='60' width='12' height='12' rx='3'/%3E%3Cpath d='M18 84c6-6 12 6 18 0'/%3E%3Ccircle cx='66' cy='92' r='3'/%3E%3Cpath d='M100 20l4 4m0-4l-4 4'/%3E%3C/g%3E%3C/svg%3E");
  scroll-behavior: smooth;
}
.wa-dia { align-self: center; background: #fff; color: var(--wa-meta); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; margin: 6px 0 10px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-aviso { align-self: center; max-width: 92%; text-align: center; background: #FFEECD; color: #54656F; font-size: 12.5px; padding: 6px 12px; border-radius: 8px; margin: 4px 0 10px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }

.msg { display: flex; flex-direction: column; max-width: 86%; animation: entrar .18s ease-out; }
.msg.bot { align-self: flex-start; }
.msg.cliente { align-self: flex-end; align-items: flex-end; }
.msg + .msg.bot, .msg + .msg.cliente { margin-top: 2px; }
.msg.cliente + .msg.bot, .msg.bot + .msg.cliente { margin-top: 10px; }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } }

.bolha {
  position: relative; padding: 6px 8px 8px 9px; border-radius: 8px; font-size: 14.6px; line-height: 1.42;
  background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); word-wrap: break-word; overflow-wrap: anywhere;
}
.msg.cliente .bolha { background: var(--wa-eu); }
.bolha .texto { white-space: pre-wrap; }
.bolha .texto strong { font-weight: 700; }
.bolha .meta { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--wa-meta); display: inline-flex; align-items: center; gap: 3px; }
.bolha .meta svg { width: 16px; height: 11px; color: var(--wa-azul); }
.bolha.larga { min-width: 260px; }

/* Botões de resposta rápida (estilo WhatsApp Business) */
.opcoes { display: grid; gap: 3px; margin-top: 3px; }
.opcoes button {
  width: 100%; background: #fff; border: 0; border-radius: 8px; padding: 10px 12px; text-align: center;
  color: #027EB5; font: 500 14.5px/1.3 var(--wa-fonte); cursor: pointer; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  transition: background .12s;
}
.opcoes button:hover:not([disabled]) { background: #F5F6F6; }
.opcoes button[disabled] { color: #8696A0; cursor: default; }
.opcoes button.escolhida { color: var(--wa-verde); font-weight: 700; }

/* Ações dentro da bolha */
.bolha .acoes-bolha { display: grid; gap: 6px; margin-top: 10px; }
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 11px 12px; border-radius: 22px; border: 0; background: var(--wa-verde-2); color: #fff;
  font: 600 14.5px/1.2 var(--wa-fonte); cursor: pointer; text-decoration: none;
}
.btn-wa:hover { filter: brightness(.95); }
.btn-wa.claro { background: #F0F2F5; color: var(--wa-texto); }
.btn-wa[disabled] { opacity: .6; cursor: default; }

/* Mapa dos prestadores na bolha */
.mini-mapa { height: 170px; border-radius: 6px; overflow: hidden; margin: 2px -2px 8px; background: #E8EEE4; }
.lista-prest { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lista-prest li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #F7F8FA; font-size: 13.5px; }
.lista-prest li:first-child { background: #E7F8F1; box-shadow: inset 0 0 0 1.5px #9FE3C7; }
.lista-prest .av { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #0B4EA2; color: #fff; }
.lista-prest .av svg { width: 18px; height: 18px; }
.lista-prest .dados { flex: 1; min-width: 0; }
.lista-prest .dados b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-prest .dados small { color: var(--wa-meta); }
.lista-prest .tempo { text-align: right; font-weight: 700; color: var(--wa-verde); font-size: 13px; white-space: nowrap; }
.lista-prest .tempo small { display: block; font-weight: 500; color: var(--wa-meta); }

/* Formulário dentro da bolha */
.form-bolha { display: grid; gap: 8px; margin-top: 10px; }
.form-bolha label { display: grid; gap: 3px; font-size: 12.5px; color: var(--wa-meta); font-weight: 600; }
.form-bolha input {
  width: 100%; padding: 10px 11px; border: 1.5px solid #E2E5E8; border-radius: 8px; font: 15px/1.2 var(--wa-fonte);
  color: var(--wa-texto); background: #fff;
}
.form-bolha input:focus { outline: none; border-color: var(--wa-verde-2); box-shadow: 0 0 0 3px rgba(0, 168, 132, .15); }
.form-bolha .erro { color: #D93025; font-size: 12px; font-weight: 600; min-height: 0; }
.form-bolha .com-erro input { border-color: #D93025; }
.form-bolha .seguro { font-size: 11.5px; color: var(--wa-meta); display: flex; gap: 6px; align-items: center; }

/* Pix */
.pix { text-align: center; }
.pix .valor { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.pix .qr { width: 196px; height: 196px; margin: 8px auto; padding: 8px; background: #fff; border-radius: 10px; border: 1px solid #E2E5E8; }
.pix .qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.pix .codigo { font: 11px/1.35 ui-monospace, Menlo, monospace; color: var(--wa-meta); background: #F7F8FA; border-radius: 6px; padding: 7px; max-height: 48px; overflow: hidden; word-break: break-all; text-align: left; }
.pix .status { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 13.5px; margin: 10px 0 4px; color: #8A6D00; }
.pix .status.pago { color: var(--wa-verde); font-size: 15px; }
.pix .nota-demo { font-size: 11.5px; color: var(--wa-meta); margin-top: 6px; }
.girando { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pix.pago .qr, .pix.pago .codigo, .pix.pago .acoes-bolha { display: none; }

/* Digitando… */
.digitando { align-self: flex-start; background: #fff; border-radius: 8px; padding: 12px 14px; display: flex; gap: 4px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); margin-top: 8px; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: pulo 1.2s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; }
.digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Barra de digitação ---------- */
.wa-entrada { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: transparent; }
.wa-entrada .caixa { flex: 1; display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 24px; padding: 4px 6px 4px 14px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-entrada input { flex: 1; min-width: 0; border: 0; outline: none; font: 16px/1.3 var(--wa-fonte); padding: 9px 0; background: transparent; color: var(--wa-texto); }
.wa-entrada input:disabled { background: transparent; color: #8696A0; }
.wa-entrada .icone-btn { background: none; border: 0; padding: 6px; border-radius: 50%; cursor: pointer; color: #54656F; display: grid; place-items: center; }
.wa-entrada .icone-btn svg { width: 24px; height: 24px; }
.wa-enviar { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--wa-verde-2); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.wa-enviar svg { width: 22px; height: 22px; }
.wa-enviar:disabled { background: #8696A0; cursor: default; }

/* =====================================================================
   Acompanhar atendimento
   ===================================================================== */
body.tela-acomp { margin: 0; font-family: var(--wa-fonte); color: var(--wa-texto); background: #D1D7DB; overflow: hidden; }
.acomp { position: relative; max-width: 480px; height: 100dvh; margin: 0 auto; background: #fff; overflow: hidden; }
@media (min-width: 700px) { .acomp { height: calc(100dvh - 38px); margin-top: 19px; border-radius: 10px; box-shadow: 0 0 40px rgba(0,0,0,.12); } }
.acomp-mapa { position: absolute; inset: 0 0 auto 0; height: 58%; background: #E8EEE4; z-index: 0; transition: height .4s ease; }
.acomp.painel-alto .acomp-mapa { height: 38%; }
.acomp.painel-alto .acomp-painel { top: 32%; }
.acomp-topo { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 500; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.acomp-topo a, .acomp-topo span { pointer-events: auto; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--wa-texto); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.acomp-topo span { color: var(--wa-meta); font-weight: 500; }

.acomp-painel {
  position: absolute; left: 0; right: 0; bottom: 0; top: 52%; z-index: 600; overflow-y: auto;
  background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
  padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  transition: top .4s ease;
}
.acomp-alca { width: 40px; height: 5px; border-radius: 3px; background: #E2E5E8; margin: 0 auto 14px; }
.acomp-status h1 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.acomp-status p { color: var(--wa-meta); margin: 6px 0 0; font-size: 14.5px; }
.acomp-eta { display: inline-flex; align-items: baseline; gap: 4px; background: #E7F8F1; color: var(--wa-verde); font-weight: 800; border-radius: 12px; padding: 6px 12px; margin-top: 10px; font-size: 15px; }
.acomp-eta b { font-size: 24px; }
.radar { position: relative; width: 64px; height: 64px; margin: 6px auto 10px; }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #0B4EA2; animation: radar 1.8s ease-out infinite; }
.radar::after { animation-delay: .9s; }
.radar i { position: absolute; inset: 22px; border-radius: 50%; background: #0B4EA2; }
@keyframes radar { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.cartao-prest { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: 14px; background: #F7F8FA; }
.cartao-prest .av { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #0B4EA2; color: #fff; font-weight: 800; font-size: 18px; }
.cartao-prest .dados { flex: 1; min-width: 0; }
.cartao-prest .dados b { display: block; font-size: 16px; }
.cartao-prest .dados small { display: block; color: var(--wa-meta); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placa { flex: none; font: 700 13px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; background: #fff; border: 1.5px solid #CBD2D9; border-top: 5px solid #1D4ED8; border-radius: 6px; padding: 6px 8px; }
.selo-express { display: inline-block; margin-top: 4px; background: #FFF4D6; color: #8A5A00; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }

.cartao-acelerar { margin-top: 14px; padding: 14px; border-radius: 14px; background: #FFF4D6; border: 1.5px solid #FFB81C; }
.cartao-acelerar b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.cartao-acelerar p { margin: 0 0 12px; font-size: 13.5px; color: #3B4148; }
.cartao-acelerar .btn-acelerar { width: 100%; border: 0; border-radius: 12px; padding: 13px; background: #FFB81C; color: #15181B; font: 800 15px/1 var(--wa-fonte); cursor: pointer; }
.cartao-acelerar .btn-acelerar:disabled { opacity: .6; }
.dica-acelerar { margin-top: 12px; font-size: 12.5px; color: var(--wa-meta); text-align: center; }

.cartao-orcamento { margin-top: 14px; border: 1.5px solid #E2E5E8; border-radius: 14px; padding: 14px; }
.cartao-orcamento h2 { font-size: 16px; margin: 0 0 8px; }
.cartao-orcamento .linha { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #E2E5E8; font-size: 14px; }
.cartao-orcamento .linha.desc { color: var(--wa-verde); font-weight: 700; }
.cartao-orcamento .linha.total { border: 0; font-weight: 800; font-size: 16.5px; padding-top: 10px; }
.cartao-orcamento small { display: block; color: var(--wa-meta); font-size: 12.5px; margin: 8px 0 12px; }
.cartao-orcamento .botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.estrelas { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.estrelas button { background: none; border: 0; font-size: 34px; cursor: pointer; color: #D1D7DB; padding: 0 2px; line-height: 1; }
.estrelas button.ativa { color: #FFB300; }

.linha-tempo { list-style: none; margin: 20px 0 0; padding: 0; }
.linha-tempo li { position: relative; padding: 0 0 14px 28px; font-size: 14px; color: #8696A0; }
.linha-tempo li::before { content: ''; position: absolute; left: 5px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #E2E5E8; }
.linha-tempo li::after { content: ''; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: #E2E5E8; }
.linha-tempo li:last-child::after { display: none; }
.linha-tempo li.feito { color: var(--wa-texto); font-weight: 600; }
.linha-tempo li.feito::before { background: var(--wa-verde-2); box-shadow: 0 0 0 4px #D8F5EC; }
.linha-tempo li.feito::after { background: var(--wa-verde-2); }
.linha-tempo li small { float: right; color: var(--wa-meta); font-weight: 500; }
.rodape-acomp { margin-top: 10px; font-size: 12.5px; color: var(--wa-meta); text-align: center; }

/* Janela do Pix (Acelerar) */
.janela-fundo { position: fixed; inset: 0; background: rgba(11, 20, 26, .55); z-index: 2000; display: flex; align-items: flex-end; justify-content: center; }
.janela { width: 100%; max-width: 480px; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); animation: subir .2s ease-out; }
.janela h2 { font-size: 18px; margin: 0 0 4px; text-align: center; }
.janela .fechar { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--wa-meta); font-size: 14px; cursor: pointer; padding: 8px; }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }

.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 3000; background: #111B21; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: entrar .2s ease-out; max-width: 92%; }

/* Marcadores do mapa */
.marcador-cliente { width: 22px; height: 22px; border-radius: 50%; background: #1A73E8; border: 4px solid #fff; box-shadow: 0 0 0 8px rgba(26, 115, 232, .22), 0 2px 6px rgba(0,0,0,.3); }
.marcador-prest { width: 40px; height: 40px; border-radius: 10px; background: #0B4EA2; color: #fff; border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.marcador-prest svg { width: 22px; height: 22px; }
.marcador-prest.pequeno svg { width: 15px; height: 15px; }
.marcador-prest.pequeno { width: 28px; height: 28px; border-radius: 7px; border-width: 2px; }
.leaflet-container { font-family: var(--wa-fonte); }
.leaflet-control-attribution { font-size: 9px !important; }

[hidden] { display: none !important; }

/* Fotos e áudios no chat */
.foto-msg { display: block; width: 240px; max-width: 100%; max-height: 320px; object-fit: cover; border-radius: 6px; margin: -2px -4px 4px; background: #E9EDEF; }
.bolha audio { display: block; width: 240px; max-width: 100%; height: 38px; }
.transcricao { font-size: 12.5px; color: #54656F; font-style: italic; margin-top: 4px; max-width: 240px; }
.enviando { opacity: .6; }
.gravando { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 24px; padding: 10px 14px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); font-size: 15px; }
.gravando .txt { color: #667781; font-size: 13.5px; flex: 1; }
.gravando button { background: none; border: 0; font-size: 18px; color: #D93025; cursor: pointer; padding: 0 4px; }
.ponto-rec { width: 10px; height: 10px; border-radius: 50%; background: #D93025; animation: piscar 1s infinite; }
@keyframes piscar { 50% { opacity: .25; } }
.wa-enviar.mic { background: var(--wa-verde-2); }

/* Acompanhamento estilo app de entrega */
.progresso { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 6px; }
.progresso i { height: 5px; border-radius: 3px; background: #E2E5E8; position: relative; overflow: hidden; }
.progresso i.feito { background: #0B4EA2; }
.progresso i.atual { background: #CFDDF1; }
.progresso i.atual::after { content: ''; position: absolute; inset: 0; width: 40%; background: #0B4EA2; border-radius: 3px; animation: correr 1.4s ease-in-out infinite; }
@keyframes correr { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.progresso-rotulos { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 10.5px; color: #8696A0; font-weight: 600; margin-bottom: 12px; }
.progresso-rotulos span:nth-child(2), .progresso-rotulos span:nth-child(3) { text-align: center; }
.progresso-rotulos span:last-child { text-align: right; }
.progresso-rotulos span.ativo { color: #0B4EA2; font-weight: 800; }
.chegada-hora { font-size: 13px; color: #667781; margin-top: 6px; }
.chegada-hora b { color: #111B21; }
.acoes-pedido { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.acoes-pedido button, .acoes-pedido a { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 0; background: #F2F4F6; color: #111B21; font: 600 12.5px var(--wa-fonte); text-decoration: none; cursor: pointer; }
.acoes-pedido span { font-size: 18px; line-height: 1.1; }
.link-cancelar { display: block; width: 100%; margin-top: 10px; background: none; border: 0; color: #D93025; font: 600 13.5px var(--wa-fonte); padding: 8px; cursor: pointer; }
.cartao-cancelar { margin-top: 12px; border: 1.5px solid #FAD2CF; background: #FFF6F5; border-radius: 14px; padding: 14px; }
.cartao-cancelar b { display: block; margin-bottom: 4px; }
.cartao-cancelar p { margin: 0 0 12px; font-size: 13.5px; color: #54656F; }
.cartao-cancelar .botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-vermelho { border: 0; border-radius: 22px; padding: 11px; background: #D93025; color: #fff; font: 600 14px var(--wa-fonte); cursor: pointer; }
.recibo-app { margin-top: 14px; background: #F7F8FA; border-radius: 14px; padding: 14px; }
.recibo-app h2 { font-size: 15px; margin: 0 0 8px; }
.recibo-app .linha { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.recibo-app .total { border-top: 1px dashed #D1D7DB; margin-top: 6px; padding-top: 8px; font-weight: 800; }
.recibo-app small { display: block; color: #667781; font-size: 12.5px; margin-top: 6px; }
.recibo-app .devolucao { margin-top: 10px; background: #E7F8F1; color: #0B6B4C; border-radius: 10px; padding: 9px 11px; font-size: 13px; font-weight: 600; }
.somente-ver { margin-top: 10px; font-size: 12.5px; color: #667781; text-align: center; }

/* Preço fixo da região, no chat */
.preco { display: grid; gap: 2px; font-family: 'Overpass', var(--wa-fonte); }
.preco .pr-rotulo { font: 600 11px/1 'Overpass Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; color: #69717A; }
.preco .pr-valor { font: 700 30px/1.15 'Overpass Mono', ui-monospace, monospace; color: #15181B; margin-top: 6px; letter-spacing: -0.02em; }
.preco .pr-caso { font-weight: 800; color: #15181B; }
.preco .pr-regiao { color: #0B4EA2; font-size: 12.5px; font-weight: 700; }
.preco .pr-inclui { color: #3B4148; font-size: 13.5px; margin-top: 6px; }
.preco .pr-variacao { color: #3B4148; font-size: 13px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #D1D7DB; }
.preco .pr-garantia { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #E5F3EB; color: #0B5A35; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.preco .pr-garantia svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Adicionais antes do Pix (order bump) */
.adicionais { display: grid; gap: 8px; margin-top: 10px; font-family: 'Overpass', var(--wa-fonte); }
.adicionais .bump {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; cursor: pointer;
  padding: 11px 12px; border: 1.5px solid #D1D7DB; border-radius: 10px; background: #fff; transition: border-color .15s, background-color .15s;
}
.adicionais .bump:has(input:checked) { border-color: #0B4EA2; background: #E7EEF8; }
.adicionais .bump input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #0B4EA2; }
.adicionais .bump-txt b { display: block; font-weight: 800; color: #15181B; font-size: 14.5px; line-height: 1.25; }
.adicionais .bump-txt small { display: block; color: #3B4148; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.adicionais .bump-valor { font: 700 13.5px/1.3 'Overpass Mono', ui-monospace, monospace; color: #0B4EA2; white-space: nowrap; }
.adicionais .bump-sep { font: 600 11px/1 'Overpass Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; color: #69717A; margin-top: 4px; }
.adicionais .btn-wa { margin-top: 4px; }
.adicionais .bump-nota { color: #667781; font-size: 12px; }

/* Tiques: cinza ao enviar, azul quando a atendente lê */
.bolha .meta svg { color: var(--wa-meta); transition: color .3s; }
.msg.cliente.lido .bolha .meta svg { color: var(--wa-azul); }

/* Acompanhamento: tipografia da marca e ícones nas ações */
body.tela-acomp .acomp-status h1, body.tela-acomp .cartao-orcamento h2, body.tela-acomp .recibo-app h2 { font-family: 'Overpass', var(--wa-fonte); font-weight: 900; letter-spacing: -0.02em; }
body.tela-acomp .acomp-eta, body.tela-acomp .recibo-app .linha span:last-child, body.tela-acomp .cartao-orcamento .linha b, body.tela-acomp .cartao-orcamento .linha.total span:last-child { font-family: 'Overpass Mono', ui-monospace, monospace; }
.acoes-pedido .ic { width: 20px; height: 20px; }
.cartao-orcamento .est-linha { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 2px 0 8px; font-size: 13px; color: #667781; }
.cartao-orcamento .est-selo { font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #E5F3EB; color: #0E7A47; white-space: nowrap; }
.cartao-orcamento .est-selo.acima { background: #FFF4D6; color: #8A5A00; }
.cartao-orcamento .est-aviso { font-size: 12.5px; color: #8A5A00; margin: -2px 0 8px; }

/* Adicionais no acompanhamento */
.selo-garantia { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: #E5F3EB; color: #0B5A35; font-size: 12px; font-weight: 800; }
.cartao-orcamento .linha.peca em { font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #0B4EA2; background: #E7EEF8; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.recibo-app .garantia-recibo { margin-top: 10px; background: #E7EEF8; color: #0B4EA2; border-radius: 10px; padding: 9px 11px; font-size: 13px; font-weight: 700; }

/* Transferência entre setores (aviso de sistema, como no WhatsApp) */
.wa-aviso.transferencia { background: #E7EEF8; color: #0B4EA2; font-weight: 700; margin: 10px 0; }

/* Motivo da recusa / do cancelamento (opcional) */
.cartao-orcamento .motivos { display: grid; gap: 8px; margin-top: 10px; }
.cartao-orcamento .motivos b { font-size: 14px; }
.motivos-cancelar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.motivos-cancelar small { width: 100%; color: #667781; }
.motivos-cancelar .chip { border: 1.5px solid #D1D7DB; background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 13px/1 inherit; cursor: pointer; }
.motivos-cancelar .chip.escolhido { border-color: #0B4EA2; background: #E7EEF8; color: #0B4EA2; }

/* Profissional atrasado */
.cartao-atraso { display: grid; gap: 8px; margin: 12px 0; padding: 14px; border-radius: 14px; background: #FFF4D6; border: 1.5px solid #FFB81C; }
.cartao-atraso b { font-size: 16px; color: #15181B; }
.cartao-atraso p { margin: 0 0 4px; color: #3B4148; font-size: 14px; }
.cartao-atraso .link-cancelar { color: #3B4148; font-weight: 600; }
