#widgetPanel ~ #backtop {
    bottom: 130px;
}
:root {
    --accessibility-grayscale:0;
    --accessibility-highcontrast:100%;
    --accessibility-invertcolor:0;
}

html.rdy_accessibility_highcontrast,
html.rdy_accessibility_grayscale,
html.rdy_accessibility_darkmode{
    filter: 
    grayscale(var(--accessibility-grayscale)) 
    contrast(var(--accessibility-highcontrast)) 
    invert(var(--accessibility-invertcolor));
}
html.rdy_accessibility_darkmode img{
  filter: invert(var(--accessibility-invertcolor));
}
html.rdy_accessibility_highcontrast .accessibility-widget,
html.rdy_accessibility_grayscale .accessibility-widget,
html.rdy_accessibility_darkmode .accessibility-widget{
	filter: 
	    grayscale(0) 
	    contrast(100%) 
	    invert(var(--accessibility-invertcolor));
}
body.accessibility-font-scaled {
   transition: all 0.3s ease;
}
#widgetPanel {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
}
#widgetPanel.active{
	position: sticky;
  	left: calc(100% - 380px - 20px);
  	bottom: 115px;
	z-index: 99999;
	opacity: 1;
    visibility: visible;
    width: 380px;
    height: min(650px, calc(100vh - 150px));
    min-height: 400px;
    max-width: 100%;
    transform: translateY(0) scale(1);
    background: #fff !important;
    border: 1px solid #888 !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#widgetPanel.active .widget-panel {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #000 #f1f1f1;
    height:initial;
}
#widgetPanel .widget-panel {
    height:0;
    overflow:hidden;
}

#widgetPanel .widget-panel::-webkit-scrollbar {
    width: 16px;
}

#widgetPanel .widget-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 8px 0;
}

#widgetPanel .widget-panel::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    transition: all 0.3s ease;
}

#widgetPanel .widget-panel::-webkit-scrollbar-thumb:hover {
    background: #333;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#widgetPanel .widget-panel::-webkit-scrollbar-thumb:active {
    background: #000;
}
#widgetToggle {
    width: 64px;
    height: 64px;
    background: #293241 !important;
    border: none;
    border-radius: 35px;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(45, 55, 72, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    backdrop-filter: blur(10px);
    position:fixed;
    bottom:40px;
    right:20px;
    z-index: 99999;
}

@media (max-width: 768px) {
    #widgetPanel.active{
        width: calc(100vw - 20px);
        left: 15px;
        bottom: 75px;
        height: min(calc(100vh - 100px), 650px);
        min-height: 300px;
    }
    #cursorOption{
    	display:none;
    }
    #widgetToggle{
    	bottom:5px;
    	right:10px;
    }
}

@media (max-height: 600px) {
    #widgetPanel.active {
        min-height: 250px;
        height: calc(100vh - 150px);
    }
}




#widgetToggle:hover,
#widgetToggle:focus {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(45, 55, 72, 0.4), 0 4px 16px rgba(0, 0, 0, 0.15);
    outline: 3px solid #4299e1;
    outline-offset: 2px;
    background: #293241 !important;
    color: #fff !important;
}
#widgetToggle:before{
    content:"";
    display:block;
    width:40px;
    height:40px;
    transition: transform 0.3s ease;
