/* Banner consenso gemello di Complianz (stesso aspetto del banner del sito) */
.ls-consent { position: fixed; z-index: 100; right: 10px; bottom: 10px; width: min(526px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow-y: auto; padding: 20px 22px 16px; background: #fff; color: #333; border-radius: 12px; box-shadow: 0 0 12px rgba(0,0,0,.35); font: 400 .875rem/1.5 Inter, "Helvetica Neue", Arial, sans-serif; }
.ls-consent[hidden] { display: none; }
.ls-consent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ls-consent-title { margin: 0; font-size: 1.05rem; font-weight: 600; color: #222; }
.ls-consent-close { flex: none; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #333; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 6px; }
.ls-consent-msg { margin: 0 0 12px; }
.ls-consent-prefs { margin: 0 0 12px; display: grid; gap: 8px; }
.ls-consent-prefs[hidden] { display: none; }
.ls-consent-cat { padding: 10px 12px; background: #f2f2f2; border-radius: 6px; }
.ls-consent-cat p { margin: 6px 0 0; font-size: .8rem; color: #555; }
.ls-consent-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.ls-consent-cat-title { font-weight: 600; color: #222; }
.ls-consent-always { color: #2e7d32; font-size: .8rem; font-weight: 600; }
.ls-consent-switch { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.ls-consent-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ls-consent-toggle { position: relative; flex: none; width: 40px; height: 22px; border-radius: 11px; background: #bbb; transition: background .2s; }
.ls-consent-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ls-consent-switch input:checked + .ls-consent-toggle { background: #a51455; }
.ls-consent-switch input:checked + .ls-consent-toggle::after { transform: translateX(18px); }
.ls-consent-switch input:focus-visible + .ls-consent-toggle { outline: 3px solid #a51455; outline-offset: 2px; }
.ls-consent-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.ls-btn { min-height: 45px; padding: 8px 10px; border: 1px solid; border-radius: 6px; font: inherit; font-weight: 500; cursor: pointer; }
.ls-btn[hidden] { display: none; }
.ls-btn-main { background: #a51455; border-color: #a51455; color: #fff; }
.ls-btn-alt { background: #f9f9f9; border-color: #f2f2f2; color: #333; }
.ls-btn:focus-visible, .ls-consent-close:focus-visible, .ls-consent-links a:focus-visible { outline: 3px solid #101d2e; outline-offset: 2px; }
.ls-consent-links { display: flex; justify-content: center; gap: 20px; margin: 12px 0 0; font-size: .78rem; }
.ls-consent-links a { color: #333; text-decoration: underline; }
@media (max-width: 560px) {
  .ls-consent { right: 0; bottom: 0; width: 100vw; max-height: 85vh; border-radius: 12px 12px 0 0; padding: 16px 16px 12px; }
  .ls-consent-buttons { grid-template-columns: 1fr 1fr; }
  .ls-consent-buttons .ls-btn-alt { grid-column: 1 / -1; }
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.footer-legal button { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-legal button:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
