/* Customer checkout controls */
 .lk-cpf-choice{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin:22px 0;border:1px solid #d8c9b9;border-radius:20px;background:#fffaf4}.lk-cpf-choice h2{margin:0 0 8px!important;font-size:24px}.lk-cpf-choice p{margin:0;color:#766051;font-size:18px}.lk-cpf-actions{display:flex;gap:12px;flex-wrap:wrap}.lk-cpf-choice .lk-cpf-button{min-height:64px;padding:16px 24px;border-radius:14px;font-size:20px}.lk-cpf-choice .lk-cpf-button svg{width:24px;height:24px}@media(max-width:650px){.lk-cpf-choice{align-items:stretch;flex-direction:column}.lk-cpf-actions .lk-cpf-button{flex:1}}
 /* LUCKAUHUB · estilos das novas funções (core/lk-hub.js). Usa os tokens do tema (--brown, --line, --paper, --ink, --muted). */
:root{--lkh-red:#b03a2e;--lkh-red-bg:#fdf2f0;--lkh-amber:#8a4a10;--lkh-amber-bg:#fff4e0;--lkh-blue:#244d86;--lkh-blue-bg:#e7eef8;--lkh-green:#2f6b45;--lkh-green-bg:#eaf3ed}
html[data-theme="dark"]{--lkh-red:#f0a196;--lkh-red-bg:#3a1f1a;--lkh-amber:#f0c58a;--lkh-amber-bg:#3a2c16;--lkh-blue:#9dbcf0;--lkh-blue-bg:#1d2a3d;--lkh-green:#9fd8b4;--lkh-green-bg:#1c3326}

/* ---- utilitários ---- */
.lkh-row{display:flex;align-items:center;gap:10px;min-width:0}
.lkh-wrap{flex-wrap:wrap}
.lkh-grow{flex:1;min-width:0}
.lkh-stack{display:flex;flex-direction:column;gap:18px}
.lkh-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.lkh-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.lkh-chip{font-size:12px;font-weight:500;background:color-mix(in srgb,var(--line) 55%,transparent);border-radius:999px;padding:5px 11px;color:var(--ink)}
.lkh-chip.red{background:var(--lkh-red);color:#fff;font-weight:600}
.lkh-badge{display:inline-flex;align-items:center;font-size:11px;font-weight:700;letter-spacing:.03em;border-radius:999px;padding:4px 10px;white-space:nowrap;background:color-mix(in srgb,var(--line) 60%,transparent);color:var(--muted)}
.lkh-badge.blue{background:var(--lkh-blue-bg);color:var(--lkh-blue)}.lkh-badge.amber{background:var(--lkh-amber-bg);color:var(--lkh-amber)}
.lkh-badge.green{background:var(--lkh-green-bg);color:var(--lkh-green)}.lkh-badge.red{background:var(--lkh-red-bg);color:var(--lkh-red)}
.lkh-note{display:block;font-size:12px;color:var(--muted);text-align:center;margin-top:8px}
.lkh-lead{margin:0 0 12px;font-size:14px;color:var(--ink)}
.lkh-hint{font-size:12px;color:var(--muted);border:1px dashed var(--line);border-radius:12px;padding:12px;margin:8px 0 0}
.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}
.btn.lkh-big{min-height:52px;font-size:15px}
.lkh-check{display:inline-flex;gap:8px;align-items:center;font-size:13px;cursor:pointer}
.lkh-check input{width:18px;height:18px;accent-color:var(--brown)}
/* interruptor */
.lkh-sw{width:44px;height:26px;border-radius:999px;border:0;background:#d5cdbf;position:relative;cursor:pointer;flex:none;padding:0;transition:background .15s}
.lkh-sw i{position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:left .15s}
.lkh-sw.on{background:var(--green,#3f7a55)}.lkh-sw.on i{left:21px}
.lkh-sw:focus-visible{outline:2px solid var(--brown);outline-offset:2px}

/* ---- PDV: favoritos ---- */
.category-btn.lkh-fav-cat .icon{width:22px;height:22px;fill:currentColor}
.product-card{position:relative}
.lkh-star{position:absolute;z-index:3;top:10px;right:10px;width:36px;height:36px;border-radius:50%;border:0;display:grid;place-items:center;background:#ffffffe6;color:var(--muted);box-shadow:0 2px 8px #0002;cursor:pointer}
.lkh-star .icon{width:18px;height:18px}
.lkh-star.on{background:var(--brown);color:#fff}.lkh-star.on .icon{fill:currentColor}
.lkh-rank{position:absolute;z-index:3;top:12px;left:10px;background:#1c1916d9;color:#fff;font-size:11px;font-weight:600;border-radius:999px;padding:4px 9px}
.lkh-fav-head{align-items:flex-end;flex-wrap:wrap;gap:12px}
.lkh-fav-head h2{margin:2px 0}.lkh-fav-head small{color:var(--muted);font-size:12px}
.lkh-seg{display:inline-flex;gap:3px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:3px;flex-wrap:wrap}
.lkh-seg button{font:inherit;font-size:13px;font-weight:600;border:0;background:transparent;border-radius:9px;padding:7px 12px;color:var(--ink);cursor:pointer}
.lkh-seg button.on{background:var(--ink);color:var(--paper)}
.lkh-fav-suggest{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px dashed var(--brown);background:color-mix(in srgb,var(--brown) 7%,var(--paper));border-radius:14px;padding:10px 14px;margin:0 0 14px}
.lkh-fav-suggest>span:nth-child(2){flex:1;min-width:180px}.lkh-fav-suggest strong{display:block;font-size:13px}.lkh-fav-suggest small{font-size:12px;color:var(--muted)}
.lkh-fav-suggest-ic{width:34px;height:34px;border-radius:50%;background:var(--brown);color:#fff;display:grid;place-items:center;flex:none}
.lkh-fav-empty{grid-column:1/-1}

/* ---- PDV: clube simples / completar / cortesia ---- */
.lkh-club-simple{display:flex;flex-direction:column;gap:10px}
.lkh-club-simple .cpf-field input{font-size:22px;letter-spacing:.04em;height:56px}
.lkh-complete{display:flex;flex-direction:column;gap:12px}
.lkh-ok{display:flex;gap:12px;align-items:center;background:var(--lkh-green-bg);color:var(--lkh-green);border-radius:14px;padding:12px 14px}
.lkh-ok .icon{width:22px;height:22px}.lkh-ok strong{display:block}.lkh-ok small{opacity:.85}
.lkh-miss input{border-color:#d9822b;background:color-mix(in srgb,#d9822b 6%,var(--paper))}
.lkh-earn{display:flex;justify-content:space-between;align-items:center;background:color-mix(in srgb,var(--brown) 9%,var(--paper));border-radius:14px;padding:12px 16px}
.lkh-earn strong{font-family:Quiche,Georgia,serif;font-size:24px;color:var(--brown);font-weight:500}
.lkh-courtesy{display:flex;flex-direction:column;gap:12px}
.lkh-person{border-radius:16px;background:var(--ink);color:var(--paper);padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.lkh-person small{opacity:.8}.lkh-person strong{font-size:18px}
.lkh-tag{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.06em;border-radius:999px;padding:3px 10px;background:var(--line);color:var(--ink)}
.lkh-opt{font:inherit;text-align:left;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:16px;padding:14px 16px;cursor:pointer;display:flex;flex-direction:column;gap:3px}
.lkh-opt:hover{border-color:var(--brown)}.lkh-opt small{color:var(--muted)}
.lkh-sumline{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}
.lk-done-note{font-size:15px!important;font-weight:600;background:color-mix(in srgb,var(--brown) 10%,var(--paper));color:var(--brown);border-radius:14px;padding:12px 14px}

/* ---- produto: abas novas, clonar, programar ---- */
.lkh-info{display:flex;gap:12px;align-items:flex-start;background:color-mix(in srgb,var(--brown) 7%,var(--paper));border-radius:14px;padding:12px 14px;font-size:13px;margin-bottom:12px}
.lkh-info .icon{color:var(--brown);flex:none}
.lkh-recipe-table select{min-width:220px}
.lkh-kpi{display:flex;flex-direction:column;align-items:flex-end;font-size:12px;color:var(--muted)}.lkh-kpi strong{font-size:16px;color:var(--ink)}
.lkh-card-soft{border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.lkh-fiscal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.lkh-foot-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lkh-when{display:inline-flex;border:1px solid var(--line);border-radius:10px;padding:2px;gap:2px}
.lkh-when label{cursor:pointer}.lkh-when input{position:absolute;opacity:0;pointer-events:none}
.lkh-when span{display:block;font-size:12px;font-weight:600;padding:6px 10px;border-radius:8px;color:var(--muted)}
.lkh-when input:checked+span{background:var(--brown);color:#fff}
.lkh-when input:focus-visible+span{outline:2px solid var(--brown)}
.lkh-alert-red{display:flex;gap:12px;align-items:flex-start;background:var(--lkh-red-bg);border:1px solid color-mix(in srgb,var(--lkh-red) 35%,transparent);border-radius:14px;padding:12px 14px;font-size:13px;color:var(--ink);margin-bottom:14px}
.lkh-alert-red>.icon{color:var(--lkh-red);flex:none}
.lkh-clone-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px}
.lkh-clone-photo{display:flex;flex-direction:column;gap:6px;cursor:pointer}
.lkh-clone-photo>span{display:block;border-radius:16px;overflow:hidden;border:2px dashed #d9822b;aspect-ratio:4/5;background:var(--line)}
.lkh-clone-photo img{width:100%;height:100%;object-fit:cover;display:block}
.lkh-clone-photo em{font-style:normal;font-size:12px;color:var(--muted);text-align:center}
.lkh-clone-fields{display:flex;flex-direction:column;gap:10px}
.lkh-need{font-size:10px;font-weight:700;border-radius:999px;padding:2px 7px;background:var(--lkh-red);color:#fff;margin-left:6px;display:none}
.lkh-okc{font-size:10px;font-weight:700;border-radius:999px;padding:2px 7px;background:var(--lkh-green-bg);color:var(--lkh-green);margin-left:6px}
.lkh-must .lkh-msg{display:none;font-size:12px;color:var(--lkh-red)}
.lkh-must.bad input,.lkh-must.bad textarea{border:2px solid var(--lkh-red)!important;background:var(--lkh-red-bg)!important}
.lkh-must.bad .lkh-need,.lkh-must.bad .lkh-msg{display:inline-block}
.lkh-red{color:var(--lkh-red);font-weight:600;font-size:13px}
@media(max-width:720px){.lkh-clone-body{grid-template-columns:1fr}.lkh-clone-photo>span{max-width:200px}.lkh-two,.lkh-fiscal-grid{grid-template-columns:1fr}}

/* ---- agendar ---- */
.lkh-schedule{display:flex;flex-direction:column;gap:12px}
.lkh-when-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.lkh-when-opt{cursor:pointer}.lkh-when-opt input{position:absolute;opacity:0;pointer-events:none}
.lkh-when-opt span{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:var(--paper);height:100%;box-sizing:border-box}
.lkh-when-opt small{font-size:11px;color:var(--muted)}
.lkh-when-opt input:checked+span{border:2px solid var(--brown);background:color-mix(in srgb,var(--brown) 6%,var(--paper))}
.lkh-when-opt input:focus-visible+span{outline:2px solid var(--brown)}
.lkh-pick{cursor:pointer}.lkh-pick input{position:absolute;opacity:0;pointer-events:none}
.lkh-pick span{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px;background:var(--paper)}
.lkh-pick small{font-size:11px;color:var(--muted)}
.lkh-pick input:checked+span{background:var(--brown);border-color:var(--brown);color:#fff}.lkh-pick input:checked+span small{color:#fffc}
.lkh-pick input:focus-visible+span{outline:2px solid var(--brown);outline-offset:2px}
.lkh-units summary{cursor:pointer;font-size:13px;color:var(--muted);margin-top:8px}
.lkh-toggle{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;padding:12px 14px;cursor:pointer}
.lkh-toggle input{width:20px;height:20px;accent-color:var(--brown);margin:2px 0 0;flex:none}
.lkh-toggle small{display:block;color:var(--muted);font-size:12px}
@media(max-width:720px){.lkh-when-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- telas: lista + detalhe ---- */
.lkh-split{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.lkh-list{flex:0 1 300px;min-width:240px;display:flex;flex-direction:column;gap:6px}
.lkh-detail{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:14px}
.lkh-detail h2{margin:0}
.lkh-list-item{font:inherit;text-align:left;width:100%;display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:14px;padding:12px 14px;cursor:pointer}
.lkh-list-item>span:not(.lkh-sq):not(.lkh-badge){flex:1;min-width:0}
.lkh-list-item strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lkh-list-item small{font-size:12px;color:var(--muted)}
.lkh-list-item.on{border:2px solid var(--brown);background:color-mix(in srgb,var(--brown) 5%,var(--paper))}
.lkh-sq{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:700;font-size:13px;color:#fff;flex:none}
.lkh-prod{display:flex;align-items:center;gap:10px;min-width:0}
.lkh-prod img,.lkh-prod i{width:40px;height:40px;border-radius:10px;object-fit:cover;flex:none;background:var(--line)}
.lkh-prod small{display:block;font-size:11px;color:var(--muted)}
.lkh-menu tr.off td{opacity:.55}
.lkh-menu tr.dirty td:first-child{box-shadow:inset 3px 0 0 var(--brown)}
.lkh-in{max-width:130px;height:38px}
.lkh-savebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px;font-size:14px}
.lkh-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.lkh-facts span{border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}
.lkh-facts small{font-size:11px;color:var(--muted)}
.lkh-colors{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lkh-colors label{cursor:pointer}.lkh-colors input[type=radio]{position:absolute;opacity:0;pointer-events:none}
.lkh-colors i{display:block;width:30px;height:30px;border-radius:50%;border:3px solid var(--paper);box-shadow:0 0 0 1px var(--line)}
.lkh-colors input:checked+i{box-shadow:0 0 0 2px var(--ink)}
.lkh-colors input[type=color]{width:34px;height:34px;border:0;padding:0;background:none;cursor:pointer}
/* loja */
.lkh-upd{border-top:1px solid var(--line);padding:14px 0;display:flex;flex-direction:column;gap:8px}
.lkh-upd:first-of-type{border-top:0}
.lkh-upd small{display:block;font-size:12px;color:var(--muted)}
.lkh-upd-items{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.lkh-pause .lkh-row small{display:block;color:var(--muted);font-size:12px}
.lkh-pause.on{border-color:#d9822b;background:color-mix(in srgb,#d9822b 6%,var(--paper))}
.lkh-dot{width:10px;height:10px;border-radius:50%;background:var(--green,#3f7a55);flex:none}.lkh-dot.off{background:#d9822b}
.lkh-totem-table tr.off td{opacity:.6}
/* captação */
.lkh-qr-main{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.lkh-qr-main>.lkh-grow{display:flex;flex-direction:column;gap:10px;min-width:260px}
.lkh-qr{width:150px;height:150px;border-radius:12px;border:1px solid var(--line);background:#fff}
.lkh-sources tr.off td{opacity:.55}
.lkh-actions{white-space:nowrap}.lkh-actions .btn{margin-left:4px}
.lkh-pos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.lkh-pos-opt{font:inherit;text-align:left;border:2px solid var(--line);background:var(--paper);color:var(--ink);border-radius:16px;padding:12px;display:flex;gap:12px;align-items:center;cursor:pointer}
.lkh-pos-opt.on{border-color:var(--brown);background:color-mix(in srgb,var(--brown) 5%,var(--paper))}
.lkh-pos-opt small{display:block;font-size:12px;color:var(--muted)}
.lkh-mini{width:44px;height:72px;border-radius:9px;border:2px solid var(--ink);display:flex;flex-direction:column;gap:3px;padding:4px;box-sizing:border-box;flex:none}
.lkh-mini i{flex:1;border-radius:3px;background:var(--line)}.lkh-mini i.h{background:var(--brown)}
.lkh-line{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.card>.lkh-line:first-of-type{border-top:0}
.lkh-line small{display:block;font-size:12px;color:var(--muted)}
.lkh-pts{max-width:90px;height:40px;text-align:right}
@media(max-width:720px){.lkh-pos{grid-template-columns:1fr}}
/* formulário e landing */
.lkh-builder{display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start}
.lkh-builder>.lkh-stack{flex:999 1 560px}
.lkh-colhead{display:flex;gap:10px;font-size:12px;color:var(--muted)}.lkh-colhead span,.lkh-col{width:84px;display:flex;justify-content:center}
.lkh-field{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin-bottom:8px;background:var(--paper);flex-wrap:wrap}
.lkh-field.off{opacity:.65}.lkh-field.fixed{background:color-mix(in srgb,var(--line) 30%,var(--paper))}
.lkh-label{max-width:220px;height:38px;display:inline-block}
.lkh-opts{margin-top:6px;height:36px}
.lkh-type{font-size:11px;font-weight:600;background:color-mix(in srgb,var(--line) 60%,transparent);border-radius:999px;padding:3px 9px;color:var(--muted)}
.lkh-move{display:flex;flex-direction:column}.lkh-move .icon-btn{width:28px;height:24px}.lkh-move .icon{transform:rotate(90deg)}
.lkh-grip{width:28px}
.lkh-cover{width:96px;height:60px;border-radius:10px;object-fit:cover}
.lkh-phone-wrap{flex:1 1 300px;display:flex;flex-direction:column;align-items:center;gap:10px;position:sticky;top:90px}
.lkh-phone-wrap>small{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.08em}
.lkh-phone{--c:#ab3c22;width:290px;height:600px;border-radius:40px;border:10px solid #1c1916;background:#f4f1ea;overflow:auto;font-family:Poppins,Arial,sans-serif;color:#1c1916}
.lkh-pv-hero{position:relative;height:190px;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:space-between;padding:14px}
.lkh-pv-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(#1c191633,#1c1916cc)}
.lkh-pv-hero img{position:relative;height:20px;align-self:flex-start}
.lkh-pv-hero strong{position:relative;color:#fff;font-family:Quiche,Georgia,serif;font-weight:500;font-size:24px;line-height:1.05}
.lkh-pv-body{margin:-12px 10px 10px;position:relative;background:#fff;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:7px}
.lkh-pv-body small{font-size:11px;color:#6f675e}
.lkh-pv-body i{font-style:normal;height:34px;border:1px solid #e1dcd0;border-radius:9px;font-size:11px;color:#9a9188;display:flex;align-items:center;padding:0 10px}
.lkh-pv-body b{height:38px;border-radius:999px;background:var(--c);color:#fff;font-size:12px;display:grid;place-items:center;margin:4px 0}
.lkh-pv-body span{font-size:11px;color:#6f675e;border-top:1px solid #efe9df;padding-top:6px}.lkh-pv-body span strong{display:block;color:#1c1916;font-size:12px}

/* ---- totem ---- */
.modal.lkh-terms-modal{max-width:620px;border-radius:32px}
.lkh-terms{display:flex;flex-direction:column;gap:18px;padding:8px 6px}
.lkh-terms>img{height:44px;align-self:center}
.lkh-terms h1{margin:0;text-align:center;font-family:Quiche,Georgia,serif;font-weight:500;font-size:clamp(28px,4vw,40px)}
.lkh-terms-li{display:flex;gap:16px;align-items:flex-start;font-size:clamp(16px,2vw,19px);line-height:1.4}
.lkh-terms-li p{margin:0}
.lkh-terms-li>span{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--brown) 12%,#fff);color:var(--brown)}
.lkh-terms details summary{text-align:center;color:var(--brown);font-weight:600;cursor:pointer}
.lkh-terms-full{max-height:240px;overflow:auto;font-size:14px;color:var(--muted);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:10px}
.btn.lkh-xl{min-height:68px;font-size:20px;border-radius:999px}
.lkh-kpoints{display:flex;flex-direction:column;gap:12px;margin:8px 0 20px}
.lkh-pcard{position:relative;overflow:hidden;border-radius:28px;padding:24px 26px;background:#1c1916;color:#fff;display:flex;flex-direction:column;gap:4px}
.lkh-pcard:after{content:"";position:absolute;right:-60px;bottom:-80px;width:240px;height:240px;border-radius:50%;background:var(--brown)}
.lkh-pcard>*{position:relative;z-index:1}
.lkh-pcard img{height:26px;align-self:flex-start;margin-bottom:10px}
.lkh-pcard small{font-size:15px;opacity:.85}
.lkh-pcard strong{font-family:Quiche,Georgia,serif;font-weight:500;font-size:clamp(46px,8vw,68px);line-height:1}
.lkh-pcard span{font-size:16px;opacity:.92}
.lkh-ptoggle{font:inherit;text-align:left;display:flex;align-items:center;gap:16px;background:#fff;border:3px solid var(--line);border-radius:24px;padding:18px 22px;cursor:pointer;color:var(--ink)}
.lkh-ptoggle.on{border-color:var(--brown);background:color-mix(in srgb,var(--brown) 6%,#fff)}
.lkh-ptoggle strong{display:block;font-size:20px}.lkh-ptoggle small{font-size:15px;color:var(--muted)}
.lkh-pbox{width:34px;height:34px;border-radius:10px;border:3px solid var(--brown);display:grid;place-items:center;flex:none;color:#fff}
.lkh-ptoggle.on .lkh-pbox{background:var(--brown)}
.lkh-pdone{width:100%;box-sizing:border-box;border-radius:28px;background:#1c1916;color:#fff;padding:24px 26px;margin:18px 0;position:relative;overflow:hidden;text-align:left;animation:lkhRise .6s ease-out .2s both}
.lkh-pdone:before{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:var(--brown)}
.lkh-pdone>*{position:relative}
.lkh-pdone>small{font-size:13px;font-weight:600;letter-spacing:.14em;opacity:.8}
.lkh-pbig{display:flex;align-items:baseline;gap:12px;margin-top:6px}
.lkh-pbig strong{font-family:Quiche,Georgia,serif;font-weight:500;font-size:clamp(56px,10vw,84px);line-height:1;color:#f3c9a8;animation:lkhPop .7s cubic-bezier(.2,1.6,.4,1) .5s both}
.lkh-pbig span{font-size:20px;font-weight:600}
.lkh-pledger{margin-top:12px}
.lkh-pledger div{display:flex;justify-content:space-between;align-items:center;font-size:17px;padding:10px 0;border-top:1px solid #ffffff22}
.lkh-pledger span{opacity:.8}.lkh-pledger b.neg{color:#f3a48f}.lkh-pledger b.pos{color:#9fd8b4}
.lkh-pledger .tot{font-size:20px;font-weight:600}.lkh-pledger .tot span{opacity:1}.lkh-pledger .tot b{font-family:Quiche,Georgia,serif;font-weight:500;font-size:28px}
@keyframes lkhPop{0%{transform:scale(.3);opacity:0}100%{transform:none;opacity:1}}
@keyframes lkhRise{0%{transform:translateY(24px);opacity:0}100%{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.lkh-pdone,.lkh-pbig strong{animation:none}}
.lkh-kdados{max-width:640px;margin:0 auto;padding:32px 24px;display:flex;flex-direction:column;gap:14px}
.lkh-kdados h1{margin:6px 0 0}
.lkh-kform{display:flex;flex-direction:column;gap:14px;margin-top:10px}
.lkh-kfield{display:flex;flex-direction:column;gap:6px;font-size:18px;font-weight:600}
.lkh-kfield input{font:inherit;font-size:22px;font-weight:400;height:68px;border:2px solid var(--line);border-radius:20px;padding:0 18px;background:#fff}
.lkh-kfield input:focus{border-color:var(--brown);outline:none}
.lkh-paused{min-height:80vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px;padding:24px}
.lkh-paused h1{font-size:clamp(40px,7vw,64px);margin:12px 0 0}.lkh-paused p{font-size:clamp(17px,2.4vw,22px);color:var(--muted)}

/* ---- marca ---- */
.lkh-credit{font-size:11px;letter-spacing:.04em;opacity:.75}
.workspace-footer.lkh-credit-foot{display:flex;justify-content:center;align-items:center;gap:14px;font-size:11px;color:var(--muted);opacity:.85;flex-wrap:wrap}
.workspace-footer.lkh-credit-foot .text-link{font-size:11px}
.modal.lkh-about-modal{max-width:520px;padding:0;overflow:hidden}
.lkh-about-top{background:var(--brown);color:#fff;padding:30px 30px 26px;display:flex;flex-direction:column;gap:8px}
.lkh-about-top img{height:38px;align-self:flex-start}
.lkh-about-top h2{margin:8px 0 0;color:#fff;font-family:Quiche,Georgia,serif;font-weight:500;font-size:30px}
.lkh-about-top p{margin:0;opacity:.9;font-size:14px}
.lkh-about-rows{padding:10px 30px 0}
.lkh-about-rows div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:14px}
.lkh-about-rows div:first-child{border-top:0}.lkh-about-rows span{color:var(--muted)}.lkh-about-rows a{color:var(--brown);font-weight:600}
.lkh-about-legal{padding:0 30px;font-size:12px;color:var(--muted);line-height:1.5}
.lkh-about>.btn{margin:4px 30px 26px;width:calc(100% - 60px)}
.lkh-list{flex-basis:260px}
.lkh-menu td:first-child{min-width:210px}
.lkh-menu .lkh-in{width:112px;min-width:112px;max-width:none}
.lkh-menu .lkh-in[data-lkh-menu="brand"]{width:150px;min-width:150px}
.lkh-menu th,.lkh-menu td{white-space:nowrap}
.lkh-menu td:first-child{white-space:normal}
.lkh-fiscal-grid{margin-bottom:12px}
.lkh-two{align-items:start}
.lkh-kdados{min-height:70vh;justify-content:center;max-width:680px;padding:40px 32px}
.lkh-kdados .eyebrow{font-size:15px}
.lkh-kdados h1{font-size:clamp(34px,5.5vw,48px);line-height:1.1}
.lkh-kdados>p{font-size:clamp(17px,2.6vw,21px);margin:0;color:var(--muted)}
.lkh-kfield{font-size:clamp(17px,2.4vw,20px)}
.lkh-kdados .btn.ghost{font-size:18px;min-height:56px}
.lkh-pdone{flex-shrink:0;max-width:560px}.lkh-pledger div{padding:8px 0}
.lkh-idle-qr{display:flex;align-items:center;gap:14px;background:#fffffff2;color:#1c1916;border-radius:20px;padding:12px 18px 12px 12px;margin:18px auto 0;width:max-content;max-width:90%;text-align:left}
.lkh-idle-qr canvas{width:96px;height:96px;border-radius:10px}
.lkh-idle-qr strong{display:block;font-size:17px}.lkh-idle-qr small{font-size:14px;color:#6f675e}
.lkh-paused{background:#f4f1ea;min-height:100vh}
.lkh-paused img{height:72px}
.lkh-paused h1{font-family:Quiche,Georgia,serif;font-weight:500;font-size:clamp(48px,9vw,80px)!important}
.lkh-paused p{font-size:clamp(20px,3vw,26px)!important;line-height:1.5}
.lkh-schedule [hidden],.lkh-clone [hidden]{display:none!important}
.modal.lkh-about-modal,.modal.lkh-terms-modal{position:relative}
.modal.lkh-about-modal .modal-header,.modal.lkh-terms-modal .modal-header{position:absolute;right:14px;top:14px;border:0;padding:0;margin:0;background:transparent;z-index:2}
.modal.lkh-about-modal .modal-header h2,.modal.lkh-terms-modal .modal-header h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---- notificações (sino) ---- */
[data-action="notifications"].lkn-has{position:relative}
[data-action="notifications"] .lkn-count{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d63a2f;color:#fff;font-size:11px;font-weight:700;line-height:19px;text-align:center;box-shadow:0 0 0 2px var(--paper)}
[data-action="notifications"] .lkn-count[hidden]{display:none}
[data-action="notifications"].lkn-has:after{display:none!important}
.lkn-panel{position:fixed;z-index:1200;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 60px #1c191633;display:flex;flex-direction:column;max-height:min(640px,calc(100vh - 90px));overflow:hidden;font-family:Poppins,Arial,sans-serif;animation:lknIn .14s ease-out}
@keyframes lknIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.lkn-panel>header{display:flex;align-items:flex-start;justify-content:space-between;padding:16px 16px 8px}
.lkn-panel>header strong{display:block;font-size:17px}.lkn-panel>header small{font-size:12px;color:var(--muted)}
.lkn-tabs{display:flex;gap:6px;padding:4px 16px 12px;border-bottom:1px solid var(--line)}
.lkn-tabs button{font:inherit;font-size:13px;font-weight:600;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:999px;padding:6px 12px;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.lkn-tabs button.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.lkn-tabs b{min-width:18px;height:18px;border-radius:999px;background:#d63a2f;color:#fff;font-size:11px;line-height:18px;text-align:center;padding:0 5px}
.lkn-list{overflow:auto;flex:1;min-height:80px}
.lkn-item{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);cursor:pointer;position:relative}
.lkn-item:hover,.lkn-item:focus{background:color-mix(in srgb,var(--brown) 5%,var(--paper));outline:none}
.lkn-item.unread:before{content:"";position:absolute;left:6px;top:24px;width:6px;height:6px;border-radius:50%;background:var(--brown)}
.lkn-ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--brown) 12%,var(--paper));color:var(--brown)}
.lkn-ic .icon{width:18px;height:18px}
.k-pedido .lkn-ic{background:var(--lkh-green-bg);color:var(--lkh-green)}.k-alerta .lkn-ic{background:var(--lkh-amber-bg);color:var(--lkh-amber)}.k-produto .lkn-ic{background:var(--lkh-blue-bg);color:var(--lkh-blue)}
.lkn-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lkn-txt strong{font-size:14px;line-height:1.3}.lkn-item:not(.unread) .lkn-txt strong{font-weight:500}
.lkn-txt small{font-size:12.5px;color:var(--muted);line-height:1.4}
.lkn-txt em{font-style:normal;font-size:11px;color:var(--muted);opacity:.8}
.lkn-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.lkn-side time{font-size:11px;color:var(--muted);font-family:ui-monospace,Consolas,monospace}
.lkn-side>span{display:flex;gap:2px}
.lkn-mini{width:26px;height:26px;border:0;background:transparent;border-radius:8px;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.lkn-mini:hover{background:var(--line);color:var(--ink)}.lkn-mini .icon{width:14px;height:14px}
.lkn-empty{padding:34px 16px;text-align:center;color:var(--muted)}.lkn-empty .icon{width:28px;height:28px;opacity:.5}
.lkn-panel>footer{border-top:1px solid var(--line);padding:12px 16px;display:flex;flex-direction:column;gap:10px}
.lkn-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.lkn-actions button,.lkn-link{font:inherit;font-size:13px;font-weight:600;border:0;background:transparent;color:var(--brown);display:inline-flex;align-items:center;gap:6px;cursor:pointer;padding:4px 0;text-decoration:none}
.lkn-actions button.danger{color:#c0392b}
.lkn-actions .icon,.lkn-link .icon{width:15px;height:15px}
.lkn-opt{display:flex;gap:8px;align-items:center;font-size:13px;cursor:pointer}.lkn-opt input{width:18px;height:18px;accent-color:var(--brown)}
.lkn-pdv-bell .icon{width:20px;height:20px}
.lkn-send{display:flex;flex-direction:column;gap:14px}
.lkn-kinds{display:flex;gap:8px;flex-wrap:wrap}
.lkn-kinds label{cursor:pointer}.lkn-kinds input{position:absolute;opacity:0;pointer-events:none}
.lkn-kinds span{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:9px 14px;font-size:14px;font-weight:600;background:var(--paper)}
.lkn-kinds .icon{width:16px;height:16px;color:var(--brown)}
.lkn-kinds input:checked+span{border:2px solid var(--brown);background:color-mix(in srgb,var(--brown) 6%,var(--paper))}
.lkn-kinds input:focus-visible+span{outline:2px solid var(--brown)}
.lkn-target{margin-bottom:6px}

/* ---- PDV: cliente identificado compacto (não esmaga Balcão/Delivery/Retirada) ---- */
body .commerce .order-panel .club-order-card.joined{grid-template-columns:28px minmax(0,1fr) auto!important;grid-auto-rows:auto;align-items:center;min-height:40px!important;padding:5px 8px!important}
body .commerce .order-panel .club-order-card.joined>.row{grid-column:auto!important;grid-row:1;margin:0;gap:4px!important;flex-wrap:nowrap}
body .commerce .order-panel .club-order-card.joined>.row .btn{height:28px;min-height:0;padding:0 8px;font-size:11px;border-radius:8px}
body .commerce .order-panel .club-order-card.joined>.row .btn .icon{width:13px;height:13px}
body .commerce .order-panel .club-order-card.joined>.row .icon-btn{width:28px;height:28px;min-height:0;border-radius:8px}
body .commerce .order-panel .club-order-card.joined>.row .icon-btn .icon{width:14px;height:14px}
body .commerce .order-panel .club-order-card.joined>span:nth-child(2){min-width:0}
body .commerce .order-panel .segmented{min-height:38px}

/* ---- totem: sugestão grande "leve também" ---- */
.lkh-upsell{margin:26px 0 8px;border-radius:28px;background:linear-gradient(180deg,color-mix(in srgb,var(--brown) 10%,#fff),#fff);border:2px solid color-mix(in srgb,var(--brown) 30%,transparent);padding:22px 22px 24px;position:relative;animation:lkhRise .5s ease-out both}
.lkh-upsell-head{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding-right:44px}
.lkh-upsell-head>span:first-child{width:52px;height:52px;border-radius:50%;background:var(--brown);color:#fff;display:grid;place-items:center;flex:none}
.lkh-upsell-head .icon{width:26px;height:26px}
.lkh-upsell-head strong{display:block;font-family:Quiche,Georgia,serif;font-weight:500;font-size:clamp(26px,4.4vw,34px);line-height:1.05;color:var(--ink)}
.lkh-upsell-head small{font-size:clamp(15px,2.2vw,18px);color:var(--muted)}
.lkh-upsell-close{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;color:var(--muted)}
.lkh-upsell-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lkh-upsell-card{font:inherit;text-align:left;border:0;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 8px 24px #1c191614;display:flex;flex-direction:column;cursor:pointer;padding:0;color:var(--ink)}
.lkh-upsell-card .product-photo{width:100%!important;height:auto!important;aspect-ratio:4/3;border-radius:0!important}
.lkh-upsell-card .product-photo img{width:100%;height:100%;object-fit:cover}
.lkh-upsell-card>span{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px}
.lkh-upsell-card strong{font-size:clamp(17px,2.6vw,21px);line-height:1.2}
.lkh-upsell-card em{font-style:normal;font-family:Quiche,Georgia,serif;font-size:clamp(22px,3.4vw,28px);color:var(--brown)}
.lkh-upsell-card b{margin-top:8px;height:52px;border-radius:999px;background:var(--brown);color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px}
.lkh-upsell-card b .icon{width:20px;height:20px}
.lkh-upsell-card:active{transform:scale(.98)}
@media(max-width:520px){.lkh-upsell-grid{grid-template-columns:1fr 1fr;gap:10px}.lkh-upsell{padding:16px}}
.lkh-upsell-card .product-photo{aspect-ratio:16/10!important;max-height:220px}
.lkh-upsell-card strong{font-size:clamp(18px,2.8vw,22px)!important;font-weight:600!important}
.lkh-upsell-card em{font-size:clamp(22px,3.6vw,28px)!important}
.lkh-upsell-card b{font-size:18px!important;height:56px!important}
.lkh-upsell-head small{font-size:clamp(15px,2.2vw,18px)!important}

/* ---- totem · aceite do Clube depois do CPF (grande, nada vem marcado) ---- */
.lkh-accept{display:flex;align-items:center;gap:18px;border:2px solid var(--line);border-radius:22px;padding:20px 22px;background:#fff;cursor:pointer;min-height:88px;transition:border-color .15s,background .15s}
.lkh-accept input{position:absolute;opacity:0;width:1px;height:1px}
.lkh-accept-box{flex:0 0 44px;width:44px;height:44px;border-radius:12px;border:2.5px solid var(--line);display:grid;place-items:center;color:transparent;background:#fff;transition:all .15s}
.lkh-accept-box svg{width:26px;height:26px}
.lkh-accept strong{display:block;font-size:clamp(19px,2.8vw,23px)}
.lkh-accept small{display:block;font-size:clamp(15px,2.1vw,17px);color:var(--muted);margin-top:2px}
.lkh-accept:has(input:checked){border-color:var(--brown,#ab3c22);background:color-mix(in srgb,var(--brown,#ab3c22) 7%,#fff)}
.lkh-accept:has(input:checked) .lkh-accept-box{background:var(--brown,#ab3c22);border-color:var(--brown,#ab3c22);color:#fff}
.lkh-accept:has(input:focus-visible){outline:3px solid color-mix(in srgb,var(--brown,#ab3c22) 40%,transparent);outline-offset:3px}
.lkh-accept.nudge{animation:lkhNudge .4s}
@keyframes lkhNudge{0%,100%{transform:none}25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.lkh-kaceite .lkh-kfield small{font-weight:400;color:var(--muted);font-size:14px}

/* ---- porções e sabores ---- */
.lkp{display:flex;flex-direction:column;gap:14px;min-height:0}
.lkp-explain{display:flex;gap:16px;align-items:center;background:#fbede6;border-radius:16px;padding:14px 18px;font-size:14px;line-height:1.5}
.lkp-explain>div:first-child{flex:1}
.lkp-formula{display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:8px 14px;font-size:13px;white-space:nowrap}
.lkp-formula b{font-size:20px;color:#ab3c22;font-weight:600}
.lkp-tabs{display:flex;gap:26px;border-bottom:1px solid var(--line)}
.lkp-tab{font:inherit;font-size:15px;font-weight:600;border:0;background:none;padding:10px 2px;color:var(--muted);border-bottom:3px solid transparent;cursor:pointer;display:flex;gap:8px;align-items:center}
.lkp-tab.on{color:#ab3c22;border-color:#ab3c22}
.lkp-cnt{font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;background:var(--lkh-amber-bg);color:var(--lkh-amber)}
.lkp-cnt.ok{background:var(--lkh-green-bg);color:var(--lkh-green)}
.lkp-body{display:flex;flex-direction:column;gap:14px;max-height:calc(100vh - 480px);min-height:200px;overflow:auto;padding-right:4px}
.lkp-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.lkp-seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;padding:2px}
.lkp-seg button{font:inherit;font-size:12px;font-weight:600;border:0;background:none;padding:6px 12px;border-radius:8px;color:var(--muted);cursor:pointer}
.lkp-seg button.on{background:var(--ink,#1c1916);color:#fff}
.lkp-check{display:flex;gap:8px;align-items:center;font-size:13px;cursor:pointer}
.lkp-check input{width:18px;height:18px;accent-color:#ab3c22}
.lkp-grp{border:1px solid var(--line);border-radius:18px;overflow:hidden}
.lkp-grp>header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:color-mix(in srgb,var(--line) 25%,#fff);border-bottom:1px solid var(--line);font-size:13px}
.lkp-grp>header strong{font-size:15px}
.lkp-row{display:flex;align-items:center;gap:14px;padding:10px 16px;border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.lkp-grp>header+.lkp-row{border-top:0}
.lkp-cup{width:44px;height:44px;display:flex;align-items:flex-end;justify-content:center;flex:0 0 44px}
.lkp-name{width:150px;flex:0 0 auto}
.lkp-inp{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:12px;height:44px;overflow:hidden;background:#fff}
.lkp-inp input{font:inherit;font-size:16px;font-weight:600;border:0;width:96px;padding:0 12px;outline:none;text-align:right;background:transparent}
.lkp-inp span{font-size:13px;color:var(--muted);padding:0 10px;border-left:1px solid var(--line);height:100%;display:flex;align-items:center;background:color-mix(in srgb,var(--line) 20%,#fff)}
.lkp-inp:focus-within{border-color:#ab3c22}
.lkp-row.miss .lkp-inp{border-color:#d9822b;background:#fff8ef}
.lkp-hint{flex:1;font-size:13px;color:var(--muted)}
.lkp-pill{font-size:11px;font-weight:700;border-radius:999px;padding:4px 10px;white-space:nowrap}
.lkp-pill.ok{background:var(--lkh-green-bg);color:var(--lkh-green)}.lkp-pill.no{background:var(--lkh-amber-bg);color:var(--lkh-amber)}
.lkp-gh{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.lkp-flavors{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.lkp-fl{border:1px solid var(--line);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:9px;background:#fff}
.lkp-fl.miss{border-color:#f1d2ad;background:#fffaf3}
.lkp-fl>header{display:flex;align-items:center;gap:8px}
.lkp-bar{display:flex;height:10px;border-radius:999px;overflow:hidden;background:color-mix(in srgb,var(--line) 50%,transparent)}
.lkp-line{display:flex;align-items:center;gap:8px}
.lkp-line select{flex:1;min-width:0}
.lkp-pct{width:70px!important;text-align:right}
.lkp-dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px}
.lkp-warn{color:var(--lkh-amber);font-size:12px}
.lkp-add{font:inherit;font-size:12px;font-weight:600;color:#ab3c22;background:none;border:0;display:inline-flex;align-items:center;gap:4px;cursor:pointer;padding:2px 0;align-self:flex-start}
.lkp-add svg{width:14px;height:14px}
.lkp-tip{font-size:12px;margin:0}
@media (max-width:720px){.lkp-explain{flex-direction:column;align-items:stretch}.lkp-name{width:auto;flex:1}.lkp-hint{flex-basis:100%;order:5}.lkp-row{flex-wrap:wrap}}

/* ---- produto · lojas e preços / histórico ---- */
.lkp-extras{margin-top:14px}
.lkp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.lkp-kpis>div{border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.lkp-kpis small{font-size:11px;color:var(--muted)}.lkp-kpis strong{font-size:18px}.lkp-kpis em{font-size:11px;font-style:normal;color:var(--lkh-blue)}
.lkp-kpis .bad{border-color:#f0c5b9}.lkp-kpis .bad strong{color:var(--lkh-red)}
.lkp-link{font:inherit;font-size:12px;color:#ab3c22;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer;align-self:flex-start}
.lkp-rule{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;font-size:13px}
.lkp-versions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:13px;margin-bottom:10px}
.lkp-filters{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.lkp-filters input{width:200px;height:36px}
.lkp-chip{font:inherit;font-size:12px;font-weight:600;border:1px solid var(--line);border-radius:999px;padding:6px 12px;background:#fff;cursor:pointer}
.lkp-chip.on{background:var(--ink,#1c1916);color:#fff;border-color:var(--ink,#1c1916)}
.lkp-table{overflow:auto;max-height:44vh;border:1px solid var(--line);border-radius:14px}
.lkp-table table{margin:0}
.lkp-table tr.sel td{background:#fdf3ee}
.lkp-ck{width:18px;height:18px;accent-color:#ab3c22}
.lkp-sub{display:block;font-size:11px;margin-top:2px}
.lkp-org{font-size:11px;font-weight:600;border-radius:6px;padding:2px 7px;white-space:nowrap}
.o-r{background:color-mix(in srgb,var(--line) 60%,transparent);color:var(--muted)}.o-g{background:var(--lkh-blue-bg);color:var(--lkh-blue)}.o-l{background:var(--lkh-amber-bg);color:var(--lkh-amber)}
.lkp-bulk{position:sticky;bottom:0;margin-top:10px;background:var(--ink,#1c1916);color:#fff;border-radius:16px;padding:10px 14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lkp-bulk .btn{background:#fff;color:var(--ink,#1c1916)}
.lkp-panel{position:fixed;inset:0;background:rgba(28,25,22,.45);display:flex;align-items:center;justify-content:center;z-index:2000;padding:16px}
.lk-pf-pane{position:relative}
.lkp-panel-in{background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.3);padding:20px;width:min(560px,100%);max-height:100%;overflow:auto;display:flex;flex-direction:column;gap:12px}
.lkp-panel-in h3{margin:0;font-size:22px}
.lkp-when{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.lkp-when label{display:flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:8px 12px;cursor:pointer;font-size:13px}
.lkp-when input[type=radio]{accent-color:#ab3c22}
.lkp-sum{border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13px}
.lkp-sum ul{list-style:none;margin:8px 0 0;padding:0;max-height:180px;overflow:auto}
.lkp-sum li{display:grid;grid-template-columns:1fr auto auto auto;gap:8px;padding:5px 0;border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.lkp-warn-box{font-size:13px;background:var(--lkh-amber-bg);color:var(--lkh-amber);border-radius:10px;padding:10px 12px}
.lkp-panel-foot{display:flex;gap:10px;justify-content:flex-end}
.lkp-chips{display:flex;flex-wrap:wrap;gap:6px}
@media (max-width:760px){.lkp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- modal do produto: abas em grupos + rodapé sempre visível ---- */
.modal:has(.lk-pf){max-height:calc(100dvh - 40px)}
.lk-pf-pane{flex:1 1 auto;min-height:0!important;max-height:none!important}
.lk-pf-tabs.lkp-tabs2{gap:8px;padding:0 20px 12px;align-items:center;scroll-padding:0 20px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
.lkp-tgrp{display:flex;align-items:center;gap:2px;background:#f6f2ec;border-radius:12px;padding:3px;flex:none}
.lkp-tlbl{font-size:10px;font-weight:700;letter-spacing:.1em;color:#9a8f83;padding:0 6px 0 8px}
.lk-pf-tabs.lkp-tabs2 button{height:auto;padding:7px 11px;border:0;border-radius:9px;font-size:13px;font-weight:500;color:#3b3632}
.lk-pf-tabs.lkp-tabs2 button span{display:none}
.lk-pf-tabs.lkp-tabs2 button.on{background:#fff;color:var(--brown,#ab3c22);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.lk-pf-tabs.lkp-tabs2 button:focus-visible{outline:2px solid var(--brown,#ab3c22);outline-offset:1px}
.lkh-when{align-items:center;border-radius:12px;padding:3px;gap:2px;background:#fff}
.lkh-when em{font-style:normal;font-size:12px;color:var(--muted);padding:0 6px 0 9px;white-space:nowrap}
.lkh-when span{padding:7px 10px;border-radius:9px}
.lk-pf-foot{flex-wrap:wrap}
.lk-pf-foot .btn{height:42px}
@media (max-width:1000px){.lkp-tlbl{display:none}}
@media (max-width:640px){
  .modal:has(.lk-pf){max-height:calc(100dvh - 26px)}
  .lk-pf-tabs.lkp-tabs2{padding:0 12px 10px}
  .lk-pf-foot{flex-direction:column;align-items:stretch;padding:12px 14px!important}
  .lkh-foot-left{display:flex;flex-wrap:nowrap;gap:8px}
  .lkh-foot-left>.btn{width:42px;padding:0;justify-content:center;font-size:0;gap:0;flex:none}
  .lkh-foot-left>.btn .icon,.lkh-foot-left>.btn svg{width:18px;height:18px}
  .lkh-when{flex:1;justify-content:stretch}.lkh-when em{display:none}.lkh-when label{flex:1}.lkh-when span{text-align:center;white-space:nowrap;font-size:12px;padding:8px 6px}
  .lk-pf-foot>span:last-child{display:flex;gap:8px}.lk-pf-foot>span:last-child .btn{flex:1;justify-content:center}
}

/* ---- clientes: lista compacta (6 colunas, linha clicável) e ficha ---- */
.lkc-list{background:var(--paper,#fff);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.lkc-th,.lkc-row{display:grid;grid-template-columns:minmax(200px,2fr) minmax(150px,1.4fr) minmax(110px,.9fr) minmax(130px,1fr) minmax(130px,1fr) 40px;gap:14px;align-items:center;padding:0 18px}
.lkc-th{height:42px;background:color-mix(in srgb,var(--line) 25%,var(--paper,#fff));font-size:11px;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-weight:600}
.lkc-row{width:100%;min-height:70px;border:0;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent);background:transparent;font:inherit;color:var(--ink,#1c1916);text-align:left;cursor:pointer}
.lkc-row:hover{background:color-mix(in srgb,var(--brown,#ab3c22) 4%,var(--paper,#fff))}
.lkc-row:focus-visible{outline:2px solid var(--brown,#ab3c22);outline-offset:-2px}
.lkc-row>span{min-width:0;font-size:13px}
.lkc-row small,.lkc-hero small,.lkc-lines small{display:block;font-size:12px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis}
.lkc-who{display:flex;align-items:center;gap:12px}
.lkc-min{min-width:0;flex:1}
.lkc-who b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lkc-who b.mut{color:var(--muted)}
.lkc-av{width:38px;height:38px;border-radius:50%;background:#f3e3d8;color:var(--brown,#ab3c22);display:grid;place-items:center;font-weight:600;font-size:13px;flex:none}
.lkc-av.none{background:color-mix(in srgb,var(--line) 60%,transparent);color:var(--muted)}
.lkc-av.big{width:54px;height:54px;font-size:18px}
.lkc-ell{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lkc-buy b{font-size:14px;font-weight:600}
.lkc-go{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;color:var(--brown,#ab3c22);background:var(--paper,#fff)}
.lkc-go svg{width:16px;height:16px}
@media (max-width:1180px){.lkc-th,.lkc-row{grid-template-columns:minmax(180px,2fr) minmax(110px,.9fr) minmax(130px,1fr) minmax(120px,1fr) 40px}.lkc-th span:nth-child(2),.lkc-contact{display:none}}
@media (max-width:760px){.lkc-th{display:none}.lkc-row{grid-template-columns:1fr auto 36px;padding:12px 14px;gap:10px}.lkc-last,.lkc-contact{display:none}.lkc-buy{grid-column:1/2;grid-row:2;padding-left:50px}.lkc-club{text-align:right}}

.modal.lkc-modal{max-height:calc(100dvh - 40px);display:flex;flex-direction:column}
.lkc-hero{display:flex;align-items:center;gap:14px;background:#fbede6;border-radius:18px;padding:14px 16px;margin-bottom:14px}
.lkc-club-line{display:block;font-size:13px;font-weight:600;margin-top:3px}
.lkc-pts{text-align:right;flex:none}.lkc-pts b{display:block;font:500 30px/1 Quiche,Georgia,serif;color:var(--brown,#ab3c22)}
.lkc-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:4px}
.lkc-facts>div{border:1px solid var(--line);border-radius:14px;padding:10px 12px;min-width:0}
.lkc-facts small{display:block;font-size:11px;color:var(--muted)}.lkc-facts strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.lkc-h{font-size:13px;font-weight:600;margin:18px 0 8px}
.lkc-lines{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;max-height:260px;overflow:auto}
.lkc-lines li{display:flex;align-items:center;gap:10px;padding:10px 14px;font-size:13px;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.lkc-lines li:first-child{border-top:0}
.lkc-lines b{flex:none;font-weight:600}.lkc-lines b.pos{color:var(--green,#2f6b45)}.lkc-lines b.neg{color:var(--red,#b03a2e)}
.lkc-modal .modal-footer{flex-wrap:wrap}
.lkc-foot{display:flex;align-items:center;gap:8px;width:100%;flex-wrap:wrap}
.lkc-grow{flex:1}
.lkc-more{position:relative}
.lkc-more summary{list-style:none;cursor:pointer}.lkc-more summary::-webkit-details-marker{display:none}
.lkc-menu{position:absolute;bottom:calc(100% + 8px);left:0;z-index:5;background:var(--paper,#fff);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.15);padding:6px;display:flex;flex-direction:column;gap:2px;min-width:240px}
.lkc-menu .btn{border:0;justify-content:flex-start;width:100%;background:transparent}
.lkc-menu .btn:hover{background:color-mix(in srgb,var(--line) 40%,transparent)}
.lkc-menu .btn.danger{color:var(--red,#b03a2e)}
@media (max-width:640px){.lkc-crm .lk-crm-kpis,.lkc-modal .lk-crm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.lkc-foot .btn{flex:1;justify-content:center}.lkc-grow{display:none}.lkc-more{flex-basis:100%}.lkc-more summary{width:100%;justify-content:center}}
.modal-footer{flex-wrap:wrap}
/* rodapé fixo na base da ficha e do editar cliente (só o conteúdo rola) */
.lkc-modal .modal-footer,.modal:has(#lk-customer-form) .modal-footer{position:sticky;bottom:-28px;margin:20px -28px -28px;padding:14px 28px;background:var(--paper,#fff);z-index:3;border-top:1px solid var(--line)}
@media (max-width:650px){.lkc-modal .modal-footer,.modal:has(#lk-customer-form) .modal-footer{bottom:-22px;margin:16px -22px -22px;padding:12px 22px}}

/* Tributação por loja no cadastro do produto */
.lkh-tx{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.lkh-tx-title{margin:0;font-size:17px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.lkh-tx-title small{font-weight:400;font-size:13px}
.lkh-tx-list td .badge{white-space:normal}
.lkh-tx-rtc{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.lkh-tx-rtc[hidden]{display:none}
.lkh-tx-warn{margin:0;padding:10px 12px;border-radius:10px;background:#fff6e5;border:1px solid #f0d9a8;color:#7a5410;font-size:13px;line-height:1.5}
.lkh-tx-ok{display:flex;align-items:center;gap:8px;font-size:14px}
.lkh-tx-ok input{width:20px;height:20px;accent-color:var(--brown,#633319)}
