/* DK Pneus · compra: carrinho, finalizar e pedido gerado. Prefixo cx-.
   Usa a fundação (app.css): cores, botões, .caixa, .campo, .opcao, .qtd, .aviso, .selo, animação (--ease, dk-traco, dk-brilho).
   Movimento só em transform/opacity (e uma altura que acompanha a troca de etapa); nada fica girando ou piscando.
   "Reduzir movimento": a regra global da fundação desliga animações e transições; no fim deste arquivo, os estados finais. */

.cx { padding-top: 26px; padding-bottom: 8px; }
.cx h1 { font-size: 34px; letter-spacing: -.4px; }
.cx h1:focus, .cx h2:focus { outline: none; }
.cx-pagina .barra-comparar { display: none !important; }
.cx-valor, .cx-sub, .cx-barra-v b, .cx-pe-total b, .cx-totais dd { font-variant-numeric: tabular-nums; }
[data-cx-conta] { transition: color .3s var(--ease); }
[data-cx-conta].is-contando { color: var(--azul); }

/* ---------- etapas (com barra que enche entre os passos) ---------- */
.cx-etapas-nav { margin-bottom: 26px; }
.cx-etapas, .cx-passos ol { margin: 0; padding: 0; list-style: none; }
.cx-etapas { display: flex; align-items: center; }
.cx-etapas li { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.cx-etapas li:last-child { flex: 0 0 auto; }
.cx-liga { position: relative; flex: 1; min-width: 12px; height: 3px; margin: 0 14px; overflow: hidden; border-radius: 3px; background: var(--linha); }
.cx-liga i { position: absolute; inset: 0; border-radius: inherit; background: var(--azul); transform: scaleX(0); transform-origin: left center; }
.cx-liga.is-cheia i { transform: none; }
.cx-liga.is-enche i { animation: cx-enche .44s var(--ease) calc(var(--o, 0) * 120ms) both; }
.cx-liga.is-esvazia i { animation: cx-esvazia .34s var(--ease-saida) calc(var(--o, 0) * 90ms) both; }
.cx-etapa { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; border: 0; background: none; color: var(--suave); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.cx-etapa-n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha); font: 700 13.5px/1 var(--fonte); color: var(--suave); transition: background .2s, color .2s, box-shadow .2s; }
.cx-etapa-n .ic { stroke-width: 2.4; }
.is-atual .cx-etapa { color: var(--tinta); }
.is-atual .cx-etapa-n { background: var(--azul); color: #fff; box-shadow: 0 0 0 4px rgba(4, 70, 230, .13); }
.is-feita .cx-etapa { color: var(--tinta); }
.is-feita .cx-etapa-n { background: var(--azul-claro); color: var(--azul); box-shadow: none; }
.is-chega .cx-etapa-n { animation: cx-pop .46s var(--ease) var(--a, 0ms) both; }
.is-recem .cx-etapa-n .ic path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: dk-traco .34s var(--ease) var(--a, 0ms) forwards; }
a.cx-etapa:hover .cx-etapa-t, button.cx-etapa:hover .cx-etapa-t { color: var(--azul); }
a.cx-etapa:hover .cx-etapa-n, button.cx-etapa:hover .cx-etapa-n { box-shadow: inset 0 0 0 1.5px var(--azul); }
.cx-etapas-movel { display: none; }

