/* MobilyTech · /express/configurar · ESSENCIAL + gaveta "Personalizar mais" + CTA único da etapa 2 (F2a/B65; docs/express/CONFIGURADOR.md).
   Carregado depois de configurador.css. Borderless (B58a): cor e sombra em 2 camadas, sem contorno de 1px; só campos, foco e alvo de soltar têm contorno. */

/* ---------- coluna do formulário/chat (>= 1100 px o configurador.css a posiciona; antes disso é transparente) ---------- */
.cf-col2 { display: contents; }

/* ---------- ESSENCIAL (#cf-fr) ---------- */
html:not([data-mt-chat]) .cf-fr:not([hidden]), html[data-mt-chat] .cf-main[data-form] .cf-fr:not([hidden]) {
  display: flex; flex-direction: column; width: 100%; max-width: 760px; margin: 14px auto 0; scroll-margin-top: 84px;
  border-radius: 26px; background: #f7faff; box-shadow: 0 1px 2px #0b1a3a0a, 0 8px 24px -12px #0b1a3a1a; overflow: hidden;
}
.cf-fr__cab { display: flex; align-items: center; gap: 8px 12px; padding: 12px 16px 4px; }
.cf-fr__t { margin: 0; font: 650 15px/1.2 var(--f-display, var(--f-text)); letter-spacing: -.01em; color: var(--ink); }
.cf-fr__volta { display: none; margin-left: auto; white-space: nowrap; }
html[data-mt-chat] .cf-fr__volta { display: inline-flex; align-items: center; }
/* aviso: um chip de UMA linha ("Só o essencial já basta · Recolher"); o detalhe fica só para leitor de tela (e a contagem) */
.cf-fr .cf-ia { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 16px 0; padding: 3px 4px 3px 10px; border-radius: 999px; background: linear-gradient(120deg, #eaf2ff, #e8faf6); box-shadow: none; max-width: none; width: auto; min-width: 0; }
.cf-fr .cf-ia[hidden], .cf-fr .cf-ia.is-recolhido { display: none; }
.cf-fr .cf-ia__topo { display: contents; }
.cf-fr .cf-ia__h { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12.5px/1.25 var(--f-text); }
.cf-fr .cf-ia__h svg { width: 18px; height: 18px; padding: 2px; flex: none; }
.cf-fr .cf-ia__tg { flex: none; margin: 0; padding: 4px 10px; font-size: 11.5px; white-space: nowrap; }
.cf-fr .cf-ia__corpo, .cf-fr .cf-ia__corpo[hidden] { display: block; position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-fr .cf-ia { position: relative; }
.cf-fr__corpo { padding: 6px 16px 4px; }
.cf-fr__g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; align-content: start; }
.cf-fr__l { grid-column: 1 / -1; }
.cf-fr__corpo > .cf-fr__g { grid-template-columns: 1fr; }
@media (min-width: 700px) and (max-width: 1099px) { .cf-fr__corpo > .cf-fr__g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cf-fr .cf-c label, .cf-det .cf-c label { font-size: 13px; }
.cf-fr .cf-c input, .cf-fr .cf-c select, .cf-fr .cf-c textarea, .cf-det .cf-c input, .cf-det .cf-c select, .cf-det .cf-c textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); font: 400 16px/1.35 var(--f-text); transition: box-shadow .2s; }
.cf-fr .cf-c textarea, .cf-det .cf-c textarea { resize: vertical; min-height: 64px; }
.cf-fr .cf-c input:focus-visible, .cf-det .cf-c input:focus-visible, .cf-det .cf-c select:focus-visible, .cf-det .cf-c textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cf-acc), 0 0 0 4px #0f60d91f; }
.cf-fr .cf-c input[aria-invalid="true"], .cf-det .cf-c input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #C62828; }
.cf-fr__ch { border: 0; padding: 0; margin: 0; min-width: 0; }
.cf-fr__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-fr__chip { height: 36px; }
.cf-fr__chip[aria-pressed="true"] { background: var(--cf-acc); color: #fff; box-shadow: 0 8px 18px -12px var(--cf-acc); }
.cf-fr__ex { margin: 0; }
.cf-det { margin-top: 4px; padding-top: 14px; background: linear-gradient(to right, transparent, var(--line-2, #CBD5E3) 12%, var(--line-2, #CBD5E3) 88%, transparent) top / 100% 1px no-repeat; }
.cf-det__t { margin: 0; color: var(--ink); font: 600 14px/1.3 var(--f-text); }
.cf-det__t span { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.cf-c--dup { display: none; }

/* fotos (o bloco de imagens do configurador, movido para o Essencial): compacto e sem moldura */
.cf-fr .cf-bloco--img { padding: 0; margin-top: 6px; gap: 5px; background: none; box-shadow: none; animation: none; }
.cf-fr .cf-bloco--img .cf-bloco__cab { gap: 2px 10px; }
.cf-fr .cf-bloco--img .cf-bloco__h { font-size: 13.5px; font-weight: 600; letter-spacing: 0; gap: 0; }
.cf-fr .cf-bloco--img .cf-bloco__ico { display: none; }
.cf-fr .cf-bloco--img .cf-meta { font-size: 11.5px; }
.cf-fr .cf-bloco--img .cf-progresso i { height: 4px; }
.cf-fr .cf-drop { border-radius: 14px; background: #fff; box-shadow: 0 1px 2px #0b1a3a0a; }
.cf-fr .cf-drop::before { inset: 4px; border-radius: 11px; }
.cf-fr .cf-drop__l { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 12px; row-gap: 0; padding: 9px 12px; text-align: left; }
.cf-fr .cf-drop__ico { grid-row: 1 / span 2; width: 34px; height: 34px; }
.cf-fr .cf-drop__ico svg { width: 18px; height: 18px; }
.cf-fr .cf-drop__l b { font-size: 13.5px; }
.cf-fr .cf-drop__l small { font-size: 11.5px; line-height: 1.35; max-width: none; }
.cf-fr .cf-fotos { max-height: 176px; overflow-y: auto; overscroll-behavior: contain; gap: 6px; }
.cf-fr .cf-fotos:empty { display: none; }
.cf-fr .cf-foto { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px #0b1a3a0a; }
.cf-fr .cf-foto__th { width: 44px; height: 44px; border-radius: 9px; }
.cf-fr .cf-foto__no { display: none; }
.cf-fr .cf-foto__c { gap: 2px; }
.cf-fr .cf-ajuda { font-size: 12.5px; line-height: 1.4; }
.cf-fr__corpo .cf-avancar__msg { margin: 4px 0 0; min-height: 0; font: 500 12.5px/1.4 var(--f-text); color: var(--ink-3); }
.cf-fr__corpo .cf-avancar__msg:empty { display: none; }
.cf-fr__corpo .cf-avancar__msg.is-ok { color: #0b6b5e; }

.cf-fr__rodape { display: grid; gap: 8px; padding: 6px 16px 14px; }
.cf-mais-tg { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; width: 100%; min-height: 48px; padding: 6px 14px; border: 0; border-radius: 14px; background: #e9f1ff; color: var(--cf-acc-2, #0A4FB8); text-align: left; cursor: pointer; transition: background-color .2s, transform .2s var(--ease-out); }
.cf-mais-tg:hover { background: #dfeaff; }
.cf-mais-tg:active { transform: scale(.99); }
.cf-mais-tg__t { grid-column: 1; font: 650 14.5px/1.25 var(--f-text); }
.cf-mais-tg__s { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font: 400 11.5px/1.3 var(--f-text); }
.cf-mais-tg svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; transition: transform .25s var(--ease-out); }
.cf-mais-tg[aria-expanded="true"] svg { transform: rotate(180deg); }
.cf-fr .cf-privado { margin: 0; font-size: 11.5px; line-height: 1.4; }

/* ---------- CTA ÚNICO ("Ver e revisar" + "Pular e ir para o pedido") ---------- */
.cf-cta2 { display: flex; align-items: center; justify-content: center; gap: 8px 14px; width: 100%; max-width: 760px; margin: 12px auto 0; }
.cf-cta2[hidden] { display: none; }
.cf-cta2 .cf-cta { --h: 48px; flex: 1 1 auto; max-width: 340px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
.cf-cta2__pular { flex: none; font-size: 13px; white-space: nowrap; }
@media (min-width: 1100px) {
  .cf-main[data-etapa="2"] .cf-col2 > .cf-cta2 { margin: 0; max-width: none; height: 52px; }
  .cf-main[data-etapa="2"] .cf-col2 > .cf-cta2 .cf-cta { max-width: none; }
  .cf-main[data-etapa="2"] .cf-col2 > .cf-fr:not([hidden]) { flex: 1 1 0; min-height: 0; max-width: none; margin: 0; }
  .cf-main[data-etapa="2"] .cf-col2 .cf-fr__corpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 699px) {
  .cf-main[data-etapa="2"] { padding-bottom: 92px; }
  .cf-main[data-etapa="2"] .cf-cta2:not([hidden]) { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); gap: 6px 12px; background: #fffffff2; box-shadow: 0 -10px 24px -18px #0b1a3a66; }
  .cf-main[data-etapa="2"] .cf-cta2 .cf-cta { --h: 46px; max-width: none; padding: 0 16px; }
  .cf-main[data-etapa="2"] .cf-cta2__pular { min-height: 44px; font-size: 12.5px; white-space: normal; max-width: 112px; text-align: center; line-height: 1.2; }
  .cf-main[data-teclado] .cf-cta2 { display: none !important; }
  html:has(.mtf-fab:not([hidden])) .cf-main[data-etapa="2"] .cf-cta2:not([hidden]) { padding-right: 84px; }
  .cf-fr__chip { height: 44px; }
}
@media (pointer: coarse) {
  .cf-fr .cf-chip, .cf-fr__chip { min-height: 44px; height: auto; }
  .cf-fr .cf-link-btn, .cf-det .cf-link-btn { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- gaveta "Personalizar mais" (#cf-e2) ---------- */
.cf-e2 { margin-top: clamp(14px, 1.6vw, 22px); }
.cf-gv-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; max-width: 1180px; margin: 0 auto; }
.cf-gv-cab__t { margin: 0; color: var(--ink); font: 650 clamp(17px, 1.5vw, 20px)/1.2 var(--f-display, var(--f-text)); letter-spacing: -.01em; }
.cf-gv-cab__t span { margin-left: 8px; color: var(--ink-3); font: 400 13px/1.3 var(--f-text); letter-spacing: 0; }
.cf-gv { margin-top: 10px; background: #fff; box-shadow: 0 1px 2px #0b1a3a0a, 0 8px 24px -16px #0b1a3a1a; }
.cf-gv.cf-opc--tudo { background: #fff; }
.cf-gv__in { display: grid; gap: 16px; padding: 2px clamp(14px, 2vw, 22px) 20px; min-width: 0; }
.cf-gv .cf-bloco { grid-area: auto; padding: 0; background: none; box-shadow: none; animation: none; border-radius: 0; }
.cf-gv .cf-bloco--bio { box-shadow: none; }
.cf-gv .cf-bloco > .cf-bloco__cab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-gv .cf-contato { padding: 2px clamp(14px, 2vw, 22px) 6px; }
.cf-gv .cf-contato__regra { padding: 0 clamp(14px, 2vw, 22px) 18px; }
.cf-gv .cf-tudo { padding-inline: clamp(14px, 2vw, 22px); padding-bottom: 20px; }
.cf-efx { align-content: start; justify-items: start; gap: 10px; }
.cf-efx__estado { margin: 0; color: var(--ink-2); font: 500 13.5px/1.4 var(--f-text); }
.cf-efx__lnk { width: auto; }
@media (max-width: 699px) {
  .cf-gv-cab__t span { display: block; margin: 2px 0 0; }
  .cf-gv > summary { padding-right: 48px; }
  .cf-gv .cf-opc__s { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cf-fr *, .cf-mais-tg { transition: none !important; } }
/* desktop/tablet baixos: o campo de fotos aparece inteiro, sem corte (campos mais baixos, legenda curta, sem rolagem interna do corpo) */
@media (min-width: 1100px) and (max-height: 900px) {
  .cf-fr .cf-c label { font-size: 12.5px; line-height: 1.2; }
  .cf-fr .cf-c input { min-height: 34px; padding: 5px 12px; }
  .cf-fr .cf-drop__l { padding: 6px 12px; }
  .cf-fr .cf-drop__l small { display: none; }
  .cf-fr .cf-drop__ico { width: 30px; height: 30px; }
  .cf-fr__rodape { padding: 4px 16px 10px; gap: 6px; }
  .cf-fr .cf-mais-tg { min-height: 42px; padding: 4px 14px; }
}
