/* NØSEN KategoriFlow – unified chevron navigation for Black Week / Brukt.
   Styling only: Brukt availability, permissions and links are decided separately
   by the existing, uncached NØSEN Brukt endpoint. */

@media (min-width: 769px) {
  #masthead #site-navigation .inside-navigation {
    position: relative;
  }

  /* Brukt stays right-aligned in the existing desktop navigation. */
  #masthead #site-navigation .inside-navigation a.nkf-brukt-desktop-link {
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 8px;
    min-height: 36px;
    padding: 5px 8px !important;
    white-space: nowrap;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #278253 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
  }
  #masthead #site-navigation .inside-navigation a.nkf-brukt-desktop-link:hover {
    opacity: .72;
  }
  #masthead #site-navigation .inside-navigation a.nkf-brukt-desktop-link:focus-visible {
    outline: 2px solid #278253;
    outline-offset: 3px;
  }

  /* Black Week is inserted by a separate feature. Only its exact header link
     is marked by JS. Neutralize its button styling, including inner spans. */
  a.nkf-header-blackweek-clean,
  a.nkf-header-julegavetips-clean {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 36px !important;
    padding: 5px 8px !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #202b32 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  a.nkf-header-blackweek-clean *,
  a.nkf-header-julegavetips-clean > .nkf-julegavetips-label {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #202b32 !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
  }
  /* Direct-page links use a right chevron, not a campaign dot or a dropdown arrow. */
  a.nkf-header-blackweek-clean::before,
  a.nkf-header-julegavetips-clean::before {
    content: none !important;
    display: none !important;
  }
  #masthead #site-navigation .inside-navigation a.nkf-brukt-desktop-link::after,
  a.nkf-header-blackweek-clean::after,
  a.nkf-header-julegavetips-clean::after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    flex: 0 0 6px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-top: 1.3px solid currentColor !important;
    border-right: 1.3px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: rotate(45deg) !important;
    margin-left: 1px !important;
    opacity: .75 !important;
    position: static !important;
  }
  a.nkf-header-blackweek-clean:hover,
  a.nkf-header-julegavetips-clean:hover { opacity: .72; }
  a.nkf-header-blackweek-clean:focus-visible,
  a.nkf-header-julegavetips-clean:focus-visible {
    outline: 2px solid #202b32 !important;
    outline-offset: 3px;
  }

  /* Hide the mobile-only fallback in desktop navigation. */
  #site-navigation .nkf-brukt-mobile-theme { display: none !important; }
}

/* Never render the old recycle symbol or colored dots in any menu. */
.nkf-brukt-desktop-link::before,
.nkf-brukt-mobile-link::before,
.nkf-brukt-mobile-flat::before,
.nkf-brukt-mobile-theme > a::before,
a.nkf-header-blackweek-clean::before,
a.nkf-mobile-blackweek-clean::before,
a.nkf-header-julegavetips-clean::before,
a.nkf-mobile-julegavetips-clean::before {
  content: none !important;
  display: none !important;
}
.nkf-brukt-desktop-link .nkf-brukt-name,
.nkf-brukt-mobile-link .nkf-brukt-name,
.nkf-brukt-mobile-flat .nkf-brukt-name,
.nkf-brukt-mobile-theme .nkf-brukt-name {
  color: #278253 !important;
  font-weight: 400 !important;
}
.nkf-brukt-admin-suffix {
  color: #617067 !important;
  font-weight: 400 !important;
  margin-left: .3em;
}

/* Mobile navigation: use the same full-width rows as ordinary menu items.
   Never bring the desktop capsule/card styles into the mobile drilldown. */
