/* Shared shop topbar: no rotating messages, layout shifts or external widgets. */
html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) {
  min-height: 38px !important;
  padding: 0 !important;
  background: var(--brand-topbar-bg, #071f30) !important;
  color: #f4f8fc;
  box-shadow: none !important;
}
html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) > .container-fluid {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px;
  min-height: 38px;
  padding: 0 20px !important;
}
#header-top-bar .rh-topbar-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
  gap: 24px;
  order: 0;
  font: 400 13px/1.4 var(--font-body, 'IBM Plex Sans', sans-serif);
}
#header-top-bar .rh-topbar-rating {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#header-top-bar .rh-topbar-rating strong { font-weight: 600; color: #fff; }
#header-top-bar .rh-topbar-rating__scale { font-weight: 400; }
#header-top-bar .rh-topbar-rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-right: 2px;
  color: #ffbe45;
}
#header-top-bar .rh-topbar-rating__stars svg { display: block; width: 14px; height: 14px; fill: currentColor; }
#header-top-bar .rh-topbar-rating__separator { color: #a5b6c4; }
#header-top-bar .rh-topbar-benefit,
#header-top-bar .rh-topbar-promotion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
#header-top-bar .rh-topbar-benefit svg { flex: 0 0 auto; color: #adcfe4; }
html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) .topbar-main {
  flex: 0 0 auto !important;
  align-items: center;
  margin: 0 0 0 auto !important;
}
html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) .topbar-main .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #e4edf4 !important;
  font: 400 13px/1.4 var(--font-body, 'IBM Plex Sans', sans-serif);
}
html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) .topbar-main .nav-item:last-child .nav-link { padding-right: 0; }
html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) a:focus-visible { outline: 2px solid #ffbe45; outline-offset: -3px; }
@media (max-width: 1199.98px) {
  #header-top-bar .rh-topbar-benefit,
  #header-top-bar .rh-topbar-promotion { display: none; }
}
@media (max-width: 991.98px) {
  html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust),
  html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) > .container-fluid { min-height: 34px !important; }
  html body #header-top-bar.topbar-wrapper:has(.rh-topbar-trust) > .container-fluid { padding: 0 10px !important; gap: 0; }
  #header-top-bar .rh-topbar-trust { justify-content: center; font-size: 12px; gap: 0; }
  #header-top-bar .rh-topbar-rating { gap: 6px; }
  #header-top-bar .rh-topbar-rating__stars { gap: 0; margin-right: 1px; }
  #header-top-bar .rh-topbar-rating__stars svg { width: 12px; height: 12px; }
}
@media (prefers-contrast: more) {
  #header-top-bar .rh-topbar-rating__separator { color: #fff; }
}

/* Keep the mobile header on one row even at 320 px, preserving 44 px controls. */
@media (max-width: 389.98px) {
  html body #jtl-nav-wrapper .hide-navbar > .navbar.row {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
  }
  html body #jtl-nav-wrapper #burger-menu { flex: 0 0 44px !important; }
  html body #jtl-nav-wrapper #logo.logo-wrapper {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
  }
  html body #jtl-nav-wrapper #logo .navbar-brand {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  html body #jtl-nav-wrapper #logo #shop-logo {
    width: 100% !important;
    max-width: 108px !important;
    height: auto !important;
    max-height: 30px !important;
    margin: 0 !important;
    object-fit: contain;
  }
  html body #jtl-nav-wrapper #shop-nav.nav-icons {
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }
}
