/* MobilyTech · Sites Express · configurador: faixa de ferramentas + painel de cor e cantos, estética BORDERLESS (B58).
   Carregado DEPOIS de configurador.css (mesma página); só vale dentro de #cf-vivo (o resto do site mantém as bordas).
   Estrutura: UM cartão de duas linhas (ferramentas / cor e cantos) na largura da coluna da prévia (<= 960 px), ritmo 4/8 px, linhas de 32 px.
   Sem border, sem outline em repouso, sem box-shadow de 1 px (anel/inset) e sem divisória hairline: a separação vem de superfície (tons),
   raio, espaçamento e peso tipográfico; hover/ativo/selecionado = mudança de tom. Foco de teclado SÓ em :focus-visible (única exceção).
   Documentação: docs/express/CONFIGURADOR.md ("Faixa de ferramentas e painel de cor e cantos"). */
#cf-vivo {
  --ct-sup: #fff; --ct-tom: #0b1a3a0c; --ct-tom-2: #0b1a3a16; --ct-tom-3: #0b1a3a22; --ct-r: 20px; --ct-h: 32px;
  --ct-sombra: 0 8px 20px -14px #0b1a3a55, 0 2px 4px -2px #0b1a3a14;
}
/* ---------- superfície: barra (linha 1) + painel (linha 2) = um cartão ---------- */
#cf-vivo .cf-barra, #cf-vivo .cf-estilo__in {
  box-sizing: border-box; width: 100%; max-width: 960px; margin-inline: auto; border: 0; background: var(--ct-sup);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--ct-sombra);
}
#cf-vivo .cf-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 8px; margin-bottom: 8px; padding: 4px; border-radius: var(--ct-r); }
#cf-vivo .cf-barra > * { flex: 0 0 auto; }
#cf-vivo .cf-barra__br { display: none !important; }
#cf-vivo .cf-estilo { width: 100%; max-width: 960px; margin: 0 auto 8px; }
#cf-vivo .cf-estilo__in { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 8px 24px; min-height: calc(var(--ct-h) + 8px); padding: 4px 12px; border-radius: var(--ct-r); }
#cf-vivo .cf-estilo__in > div { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
#cf-vivo .cf-estilo__in > .cf-estilo__cor { flex: 1 1 auto; }
#cf-vivo .cf-estilo__in > .cf-estilo__cantos { flex: 0 1 auto; }
@media (min-width: 700px) {   /* barra e painel se encostam: o mesmo cartão (a sombra da barra fica sob o painel) */
  #cf-vivo .cf-barra:has(+ .cf-estilo:not([hidden])) { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 -2px 4px -2px #0b1a3a10, 8px 4px 14px -12px #0b1a3a44, -8px 4px 14px -12px #0b1a3a44; }
  #cf-vivo .cf-barra + .cf-estilo:not([hidden]) { margin-top: 0; }
  #cf-vivo .cf-barra + .cf-estilo:not([hidden]) .cf-estilo__in { border-top-left-radius: 0; border-top-right-radius: 0; }
}
/* ---------- rótulos ---------- */
#cf-vivo .cf-rot { flex: none; color: var(--ink-3); font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
/* ---------- barra: modelo, segmentados, tela cheia ---------- */
#cf-vivo .cf-modelo, #cf-vivo .cf-trocar, #cf-vivo .cf-cheia-bt {
  align-items: center; gap: 6px; height: var(--ct-h); padding: 0 12px; border: 0; border-radius: calc(var(--ct-r) - 4px); background: var(--ct-tom); box-shadow: none;
  color: var(--cf-acc, #0F60D9); font: 600 13px/1 var(--f-text); white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease-out);
}
#cf-vivo .cf-modelo { position: relative; padding-left: 12px; }
#cf-vivo .cf-trocar:hover, #cf-vivo .cf-cheia-bt:hover, #cf-vivo .cf-modelo:hover { background: var(--ct-tom-2); box-shadow: none; }
#cf-vivo .cf-trocar:active, #cf-vivo .cf-cheia-bt:active, #cf-vivo .cf-modelo:active { background: var(--ct-tom-3); transform: scale(.98); }
#cf-vivo .cf-modelo:focus-within { outline: 0; }
#cf-vivo .cf-modelo:has(select:focus-visible) { outline: 2px solid var(--cf-acc, #0F60D9); outline-offset: 2px; }
#cf-vivo .cf-cheia-bt { display: inline-flex; }
#cf-vivo .cf-barra [data-cf-tam-grupo] { margin-left: auto; }
#cf-vivo .cf-seg { --ct-p: 2px; padding: var(--ct-p); border: 0; border-radius: calc(var(--ct-r) - 4px); background: var(--ct-tom); box-shadow: none; }
#cf-vivo .cf-seg__ind { top: var(--ct-p); bottom: var(--ct-p); border-radius: calc(var(--ct-r) - 6px); background: #0f1626; box-shadow: 0 4px 10px -4px #090b1066; }
#cf-vivo .cf-seg > button { height: calc(var(--ct-h) - 4px); padding: 0 12px; border-radius: calc(var(--ct-r) - 6px); font: 500 13px/1 var(--f-text); color: var(--ink-2); transition: color .25s var(--ease), background-color .2s var(--ease); }
#cf-vivo .cf-seg > button:hover:not([aria-pressed="true"]) { background: var(--ct-tom-2); color: var(--ink); }
#cf-vivo .cf-seg > button[aria-pressed="true"] { color: #fff; font-weight: 600; }
#cf-vivo .cf-seg > button svg { width: 16px; height: 16px; }
#cf-vivo .cf-seg--tam > button { min-width: 32px; padding: 0 8px; font-weight: 600; }
#cf-vivo .cf-cheia-bt svg { width: 16px; height: 16px; }
/* ---------- cor ---------- */
#cf-vivo .cf-paletas { flex: 0 1 auto; flex-wrap: nowrap; gap: 6px; min-width: 0; margin: -8px 0; padding: 8px 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #0000, #000 6px, #000 calc(100% - 10px), #0000); mask-image: linear-gradient(90deg, #0000, #000 6px, #000 calc(100% - 10px), #0000); }
#cf-vivo .cf-paletas::-webkit-scrollbar { display: none; }
#cf-vivo .cf-paletas li { flex: none; display: flex; }
#cf-vivo .cf-pal { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: none; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease); }
#cf-vivo .cf-pal::before { content: ""; position: absolute; inset: -5px; }
#cf-vivo .cf-pal::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s var(--ease), transform .25s var(--ease-out); }
#cf-vivo .cf-pal:hover { transform: scale(1.14); }
#cf-vivo .cf-pal:active { transform: scale(.94); }
#cf-vivo .cf-pal[aria-pressed="true"] { transform: scale(1.22); box-shadow: 0 3px 12px 1px color-mix(in srgb, var(--a) 62%, transparent); }
#cf-vivo .cf-pal[aria-pressed="true"]::after { opacity: 1; transform: none; }
#cf-vivo .cf-cor { display: inline-flex; flex: none; align-items: center; gap: 6px; }
#cf-vivo .cf-cor input[type=color], #cf-vivo .cf-cor input[type=text] { box-sizing: border-box; height: var(--ct-h); border: 0; border-radius: 12px; background: var(--ct-tom); box-shadow: none; transition: background-color .2s var(--ease); }
#cf-vivo .cf-cor input[type=color] { width: var(--ct-h); padding: 5px; cursor: pointer; }
#cf-vivo .cf-cor input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
#cf-vivo .cf-cor input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
#cf-vivo .cf-cor input[type=color]::-moz-color-swatch { border: 0; border-radius: 7px; }
#cf-vivo .cf-cor input[type=text] { width: 84px; padding: 0 10px; color: var(--ink); font: 500 12.5px/1 var(--f-mono); text-transform: lowercase; }
#cf-vivo .cf-cor input[type=text]::placeholder { color: var(--ink-3); opacity: 1; }
#cf-vivo .cf-cor input:hover { background: var(--ct-tom-2); }
#cf-vivo .cf-cor input[type=text][aria-invalid="true"] { background: #fdecea; }
#cf-vivo .cf-razao { box-shadow: none; }
#cf-vivo .cf-contraste { border: 0; box-shadow: 0 14px 30px -14px #0b1a3a66, 0 2px 6px -2px #0b1a3a22; background: #fff8e8; }
/* ---------- cantos: slider + botão de exemplo + dica ---------- */
#cf-vivo .cf-faixa { flex: 1 1 auto; min-width: 0; gap: 8px; color: var(--ink-3); font: 500 12px/1 var(--f-text); white-space: nowrap; }
#cf-vivo .cf-faixa input { flex: 1 1 96px; width: auto; min-width: 64px; max-width: 176px; height: 20px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
#cf-vivo .cf-faixa input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--ct-tom-3); }
#cf-vivo .cf-faixa input::-moz-range-track { height: 6px; border: 0; border-radius: 3px; background: var(--ct-tom-3); }
#cf-vivo .cf-faixa input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--cf-acc, #0F60D9); box-shadow: 0 3px 8px -2px #0b1a3a66; transition: transform .2s var(--ease-out); }
#cf-vivo .cf-faixa input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--cf-acc, #0F60D9); box-shadow: 0 3px 8px -2px #0b1a3a66; }
#cf-vivo .cf-faixa input:hover::-webkit-slider-thumb { transform: scale(1.12); }
#cf-vivo .cf-faixa input:focus-visible { outline: 2px solid var(--cf-acc, #0F60D9); outline-offset: 3px; border-radius: 10px; }
#cf-vivo .cf-imag { flex: none; height: 28px; padding: 0 12px; font-size: 12px; box-shadow: 0 6px 12px -8px var(--cf-imag-cor, var(--cf-acc)); }
/* dica inline (substitui as notas soltas "este modelo não troca ... ao vivo"): ícone + texto curto, texto inteiro em balão acessível (hover/foco/toque) */
#cf-vivo .cf-dica { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 4px; margin: 0; border-radius: 12px; color: var(--ink-3); font: 500 12px/1 var(--f-text); cursor: help; transition: background-color .2s var(--ease), color .2s var(--ease); }
#cf-vivo .cf-dica::before { content: "i"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ct-tom-3); color: var(--ink-2); font: 700 11px/1 var(--f-text); }
#cf-vivo .cf-dica:hover, #cf-vivo .cf-dica:focus { background: var(--ct-tom); color: var(--ink-2); }
#cf-vivo .cf-dica:focus { outline: 0; }
#cf-vivo .cf-dica:focus-visible { outline: 2px solid var(--cf-acc, #0F60D9); outline-offset: 2px; }
#cf-vivo .cf-dica__t { position: absolute; z-index: 40; right: 0; top: calc(100% + 8px); width: max-content; max-width: min(280px, 78vw); padding: 8px 12px; border-radius: 12px; background: #0f1626; color: #fff; font: 500 12.5px/1.4 var(--f-text); text-align: left; white-space: normal; box-shadow: 0 12px 24px -10px #0b1a3a80; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s var(--ease), transform .2s var(--ease-out); }
#cf-vivo .cf-dica:hover .cf-dica__t, #cf-vivo .cf-dica:focus .cf-dica__t { opacity: 1; transform: none; }
/* ---------- coluna da prévia (>= 1100 px): cartão na largura da coluna, aparelho logo abaixo ---------- */
@media (min-width: 1100px) {
  html[data-mt-chat] #cf-vivo .cf-prev .cf-barra { width: 100%; margin-bottom: 0; padding: 4px; gap: 4px 8px; border-radius: var(--ct-r); justify-content: flex-start; align-self: center; }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-seg > button, html[data-mt-chat] #cf-vivo .cf-prev .cf-trocar, html[data-mt-chat] #cf-vivo .cf-prev .cf-cheia-bt { height: var(--ct-h); padding: 0 12px; font-size: 13px; }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-seg > button { height: calc(var(--ct-h) - 4px); }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-seg--tam > button { min-width: 32px; padding: 0 8px; }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-seg__ind { top: 2px; bottom: 2px; }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-seg { padding: 2px; }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-estilo { align-self: center; margin-bottom: 8px; }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-estilo__in { padding: 4px 12px; border-radius: var(--ct-r); }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-barra:has(+ .cf-estilo:not([hidden])) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  html[data-mt-chat] #cf-vivo .cf-prev .cf-barra + .cf-estilo:not([hidden]) .cf-estilo__in { border-top-left-radius: 0; border-top-right-radius: 0; }
}
/* duas dicas (modelo sem cor nem cantos ao vivo): só os ícones, para caber as 12 amostras e o slider; o texto inteiro está no balão */
#cf-vivo .cf-estilo__in:has(.cf-estilo__cor .cf-dica):has(.cf-estilo__cantos .cf-dica) .cf-dica__c { display: none; }
#cf-vivo .cf-estilo__in:has(.cf-estilo__cor .cf-dica):has(.cf-estilo__cantos .cf-dica) .cf-dica { padding: 0 4px; }
/* aparelho encostado na faixa (sem o vão que o centralizava na coluna): só no modo de duas colunas */
@media (min-width: 1100px) {
  html[data-mt-chat] #cf-vivo .cf-palco:not(.is-cheia) .mtd-disp { top: 4px; translate: -50% 0; }
}
/* tela cheia no fallback (position: fixed): a divisória da coluna não atravessa o site em tela cheia */
html.cf-cheia-fb #cf-vivo .cf-divisor { visibility: hidden; }
/* coluna estreita (janelas de ~1100-1350 px e telas baixas): sem os rótulos "Quadrado/Arredondado" e sem o texto curto da dica */
@container (max-width: 940px) { #cf-vivo .cf-faixa > span, #cf-vivo .cf-dica__c { display: none; } }
@container (max-width: 800px) { #cf-vivo .cf-estilo__in { column-gap: 16px; } #cf-vivo .cf-imag { padding: 0 10px; } }
@media (min-width: 700px) and (max-width: 1099px) { #cf-vivo .cf-faixa > span { display: none; } }
/* ---------- celular (<= 699 px): barra de uma pílula; "Cor e cantos" recolhível, sem contornos ---------- */
@media (max-width: 699px) {
  #cf-vivo .cf-barra { max-width: 520px; padding: 4px; gap: 4px; justify-content: space-between; border-radius: 18px; }
  #cf-vivo .cf-estilo { max-width: 520px; margin-top: 12px; }
  #cf-vivo .cf-estilo__tg { background: var(--ct-sup); box-shadow: var(--ct-sombra); border: 0; border-radius: 16px; }
  #cf-vivo .cf-estilo__tg:active { background: var(--ct-tom); }
  #cf-vivo .cf-estilo__amostra { box-shadow: none; }
  #cf-vivo .cf-estilo__in { display: grid; gap: 0; min-height: 0; max-width: none; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  #cf-vivo .cf-estilo__in > div { flex-wrap: wrap; justify-content: flex-start; margin-top: 8px; padding: 12px; border-radius: 16px; background: var(--ct-sup); box-shadow: var(--ct-sombra); }
  #cf-vivo .cf-paletas { flex-wrap: wrap; width: 100%; margin: 0; padding: 4px 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  #cf-vivo .cf-faixa { flex: 1 1 200px; }
  #cf-vivo .cf-faixa > span { display: inline; }
  #cf-vivo .cf-faixa input { max-width: none; }
  #cf-vivo .cf-dica__c { display: inline; }
  #cf-vivo .cf-contraste { box-shadow: 0 14px 30px -14px #0b1a3a66; }
}
/* toque: alvos >= 44 px */
@media (pointer: coarse), (max-width: 600px) {
  #cf-vivo { --ct-h: 44px; }
  #cf-vivo .cf-seg { --ct-p: 0px; }
  #cf-vivo .cf-seg > button { height: 44px; min-width: 44px; }
  #cf-vivo .cf-pal { width: 28px; height: 28px; }
  #cf-vivo .cf-pal::before { inset: -8px; }
  #cf-vivo .cf-dica { height: 44px; min-width: 44px; justify-content: center; }
  #cf-vivo .cf-faixa input { height: 44px; }
  #cf-vivo .cf-faixa input::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; }
  #cf-vivo .cf-faixa input::-moz-range-thumb { width: 24px; height: 24px; }
  #cf-vivo .cf-imag { height: 36px; }
  #cf-vivo .cf-cor input[type=color], #cf-vivo .cf-cor input[type=text] { height: 44px; }
  #cf-vivo .cf-cor input[type=color] { width: 44px; }
}
@media (prefers-reduced-motion: reduce) { #cf-vivo .cf-pal, #cf-vivo .cf-pal::after, #cf-vivo .cf-dica__t { transition: none; } }
