/* Trisolino Smart Compare · componenti isolati */
.tc-root,.tc-entry{--tc-ink:#302822;--tc-brown:#985324;--tc-orange:#c98246;--tc-tint:#faf3eb;--tc-line:#e3d6ca;--tc-paper:#fffdfa;font-family:"Segoe UI",system-ui,sans-serif}
.tc-root,.tc-root *,.tc-entry{box-sizing:border-box}
.tc-root button,.tc-entry,.tc-root select,.tc-root input{font:inherit}
.tc-root button,.tc-entry,.tc-root a{touch-action:manipulation}
.tc-root button,.tc-entry{cursor:pointer}
.tc-root button:disabled,.tc-entry:disabled{cursor:default;opacity:.53}
.tc-root :focus-visible,.tc-entry:focus-visible{outline:3px solid #b86225;outline-offset:2px}
button.tc-entry{display:flex;align-items:center;justify-content:center;gap:.55rem;width:fit-content;max-width:100%;margin:7px auto 5px;padding:7px 12px;min-height:40px;border:1px solid var(--tc-orange);border-radius:5px;color:var(--tc-brown);background:#fffdfa;font-size:14px;font-weight:600;line-height:1.2;text-align:center}
button.tc-pdp{margin:10px 0}
button.tc-entry:hover,button.tc-entry[aria-pressed=true]{background:#f8e5d2;border-color:var(--tc-brown)}
.tc-icon{display:inline-block;width:19px;height:15px;position:relative;flex:none}
.tc-icon:before,.tc-icon:after{content:"";position:absolute;bottom:0;width:8px;height:12px;border:1.5px solid currentColor;border-radius:2px}
.tc-icon:before{left:0}.tc-icon:after{right:0;height:15px}
.tc-entry[aria-pressed=true] .tc-icon:before{width:14px;height:8px;left:2px;bottom:4px;border:0;border-bottom:2px solid;border-left:2px solid;border-radius:0;transform:rotate(-45deg)}
.tc-entry[aria-pressed=true] .tc-icon:after{display:none}
.tc-root{color:var(--tc-ink);font-size:15px;line-height:1.4}
.tc-root [hidden],.tc-tray.tc-yield{display:none!important}
.tc-root h2,.tc-root h3,.tc-root p{margin:0}.tc-root button,.tc-view{text-decoration:none;text-transform:none;letter-spacing:normal}
.tc-primary,.tc-secondary,.tc-control,.tc-link,.tc-choice,.tc-view{min-height:42px;padding:7px 12px;line-height:1.22!important;border-radius:5px;font-weight:600!important}
.tc-primary,.tc-view{background:var(--tc-brown);color:white!important;border:1px solid var(--tc-brown)}
.tc-secondary,.tc-control,.tc-choice{background:var(--tc-paper);color:var(--tc-brown);border:1px solid var(--tc-line)}
.tc-link{background:transparent;color:var(--tc-brown);border:0;text-decoration:underline!important;text-underline-offset:3px}
.tc-control{font-size:22px!important;min-width:42px}
.tc-tray{position:fixed;z-index:900;bottom:calc(12px + env(safe-area-inset-bottom,0px) + var(--tc-offset,0px));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);display:flex;align-items:center;gap:14px;padding:10px 12px 10px 18px;background:var(--tc-paper);border:1px solid var(--tc-line);border-top:2px solid var(--tc-orange);border-radius:10px;box-shadow:0 6px 32px #39210e26}
.tc-tray-title{display:grid;font-size:14px;white-space:nowrap}.tc-tray-title span,.tc-variant,.tc-missing{color:#726255}.tc-tray-title span{font-size:12px}
.tc-slots{display:flex;gap:6px}.tc-slot{width:48px;height:48px;position:relative;display:grid;place-items:center;border-radius:4px;background:#f7f0e8}
.tc-empty{border:1px dashed #cda989;color:#996841}.tc-thumb{width:100%;height:100%;object-fit:cover;border-radius:4px}
.tc-x{position:absolute;right:-3px;top:-4px;min-width:24px;min-height:24px;border-radius:50%;border:1px solid var(--tc-line);color:var(--tc-ink);background:var(--tc-paper);line-height:1}
.tc-tray.tc-mini{padding:0;border:0}.tc-mini .tc-primary{border-radius:20px}
.tc-lock{overflow:hidden!important}
.tc-dialog{position:fixed;inset:0;margin:auto;padding:0;background:var(--tc-paper);color:var(--tc-ink);border:1px solid var(--tc-line);border-top:3px solid var(--tc-orange);border-radius:14px;width:min(1200px,95vw);max-width:95vw;max-height:93vh;max-height:93dvh;box-shadow:0 15px 60px #22170e44}
.tc-dialog::backdrop{background:#231c158c}
.tc-body{display:flex;flex-direction:column;max-height:91vh;max-height:91dvh;padding:20px 26px;gap:10px;overflow:auto}
.tc-head,.tc-tools,.tc-pages,.tc-find{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tc-head{flex:none}.tc-brand{font-size:10px;font-weight:700;letter-spacing:.15em;color:var(--tc-brown)}
.tc-root h2{font-family:Georgia,serif;font-size:clamp(26px,3vw,39px);line-height:1.17;color:var(--tc-ink);text-transform:none;font-weight:400;letter-spacing:-.025em}
.tc-root h3{font-size:18px;color:var(--tc-ink);line-height:1.35}
.tc-tools{justify-content:flex-start;flex-wrap:wrap;flex:none}
.tc-switch{cursor:pointer;display:flex;align-items:center;gap:7px;margin:0 auto 0 0;font-weight:600;font-size:14px;min-height:40px}
.tc-switch input{accent-color:var(--tc-brown);width:19px;height:19px}
.tc-feedback:empty{display:none}.tc-msg,.tc-feedback{padding:7px 10px;border-left:2px solid var(--tc-orange);background:var(--tc-tint);font-size:14px}
.tc-scroll{overflow:auto;overscroll-behavior:contain;position:relative;border:1px solid var(--tc-line);border-radius:7px;min-height:115px}
.tc-table{--tc-stub:145px;--tc-column:165px;width:100%;min-width:calc(var(--tc-stub) + var(--tc-column)*var(--tc-count));table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:14px;color:var(--tc-ink)}
.tc-table th,.tc-table td{padding:9px;border:0;border-bottom:1px solid var(--tc-line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.tc-table thead th{position:sticky;top:0;z-index:2;background:var(--tc-paper);vertical-align:top}
.tc-table .tc-first{position:sticky;left:0;z-index:1;width:var(--tc-stub);background:#fbf6ef;font-size:13px;font-weight:600}
.tc-table thead .tc-first{z-index:3}
.tc-product{text-align:center!important}.tc-photo{width:100%;height:clamp(70px,10vh,118px);object-fit:contain;display:block;background:#faf7f3;border-radius:4px}
.tc-placeholder{display:grid;place-items:center;color:#af9986}
.tc-name,.tc-variant{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.tc-name{-webkit-line-clamp:2;margin:5px 0 2px;height:2.6em;line-height:1.3}
.tc-variant{-webkit-line-clamp:2;font-size:12px;line-height:1.25;height:2.5em;font-weight:400}
.tc-view,.tc-product .tc-link{display:inline-flex;align-items:center;justify-content:center;margin:2px;font-size:13px}
.tc-section{background:#faecdf;font-weight:700;color:#75421f}.tc-diff td{background:#fff9f3}.tc-diff .tc-first{box-shadow:inset 3px 0 var(--tc-orange)}.tc-price{font-weight:700;font-size:16px}
.tc-measure{display:block;height:4px;border-radius:3px;margin-top:6px;background:var(--tc-orange)}
.tc-input{width:100%;padding:9px 11px;border:1px solid var(--tc-line);border-radius:5px;background:white;color:var(--tc-ink);min-height:44px}
.tc-picker{max-width:760px;width:100%;margin:0 auto}.tc-find{padding:5px 0 14px}.tc-results{display:grid;gap:5px}
.tc-choice{text-align:left}.tc-choice:hover,.tc-secondary:hover{background:var(--tc-tint)}
.tc-pages{justify-content:flex-end;margin-top:5px}.tc-toast{position:fixed;bottom:130px;left:50%;transform:translateX(-50%);z-index:950;padding:10px 15px;border-radius:6px;background:#433328;color:white;max-width:90vw}
.tc-sr{position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px}
@media(max-width:720px){
 .tc-tray{display:grid;grid-template-columns:1fr auto auto;grid-template-areas:"title slots reduce" "open open clear";gap:4px 8px;padding:7px 9px;width:100%;max-width:calc(100vw - 12px);bottom:calc(4px + env(safe-area-inset-bottom,0px) + var(--tc-offset,0px))}
 .tc-tray-title{grid-area:title}.tc-slots{grid-area:slots;gap:5px}.tc-slot{width:36px;height:36px}.tc-x{width:25px;height:25px;min-width:25px}
 .tc-tray>.tc-primary{grid-area:open}.tc-tray>.tc-control{grid-area:reduce}.tc-tray>.tc-link{grid-area:clear;font-size:12px}
 .tc-tray.tc-mini{display:block;width:auto}.tc-tray .tc-primary,.tc-tray .tc-control{min-height:44px}
 .tc-dialog{width:100vw;max-width:100vw;height:100%;height:100dvh;max-height:100dvh;border-radius:0;border-left:0;border-right:0}
 .tc-body{padding:10px 6px max(8px,env(safe-area-inset-bottom));height:100%;max-height:100%;gap:5px}
 .tc-head,.tc-tools{padding:0 4px}.tc-tools{gap:3px 5px}.tc-tools button{font-size:12px;padding:5px 7px;min-height:42px}
 .tc-switch{font-size:12px;gap:2px}.tc-root h2{font-size:27px}.tc-table{--tc-stub:72px;--tc-column:118px;font-size:12px}
 .tc-table .tc-first{font-size:11px}.tc-table th,.tc-table td{padding:6px 4px}.tc-photo{height:62px}.tc-variant{font-size:11px}
 .tc-product .tc-link,.tc-view{margin:0;min-height:40px;font-size:12px;padding:5px}.tc-find{flex-wrap:wrap}
 .tc-scroll{flex:1;border-radius:4px}.tc-feedback,.tc-msg{padding:5px;font-size:12px}.tc-entry{min-height:44px!important}
}
@media(max-height:540px){.tc-table thead th{position:static}.tc-photo{height:44px}}

