/* Banner dei cookie dell'app (cookie-consent.fragment.php), uguale a quello del sito: in basso a sinistra, non blocca la pagina. */
.sfy-cc { position: fixed; inset-inline-start: 12px; inset-inline-end: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 10050; font-family: inherit; }
.sfy-cc[hidden], .sfy-cc [hidden] { display: none !important; }
.sfy-cc, .sfy-cc * { box-sizing: border-box; }
@media (min-width: 640px) { .sfy-cc { inset-inline-end: auto; inset-inline-start: 20px; bottom: 20px; width: 400px; } }
.sfy-cc__box { position: relative; padding: 16px; border: 1px solid #E5E5EA; border-radius: 16px; background: #fff; color: #1D1D1F; box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .28); }
.sfy-cc__x { position: absolute; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; color: #6E6E73; line-height: 1; cursor: pointer; }
.sfy-cc__x:hover { background: #F5F5F7; color: #1D1D1F; }
.sfy-cc__txt { margin: 0; padding-inline-end: 26px; font-size: 13px; line-height: 1.55; color: #5E5E63; }
[data-sfy-cc-notice] .sfy-cc__txt { padding-right: 0; } /* prima schermata senza × (22/11/2026) */
.sfy-cc__title { margin: 0; padding-inline-end: 26px; font-size: 15px; font-weight: 600; }
.sfy-cc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.sfy-cc__links { display: flex; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.sfy-cc__link { padding: 0; border: 0; background: none; color: #1D1D1F; font: inherit; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sfy-cc__link--soft { color: #5E5E63 !important; }
.sfy-cc__acts { display: flex; gap: 8px; }
.sfy-cc__btn { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: #1668E3; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sfy-cc__btn:hover { background: #0F58C9; }
.sfy-cc__btn--ghost { padding: 0 16px; background: #fff; color: #1D1D1F; box-shadow: inset 0 0 0 1px #D2D2D7; }
.sfy-cc__btn--ghost:hover { background: #F5F5F7; }
.sfy-cc__acts .sfy-cc__btn { padding: 0 16px; }
.sfy-cc__list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sfy-cc__list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sfy-cc__list b { display: block; font-size: 13.5px; font-weight: 600; }
.sfy-cc__list span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: #5E5E63; }
.sfy-cc__sw { position: relative; flex: 0 0 auto; width: 40px; height: 24px; margin-top: 2px; padding: 0; border: 0; border-radius: 999px; background: #D2D2D7; cursor: pointer; }
.sfy-cc__sw i { position: absolute; top: 2px; inset-inline-start: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.sfy-cc__sw.is-on { background: #1668E3; }
.sfy-cc__sw.is-on i { transform: translateX(16px); }
.sfy-cc__sw.is-locked { opacity: .6; cursor: default; }
body.darkside .sfy-cc__box { border-color: #3A3A3C; background: #1C1C1E; color: #F5F5F7; }
body.darkside .sfy-cc__txt, body.darkside .sfy-cc__list span, body.darkside .sfy-cc__link--soft { color: #B6B6BD !important; }
body.darkside .sfy-cc__link { color: #F5F5F7; }
body.darkside .sfy-cc__x:hover { background: #2C2C2E; color: #F5F5F7; }
body.darkside .sfy-cc__btn--ghost { background: transparent; color: #F5F5F7; box-shadow: inset 0 0 0 1px #48484A; }
body.darkside .sfy-cc__sw { background: #48484A; }
body.darkside .sfy-cc__sw.is-on { background: #1668E3; }

/* bolla della chat (#sfy-chat) solo a banner dei cookie chiuso (titolare, 29/11/2026) */
body:has(.sfy-cc:not([hidden])) #sfy-chat { display: none !important; }
