/* ==========================================================================================
   NXTL UI kit — navigation icons lane (13 Nov 2026): account sidebar + mobile bottom nav.
   Markup: plugins/nxtl-data-esim-v2/templates/woocommerce/myaccount/navigation.php (unchanged). The icons come from
   nxtl_account_icon() (themes/nxtl/inc/icons.php), which serves the kit line icons for the nav slugs with a hidden
   duotone layer `.nx-ico-fill` (fill-opacity 0) behind the strokes.
   States: inactive = muted line icon (#9BA3B8); hover = icon lifts to #D5D9E4 (icon colour only);
   active = accent stroke + 14% accent duotone fill, label in primary text (#F5F6F8).
   Motion: a 150ms colour transition only, none under prefers-reduced-motion.
   ========================================================================================== */

/* ---------- Sidebar ---------- */
html body.nxtl-account .account-sidebar__link {
  color: #9BA3B8;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
html body.nxtl-account .account-sidebar__link .account-sidebar__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #9BA3B8;
  transition: color 150ms ease;
}
/* Hover lifts the icon colour only: the row keeps its resting background and label colour */
html body.nxtl-account .account-sidebar__link:not(.is-active):hover {
  color: #9BA3B8;
  background-color: transparent;
}
html body.nxtl-account .account-sidebar__link:not(.is-active):hover .account-sidebar__icon { color: #D5D9E4; }
html body.nxtl-account .account-sidebar__link.is-active { color: #F5F6F8; }
html body.nxtl-account .account-sidebar__link.is-active .account-sidebar__icon { color: #FF2E4C; }
html body.nxtl-account .account-sidebar__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #0A0C12, 0 0 0 4px #FF2E4C;
}

/* ---------- Mobile bottom nav ---------- */
html body.nxtl-account .mobile-bottom-nav__item {
  color: #9BA3B8;
  transition: color 150ms ease;
}
html body.nxtl-account .mobile-bottom-nav__item .mobile-bottom-nav__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #9BA3B8;
  transition: color 150ms ease;
}
html body.nxtl-account .mobile-bottom-nav__item.is-active { color: #F5F6F8; }
html body.nxtl-account .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon { color: #FF2E4C; }
/* The duotone icon is the active marker; the legacy 24×2 accent bar above the tab would double it */
html body.nxtl-account .mobile-bottom-nav__item.is-active::before { content: none; }
@media (hover: hover) {
  html body.nxtl-account .mobile-bottom-nav__item:not(.is-active):hover { color: #9BA3B8; }
  html body.nxtl-account .mobile-bottom-nav__item:not(.is-active):hover .mobile-bottom-nav__icon { color: #D5D9E4; }
}
html body.nxtl-account .mobile-bottom-nav__item:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #FF2E4C;
}

/* ---------- Duotone layer: invisible at rest, a soft tint of the icon colour on the active item ---------- */
html body.nxtl-account .nxtl-account-icon--kit .nx-ico-fill { fill: currentColor; fill-opacity: 0; stroke: none; }
html body.nxtl-account :is(.account-sidebar__link, .mobile-bottom-nav__item).is-active .nxtl-account-icon--kit .nx-ico-fill { fill-opacity: .14; }

/* Windows high contrast: system colours, no tint (the active item keeps aria-current and its bold label) */
@media (forced-colors: active) {
  html body.nxtl-account .nxtl-account-icon--kit .nx-ico-fill { fill-opacity: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body.nxtl-account :is(.account-sidebar__link, .account-sidebar__icon, .mobile-bottom-nav__item, .mobile-bottom-nav__icon) { transition: none; }
}