@media (max-width: 768px) {
  #masthead #site-navigation .nkf-brukt-desktop-link { display: none !important; }

  /* Brukt lives in the root mobile menu, directly above Outlet. The original
     drilldown has justify-content:space-between, which split dot and label. */
  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-list > li.nkf-brukt-mobile-item,
  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-list > li.nkf-mobile-blackweek-item,
  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-list > li.nkf-mobile-julegavetips-item,
  .nkf-mobile-drilldown-list > li.nkf-mobile-julegavetips-item {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-item.nkf-brukt-mobile-link,
  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-list a.nkf-mobile-blackweek-clean,
  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-list a.nkf-mobile-julegavetips-clean,
  .nkf-mobile-drilldown-list a.nkf-mobile-julegavetips-clean,
  .nkf-brukt-mobile-flat,
  .nkf-brukt-mobile-theme > a {
    width: 100% !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 13px 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none !important;
  }

  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-item.nkf-brukt-mobile-link,
  .nkf-brukt-mobile-flat,
  .nkf-brukt-mobile-theme > a { color: #278253 !important; }

  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-list a.nkf-mobile-blackweek-clean,
  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-list a.nkf-mobile-julegavetips-clean,
  .nkf-mobile-drilldown-list a.nkf-mobile-julegavetips-clean {
    color: #2f3437 !important;
  }
  /* Campaign link can have a badge span from another plugin. Neutralize the
     badge appearance without changing its content, destination, or visibility. */
  .nkf-mobile-blackweek-clean *,
  .nkf-mobile-blackweek-item a * {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #2f3437 !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    line-height: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .nkf-mobile-julegavetips-clean > .nkf-julegavetips-label {
    display: inline !important;
    color: #2f3437 !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    line-height: inherit !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* A right-facing chevron at the end of each normal mobile menu row. */
  body.nkf-mobile-drilldown-enabled a.nkf-brukt-mobile-link::after,
  body.nkf-mobile-drilldown-enabled a.nkf-mobile-blackweek-clean::after,
  body.nkf-mobile-drilldown-enabled a.nkf-mobile-julegavetips-clean::after,
  .nkf-mobile-drilldown-list a.nkf-mobile-julegavetips-clean::after,
  a.nkf-brukt-mobile-flat::after,
  .nkf-brukt-mobile-theme > a::after {
    content: '' !important;
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    flex: 0 0 7px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-top: 1.4px solid currentColor !important;
    border-right: 1.4px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: rotate(45deg) !important;
    margin-left: auto !important;
    margin-right: 4px !important;
    opacity: .8 !important;
    position: static !important;
  }
  .nkf-brukt-mobile-link .nkf-brukt-name,
  .nkf-brukt-mobile-flat .nkf-brukt-name,
  .nkf-brukt-mobile-theme .nkf-brukt-name { color: #278253 !important; font-weight: 500 !important; }

  .nkf-brukt-mobile-link:focus-visible,
  .nkf-brukt-mobile-flat:focus-visible,
  .nkf-mobile-blackweek-clean:focus-visible,
  .nkf-mobile-julegavetips-clean:focus-visible {
    outline: 2px solid #278253 !important;
    outline-offset: -3px;
  }
}

/* v1.1.15 – Julegavetips: understated Christmas-red navigation accent.
   Scoped to the navigation-only classes added by KategoriFlow; the Campaign
   plugin's product badges, links and other menu items remain unchanged. */
@media (min-width: 769px) {
  a.nkf-header-julegavetips-clean,
  a.nkf-header-julegavetips-clean > .nkf-julegavetips-label {
    color: #B83240 !important;
    font-weight: 500 !important;
  }
  a.nkf-header-julegavetips-clean:focus-visible {
    outline-color: #B83240 !important;
  }
}
@media (max-width: 768px) {
  body.nkf-mobile-drilldown-enabled .nkf-mobile-drilldown-list a.nkf-mobile-julegavetips-clean,
  .nkf-mobile-drilldown-list a.nkf-mobile-julegavetips-clean,
  a.nkf-mobile-julegavetips-clean,
  a.nkf-mobile-julegavetips-clean > .nkf-julegavetips-label {
    color: #B83240 !important;
    font-weight: 500 !important;
  }
  a.nkf-mobile-julegavetips-clean:focus-visible {
    outline-color: #B83240 !important;
  }
}
