/* FJH TOP HEADER ONLY — scoped, no changes to the main navigation or mega panels. */
.fjs-header-scope .fj-top .fj-left>a,
.fjs-header-scope .fj-top .fj-right>a:not(.fjh-top-cart) {
  text-decoration:none!important;
  color:#7d8388!important;
  transition:none!important;
}
.fjs-header-scope .fj-top .fj-left>a:is(:hover,:focus,:active),
.fjs-header-scope .fj-top .fj-right>a:not(.fjh-top-cart):is(:hover,:focus,:active) {
  text-decoration:none!important;
  color:#7d8388!important;
  background:transparent!important;
}
.fjs-header-scope .fj-top .fj-left>a span,
.fjs-header-scope .fj-top .fj-right>a:not(.fjh-top-cart) span {color:inherit!important;}

/* Cart matches the requested compact navy line-icon with a small amber count. */
.fjs-header-scope .fj-top .fj-right>a.fjh-top-cart,
.fjs-header-scope .fj-top .fj-right>a.fjh-top-cart:is(:hover,:focus,:active) {
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  color:#183e80!important;
  text-decoration:none!important;
  background:transparent!important;
  transition:none!important;
  white-space:nowrap;
}
.fjs-header-scope .fj-top .fj-right>a.fjh-top-cart>svg {
  width:17px!important;height:17px!important;min-width:17px!important;flex:0 0 17px!important;
  position:static!important;transform:none!important;color:#183e80!important;
}
.fjs-header-scope .fj-top .fj-right>a.fjh-top-cart>span:not(.fjh-top-cart-count){color:#183e80!important;}
.fjs-header-scope .fj-top .fj-right>a.fjh-top-cart .fjh-top-cart-count {
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto;min-width:18px;height:18px;padding:0 3px;
  border-radius:99px;background:#ffa62c;color:#20272f!important;
  font-family:inherit!important;font-size:11px!important;font-weight:700!important;
  line-height:1!important;letter-spacing:0!important;box-sizing:border-box;
}

/* Auth last-hover state; overrides legacy :has(:hover) swapping without
   changing dimensions, positioning, icons, or link destinations. */
.fjs-header-scope #fj-header#fj-header#fj-header
:is(.fj-header-actions,.fj-mobile-actions)[data-fjh-auth-active="login"] .fj-pill--solid,
.fjs-header-scope #fj-header#fj-header#fj-header
:is(.fj-header-actions,.fj-mobile-actions)[data-fjh-auth-active="register"] .fj-pill--outline {
  background:#202223!important;color:#fff!important;border-color:transparent!important;
}
.fjs-header-scope #fj-header#fj-header#fj-header
:is(.fj-header-actions,.fj-mobile-actions)[data-fjh-auth-active="login"] .fj-pill--outline,
.fjs-header-scope #fj-header#fj-header#fj-header
:is(.fj-header-actions,.fj-mobile-actions)[data-fjh-auth-active="register"] .fj-pill--solid {
  background:transparent!important;color:#25272c!important;border-color:#25272c!important;
}

/* Top Header V2: navigation buttons behave visually like the ID/EN selectors.
 * Deliberately not <a href>: browser URL preview is native to links. These
 * buttons preserve destinations with the scoped JS handler below.
 * Keep the original top-header dimensions and horizontal gaps unchanged.
 */
.fjs-header-scope .fj-top .fj-left>button.fjh-top-nav,
.fjs-header-scope .fj-top .fj-right>button.fjh-top-nav {
  -webkit-appearance:none!important;appearance:none!important;
  display:inline-flex!important;align-items:center!important;gap:8px!important;
  flex:0 0 auto!important;
  margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;
  color:#7d8388!important;
  font:inherit!important;line-height:inherit!important;
  text-align:left!important;text-decoration:none!important;
  white-space:nowrap!important;cursor:pointer!important;
  transition:none!important;
}
.fjs-header-scope .fj-top .fj-left>button.fjh-top-nav:is(:hover,:active,:focus),
.fjs-header-scope .fj-top .fj-right>button.fjh-top-nav:is(:hover,:active,:focus) {
  color:#7d8388!important;background:transparent!important;
  border:0!important;text-decoration:none!important;box-shadow:none!important;
}
/* Mirror the existing 24px margin reserved for the former top links. */
.fjs-header-scope .fj-top .fj-right>button.fjh-top-nav {margin-right:24px!important;}
.fjs-header-scope .fj-top .fj-right>button.fjh-top-cart,
.fjs-header-scope .fj-top .fj-right>button.fjh-top-cart:is(:hover,:focus,:active) {
  color:#183e80!important;gap:7px!important;
}
.fjs-header-scope .fj-top .fj-right>button.fjh-top-cart>svg {
  width:12px!important;height:12px!important;min-width:12px!important;
  flex:0 0 12px!important;color:#183e80!important;
  position:static!important;transform:none!important;
}
.fjs-header-scope .fj-top .fj-right>button.fjh-top-cart>span:not(.fjh-top-cart-count) {
  color:#183e80!important;
}
.fjs-header-scope .fj-top .fj-right>button.fjh-top-cart .fjh-top-cart-count {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:18px!important;height:18px!important;
  padding:0 3px!important;border-radius:99px!important;
  background:#ffa62c!important;color:#20272f!important;
  font-family:inherit!important;font-size:11px!important;font-weight:700!important;
  line-height:1!important;letter-spacing:0!important;box-sizing:border-box!important;
}
/* Keep remaining top icons at their previously approved 11px size. */
.fjs-header-scope .fj-top .fj-right>button.fjh-top-nav:not(.fjh-top-cart)>svg {
  width:11px!important;height:11px!important;min-width:11px!important;
  flex:0 0 11px!important;position:static!important;transform:none!important;
}

/* FJH 2026-11-16: Auth submits remain native navigation without hover URL
   preview. Form wrappers do not alter the approved pill dimensions or spacing. */
.fjs-header-scope #fj-header :is(.fj-header-actions,.fj-mobile-actions) > .fjh-auth-form {
  margin:0!important;padding:0!important;min-width:0!important;
  display:flex!important;align-items:center!important;
  background:transparent!important;border:0!important;
}
.fjs-header-scope #fj-header .fj-header-actions > .fjh-auth-form {
  flex:0 0 auto!important;
}
.fjs-header-scope #fj-header .fj-mobile-actions > .fjh-auth-form {
  flex:1 1 0!important;
}
.fjs-header-scope #fj-header .fj-mobile-actions > .fjh-auth-form > .fj-pill {
  width:100%!important;flex:1 1 auto!important;
}
.fjs-header-scope #fj-header :is(.fj-header-actions,.fj-mobile-actions) .fjh-auth-form > .fj-pill {
  cursor:pointer!important;
  font-family:inherit;
  text-decoration:none!important;
  -webkit-appearance:none;appearance:none;
}

