/* Cookie Zeta Trasporti — regole isolate dal vecchio banner del CMS. */
#zt-consent {
    --zt-cookie-blue: #006eb8;
    --zt-cookie-navy: #0d395b;
    --zt-cookie-text: #233c50;
    --zt-cookie-border: #dce6ed;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    color: var(--zt-cookie-navy);
    line-height: 1.5;
}
#zt-consent, #zt-consent * { box-sizing: border-box; }
#zt-consent [hidden] { display: none !important; }
#zt-consent .zt-cookie-card {
    position: fixed; float: none; margin: 0; padding: 24px;
    background: #fff; color: var(--zt-cookie-navy);
    border: 1px solid var(--zt-cookie-border); border-top: 4px solid var(--zt-cookie-blue);
    border-radius: 9px; box-shadow: 0 12px 45px #0d395b35;
    text-align: left; height: auto; overflow: auto; overscroll-behavior: contain;
    z-index: 10020; width: min(660px, calc(100% - 40px));
    max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
    -webkit-overflow-scrolling: touch;
}
#zt-consent .zt-cookie-banner { bottom: 20px; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
#zt-consent .zt-cookie-panel { top: 50%; left: 50%; transform: translate(-50%, -50%); }
#zt-consent .zt-cookie-overlay { position: fixed; inset: 0; margin: 0; background: #0d253cb8; z-index: 10019; }
#zt-consent .zt-cookie-heading { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
#zt-consent .zt-cookie-symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 6px; background: #eaf4fb; color: var(--zt-cookie-blue); }
#zt-consent .zt-cookie-symbol svg { width: 23px; height: 23px; }
#zt-consent h2 { font: 750 20px/1.25 Montserrat,Arial,sans-serif !important; text-transform: none; text-align: left; color: var(--zt-cookie-navy); height: auto; min-height: 0; float: none; width: auto; margin: 0; padding: 0; }
#zt-consent p, #zt-consent .zt-cookie-description { display: block; font: 400 14px/1.6 Montserrat,Arial,sans-serif; text-align: left; color: var(--zt-cookie-text); margin: 0 0 12px; padding: 0; width: auto; height: auto; float: none; }
#zt-consent .zt-cookie-policy { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; margin: 0 0 18px; }
#zt-consent a { color: var(--zt-cookie-blue) !important; text-decoration: underline !important; font-weight: 600; }
#zt-consent .zt-cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
#zt-consent .zt-cookie-button { display: inline-flex; align-items: center; justify-content: center; position: static; float: none; width: 100%; height: auto; min-height: 47px; margin: 0; padding: 11px 10px; border: 1px solid var(--zt-cookie-blue); border-radius: 6px; background: var(--zt-cookie-blue); color: #fff !important; cursor: pointer; font: 700 12px/1.35 Montserrat,Arial,sans-serif; text-transform: uppercase; text-align: center; text-decoration: none; box-shadow: none; -webkit-appearance: none; appearance: none; transition: background .15s, border-color .15s; }
#zt-consent .zt-cookie-button:hover { background: var(--zt-cookie-navy); border-color: var(--zt-cookie-navy); }
#zt-consent .zt-cookie-outline { color: var(--zt-cookie-navy) !important; background: #fff; border-color: var(--zt-cookie-blue); }
#zt-consent .zt-cookie-outline:hover { background: #eaf4fb; color: var(--zt-cookie-navy) !important; border-color: var(--zt-cookie-blue); }
#zt-consent .zt-cookie-close { display: grid; place-items: center; flex: 0 0 40px; height: 40px; padding: 8px; margin: 0 0 0 auto; border: 0; background: #edf4f8; color: var(--zt-cookie-navy); border-radius: 6px; cursor: pointer; }
#zt-consent .zt-cookie-close svg { width: 22px; height: 22px; }
#zt-consent .zt-cookie-categories { border: 1px solid var(--zt-cookie-border); border-radius: 7px; margin: 18px 0; overflow: hidden; }
#zt-consent .zt-cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 14px; width: 100%; background: #fff; float: none; text-align: left; }
#zt-consent .zt-cookie-category + .zt-cookie-category { border-top: 1px solid var(--zt-cookie-border); }
#zt-consent label.zt-cookie-category { cursor: pointer; }
#zt-consent .zt-cookie-category strong { display: block; color: var(--zt-cookie-navy); font: 700 14px/1.4 Montserrat,Arial,sans-serif; margin-bottom: 4px; }
#zt-consent .zt-cookie-category p, #zt-consent .zt-cookie-description { font-size: 12px; margin: 0; line-height: 1.45; }
#zt-consent .zt-cookie-required { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--zt-cookie-navy); background: #eaf4fb; border-radius: 4px; padding: 6px 8px; text-align: center; }
#zt-consent .zt-cookie-switch { -webkit-appearance: none; appearance: none; box-sizing: border-box; display: block; position: relative; float: none; flex: 0 0 46px; width: 46px; height: 26px; margin: 0; padding: 0; border: 1px solid #8b9eae; background: #d4dfe7; border-radius: 20px; cursor: pointer; }
#zt-consent .zt-cookie-switch::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0d395b40; transition: transform .15s; }
#zt-consent .zt-cookie-switch:checked { background: var(--zt-cookie-blue); border-color: var(--zt-cookie-blue); }
#zt-consent .zt-cookie-switch:checked::before { transform: translateX(20px); }
#zt-consent .zt-cookie-panel .zt-cookie-policy { margin: 14px 0 0; }
#zt-consent .zt-cookie-feedback { margin: 12px 0 0; font-size: 12px; color: var(--zt-cookie-navy); }
#zt-consent :focus-visible { outline: 3px solid var(--zt-cookie-navy); outline-offset: 3px; }
html.zt-cookie-modal-open, html.zt-cookie-modal-open body { overflow: hidden; }
@media (max-width: 680px) {
    #zt-consent .zt-cookie-card { width: calc(100% - 40px); left: 20px; padding: 18px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px - env(safe-area-inset-bottom, 0px)); }
    #zt-consent .zt-cookie-panel { top: auto; bottom: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: none; }
    #zt-consent .zt-cookie-actions { grid-template-columns: 1fr; gap: 8px; }
    #zt-consent .zt-cookie-button { min-height: 44px; font-size: 13px; }
    #zt-consent h2 { font-size: 17px !important; }
    #zt-consent .zt-cookie-symbol { width: 34px; height: 34px; flex-basis: 34px; }
    #zt-consent p { font-size: 13px; }
    #zt-consent .zt-cookie-category { padding: 12px; gap: 8px; }
    #zt-consent .zt-cookie-required { flex: 0 1 78px; }
}
@media (prefers-reduced-motion: reduce) { #zt-consent * { transition: none !important; } }
