/* Cupido Checkout – stile dell'app (admin) */
:root {
  --ink: #2a2b2a;
  --muted: #6d6d6a;
  --line: #e3ded6;
  --bg: #f6f3ee;
  --card: #ffffff;
  --accent: #bf301a;
  --accent-soft: #fbe9e5;
  --cream: #fdf6ee;
  --r: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Manrope, Roboto, sans-serif; }
#app { max-width: 1480px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font: 600 24px/1.2 Lora, Georgia, serif; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.err { color: #b42318; margin-top: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.sp { flex: 1; }

/* bottoni e campi */
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cfc8bd; background: #fbfaf8; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.primary:disabled { background: #d9d5ce; border-color: #d9d5ce; color: #6d6d6a; cursor: default; }
.btn.danger { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.plain { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.danger-text { color: var(--accent) !important; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; padding: 0 4px; }
.in { width: 100%; border: 1px solid #d6d0c6; border-radius: 8px; padding: 8px 10px; font: inherit; background: #fff; color: var(--ink); }
.in:focus { outline: 2px solid #2a2b2a22; border-color: var(--ink); }
.in.sm { width: auto; padding: 5px 8px; }
.in.mono, .in.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.in.title { font-weight: 600; font-size: 16px; max-width: 360px; }
textarea.in { resize: vertical; }
.lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.lbl.strong { font-size: 14px; }
.langs { font-weight: 400; color: var(--muted); font-size: 11.5px; }
code { background: #f1ede7; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.pill.on { background: #dff3e8; color: #0b6b3a; }
.pill.off { background: #eee; color: #666; }
.demo { background: var(--cream); border: 1px solid #ecdcc7; border-radius: 8px; padding: 9px 12px; margin: 0 0 16px; font-size: 13px; }

/* testata */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top.ed { align-items: center; margin-bottom: 10px; }
.switch { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; margin-right: 6px; }
.switch input { width: 18px; height: 18px; accent-color: var(--ink); }
.codebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; margin-bottom: 14px; font-size: 13px; }
.codebar .in.mono { width: 220px; padding: 5px 8px; }

/* elenco sezioni */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-prev { padding: 16px; background: #fafafa; border-bottom: 1px solid var(--line); height: 210px; overflow: hidden; cursor: pointer; position: relative; }
.card-prev::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #fafafa); }
.card-prev .cp { pointer-events: none; transform: scale(.85); transform-origin: top left; width: 117%; }
.card-info { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.card-title { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.code-line { font-size: 13px; color: var(--muted); }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card-actions .btn { padding: 6px 11px; font-size: 13px; }
.empty { text-align: center; background: #fff; border: 1px dashed #d6d0c6; border-radius: 14px; padding: 48px 16px; }
.empty .btn { margin-top: 12px; }

/* modali */
.modal-back { position: fixed; inset: 0; background: #1d1d1b66; display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px #0003; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head .x { border: 0; background: none; font-size: 24px; cursor: pointer; line-height: 1; color: var(--muted); }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-body p { margin-top: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tpl { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 0 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; overflow: hidden; font: inherit; color: inherit; }
.tpl:hover { border-color: var(--ink); }
.tpl strong, .tpl span { padding: 0 12px; }
.tpl span { font-size: 12.5px; }
.tpl-prev { height: 130px; overflow: hidden; background: #fafafa; border-bottom: 1px solid var(--line); padding: 10px; margin-bottom: 8px; }
.tpl-prev .cp { transform: scale(.6); transform-origin: top left; width: 166%; pointer-events: none; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.type { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 14px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; color: inherit; font-weight: 600; }
.type:hover { border-color: var(--ink); background: var(--cream); }
.ic.big { font-size: 22px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.file { border: 1px solid var(--line); background: #fafafa; border-radius: 8px; padding: 4px; cursor: pointer; aspect-ratio: 1; }
.file:hover { border-color: var(--ink); }
.file img { width: 100%; height: 100%; object-fit: contain; }

/* editor a tre colonne */
.editor { display: grid; grid-template-columns: 270px 340px minmax(0, 1fr); gap: 14px; align-items: start; }
.editor > * { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.col-prev { position: sticky; top: 12px; }
.col-head { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.col-set .col-head { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); }
.tree .node { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.tree .node:hover { background: #f7f5f1; }
.tree .node.sel { background: var(--cream); border-color: #e6d6c0; }
.tree .ic { width: 22px; text-align: center; flex: none; color: var(--muted); }
.tree .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; }
.tree .nm small { display: block; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree .tag { font-size: 10px; background: #eee; border-radius: 4px; padding: 1px 4px; }
.tree .acts { display: none; gap: 2px; }
.tree .node:hover .acts, .tree .node.sel .acts { display: flex; }
.kids { margin-left: 16px; padding-left: 8px; border-left: 2px solid #efebe4; }
.mini { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 24px; height: 24px; padding: 0; cursor: pointer; font-size: 12px; color: var(--ink); }
.mini:hover { border-color: var(--ink); }
.add { width: 100%; margin-top: 6px; border: 1px dashed #cfc8bd; background: transparent; border-radius: 8px; padding: 7px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); font-size: 13px; }
.add:hover { background: var(--cream); border-color: var(--ink); }
.fields { display: flex; flex-direction: column; gap: 14px; }
.item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: #fcfbf9; }
.item-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.item-head small { color: var(--muted); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; }
.icon { height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.icon.on { border-color: var(--ink); background: var(--cream); box-shadow: inset 0 0 0 1px var(--ink); }
.img-field { display: flex; flex-direction: column; gap: 8px; }
.thumb { min-height: 70px; border: 1px dashed #d6d0c6; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#f4f4f4 0 25%, #fff 0 50%) 0 0 / 14px 14px; padding: 6px; }
.thumb img { max-width: 100%; max-height: 120px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg .btn { border: 0; border-radius: 0; padding: 5px 12px; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.seg .btn.on { background: var(--ink); color: #fff; }

/* cornice dell'anteprima (imita la colonna del checkout) */
.frame { background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 22px; max-width: 620px; margin: 0 auto 10px; transition: max-width .2s; }
.frame.narrow { max-width: 375px; padding: 16px; }

/* toast fuori da Shopify */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 99; font-weight: 600; }
.toast.err { background: var(--accent); }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 250px minmax(0, 1fr); }
  .col-prev { grid-column: 1 / -1; position: static; }
}
@media (max-width: 700px) {
  .editor { grid-template-columns: 1fr; }
}

/* ===== componenti dell'anteprima (stile simile al checkout Shopify) ===== */
.cp { font: var(--cc-fs, 14px)/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #000; }
.cp-box { display: flex; flex-direction: column; }
.cp-el { border-radius: 6px; outline: 1px dashed transparent; outline-offset: 3px; cursor: pointer; min-width: 0; }
.frame .cp-el:hover { outline-color: #bf301a66; }
.cp-el.sel { outline: 2px solid var(--accent); }
.cp-h { font-size: var(--cc-h1, 17px); font-weight: 600; line-height: 1.3; }
.cp-h.h2 { font-size: var(--cc-h2, 15px); }
.cp-h.h3 { font-size: var(--cc-h3, 14px); }
.cp .sm { font-size: var(--cc-sm, 12px); }
.cp-t { margin: 0; }
.cp-t.sm { font-size: var(--cc-sm, 12px); }
.cp-t.b { font-weight: 600; }
.cp-t.i { font-style: italic; }
.cp-muted { color: #707070; font-size: 13px; }
.cp-row { display: flex; flex-wrap: wrap; align-items: center; }
.cp-grid { display: grid; }
.cp-li { display: flex; gap: 8px; align-items: flex-start; }
.cp-li .b { font-weight: 600; }
.cp-ic { flex: none; margin-top: 2px; }
.cp-stars { display: inline-flex; gap: 1px; }
.cp-img { display: block; height: auto; }
.cp-img-ph, .cp-logo-ph { display: flex; align-items: center; justify-content: center; background: #ececec; color: #888; font-size: 11px; border-radius: 4px; }
.cp-badge { display: inline-block; background: #ececec; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 500; }
.cp-badge.errore { background: #fee9e8; color: #8e1f0b; }
.cp-badge.grigio { background: #f4f4f4; color: #707070; }
.cp-btn { display: inline-block; text-align: center; background: #1773b0; color: #fff; padding: 12px 18px; border-radius: var(--cc-r-m, 5px); font-weight: 600; }
.cp-btn.sec { background: #fff; color: #1773b0; border: 1px solid #d9d9d9; }
.cp-link { color: #1773b0; text-decoration: underline; }
.cp-banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; background: #eaf4ff; }
.cp-banner.successo { background: #e8f6ef; }
.cp-banner.avviso { background: #fff5d6; }
.cp-banner.errore { background: #fee9e8; }
.cp-banner .b { font-weight: 600; }
.cp-rev { display: flex; flex-direction: column; gap: 4px; }
.cp-hr { border: 0; border-top: 1px solid #dedede; margin: 0; width: 100%; }

/* condizioni, carrello di prova, nuovi elementi */
.cond-line { font-size: 12px; color: var(--muted); background: var(--cream); border-radius: 6px; padding: 5px 8px; }
.pill.sched { background: #e6effd; color: #1d4ed8; }
.cond-grp { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; background: #fcfbf9; }
.cond-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; cursor: pointer; }
.cond-body { margin-top: 9px; display: flex; flex-direction: column; gap: 7px; }
.cond-body[hidden] { display: none; }
input.sw { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: #d6d0c6; position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s; }
input.sw:checked { background: var(--ink); } input.sw:checked::after { left: 17px; }
.r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lbl-s { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; }
.lbl-s .in { width: 100%; }
.seg2 { display: flex; border: 1px solid #d6d0c6; border-radius: 8px; overflow: hidden; }
.seg2 button { flex: 1; border: 0; background: #fff; padding: 6px 8px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.seg2 button.on { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #d6d0c6; border-radius: 99px; padding: 3px 4px 3px 9px; font-size: 12px; }
.chip img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }
.chip-x { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); padding: 0 4px; }
.cond-sum { background: var(--cream); border: 1px solid #ecdcc7; border-radius: 8px; padding: 9px 11px; font-size: 12.5px; }
.testcart { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-items: end; }
.tc-check { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.verdict { margin-top: 10px; border-radius: 8px; padding: 9px 11px; font-size: 13px; font-weight: 600; }
.verdict.ok { background: #e8f6ef; color: #0b6b3a; } .verdict.no { background: #fee9e8; color: #8e1f0b; }
.hidden-sec { opacity: .35; }
.cp-bar { height: 8px; background: #e6e6e6; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.cp-bar i { display: block; height: 100%; background: #1773b0; border-radius: 4px; }
.cp-up { display: flex; gap: 12px; align-items: center; border: 1px solid #dedede; border-radius: 8px; padding: 10px; }
.cp-up + .cp-up { margin-top: 8px; }
.cp-up img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid #eee; }
.cp-up-t { flex: 1; min-width: 0; }
.r1 { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lbl-s .in { min-width: 0; }

/* domanda, test A/B, statistiche */
.cp-opts { border: 1px solid #d9d9d9; border-radius: 6px; overflow: hidden; }
.cp-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid #d9d9d9; }
.cp-opt:first-child { border-top: 0; }
.cp-rad { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #999; flex: none; }
.cp-chk { width: 15px; height: 15px; border-radius: 3px; border: 1.5px solid #999; flex: none; }
.cp-field { border: 1px solid #d9d9d9; border-radius: 5px; padding: 12px; color: #707070; display: flex; justify-content: space-between; }
.abtabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.abtab { border: 1px solid #d6d0c6; background: #fff; border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.abtab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.abtab.add { width: 100%; border-style: dashed; color: var(--muted); }
.stats .card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.stats table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px; border-bottom: 1px solid var(--line); }
.stats td { padding: 8px 6px; border-bottom: 1px solid #f0ede8; }
.stats .kp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats .kp div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stats .kp small { color: var(--muted); font-size: 12px; } .stats .kp b { display: block; font-size: 22px; margin-top: 3px; }
.stats .win { color: #0b6b3a; font-weight: 700; }
.stats .bars div { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; }
.stats .bars i { display: inline-block; height: 8px; background: var(--accent); border-radius: 4px; }
.stats .bars span { min-width: 160px; }
.stats .chart { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.stats .chart div { flex: 1; background: var(--accent); opacity: .85; border-radius: 3px 3px 0 0; }
@media (max-width: 800px) { .stats .kp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Le mie icone */
.icon-field .lbl-s { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.icon.own { position: relative; padding: 4px; }
.icon.own img { width: 22px; height: 22px; object-fit: contain; display: block; }
.icon-x { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 11px; line-height: 16px; padding: 0; cursor: pointer; display: none; }
.icon.own:hover .icon-x, .icon.own:focus-within .icon-x { display: block; }
.icon.add-ic { font-size: 18px; font-weight: 600; border-style: dashed; }

/* Modelli divisi per tipo */
.tpl-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tpl-cat { font: inherit; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 5px 12px; cursor: pointer; }
.tpl-cat.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tpl-tag { font-size: 10.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #bf301a; }

/* Anteprima: passaggi e domande frequenti */
.cp-num { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #1f1f1f; color: #fff; font-weight: 700; }
.cp-faq { border-bottom: 1px solid #dedede; padding: 10px 0; }
.cp-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: '+'; font-weight: 400; font-size: 18px; line-height: 1; }
.cp-faq[open] summary::after { content: '\2212'; }
.cp-faq > div { margin-top: 6px; }

/* Anteprima su telefono: cornice con le misure vere dello schermo */
.frame.as-phone { max-width: none; background: transparent; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone { padding: 10px; border-radius: 46px; background: #1d1d1f; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); max-width: 100%; }
.phone-screen { max-width: 100%; border-radius: 36px; overflow: hidden auto; background: #f5f5f5; display: flex; flex-direction: column; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 6px; font: 600 13px system-ui, sans-serif; color: #111; background: #fff; flex: none; }
.phone-dots { width: 54px; height: 10px; border-radius: 5px; background: #111; opacity: .85; }
.phone-head { padding: 8px 16px 12px; background: #fff; border-bottom: 1px solid #e3e3e3; font: 600 15px system-ui, sans-serif; text-align: center; flex: none; }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.phone-body > .cp { background: #fff; border-radius: 10px; padding: 12px; }
.phone-ph { height: 90px; border-radius: 10px; background: #e7e7e7; flex: none; }
.phone-ph.short { height: 50px; }
.phone-info { text-align: center; }
.phone-sel[hidden] { display: none; }

/* Misure del checkout */
.brand-h { font-size: 18px; margin: 0; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: minmax(0, 1fr); } }
.brand-grid > section { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.brand-row { margin-top: 12px; }
.brand-row input[type=range] { width: 100%; accent-color: #bf301a; }
.brand-prev { background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 18px; }
.brand-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.brand-boxes > div { background: #f4f4f4; border: 1px solid #dedede; padding: 14px 8px; text-align: center; font-size: 12px; }

/* Anteprima: stili in più */
.cp-t.mk { background: #fff3b0; padding: 0 3px; border-radius: 3px; display: inline; }
.cp-t.st { text-decoration: line-through; opacity: .7; }
.cp-badge { display: inline-flex; align-items: center; gap: 4px; }
.cp-badge.sm { font-size: 11px; padding: 1px 6px; }
.cp-btn.red { background: #c5280c; }
.cp-btn.sec.red { background: #fff; color: #c5280c; }
