/* Hani Back To Top
   Black arrow only, no visible background.
*/

#hani-btt {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

  width: 44px;
  height: 44px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;

  color: #000;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

/* Arabic: left side */
html[lang^="ar"] #hani-btt,
body.rtl #hani-btt {
  left: 18px;
  right: auto;
}

/* English/default: right side */
html[lang^="en"] #hani-btt,
body:not(.rtl) #hani-btt {
  right: 18px;
  left: auto;
}

#hani-btt.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#hani-btt:hover {
  transform: translateY(-2px);
}

#hani-btt:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

#hani-btt svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  #hani-btt {
    transition: none;
  }
}
