/* Hide back-to-top button on all touch devices (phones and tablets) */

/* Hide on ALL screens up to 1366px (covers all iPads including Pro) */
@media only screen and (max-width: 1366px) {
  #backtotop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

/* Also hide on any touch device */
@media (hover: none) and (pointer: coarse) {
  #backtotop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Specific iPad detection */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (-webkit-min-device-pixel-ratio: 1) {
  #backtotop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* iPad Pro */
@media only screen 
and (min-device-width: 1024px) 
and (max-device-width: 1366px) 
and (-webkit-min-device-pixel-ratio: 2) {
  #backtotop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}