/**
 * Custom: Consistent KYO gold hover accent for both category-menu variants.
 */

.kyo-shop-storefront__categories nav a,
.header-vertical-menu__fly-out .ux-nav-vertical-menu > li > a {
  display: flex !important;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px !important;
  border-bottom: 1px solid #eeeae1 !important;
  color: #243b4d !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.35;
  text-transform: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.kyo-shop-storefront__categories nav a:last-child,
.header-vertical-menu__fly-out .ux-nav-vertical-menu > li:last-child > a {
  border-bottom: 0 !important;
}

.kyo-shop-storefront__categories nav a > span:last-child,
.header-vertical-menu__fly-out .kyo-category-menu-arrow {
  color: #b08a35;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

@media only screen and (min-width: 1000px) {
  .header-vertical-menu__fly-out {
    width: 250px !important;
    height: 470px;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid rgba(13, 39, 64, 0.1);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7, 31, 53, 0.08);
  }

  .header-vertical-menu__fly-out .menu-vertical-menu-container,
  .header-vertical-menu__fly-out .ux-nav-vertical-menu {
    height: 100%;
  }

  .header-vertical-menu__fly-out .ux-nav-vertical-menu {
    display: grid;
    grid-template-rows: repeat(8, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .header-vertical-menu__fly-out .ux-nav-vertical-menu > li {
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    border: 0 !important;
  }

  body .header-vertical-menu .header-vertical-menu__fly-out .ux-nav-vertical-menu > li.kyo-category-menu-item > a.nav-top-link {
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 16px !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .kyo-shop-storefront__categories nav a:hover,
  .header-vertical-menu__fly-out .ux-nav-vertical-menu > li > a:hover {
    background: #fffaf0 !important;
    box-shadow: inset 4px 0 0 #d9a72f !important;
    color: #071f35 !important;
    opacity: 1;
  }
}

.kyo-shop-storefront__categories nav a:focus-visible,
.header-vertical-menu__fly-out .ux-nav-vertical-menu > li > a:focus-visible {
  background: #fffaf0 !important;
  box-shadow: inset 4px 0 0 #d9a72f !important;
  color: #071f35 !important;
  opacity: 1;
  outline: 2px solid rgba(217, 167, 47, 0.42);
  outline-offset: -2px;
}