background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAADJUlEQVR4nO2azWoUQRDH92TiQYkHV4gQPW/06hOIIkT0EkgUTF5AVjwYTyZeRKMRRUG8RPAJxMQvfIEgHkR2zYdCwOhFjHjMh/qTghbGpqdnerpmkyz5w8Iy01PV/+mq6qrqqVS20aYA9gCngZvAM2AO+AGsmp/8nzX3ZMwpoKuyGQB0AGeBV8AvwiHPvADOiKzKBhDYCVwEvqKHL8AFoLNVJE4AnygPH4HjZZvRXVqHx7Ly2iT2AW9pPd4AVS0SB81yh0Ii1SWg2/xGzLVQLMgcNFaiCAnBiEOekKEgmWpREp2R5tTtkCkrE2NmHUWIPIhQmkZkf6TMe0VCbCxcpnVZQe6xkM1OY59YNT4R6+wuf8k2MbNjb3bU82x6vrRD3ugEcA1olDDBhpF9G1jzjFvyropJAH2YsMbXgNFIUg0jo2bJFjI+DPqISBbrw3XPs/9INXNMvumafBLAeIaM5756IisVXwGuAD2VkgD0GJKiy4d1YLdLgBRFIZDNsg7sVZh8F3AOeA38DphDn0vYLYpB3twToD+kljCZQ795Nuvtp2HcJXiaePwEJnOQmDRjYzHlEi4bjQpyENHCnEv48hYk8s0lXCN9aDWRlbYmstwupjW/BYnMuoRLB3CrEXnqEi5tTA0sWnJ7HQnhopKuGxopShr+2xCBq5I7WdceKenqS8t3ivRvbQxbciXTbVjXhhX0rDmTRqPgpYKCAwl5hxLXa1aGG4tpJwmjQLrimv4xlrg3quwnA1mlrnTFtfyjmRYqI/1kCdiRSsQokNZ+UQxZ0cpG0ryGIvSc95JIrIqcNsX6h0QrG2MKfrKQu+Mo5xMK/uGq3ZuRfvIHOJqLRELJ/aL+YUUrG70RfnIniETCxKRxHNwitaKVz7xCWqgzmQ7uIVMNqBzfGbs/kpFJy73DZuz7nLLno5sc5qBHrQwugPlkEIklUw00My3MaLSb0g5DJXK0Ag9LPXuX84mSTW0uOMRGrk7dpApa+Cw79kZ9ASGEBk11Kb3YUKybxuBA4dCqDakNgJOmiz5lPqD5nvioRv5/kPJUKjspioBd6hPZRmVz4C8lkGY0tTbUzQAAAABJRU5ErkJggg==");
    background-repeat:no-repeat;
    background-position:center center;
    background-size:40px;
}

#widgetPanel .panel-content {
    padding: 16px;
    background: #fff !important;
}
.accessibility-widget .accessibility-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 11px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    margin: 8px 0;
    border: 1px solid #888 !important;
    background: #fff !important;
    position: relative;
}
.accessibility-widget .accessibility-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(66, 153, 225, 0.3) !important;
    background: #fff !important;
}

.accessibility-widget #resetOption .option-text{
    text-align: center;
  	width:100%;
}
.accessibility-widget .option-content {
    flex-basis: 100%;
    align-items: center;
    display: flex;
    color: #000 !important;
    background: #fff !important;
}
.accessibility-widget .option-text {
    font-size: 24px;
    font-weight: 600;
    color: #0b0b0b !important;
    background: #fff !important;
}
.accessibility-widget .option-description {
    font-size: 13px;
    color: #000 !important;
    line-height: 1.4;
    background: #fff !important;
}
.accessibility-widget .toggle-switch {
    width: 56px;
    height: 32px;
    background: #a4a1a1 !important;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-right: 7px;
}
.accessibility-widget .toggle-switch.active {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
    border-color: #4299e1 !important;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3) !important;
}
.accessibility-widget .toggle-switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white !important;
    border-radius: 50%;
    top: 3px;
    left: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.accessibility-widget .toggle-switch.active::after {
    transform: translateX(24px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: white !important;
}
.accessibility-widget .font-size-controls {
    display: flex;
    align-items: center;
    flex-basis: 100%;
    justify-content: space-between;
    background: #fff !important;
	margin-top: 5px;
	border-top: 1px solid #3c414d !important;
	padding-top: 8px;
}
.accessibility-widget .font-btn {
    height: 50px;
    background: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 12px;
    color: #000 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 35px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    flex-basis: 25%;
}
.accessibility-widget .font-btn:hover {
    background:#000 !important;
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
    color: #fff !important;
    border-color: #000 !important;
}
.accessibility-widget .font-size-display {
    color: #000 !important;
    font-weight: 700;
    text-align: center;
    font-size: 30px;
    background:#fff !important;
    border-radius: 10px;
    border: 1px solid #000 !important;
    flex-basis: 45%;
    height: 50px;
    align-items: center;
    justify-content: center;
    display: flex;
}
body.hide-images img,
body.hide-images picture,
body.hide-images video,
body.hide-images [style*="background-image"] {
    display: none !important;
}
body.hide-images img::after {
    content: "[Immagine nascosta]";
    display: block;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 12px;
}
body.underline-links a:not(.accessibility-widget a) {
    text-decoration: none !important;
	border-bottom: 4px solid #000 !important;
}
html.bigCursor *{
    cursor: url("/ReadySkins/wonder/img/arrow.cur"), default !important
}