:where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 3px !important;
}

.nav-icon-toggle:focus-visible,
.sidenav__close-button:focus-visible,
.nav__search-trigger:focus-visible,
#nightswitch:focus-visible {
  border-radius: 6px;
  outline-color: #ef2b24 !important;
}

.sidenav a:focus-visible {
  outline-offset: -3px !important;
}

.nav__search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
}

.nav__search-trigger > img {
  display: block;
  width: 24px;
  height: 14px;
}

body.dark :where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline-color: #7dd3fc !important;
}

@media (max-width: 991.98px) {
  .nav-icon-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-right: 0;
    align-items: center;
    justify-content: center;
  }

  .nav__search-trigger,
  #nightswitch {
    width: 44px;
    min-width: 44px;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .mto-account-trigger {
    min-width: 44px;
    justify-content: center;
  }

  #back-to-top {
    right: 16px;
    bottom: -44px;
    width: 44px;
    height: 44px;
    line-height: 1;
  }

  #back-to-top a {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  #back-to-top.show {
    bottom: calc(16px + var(--mto-promo-offset, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .app,
  .app svg,
  .app .moon-icon,
  .app .sun-icon { transition-duration: .01ms !important; }
}