/* ---------- grade: conteúdo + resumo ---------- */
.cx-grade { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cx-lado { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
body.rolou .cx-lado { top: 86px; }
.cx-principal { min-width: 0; }
.cx-cab { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.cx-cab p { color: var(--suave); font-size: 15.5px; font-weight: 500; }

/* ---------- linhas do carrinho ---------- */
.cx-itens { overflow: hidden; }
.cx-itens-cab, .cx-linha { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 128px; column-gap: 20px; }
.cx-itens-cab { padding: 13px 24px; border-bottom: 1px solid var(--linha); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--suave); }
.cx-itens-cab span:first-child { grid-column: 1 / 3; }
.cx-itens-cab span:last-child { text-align: right; }
.cx-linha { position: relative; isolation: isolate; grid-template-areas: "foto info qtd sub"; row-gap: 12px; align-items: start; padding: 22px 24px; transition: background .2s; }
.cx-itens > .cx-linha, .cx-itens > .cx-desfeito--linha { border-top: 1px solid var(--linha); }
.cx-itens > .cx-itens-cab + * { border-top: 0; }
.cx-linha::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #F2F6FF; opacity: 0; pointer-events: none; }
.cx-linha.is-entra { animation: cx-linha-entra .5s var(--ease) both; }
.cx-linha.is-entra::after { animation: cx-realce-bloco 1.7s ease-out .1s both; }
.cx-itens.revelar .cx-linha { opacity: 0; }
.cx-itens.revelar.is-visivel .cx-linha { animation: cx-linha-entra .55s var(--ease) calc(var(--i, 0) * 70ms + 140ms) both; }
.cx-foto { grid-area: foto; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 12px; background: #F3F4F7; overflow: hidden; }
.cx-foto img { max-width: 84%; max-height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s var(--ease, ease); }
a.cx-foto:hover img { transform: scale(1.05); }
.cx-foto--serv { background: var(--azul-claro); color: var(--azul); }
.cx-info { grid-area: info; min-width: 0; }
.cx-marca { display: block; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--suave); }
.cx-nome { margin-top: 3px; font-size: 18.5px; line-height: 1.25; }
.cx-nome a:hover { color: var(--azul); }
.cx-desc { margin-top: 4px; font-size: 14px; color: var(--texto); }
.cx-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cx-specs span { padding: 3px 8px; border-radius: 6px; background: var(--fundo); font-size: 12.5px; font-weight: 600; color: var(--texto); }
.cx-unit { margin-top: 10px; font-size: 14px; color: var(--suave); }
.cx-unit b { color: var(--tinta); font-weight: 700; }
.cx-unit s { margin-right: 2px; color: var(--suave); }
.cx-estoque { margin-top: 8px; font-size: 13px; }
.cx-aviso-l { margin-top: 12px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.cx-aviso-l a { white-space: nowrap; }
.cx-aviso-ok { margin-left: auto; padding: 0; border: 0; background: none; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cx-aviso-ok:hover { text-decoration-thickness: 2px; }
.cx-qtd-col { grid-area: qtd; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cx-qtd { height: 42px; }
.cx-qtd button { width: 38px; transition: background .15s, color .15s; }
.cx-qtd button:disabled { color: #C4C8D2; background: none; cursor: not-allowed; }
.cx-qtd input { width: 44px; font-size: 15.5px; }
.cx-qtd:focus-within { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(4, 70, 230, .12); }
.cx-max, .cx-qtd-nota { font-size: 12.5px; color: var(--suave); }
.cx-max { color: var(--alerta); font-weight: 600; }
.cx-qtd-fixa { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 10px; background: var(--fundo); font-size: 14px; font-weight: 600; color: var(--texto); }
.cx-remover { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--suave); transition: color .15s, background .15s; }
.cx-remover:hover { color: var(--falta); }
.cx-sub { grid-area: sub; padding-top: 9px; text-align: right; font-weight: 800; font-size: 18px; color: var(--tinta); white-space: nowrap; }
.cx-sub small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--suave); }
.cx-sub-off, .cx-consulta { font-size: 14px; font-weight: 600; color: var(--suave); }
.cx-linha.is-indisp { background: #FCFCFD; }
.cx-linha.is-indisp .cx-foto img { opacity: .4; }
.cx-linha.is-indisp .cx-nome, .cx-linha.is-indisp .cx-unit b { color: var(--suave); }

/* desfazer: no lugar da linha que saiu (ou solto, no carrinho vazio) */
.cx-desfeito { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: #F7F9FF; color: #1d3a8a; font-size: 14px; }
.cx-desfeito-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--azul-claro); color: var(--azul); }
.cx-desfeito-ic .ic { stroke-width: 2.4; }
.cx-desfeito-t { flex: 1; min-width: 0; }
.cx-desfeito b { color: var(--tinta); font-weight: 600; }
.cx-desfeito button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px #D5DEF7; font-weight: 700; color: var(--azul); transition: box-shadow .15s, background .15s; }
.cx-desfeito button:hover { box-shadow: inset 0 0 0 1.5px var(--azul); }
.cx-desfeito--linha { overflow: hidden; min-height: 62px; padding: 12px 24px; }
.cx-desfeito--linha > * { animation: cx-aparece .3s var(--ease) .14s both; }
.cx-desfeito--solto { margin-bottom: 14px; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra-1); animation: cx-desce .3s var(--ease) both; }
.cx-principal-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.cx-esvaziar { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--suave); }
.cx-esvaziar:hover { color: var(--falta); }

/* ---------- sugestão: monte na oficina (em destaque) ---------- */
.cx-sug { display: grid; grid-template-columns: 240px minmax(0, 1fr); margin-top: 16px; overflow: hidden; box-shadow: 0 0 0 1px #DCE5FB, var(--sombra-2); }
.cx-sug-foto { position: relative; min-height: 100%; overflow: hidden; background: var(--noite); }
.cx-sug-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-sug-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 2, 14, 0) 30%, rgba(0, 2, 14, .82) 100%); }
.cx-sug-frase { position: absolute; left: 18px; right: 16px; bottom: 18px; z-index: 1; font: 700 22px/1.12 var(--fonte-tit); color: #fff; }
.cx-sug-frase small { display: block; margin-bottom: 7px; font: 700 11.5px/1 var(--fonte); letter-spacing: 1.6px; text-transform: uppercase; color: #9DB8FF; }
.cx-sug-corpo { padding: 22px 24px 24px; min-width: 0; }
.cx-sug h2 { margin-top: 6px; font-size: 24px; }
.cx-sug-corpo > p { margin-top: 4px; color: var(--texto); max-width: 520px; }
.cx-sug-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cx-sug-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border: 1px solid var(--linha); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s, transform .2s var(--ease); }
.cx-sug-item:hover { border-color: #CDD2DC; box-shadow: var(--sombra-2); transform: translateY(-1px); }
.cx-sug-item.is-incluido { border-color: #BFE6CD; background: #F4FBF7; box-shadow: none; transform: none; }
.cx-sug-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--azul-claro); color: var(--azul); transition: background .2s, color .2s; }
.cx-sug-item.is-incluido .cx-sug-ic { background: #E1F5E9; color: var(--ok); }
.cx-sug-t { min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--suave); line-height: 1.35; }
.cx-sug-t b { font-size: 15px; color: var(--tinta); }
.cx-sug-v { font-weight: 800; font-size: 15.5px; color: var(--tinta); white-space: nowrap; }
.cx-sug-bt { min-width: 118px; }
.cx-sug-bt.is-incluido, .cx-sug-bt.is-incluido:hover { background: var(--ok); color: #fff; box-shadow: none; cursor: default; }
.cx-sug-todos { margin-top: 16px; }
.cx-sug-todos[aria-disabled="true"] { opacity: .7; pointer-events: none; }
.cx-sug--mini { display: block; }
.cx-sug-mini-t { font-size: 18px; }
.cx-sug--mini .cx-sug-corpo { padding: 18px 20px 20px; }
.cx-sug--mini .cx-sug-lista { margin-top: 12px; }
.cx-traco path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: dk-traco .32s var(--ease) .04s forwards; }
.cx-traco { stroke-width: 2.4; }

/* ---------- resumo lateral ---------- */
.cx-resumo { padding: 22px 24px 24px; }
.cx-resumo h2 { font-size: 22px; margin-bottom: 16px; }
.cx-resumo-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cx-resumo-topo h2 { margin: 0; }
.cx-alterar { padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 700; color: var(--azul); }
.cx-alterar:hover { text-decoration: underline; text-underline-offset: 3px; }
.cx-totais { margin: 0; display: flex; flex-direction: column; gap: 11px; }
.cx-totais div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 15px; }
.cx-totais dt { color: var(--texto); }
.cx-totais dt span { color: var(--suave); }
.cx-totais dd { margin: 0; text-align: right; font-weight: 600; color: var(--tinta); }
.cx-totais dd small { display: block; font-size: 12.5px; font-weight: 500; color: var(--suave); }
.cx-frete { font-weight: 600; color: var(--tinta); }
.cx-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--linha); }
.cx-total-l { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cx-total-l > span:first-child { padding-bottom: 5px; font-weight: 600; font-size: 15px; color: var(--tinta); }
.cx-valor { font: 800 30px/1.05 var(--fonte); letter-spacing: -.4px; color: var(--tinta); white-space: nowrap; }
.cx-valor small { margin-right: 3px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.cx-valor sup { margin-left: 1px; font-size: 15px; vertical-align: 11px; }
.cx-valor--txt { font-size: 22px; }
.cx-total-sub { margin-top: 3px; text-align: right; font-size: 13.5px; color: var(--suave); }
.cx-nota { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--fundo); font-size: 13px; line-height: 1.4; color: var(--texto); }
.cx-nota .ic { color: var(--azul); margin-top: 1px; }
.cx-seguir { margin-top: 18px; }
.cx-resumo-alerta { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--alerta); }
.cx-sem-cobranca { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--suave); }
.cx-sem-cobranca .ic { color: var(--ok); margin-top: 1px; }
.cx-garantias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; padding: 18px 4px; }
.cx-garantias li { display: flex; gap: 12px; align-items: flex-start; padding: 0 18px; font-size: 13px; line-height: 1.4; color: var(--suave); }
.cx-garantias li + li { border-left: 1px solid var(--linha); }
.cx-garantias .ic { color: var(--azul); margin-top: 1px; }
.cx-garantias b { display: block; font-size: 14.5px; color: var(--tinta); }

