/* FFV6_GLOBAL_CART_NAV_STYLE_V3_FLAT_TOP_RIGHT_NO_PILL */
/* Small top-right nav without floating pill/container styling. Applies to cart page too. */
:root {
  --ffv6-nav-link: rgba(255,255,255,.78);
  --ffv6-nav-link-hover: #fff;
  --ffv6-nav-link-bg: rgba(255,255,255,.08);
  --ffv6-nav-ink: #170817;
}

/* Old cart widget/pill stays suppressed everywhere. */
#bw-cart-widget-v1,
.bw-cart-widget-v1,
[data-ffv6-old-nav-cart-widget-suppressed="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Flat compact top-right nav.
   Important: no big rounded pill container, no boxed floating capsule. */
#bw-static-global-public-nav-v1,
.bw-cart-nav,
header nav,
body > nav:first-of-type {
  position: fixed !important;
  top: 14px !important;
  right: 18px !important;
  left: auto !important;
  z-index: 1000 !important;

  width: auto !important;
  max-width: min(880px, calc(100vw - 36px)) !important;
  min-height: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 7px !important;

  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  color: #fff !important;
  box-sizing: border-box !important;
}

#bw-static-global-public-nav-v1 *,
.bw-cart-nav *,
header nav *,
body > nav:first-of-type * {
  box-sizing: border-box !important;
}

/* Small individual links. These are not wrapped by a pill container. */
#bw-static-global-public-nav-v1 a,
#bw-static-global-public-nav-v1 button,
.bw-cart-nav a,
.bw-cart-nav button,
header nav a,
header nav button,
body > nav:first-of-type a,
body > nav:first-of-type button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;

  padding: 6px 8px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(16,7,15,.42) !important;
  color: var(--ffv6-nav-link) !important;
  box-shadow: none !important;

  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

#bw-static-global-public-nav-v1 a:hover,
#bw-static-global-public-nav-v1 button:hover,
#bw-static-global-public-nav-v1 a[aria-current="page"],
#bw-static-global-public-nav-v1 [data-ffv6-single-nav-cart="true"],
.bw-cart-nav a:hover,
.bw-cart-nav button:hover,
.bw-cart-nav a[aria-current="page"],
.bw-cart-nav [data-ffv6-single-nav-cart="true"],
header nav a:hover,
header nav button:hover,
header nav a[aria-current="page"],
header nav [data-ffv6-single-nav-cart="true"],
body > nav:first-of-type a:hover,
body > nav:first-of-type button:hover,
body > nav:first-of-type a[aria-current="page"],
body > nav:first-of-type [data-ffv6-single-nav-cart="true"] {
  background: var(--ffv6-nav-link-bg) !important;
  color: var(--ffv6-nav-link-hover) !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* Brand is small and does not become a big boxed item. */
#bw-static-global-public-nav-v1 .bw-cart-brand,
.bw-cart-nav .bw-cart-brand,
header nav .bw-cart-brand,
body > nav:first-of-type .bw-cart-brand {
  gap: 7px !important;
  padding: 5px 7px !important;
  background: rgba(16,7,15,.42) !important;
  color: #fff !important;
  font-weight: 950 !important;
  letter-spacing: -.02em !important;
  border-radius: 10px !important;
}

#bw-static-global-public-nav-v1 .bw-cart-brand span,
.bw-cart-nav .bw-cart-brand span,
header nav .bw-cart-brand span,
body > nav:first-of-type .bw-cart-brand span {
  width: 22px !important;
  height: 22px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  color: var(--ffv6-nav-ink) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

/* Checkout remains a finalization page, not a top-nav item. */
#bw-static-global-public-nav-v1 [href*="checkout.html"],
#bw-static-global-public-nav-v1 [data-ffv6-checkout-nav-hidden="true"],
.bw-cart-nav [href*="checkout.html"],
.bw-cart-nav [data-ffv6-checkout-nav-hidden="true"],
header nav [href*="checkout.html"],
header nav [data-ffv6-checkout-nav-hidden="true"],
body > nav:first-of-type [href*="checkout.html"],
body > nav:first-of-type [data-ffv6-checkout-nav-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Cart is just another compact nav item. */
#bw-static-global-public-nav-v1 .ffv6-nav-cart-single-link-v3,
#bw-static-global-public-nav-v1 [data-ffv6-single-nav-cart="true"],
.bw-cart-nav .ffv6-nav-cart-single-link-v3,
.bw-cart-nav [data-ffv6-single-nav-cart="true"],
header nav .ffv6-nav-cart-single-link-v3,
header nav [data-ffv6-single-nav-cart="true"],
body > nav:first-of-type .ffv6-nav-cart-single-link-v3,
body > nav:first-of-type [data-ffv6-single-nav-cart="true"] {
  display: inline-flex !important;
  padding: 6px 8px !important;
  background: rgba(16,7,15,.42) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: none !important;
}

/* Cart page override: remove its original full-width sticky bar behavior. */
.bw-cart-nav {
  border-bottom: 0 !important;
}

/* Prevent fixed nav from blocking anchor jumps. */
body {
  scroll-padding-top: 70px !important;
}

@media (max-width: 860px) {
  #bw-static-global-public-nav-v1,
  .bw-cart-nav,
  header nav,
  body > nav:first-of-type {
    top: 10px !important;
    right: 10px !important;
    max-width: calc(100vw - 20px) !important;
    justify-content: flex-end !important;
    gap: 5px !important;
  }

  #bw-static-global-public-nav-v1 a,
  #bw-static-global-public-nav-v1 button,
  .bw-cart-nav a,
  .bw-cart-nav button,
  header nav a,
  header nav button,
  body > nav:first-of-type a,
  body > nav:first-of-type button {
    font-size: 12px !important;
    padding: 5px 7px !important;
    border-radius: 9px !important;
  }

  #bw-static-global-public-nav-v1 .bw-cart-brand,
  .bw-cart-nav .bw-cart-brand,
  header nav .bw-cart-brand,
  body > nav:first-of-type .bw-cart-brand {
    padding: 5px 7px !important;
  }
}
