/* Loaded directly in <head>; no JavaScript or delayed DOM patch required. */
#header .navigation-buttons > a.cart-count:focus-visible {
  outline: 0 !important;
  box-shadow: inset 0 0 0 2px #c90050 !important;
  border-radius: 6px;
}

/* Override the legacy .full > i font-size and inherited button tracking.
   Keep the badge's right edge fixed so longer counts grow away from the price. */
#header .navigation-buttons > a.cart-count > i[data-testid="headerCartCount"] {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  left: auto;
  right: calc(100% - 53px);
  width: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 12px !important;
  font-style: normal;
  line-height: 20px;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 767px) {
  #header .navigation-buttons > a.cart-count > i[data-testid="headerCartCount"] {
    left: 2px;
    right: auto;
    min-width: 18px;
    height: 18px;
    font-size: 11px !important;
    line-height: 18px;
  }
}

@media (forced-colors: active) {
  #header .navigation-buttons > a.cart-count:focus-visible {
    outline: 2px solid Highlight !important;
    outline-offset: -2px;
  }
}