/* miniaturas (finalizar e pedido) */
.cx-mini { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--linha); }
.cx-mini li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.cx-mini-foto { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: #F3F4F7; color: var(--suave); }
.cx-mini-foto img { max-width: 84%; max-height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.cx-mini-foto--serv { background: var(--azul-claro); color: var(--azul); }
.cx-mini-foto i { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--noite); color: #fff; font: 700 11.5px/21px var(--fonte); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.cx-mini-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cx-mini-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--tinta); }
.cx-mini-t small { font-size: 12.5px; color: var(--suave); }
.cx-mini-v { font-size: 14px; font-weight: 700; color: var(--tinta); white-space: nowrap; }
.cx-resumo--fin .cx-nota { display: none; }
.cx-resumo--fin .cx-mini { gap: 12px; }

/* ---------- carrinho vazio ---------- */
.cx-vazio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; }
.cx-vazio.is-entra, .cx-cats.is-entra { animation: cx-entra .5s var(--ease) both; }
.cx-cats.is-entra { animation-delay: .1s; }
.cx-vazio-corpo { padding: 44px 44px 40px; }
.cx-vazio-ic { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--azul-claro); color: var(--azul); }
.cx-vazio h1 { margin-top: 20px; }
.cx-vazio-corpo > p { margin-top: 8px; max-width: 470px; font-size: 16.5px; color: var(--texto); }
.cx-vazio-busca { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 10px; margin-top: 26px; }
.cx-vazio-busca .btn { height: 48px; }
.cx-vazio-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; font-size: 15px; }
.cx-vazio-wa { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--verde-wa-esc); }
.cx-vazio-wa:hover { text-decoration: underline; text-underline-offset: 3px; }
.cx-vazio-medida { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px 40px; background: var(--noite); color: #C9CEDC; }
.cx-vazio-medida .rotulo { color: #8FAEFF; }
.cx-vazio-medida-txt { font-size: 14.5px; line-height: 1.5; max-width: 340px; }
.cx-medida { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; }
.cx-medida span { display: flex; flex-direction: column; gap: 8px; }
.cx-medida b { font: 800 58px/.9 var(--fonte-tit); letter-spacing: -1px; color: #fff; }
.cx-medida-aro b { color: #4C7DFF; }
.cx-medida small { padding-top: 8px; border-top: 2px solid rgba(255, 255, 255, .16); font-size: 11.5px; font-weight: 600; line-height: 1.35; letter-spacing: .6px; text-transform: uppercase; color: #8D94AA; }
.cx-medida i { font: 800 52px/.9 var(--fonte-tit); font-style: normal; color: rgba(255, 255, 255, .28); }
.cx-cats { margin-top: 40px; }
.cx-cats-grade { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cx-cat { display: flex; flex-direction: column; align-items: center; padding: 16px 12px 16px; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra-1); text-align: center; transition: transform .2s var(--ease, ease), box-shadow .2s; }
.cx-cat:hover { transform: translateY(-3px); box-shadow: var(--sombra-2); }
.cx-cat-foto { height: 96px; display: grid; place-items: center; margin-bottom: 8px; }
.cx-cat-foto img { max-height: 92px; width: auto; mix-blend-mode: multiply; }
.cx-cat b { font-size: 15.5px; color: var(--tinta); }
.cx-cat > span:last-child { font-size: 12.5px; color: var(--suave); }

/* ---------- finalizar ---------- */
.cx-form { min-width: 0; }
.cx-palco { position: relative; overflow: hidden; }
.cx-passo { padding: 28px 30px 10px; }
.cx-passo--sai { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; animation: cx-passo-sai .26s var(--ease-saida) both; }
.cx-passo--entra { animation: cx-passo-entra .46s var(--ease) .05s both; }
.cx-sub-entra { animation: cx-entra .42s var(--ease) both; }
.cx-passo-cab { margin-bottom: 22px; }
.cx-passo-cab h2 { margin-top: 6px; font-size: 28px; }
.cx-passo-cab p { margin-top: 6px; color: var(--texto); max-width: 560px; }
.cx-opc { margin-left: 4px; font-size: 12.5px; font-weight: 500; color: var(--suave); }
.cx-sub-tit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid var(--linha); }
.cx-sub-tit h3 { font-size: 19px; }
.cx-sub-tit span { font-size: 13.5px; color: var(--suave); }
.cx-dica { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; line-height: 1.45; color: var(--suave); }
.cx-dica .ic { color: var(--azul); margin-top: 1px; }
.cx-dica a { font-weight: 700; color: var(--azul); }
.cx-link { font-weight: 700; color: var(--azul); }
.cx-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.campo small .cx-link { margin-left: auto; }
.cx-form [data-campo="cep"] small { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-cep-st { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; animation: cx-aparece .25s var(--ease) both; }
.cx-cep-st:empty { display: none; }
.cx-cep-st--ok { color: var(--ok); }
.cx-cep-st--erro { color: var(--falta); }
.cx-cep-st--busca { color: var(--suave); }

/* campo: "certo" verde quando está bom, erro que entra e sai suave, preenchimento automático realçado */
.cx-ctl { position: relative; }
.cx-form .campo .cx-ctl--valida input { padding-right: 42px; }
.cx-ctl-ok { position: absolute; right: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; display: grid; place-items: center; border-radius: 50%; background: #E3F5EA; color: var(--ok); opacity: 0; transform: scale(.4); transition: opacity .2s var(--ease), transform .3s var(--ease); pointer-events: none; }
.cx-ctl-ok .ic { stroke-width: 2.8; }
.cx .campo.is-ok .cx-ctl-ok { opacity: 1; transform: none; }
.cx .campo.is-erro .cx-ctl-ok { opacity: 0; transform: scale(.4); }
.cx .campo.is-erro textarea { border-color: var(--falta); }
.cx .campo-erro { display: flex; align-items: center; gap: 6px; font-weight: 600; animation: cx-erro-entra .28s var(--ease) calc(var(--i, 0) * 55ms) both; }
.cx .campo-erro .ic { flex: none; }
.cx .campo-erro.is-saindo { animation: cx-erro-sai .18s var(--ease-saida) both; }
.cx-erro-grupo { margin-top: 8px; }
.cx .campo.is-preenchido input, .cx .campo.is-preenchido select { animation: cx-campo-realce 1.5s ease-out; }
.cx .campo.is-buscando input { background: linear-gradient(90deg, #F0F2F6 0%, #F9FAFB 40%, #F0F2F6 80%); background-size: 200% 100%; animation: dk-brilho 1.3s linear infinite; }
.cx-grupo { margin: 0; padding: 0; border: 0; min-width: 0; }
.cx-grupo + .cx-grupo { margin-top: 22px; }
.cx-legenda { display: block; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; color: var(--tinta); }
.cx-bloco-sub { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--linha); }
.cx-bloco-sub > h3 { margin-bottom: 14px; font-size: 19px; }
.cx-aviso-passo { margin-top: 18px; align-items: center; flex-wrap: wrap; }

/* envio pelos Correios: serviços da oficina saem do pedido (aviso do recebimento, lembrete ao lado e na revisão) */
.cx-aviso-fora { align-items: flex-start; animation: cx-desce .3s var(--ease) both; }
.cx-aviso-fora > span { flex: 1 1 240px; min-width: 0; }
.cx-aviso-fora b { color: #4F3600; }
.cx-fora-nomes { display: block; margin-top: 3px; font-size: 13px; opacity: .85; }
.cx-aviso-fora .cx-aviso-ok { align-self: center; padding: 9px 14px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(107, 74, 0, .35); color: #6B4A00; text-decoration: none; transition: box-shadow .15s; }
.cx-aviso-fora .cx-aviso-ok:hover { box-shadow: inset 0 0 0 1.5px #6B4A00; }
.cx-fora-nota { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #FFF6DB; color: #6B4A00; font-size: 13px; line-height: 1.4; }
.cx-fora-nota .ic { flex: none; margin-top: 1px; }
.cx-fora-nota > span { flex: 1; min-width: 0; }
.cx-fora-nota b { color: #4F3600; }
.cx-fora-nota small { display: block; margin-top: 2px; font-size: 12px; opacity: .85; }
.cx-fora-nota .cx-alterar { flex: none; color: #6B4A00; text-decoration: underline; text-underline-offset: 3px; }
.cx-mini--rev + .cx-fora-nota { margin: 12px 0 0; }
.cx-op.is-off { opacity: .55; cursor: not-allowed; background: var(--fundo); }
.cx-op.is-off:hover { border-color: var(--linha); }

/* cartões de escolha (recebimento, pagamento) */
.cx-opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-opcoes--pag { grid-template-columns: 1fr; }
.cx-opcoes--pag .cx-op { min-height: 80px; }
.cx-op { position: relative; align-items: center; gap: 14px; min-height: 92px; padding: 16px 44px 16px 16px; transition: border-color .15s, background .15s, box-shadow .15s; }
.cx-op input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cx-op:has(input:focus-visible) { outline: 2.5px solid var(--azul); outline-offset: 2px; }
.opcao.cx-op .cx-op-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--fundo); color: var(--tinta); font-size: inherit; transition: background .2s, color .2s; }
.opcao.cx-op .cx-op-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.4; color: var(--suave); }
.opcao.cx-op .cx-op-t span { font-size: inherit; }
.opcao.cx-op .cx-op-t b { font-size: 16px; line-height: 1.25; }
.opcao.cx-op .cx-op-v { flex: none; font: 800 16px var(--fonte); color: var(--tinta); white-space: nowrap; }
.opcao.cx-op .cx-op-marca { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--linha); color: transparent; transition: background .15s, box-shadow .15s, color .15s; }
.cx-op.is-on { border-color: var(--azul); background: #F7F9FF; box-shadow: inset 0 0 0 .5px var(--azul); }
.opcao.cx-op.is-on .cx-op-ic { background: var(--azul); color: #fff; }
.opcao.cx-op.is-on .cx-op-marca { background: var(--azul); box-shadow: none; color: #fff; }
.cx-op .cx-op-marca .ic { stroke-width: 2.4; }

/* oficina */
.cx-oficina { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 12px; border-radius: 12px; background: var(--fundo); }
.cx-oficina img { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; }
.cx-oficina b { display: block; margin-bottom: 2px; color: var(--tinta); }
.cx-oficina span { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--texto); }
.cx-oficina .ic { color: var(--azul); }
.cx-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cx-chips--periodo { grid-template-columns: repeat(2, minmax(0, 220px)); }
.cx-chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 70px; padding: 8px 6px; border: 1.5px solid var(--linha); border-radius: 12px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.cx-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cx-chip:hover { border-color: #C9CDD8; }
.cx-chip:active { transform: translateY(1px); }
.cx-chip:has(input:focus-visible) { outline: 2.5px solid var(--azul); outline-offset: 2px; }
.cx-chip-s { font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--suave); }
.cx-chip-d { font: 700 20px/1.1 var(--fonte-tit); color: var(--tinta); }
.cx-chip-n { font-size: 11px; font-weight: 600; color: var(--alerta); }
.cx-chip--periodo { min-height: 62px; }
.cx-chip--periodo .cx-chip-s { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.cx-chip.is-on { border-color: var(--azul); background: #F7F9FF; box-shadow: inset 0 0 0 .5px var(--azul); }
.cx-chip.is-on .cx-chip-s { color: var(--azul); }
.cx-chip.is-on .cx-chip-d { color: var(--azul-esc); }
.cx-chip.is-off { opacity: .45; cursor: not-allowed; background: var(--fundo); }
.cx-chip.is-off:hover { border-color: var(--linha); }
.cx-incluir { margin-top: 22px; padding: 16px; border-radius: 12px; border: 1px solid #DCE5FB; background: #FAFBFF; }
.cx-incluir p { font-size: 14px; color: var(--texto); }
.cx-incluir p b { color: var(--tinta); }
.cx-incluir-bts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cx-incluir-bt { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--linha); border-radius: 10px; background: #fff; text-align: left; transition: border-color .15s, box-shadow .15s; }
.cx-incluir-bt:hover { border-color: var(--azul); box-shadow: var(--sombra-2); }
.cx-incluir-bt .ic { color: var(--azul); }
.cx-incluir-bt span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--tinta); }
.cx-incluir-bt small { font-size: 12px; font-weight: 500; color: var(--suave); }
.cx-incluir-bt b { margin-left: 6px; font-size: 14px; color: var(--azul); white-space: nowrap; }

/* parcelas */
.cx-parcelas-g { margin-top: 22px; }
.cx-parcelas { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.cx-parc { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--linha); border-radius: 10px; background: #fff; font-size: 14.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.cx-parc:hover { border-color: #C9CDD8; }
.cx-parc input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--azul); }
.cx-parc b { color: var(--tinta); font-weight: 700; white-space: nowrap; }
.cx-parc-sj { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.cx-parc-tot { margin-left: auto; font-size: 12.5px; color: var(--suave); white-space: nowrap; }
.cx-parc.is-on { border-color: var(--azul); background: #F7F9FF; }

/* revisão */
.cx-rev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cx-rev-bloco { min-width: 0; padding: 16px 18px; border: 1px solid var(--linha); border-radius: 12px; }
.cx-rev-bloco--itens { grid-column: 1 / -1; }
.cx-rev-bloco header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cx-rev-bloco h3 { font: 700 12px var(--fonte); letter-spacing: 1.2px; text-transform: uppercase; color: var(--suave); }
.cx-rev-bloco p { font-size: 14.5px; line-height: 1.5; color: var(--texto); overflow-wrap: anywhere; }
.cx-rev-bloco p b { display: block; margin-bottom: 1px; font-size: 15px; color: var(--tinta); }
.cx-rev-nota { display: block; margin-top: 6px; font-size: 12.5px; color: var(--suave); }
.cx-mini--rev { margin: 0; padding: 0; border: 0; }
.cx-obs { margin-top: 18px; }
.cx-rev-aviso { margin-top: 16px; }
.cx-rev-aviso .aviso { font-size: 13.5px; }
.cx-final-nota { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; line-height: 1.45; color: var(--suave); }
.cx-final-nota .ic { color: var(--ok); margin-top: 1px; }

/* rodapé do formulário: voltar · total · continuar */
.cx-pe { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 18px 30px; border-top: 1px solid var(--linha); border-radius: 0 0 var(--raio) var(--raio); background: #FAFBFC; }
.cx-pe .btn-lg { min-width: 220px; }
.cx-pe .cx-voltar { flex: none; height: 54px; padding: 0 18px; }
.cx-pe-total { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
.cx-pe-total small { font-size: 12.5px; color: var(--suave); }
.cx-pe-total b { font: 800 22px/1.15 var(--fonte); letter-spacing: -.2px; color: var(--tinta); white-space: nowrap; }
.cx-pe-total span { font-size: 12.5px; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cx-finalizar { box-shadow: 0 14px 28px -16px rgba(18, 140, 74, .75); }
.cx-finalizar:disabled { opacity: .7; }
.cx-sem-itens { margin-top: 8px; }
.cx-sem-itens .btn { margin-top: 16px; }

/* no computador o celular da prévia fica ao lado; o resumo e o botão "ver mensagem" são do celular */
.cx-fin .cx-lado-resumo { display: none; }
.cx-ver-msg { display: none; width: 100%; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px; border: 1px solid #CDEBD8; border-radius: 12px; background: #F4FBF7; text-align: left; color: var(--tinta); transition: border-color .15s, background .15s, box-shadow .15s; }
.cx-ver-msg:hover { border-color: var(--verde-wa); box-shadow: var(--sombra-2); }
.cx-ver-msg-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--verde-wa); color: #fff; }
.cx-ver-msg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cx-ver-msg-t b { font-size: 15px; color: var(--tinta); }
.cx-ver-msg-t small { font-size: 12.5px; color: var(--suave); }
.cx-ver-msg > .ic { color: var(--verde-wa-esc); }
.cx-ver-msg--rev { padding: 14px 16px; }

/* ---------- prévia ao vivo: celular com a conversa da DK ---------- */
.cx-vivo { display: flex; flex-direction: column; gap: 12px; }
.cx-vivo-cab { padding: 0 6px; }
.cx-vivo-rot { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--verde-wa-esc); }
.cx-vivo-rot i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde-wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); }
.cx-vivo-cab h2 { margin-top: 4px; font-size: 21px; }
.cx-vivo-cab p { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--suave); }

.cx-cel { position: relative; width: 100%; max-width: 330px; height: clamp(440px, calc(100vh - 205px), 650px); margin: 0 auto; padding: 8px; border-radius: 46px; background: #14161C; box-shadow: inset 0 0 0 1.5px #2C303B, 0 42px 70px -42px rgba(0, 2, 14, .75), 0 14px 26px -18px rgba(0, 2, 14, .4); }
.cx-cel::before, .cx-cel::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #23262E; }
.cx-cel::before { left: -2px; top: 116px; height: 52px; }
.cx-cel::after { right: -2px; top: 140px; height: 74px; }
.cx-cel-tela { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 38px; background: #EFEAE2; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; }
.cx-cel-status { flex: none; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 4px 24px 0 32px; background: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: -.1px; color: #111B21; }
.cx-cel-ilha { position: absolute; left: 50%; top: 10px; width: 86px; height: 24px; margin-left: -43px; border-radius: 14px; background: #0A0B0E; }
.cx-cel-sinais { fill: #111B21; color: #111B21; }
.cx-cel-topo { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 14px 9px 6px; border-bottom: 1px solid #E9EDEF; background: #fff; color: #54656F; }
.cx-cel-topo .ic { stroke-width: 1.9; }
.cx-cel-topo img { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; background: var(--noite); }
.cx-cel-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cx-cel-nome b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: #111B21; }
.cx-cel-nome small { font-size: 12px; color: #667781; }
.cx-cel-chat { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 14px 24px; scrollbar-width: thin; scrollbar-color: rgba(11, 20, 26, .2) transparent; }
.cx-cel-chat::-webkit-scrollbar { width: 5px; }
.cx-cel-chat::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(11, 20, 26, .2); }
.cx-cel-dia { display: table; margin: 0 auto 10px; padding: 4px 10px; border-radius: 7px; background: #fff; font-size: 11.5px; font-weight: 500; color: #54656F; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.cx-cel-balao { position: relative; width: fit-content; max-width: 100%; margin-left: auto; padding: 6px 8px 5px 9px; border-radius: 8px 0 8px 8px; background: #D9FDD3; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); transform-origin: 100% 100%; }
.cx-cel-balao::after { content: ""; position: absolute; top: 0; right: -8px; border-top: 10px solid #D9FDD3; border-right: 8px solid transparent; }
.cx-cel-txt { font-size: 13px; line-height: 17.5px; color: #111B21; }
.cx-cel-txt b { font-weight: 700; }
.cx-wl { position: relative; min-height: 17.5px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 4px; transition: background .15s; }
.cx-wl::before { content: ""; position: absolute; inset: -1px -5px; border-radius: 5px; background: rgba(18, 140, 74, .18); opacity: 0; pointer-events: none; }
.cx-wl.is-novo::before { animation: cx-realce 1.6s ease-out both; }
.cx-wl.is-digitando::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #128C4A; }
.cx-wl.is-surge { animation: cx-surge .42s var(--ease) calc(var(--i, 0) * 28ms + 220ms) both; }
.cx-wl[data-ir] { cursor: pointer; }
.cx-wl[data-ir]:hover { background: rgba(11, 20, 26, .06); }
.cx-cel-meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 3px; font-size: 11px; line-height: 1; color: #667781; }
.cx-cel-st { position: relative; display: inline-block; width: 17px; height: 12px; }
.cx-cel-relogio, .cx-cel-tiques { position: absolute; top: 0; right: 0; }
.cx-cel-relogio { top: -.5px; right: 2px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; transition: opacity .2s, transform .2s; }
.cx-cel-tiques path { fill: none; stroke: #667781; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; }
.cx-cel.is-enviado .cx-cel-relogio { opacity: 0; transform: scale(.5); }
.cx-cel.is-enviado .cx-cel-tiques path:first-child { animation: dk-traco .22s ease-out .12s forwards; }
.cx-cel.is-enviado .cx-cel-tiques path:last-child { animation: dk-traco .22s ease-out .34s forwards; }
.cx-cel.is-enviado .cx-cel-balao { animation: cx-sai .6s var(--ease) both; }
.cx-cel.is-enviando .cx-cel-enviar { animation: cx-aperta .3s var(--ease) both; }
.cx-cel-compor { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 8px 22px 10px; background: #F0F2F5; }
.cx-cel-campo { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; padding: 0 14px; overflow: hidden; border-radius: 19px; background: #fff; font-size: 14px; color: #8696A0; white-space: nowrap; text-overflow: ellipsis; }
.cx-cel-enviar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #00A884; color: #fff; }
.cx-cel-enviar svg { margin-left: 2px; }
button.cx-cel-enviar { cursor: pointer; box-shadow: 0 0 0 4px rgba(0, 168, 132, .2); transition: background .15s, box-shadow .15s; }
button.cx-cel-enviar:hover { background: #008F70; box-shadow: 0 0 0 5px rgba(0, 168, 132, .24); }
button.cx-cel-enviar:disabled { cursor: default; }
.cx-cel-home { position: absolute; left: 50%; bottom: 7px; width: 108px; height: 4px; margin-left: -54px; border-radius: 2px; background: #111B21; opacity: .85; }

/* ---------- folha da prévia (celular) ---------- */
.cx-folha-fundo { position: fixed; inset: 0; z-index: 96; background: rgba(0, 2, 14, 0); transition: background .3s var(--ease-saida); }
.cx-folha-fundo.on { background: rgba(0, 2, 14, .55); }
.cx-folha { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 22px 22px 0 0; background: var(--fundo); box-shadow: 0 -24px 48px -24px rgba(0, 2, 14, .5); transform: translate3d(0, 104%, 0); transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.cx-folha-fundo.on .cx-folha { transform: none; }
.cx-folha-arrasto { flex: none; padding: 8px 16px 8px; touch-action: none; cursor: grab; }
.cx-folha-alca { display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: #CDD1DA; }
.cx-folha-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cx-folha-topo h2 { margin-top: 3px; font-size: 20px; }
.cx-folha-x { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--linha); color: var(--texto); }
.cx-folha-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 4px; }
.cx-folha .cx-cel { max-width: 340px; height: min(620px, calc(100vh - 230px)); height: min(620px, calc(100dvh - 230px)); min-height: 360px; box-shadow: inset 0 0 0 1.5px #2C303B, 0 24px 40px -28px rgba(0, 2, 14, .6); }
.cx-folha-dica { margin: 10px 0 4px; text-align: center; font-size: 13px; color: var(--suave); }
.cx-folha-pe { flex: none; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: #fff; }

/* ---------- prévia estilo WhatsApp (tela do pedido) ---------- */
.cx-wa { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid #DADDE3; background: #EFEAE2; box-shadow: var(--sombra-2); }
.cx-wa-topo { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #F0F2F5; border-bottom: 1px solid #E1E4E8; }
.cx-wa-topo img { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover; background: var(--noite); }
.cx-wa-topo > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cx-wa-topo b { font-size: 15px; color: #111B21; }
.cx-wa-topo small { font-size: 12.5px; color: #667781; }
.cx-wa-wa { color: var(--verde-wa-esc); display: inline-flex; }
.cx-wa-chat { display: flex; justify-content: flex-end; padding: 18px 18px 22px 36px; background: #EFEAE2; }
.cx-wa-balao { position: relative; max-width: 100%; padding: 7px 10px 6px; border-radius: 9px 0 9px 9px; background: #D9FDD3; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.cx-wa-balao::after { content: ""; position: absolute; top: 0; right: -8px; width: 0; height: 0; border-top: 11px solid #D9FDD3; border-right: 8px solid transparent; }
.cx-wa-txt { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/19px 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; color: #111B21; }
.cx-wa-txt b { font-weight: 700; }
.cx-wa-hora { display: block; margin-top: 2px; text-align: right; font: 11px/1 'Segoe UI', system-ui, sans-serif; color: #667781; }

/* ---------- pedido gerado ---------- */
.cx-ped .cx-lado { position: static; }
.cx-ped-grade { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cx-ped-principal { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cx-ok { padding: 34px 36px 30px; }
.cx-ok-topo { display: flex; align-items: center; gap: 16px; }
.cx-ok-selo { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #E7F7EE; color: var(--ok); }
.cx-ok-selo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(27, 138, 75, .35); opacity: 0; pointer-events: none; }
.cx-ok--cancelado .cx-ok-selo { background: #FDE7EA; color: var(--falta); }
.cx-ok-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13.5px; color: var(--suave); }
.cx-ok h1 { margin-top: 22px; font-size: 40px; letter-spacing: -.6px; }
.cx-ok-sub { margin-top: 10px; max-width: 600px; font-size: 17px; line-height: 1.5; color: var(--texto); }
.cx-ok-avisos { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; max-width: 640px; }
.cx-ok-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cx-ok-acoes .btn-wa { box-shadow: 0 14px 28px -16px rgba(18, 140, 74, .75); }
.cx-ok-acoes .btn.is-copiado, .cx-ok-acoes .btn.is-copiado:hover { color: var(--ok); box-shadow: inset 0 0 0 1.5px #A9DDBE; background: #F4FBF7; }
.cx-ok-ajuda { margin-top: 16px; font-size: 13.5px; color: var(--suave); }
.cx-ok-ajuda b { color: var(--tinta); }
/* acabou de finalizar: selo cresce, check se desenha, halo uma vez, texto entra em sequência */
.cx-ok--novo .cx-ok-selo { animation: cx-pop .5s var(--ease) .05s both; }
.cx-ok--novo .cx-ok-selo::after { animation: cx-halo .9s var(--ease-saida) 1.05s both; }
.cx-ok--novo .cx-ok-meta, .cx-ok--novo h1, .cx-ok--novo .cx-ok-sub, .cx-ok--novo .cx-ok-avisos, .cx-ok--novo .cx-ok-acoes, .cx-ok--novo .cx-ok-ajuda { animation: cx-entra .55s var(--ease) both; }
.cx-ok--novo .cx-ok-meta { animation-delay: .2s; }
.cx-ok--novo h1 { animation-delay: .32s; }
.cx-ok--novo .cx-ok-sub { animation-delay: .42s; }
.cx-ok--novo .cx-ok-avisos { animation-delay: .5s; }
.cx-ok--novo .cx-ok-acoes { animation-delay: .56s; }
.cx-ok--novo .cx-ok-ajuda { animation-delay: .64s; }
.cx-ok--quieto .check-anim circle, .cx-ok--quieto .check-anim path { animation: none; stroke-dashoffset: 0; }
.cx-passos { padding: 26px 36px 12px; }
.cx-passos h2 { margin-bottom: 18px; font-size: 22px; }
.cx-passos li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; }
.cx-passos li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--linha); transform-origin: 50% 0; }
.cx-passos li.is-feito::before { background: var(--azul); }
.cx-passos-n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha); font: 700 14px/1 var(--fonte); color: var(--suave); }
.is-atual .cx-passos-n { background: var(--azul); color: #fff; box-shadow: 0 0 0 4px rgba(4, 70, 230, .13); }
.is-feito .cx-passos-n { background: var(--azul-claro); color: var(--azul); box-shadow: none; }
.cx-passos b { display: block; padding-top: 6px; font-size: 16px; color: var(--tinta); }
.cx-passos p { margin-top: 2px; font-size: 14.5px; color: var(--texto); }
.cx-passos .is-futuro b { color: var(--texto); }
/* linha do tempo: cada passo entra e a linha desce até o próximo, em sequência, quando aparece na tela */
.cx-passos.revelar li { opacity: 0; }
.cx-passos.revelar li:not(:last-child)::before { transform: scaleY(0); }
.cx-passos.revelar.is-visivel li { animation: cx-passo-li .5s var(--ease) calc(var(--i, 0) * 170ms + 160ms) both; }
.cx-passos.revelar.is-visivel li:not(:last-child)::before { animation: cx-desce-linha .42s var(--ease) calc(var(--i, 0) * 170ms + 380ms) both; }
.cx-passos.revelar.is-visivel .cx-passos-n { animation: cx-pop .45s var(--ease) calc(var(--i, 0) * 170ms + 160ms) both; }
.cx-ped-msg summary { display: flex; align-items: center; gap: 10px; padding: 18px 24px; list-style: none; cursor: pointer; font-weight: 700; color: var(--tinta); border-radius: var(--raio); }
.cx-ped-msg summary::-webkit-details-marker { display: none; }
.cx-ped-msg summary > .ic:first-child { color: var(--azul); }
.cx-ped-msg summary:hover { color: var(--azul); }
.cx-ped-msg-seta { margin-left: auto; transition: transform .2s var(--ease, ease); }
.cx-ped-msg[open] .cx-ped-msg-seta { transform: rotate(180deg); }
.cx-ped-msg[open] .cx-ped-msg-corpo { animation: cx-entra .35s var(--ease) both; }
.cx-ped-msg-corpo { padding: 0 24px 24px; }
.cx-ped-msg-corpo .cx-wa { max-width: 560px; }
.cx-ped-n { font-weight: 700; font-size: 14px; color: var(--suave); }
.cx-ped-dados { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--linha); }
.cx-ped-dados div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.cx-ped-dados dt { display: flex; align-items: flex-start; gap: 7px; font-weight: 600; color: var(--suave); }
.cx-ped-dados dt .ic { color: var(--azul); margin-top: 2px; }
.cx-ped-dados dd { margin: 0; line-height: 1.5; color: var(--tinta); overflow-wrap: anywhere; }
.cx-ped-voltar { margin-top: 2px; }

/* ---------- barra fixa do celular (fica no body) ---------- */
.cx-barra { display: none; }

/* ---------- animações (respeitam "reduzir movimento" pela regra global da fundação) ---------- */
@keyframes cx-entra { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
@keyframes cx-desce { from { opacity: 0; transform: translate3d(0, -4px, 0); } to { opacity: 1; transform: none; } }
@keyframes cx-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes cx-enche { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cx-esvazia { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes cx-pop { 0% { transform: scale(.72); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes cx-linha-entra { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
@keyframes cx-realce-bloco { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cx-passo-sai { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(calc(var(--dir, 1) * -40px), 0, 0); } }
@keyframes cx-passo-entra { from { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 48px), 0, 0); } to { opacity: 1; transform: none; } }
@keyframes cx-erro-entra { from { opacity: 0; transform: translate3d(0, -5px, 0); } to { opacity: 1; transform: none; } }
@keyframes cx-erro-sai { from { opacity: 1; } to { opacity: 0; transform: translate3d(0, -3px, 0); } }
@keyframes cx-campo-realce { 0%, 30% { background-color: #EEF3FF; border-color: #9DB5F5; } 100% { background-color: #fff; } }
@keyframes cx-realce { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cx-surge { from { opacity: 0; transform: translate3d(0, 4px, 0); } to { opacity: 1; transform: none; } }
@keyframes cx-sai { 0% { transform: translate3d(0, 12px, 0) scale(.96); } 55% { transform: translate3d(0, -3px, 0) scale(1.01); } 100% { transform: none; } }
@keyframes cx-aperta { 0% { transform: none; } 40% { transform: scale(.84); } 100% { transform: none; } }
@keyframes cx-halo { from { opacity: 1; transform: scale(.95); } to { opacity: 0; transform: scale(1.6); } }
@keyframes cx-passo-li { from { opacity: 0; transform: translate3d(-14px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes cx-desce-linha { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cx-sobe { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .cx-grade { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
  .cx-sug { grid-template-columns: 170px minmax(0, 1fr); }
  .cx-sug-frase { font-size: 19px; left: 14px; bottom: 14px; }
  .cx-sug-item { grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "ic t bt" "ic v bt"; gap: 2px 12px; }
  .cx-sug-ic { grid-area: ic; }
  .cx-sug-t { grid-area: t; }
  .cx-sug-v { grid-area: v; font-size: 14px; }
  .cx-sug-item .btn { grid-area: bt; }
  .cx-ped-grade { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
  .cx-itens-cab { display: none; }
  .cx-linha { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "foto info info" "foto qtd sub"; }
  .cx-qtd-col { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .cx-sub { align-self: center; padding-top: 0; }
  .cx-rev { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .cx-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-vazio-busca { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-vazio-busca .btn { grid-column: 1 / -1; }
  .cx-cats-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-avancar-p { display: none; }
  .cx-pe { padding: 16px 22px; }
  .cx-pe .btn-lg { min-width: 0; }
}

@media (max-width: 900px) {
  .cx { padding-top: 18px; }
  .cx h1 { font-size: 28px; }
  .cx-grade, .cx-ped-grade { grid-template-columns: 1fr; gap: 16px; }
  .cx-lado { position: static; }
  .cx-etapas-nav { margin-bottom: 18px; }
  .cx-etapa-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cx-liga { margin: 0 6px; }
  .cx-etapas-movel { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--suave); }
  .cx-etapas-movel b { color: var(--tinta); }
  .cx-etapas-pct { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--azul); }
  .cx-vazio { grid-template-columns: 1fr; }
  .cx-vazio-corpo { padding: 30px 22px 28px; }
  .cx-vazio-medida { padding: 28px 22px; }
  .cx-medida b { font-size: 48px; }
  .cx-medida i { font-size: 44px; }
  .cx-opcoes { grid-template-columns: 1fr; }
  .cx-passo { padding: 22px 18px 6px; }
  .cx-passo-cab h2 { font-size: 24px; }
  .cx-ok { padding: 26px 22px 24px; }
  .cx-ok h1 { font-size: 32px; }
  .cx-passos { padding: 22px 22px 8px; }
  .cx-ped-msg summary { padding: 16px 18px; }
  .cx-ped-msg-corpo { padding: 0 14px 16px; }

  /* finalizar no celular: sem o celular da prévia ao lado; resumo embaixo e botão para abrir a prévia */
  .cx-vivo { display: none; }
  .cx-fin .cx-lado-resumo { display: block; }
  .cx-ver-msg { display: flex; }
  .cx-pe-total { display: none; }

  /* rodapé do formulário gruda no fim da tela enquanto o formulário está à vista */
  .cx-pe { position: sticky; bottom: 0; z-index: 5; margin-top: 18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-radius: 0 0 var(--raio) var(--raio); box-shadow: 0 -12px 24px -20px rgba(0, 2, 14, .45); }
  .cx-pe .btn-lg { flex: 1; min-width: 0; height: 52px; padding: 0 16px; font-size: 16px; }
  .cx-pe .cx-voltar { flex: none; width: 52px; height: 52px; padding: 0; }
  .cx-voltar span, .cx-avancar-p { display: none; }
  body.cx-pagina-fin .wa-flutua { display: none; }

  /* barra fixa do carrinho */
  .cx-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: flex; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linha); box-shadow: 0 -14px 30px -20px rgba(0, 2, 14, .45); animation: cx-sobe .3s var(--ease) both; }
  .cx-barra-v { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .cx-barra-v small { font-size: 12px; color: var(--suave); }
  .cx-barra-v b { font: 800 21px/1.15 var(--fonte); letter-spacing: -.2px; color: var(--tinta); }
  .cx-barra-v span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--suave); }
  .cx-barra .btn { flex: none; height: 50px; padding: 0 20px; }
  body.cx-com-barra { padding-bottom: 76px; }
  body.cx-com-barra .wa-flutua { bottom: 88px; }
  body.cx-com-barra .toasts { bottom: 92px; }
}

@media (max-width: 640px) {
  .cx-linha { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "foto info info" "qtd qtd sub"; column-gap: 14px; padding: 18px 16px; }
  .cx-foto { width: 76px; height: 76px; border-radius: 10px; }
  .cx-nome { font-size: 16.5px; }
  .cx-specs span { font-size: 12px; }
  .cx-remover span { display: none; }
  .cx-remover { width: 40px; height: 40px; justify-content: center; border-radius: 10px; background: var(--fundo); }
  .cx-desfeito, .cx-desfeito--linha { padding: 12px 16px; gap: 10px; }
  .cx-desfeito button { padding: 0 12px; }
  .cx-principal-pe { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  .cx-sug { grid-template-columns: 1fr; }
  .cx-sug-foto { height: 150px; min-height: 0; }
  .cx-sug-frase { font-size: 21px; }
  .cx-sug-corpo { padding: 18px 16px 18px; }
  .cx-sug-item { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 12px; }
  .cx-sug-ic { width: 40px; height: 40px; }
  .cx-sug-bt { min-width: 0; }
  .cx-sug-todos { width: 100%; }
  .cx-resumo { padding: 20px 18px 22px; }
  .cx-vazio-busca { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cx-vazio-busca .campo select { padding: 0 30px 0 12px; background-position: right 10px center; }
  .cx-cats-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cx-chips { gap: 6px; }
  .cx-chip { min-height: 64px; }
  .cx-chips--periodo { grid-template-columns: 1fr 1fr; }
  .cx-parcelas { grid-template-columns: 1fr; }
  .cx-garantias { grid-template-columns: 1fr; gap: 14px; padding: 18px 2px; }
  .cx-garantias li + li { border-left: 0; }
  .cx-op { min-height: 0; }
  .cx-aviso-fora .cx-aviso-ok { margin-left: 28px; }
  .cx-rev { grid-template-columns: 1fr; }
  .cx-wa-chat { padding: 14px 14px 18px 20px; }
  .cx-ok-acoes .btn { width: 100%; }
  .cx-ok-topo { gap: 12px; }
  .cx-ped-dados div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 400px) {
  .cx-pe .btn-lg { font-size: 15px; padding: 0 12px; gap: 6px; }
  .cx-valor { font-size: 27px; }
  .cx-medida b { font-size: 40px; }
  .cx-medida i { font-size: 36px; }
  .cx-etapa-n { width: 28px; height: 28px; }
  .cx-folha .cx-cel { border-radius: 40px; }
  .cx-folha .cx-cel-tela { border-radius: 32px; }
}

/* com "reduzir movimento" as animações não rodam: estados finais já desenhados */
@media (prefers-reduced-motion: reduce) {
  .cx-ok-selo .check-anim circle, .cx-ok-selo .check-anim path { stroke-dashoffset: 0; }
  .is-recem .cx-etapa-n .ic path, .cx-traco path { stroke-dashoffset: 0 !important; }
  .cx-liga.is-enche i { transform: none !important; }
  .cx-liga.is-esvazia i { transform: scaleX(0) !important; }
  .cx-cel.is-enviado .cx-cel-tiques path { stroke-dashoffset: 0 !important; }
  .cx-itens.revelar .cx-linha, .cx-passos.revelar li { opacity: 1 !important; }
  .cx-passos.revelar li:not(:last-child)::before { transform: none !important; }
  .cx .campo.is-buscando input { background: #fff; }
}
