#swp-app-history{display:none!important}
@media(max-width:767px){
 html:root{--swp-app-history-offset:0px}
 html:root body #navi-bar{display:none!important}
 html:root body footer,html:root body footer.compact{padding-bottom:calc(16px + var(--swp-app-history-offset))!important}
 html:root body#item footer,html:root body#item footer.compact{padding-bottom:calc(80px + var(--swp-app-history-offset))!important}
 html:root body #item-sticky-box{bottom:var(--swp-app-history-offset)!important}
 html:root.swp-app-standalone{--swp-app-history-offset:calc(52px + env(safe-area-inset-bottom,0px))}
 html:root.swp-app-standalone #swp-app-history{display:flex!important;position:fixed;box-sizing:border-box;left:0;right:0;bottom:0;height:var(--swp-app-history-offset);padding:0 20px env(safe-area-inset-bottom,0px);margin:0;align-items:center;justify-content:space-between;gap:20px;border:0;border-top:1px solid #c7e5ec;background:#f8fdff;color:#163a53;z-index:100;direction:ltr;transform:none;}
 html:root #swp-app-history button{display:flex;flex:0 0 48px;align-items:center;justify-content:center;width:48px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;box-shadow:none;background:transparent;color:#163a53;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
 html:root #swp-app-history button:not(:disabled):active{background:#dff7fc}
 html:root #swp-app-history button:focus-visible{outline:2px solid #00a8bf;outline-offset:-2px}
 html:root #swp-app-history button:disabled{color:#aebbc3;cursor:default;opacity:.6}
 html:root #swp-app-history svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
 html:root.swp-app-keyboard #swp-app-history{display:none!important}
 html:root.swp-app-keyboard{--swp-app-history-offset:0px}
}
html.swp-app-image-open,html.swp-app-image-open body{overflow:hidden!important}
#swp-app-image-view{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;margin:0!important;padding:0!important;border:0!important;background:#102638!important;color:#fff!important;isolation:isolate;}
#swp-app-image-view .swp-app-image-stage{display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;box-sizing:border-box!important;padding:calc(64px + env(safe-area-inset-top,0px)) 8px calc(60px + env(safe-area-inset-bottom,0px))!important;overflow:auto!important;touch-action:pan-x pan-y pinch-zoom;}
#swp-app-image-view .swp-app-image-stage img{display:block!important;float:none!important;margin:auto!important;padding:0!important;border:0!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;}
#swp-app-image-view .swp-app-image-close{position:absolute!important;top:calc(10px + env(safe-area-inset-top,0px))!important;right:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;padding:0!important;margin:0!important;border:1px solid #bddfe8!important;border-radius:12px!important;background:#f8fdff!important;color:#163a53!important;font:32px/1 Arial,sans-serif!important;cursor:pointer;touch-action:manipulation;z-index:2;}
#swp-app-image-view .swp-app-image-close:focus-visible{outline:3px solid #16c3d9;outline-offset:2px}
html:root.swp-app-image-open #swp-app-history{display:flex!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:calc(52px + env(safe-area-inset-bottom,0px))!important;padding:0 20px env(safe-area-inset-bottom,0px)!important;background:#f8fdff!important;border-top:1px solid #c7e5ec!important;align-items:center!important;justify-content:space-between!important;z-index:3;}
html:root.swp-app-image-open #swp-app-history button{display:flex;align-items:center;justify-content:center;width:48px;height:44px;padding:0;margin:0;background:transparent;border:0;box-shadow:none;color:#163a53;border-radius:10px;touch-action:manipulation;}
html:root.swp-app-image-open #swp-app-history button:disabled{opacity:.45}
html:root.swp-app-image-open #swp-app-history svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
/* Installed app navigation on tablet and desktop; regular browser unchanged. */
@media(min-width:768px){
 html:root.swp-app-standalone{--swp-app-history-offset:calc(52px + env(safe-area-inset-bottom,0px))}
 html:root.swp-app-standalone #swp-app-history{display:flex!important;position:fixed;box-sizing:border-box;left:0;right:0;bottom:0;height:var(--swp-app-history-offset);padding:0 20px env(safe-area-inset-bottom,0px);margin:0;align-items:center;justify-content:space-between;gap:20px;border:0;border-top:1px solid #c7e5ec;background:#f8fdff;color:#163a53;z-index:100;direction:ltr;transform:none;}
 html:root #swp-app-history button{display:flex;flex:0 0 48px;align-items:center;justify-content:center;width:48px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;box-shadow:none;background:transparent;color:#163a53;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
 html:root #swp-app-history button:not(:disabled):active{background:#dff7fc}
 html:root #swp-app-history button:focus-visible{outline:2px solid #00a8bf;outline-offset:-2px}
 html:root #swp-app-history button:disabled{color:#aebbc3;cursor:default;opacity:.6}
 html:root #swp-app-history svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
 html:root.swp-app-standalone body{padding-bottom:var(--swp-app-history-offset)!important}
 html:root.swp-app-standalone body #item-sticky-box{bottom:var(--swp-app-history-offset)!important}
}
/* Floating controls must clear the installed-app history bar. */
html:root.swp-app-standalone body button.iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float][data-tp-icon][data-iub-enabled]{bottom:calc(16px + var(--swp-app-history-offset,0px))!important;top:auto!important}
html:root.swp-app-standalone body a.act-btn-alerts{bottom:calc(20px + var(--swp-app-history-offset,0px))!important}
@media(max-width:767px){
 html:root.swp-app-standalone body button.iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float][data-tp-icon][data-iub-enabled]{bottom:calc(145px + var(--swp-app-history-offset,0px))!important}
 html:root.swp-app-standalone body a.act-btn-alerts{bottom:calc(80px + var(--swp-app-history-offset,0px))!important}
}
@media print{#swp-app-history,#swp-app-image-view{display:none!important}}
