/* PDV · modal "Montar" para touch (out/2026) — altura fixa (nada pula entre etapas), só a lista de opções rola,
   etapas quebram em linhas (nada cortado) e alvos grandes. Adapta a qualquer tela de caixa. */
.modal-overlay:has(.lk-cz){padding:clamp(6px,1.4vw,18px)}
.modal.wide:has(.lk-cz){width:100%;max-width:min(1280px,100%);height:calc(100dvh - 2*clamp(6px,1.4vw,18px));max-height:none;display:flex;flex-direction:column;overflow:hidden;padding:clamp(12px,1.6vw,22px) clamp(12px,1.8vw,26px);border-radius:clamp(14px,1.8vw,24px);animation:none}
.modal:has(.lk-cz) .modal-header{flex:none;margin-bottom:12px;gap:12px}
.modal:has(.lk-cz) .modal-header h2{font-size:clamp(18px,2vw,26px);line-height:1.2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal:has(.lk-cz) .modal-header .icon-btn{width:52px;height:52px;flex:none;border-radius:16px}
.modal:has(.lk-cz) .lk-cz{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}
/* etapas: grade que quebra em linhas, nunca corta */
.lk-cz-steps{flex:none;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px!important;margin:0!important;padding:0!important}
.lk-cz-steps li{display:flex;min-width:0}
.lk-cz-steps button{width:100%;min-width:0;justify-content:flex-start;height:52px!important;padding:0 10px 0 8px!important;font-size:14px!important;gap:8px!important;white-space:nowrap;overflow:hidden;border-radius:14px!important}
.lk-cz-steps button span{width:32px!important;height:32px!important;flex:none;font-size:14px!important}
/* área central: foto + opções; só as opções rolam */
.lk-cz .pdv-customizer{flex:1;min-height:0;display:grid!important;grid-template-columns:clamp(130px,15vw,200px) minmax(0,1fr)!important;gap:clamp(12px,1.6vw,20px)!important;align-items:stretch!important}
.lk-cz .pdv-cz-preview{position:static!important;min-width:0}
.lk-cz .pdv-cz-preview .custom-preview{width:100%!important;height:auto!important;aspect-ratio:1/1!important;max-height:none!important;border-radius:18px!important}
.lk-cz .pdv-cz-groups{min-height:0;height:100%;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:2px 6px 8px 2px!important;align-content:start}
.lk-cz-head{margin-bottom:12px!important;gap:10px;flex-wrap:wrap}
.lk-cz-head h3{font-size:clamp(17px,1.7vw,21px)!important}
.lk-cz-head small{font-size:13px!important;padding:6px 14px!important;white-space:normal!important}
.lk-cz-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important;gap:10px!important}
.lk-cz .pdv-chip,.lk-cz .pdv-extra{position:relative;width:auto!important;max-width:none!important;min-width:0!important;min-height:136px!important;border-radius:18px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:12px 8px!important;text-align:center;flex:initial!important}
.lk-cz .pdv-chip>span{display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;min-width:0;max-width:100%}
.lk-cz .pdv-chip strong,.lk-cz .pdv-extra-info{font-size:14.5px!important;white-space:normal!important;line-height:1.25;overflow-wrap:anywhere}
.lk-cz .pdv-extra-info{display:flex;flex-direction:column;align-items:center;min-width:0;max-width:100%}
.lk-cz .pdv-chip small,.lk-cz .pdv-extra small{font-size:12px!important;white-space:normal}
.lk-cz .pdv-chip .lk-ball,.lk-cz .pdv-extra .lk-ball{--s:64px}
.lk-cz .pdv-chip .opt-thumb,.lk-cz .pdv-extra .opt-thumb{width:64px;height:64px;border-radius:50%}
.lk-cz .pdv-chip .opt-swatch,.lk-cz .pdv-extra .opt-swatch{width:56px;height:56px;margin:4px}
.lk-cz .pdv-chip.active,.lk-cz .pdv-extra.active{box-shadow:inset 0 0 0 2px var(--brown)!important}
.lk-cz .lk-cz-tap{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center;text-align:center!important;padding:2px!important;width:100%;min-width:0;gap:6px!important;flex:1}
.lk-cz .pdv-extra .qty{display:flex!important;align-items:center;gap:6px!important}
.lk-cz .pdv-extra .qty button{width:44px!important;height:44px!important}
.lk-cz .pdv-extra .qty span{font-size:16px!important;min-width:24px}
/* resumo: uma linha que rola para o lado */
.lk-cz-row{flex:none;display:flex;align-items:center;gap:10px;min-width:0;margin:0!important;padding-top:10px;border-top:1px solid var(--line)}
.lk-cz-row .lk-cz-label{margin:0!important;flex:none}
.lk-cz-picks{flex-wrap:nowrap!important;overflow-x:auto;min-width:0;scrollbar-width:thin}
.lk-cz-pick{flex:none;font-size:13px!important;padding:4px 12px 4px 4px!important;white-space:nowrap}
.lk-cz-pick .lk-ball{--s:28px!important}
.lk-cz-row .pdv-cz-summary{margin:0}
/* rodapé */
.modal:has(.lk-cz) .modal-footer{flex:none;flex-wrap:wrap;gap:10px;margin-top:10px;padding-top:12px}
.modal:has(.lk-cz) .modal-footer .btn{min-height:58px;padding:0 24px;font-size:16px;border-radius:16px}
.modal:has(.lk-cz) .modal-footer .btn.primary{padding:0 32px}
.lk-cz-total{font-size:clamp(22px,2.4vw,30px)!important;white-space:nowrap}
/* telas baixas ou estreitas */
@media (max-height:700px),(max-width:860px){
  .lk-cz .pdv-customizer{grid-template-columns:minmax(0,1fr)!important}
  .lk-cz .pdv-cz-preview{display:none!important}
  .lk-cz .pdv-chip,.lk-cz .pdv-extra{min-height:116px!important}
  .lk-cz .pdv-chip .lk-ball,.lk-cz .pdv-extra .lk-ball{--s:52px}
  .lk-cz .pdv-chip .opt-thumb,.lk-cz .pdv-extra .opt-thumb{width:52px;height:52px}
  .lk-cz-steps button{height:46px!important}
}
@media (max-width:600px){
  .modal.wide:has(.lk-cz){height:100dvh;border-radius:0}
  .modal-overlay:has(.lk-cz){padding:0}
  .lk-cz-steps{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}
  .lk-cz-steps button{justify-content:center;font-size:0!important;padding:0!important;gap:0!important}
  .lk-cz-steps button.active{font-size:13px!important;gap:6px!important;padding:0 8px!important}
  .lk-cz-steps li:has(.active){grid-column:span 3}
  .lk-cz-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))!important;gap:8px!important}
  .lk-cz-row .lk-cz-label{display:none}
  .modal:has(.lk-cz) .modal-footer .btn{flex:1 1 auto;min-height:52px;padding:0 14px}
  .modal:has(.lk-cz) .modal-footer>.row{flex-basis:100%!important;justify-content:space-between}
}