/* Auth-only text bounce. Neither pill dimensions nor background layout animates. */
.fjs-header-scope #fj-header :is(.fj-header-actions,.fj-mobile-actions) .fjh-auth-label{
  display:inline-block;position:relative;
}
.fjs-header-scope #fj-header :is(.fj-header-actions,.fj-mobile-actions) .fjh-auth-label.is-fjh-bouncing{
  animation:fjh-auth-double-bounce .66s ease-out both;
}
@keyframes fjh-auth-double-bounce{
  0%,48%,82%,100%{transform:translateY(0)}
  28%{transform:translateY(-6px)}
  67%{transform:translateY(-1.5px)}
}
@media(prefers-reduced-motion:reduce){
  .fjs-header-scope #fj-header :is(.fj-header-actions,.fj-mobile-actions) .fjh-auth-label.is-fjh-bouncing{animation:none}
}

/* Top Header navigation hover — text only, icons and cart unchanged. */
.fjs-header-scope .fj-top .fj-left > button.fjh-top-nav:not(.fjh-top-cart):is(:hover,:focus-visible) > span,
.fjs-header-scope .fj-top .fj-right > button.fjh-top-nav:not(.fjh-top-cart):is(:hover,:focus-visible) > span {
  color:#ED1C24!important;
}

/* Top Header language switch — red follows the hovered language temporarily.
   Outside hover, red returns to the language selected by WHMCS/Smarty. */
.fjs-header-scope .fj-top .fj-right > button[lang="id"],
.fjs-header-scope .fj-top .fj-right > button[lang="en"] {
  color:#25272c!important;
}
.fjs-header-scope .fj-top .fj-right > button[lang].fj-selected-lang {
  color:#ED1C24!important;
}
.fjs-header-scope .fj-top .fj-right:has(> button[lang]:not(.fj-selected-lang):hover) > button[lang].fj-selected-lang {
  color:#25272c!important;
}
.fjs-header-scope .fj-top .fj-right > button[lang]:hover {
  color:#ED1C24!important;
}
