/* ui1 — storefront text centering in controls (keep long-form body left-aligned) */
body:not(:has(.control-shell)):not(:has(.ops-shell)) .button,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .button--small,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .button--ghost,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .button--buy,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .button--accent,
body:not(:has(.control-shell)):not(:has(.ops-shell)) a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}
body:not(:has(.control-shell)) .pill,
body:not(:has(.control-shell)) .catalog-card__badge,
body:not(:has(.control-shell)) .catalog-card__badge--alert,
body:not(:has(.control-shell)) .product-market__badge,
body:not(:has(.control-shell)) .pdp-age-badge,
body:not(:has(.control-shell)) .loc1-xborder__badge,
body:not(:has(.control-shell)) .wishlist-btn--card,
body:not(:has(.control-shell)) .ash-card-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}
/* Header controls */
body:not(:has(.control-shell)) .ash-header-account,
body:not(:has(.control-shell)) .ash-header-join,
body:not(:has(.control-shell)) .ash-cart,
body:not(:has(.control-shell)) .ash-adv-toggle,
body:not(:has(.control-shell)) .loc1-deliver-btn,
body:not(:has(.control-shell)) .loc1-deliver-opt,
body:not(:has(.control-shell)) .ash-nav-link,
body:not(:has(.control-shell)) .ash-primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body:not(:has(.control-shell)) .ash-header-account,
body:not(:has(.control-shell)) .ash-header-join {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
body:not(:has(.control-shell)) .loc1-deliver-btn {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body:not(:has(.control-shell)) .loc1-deliver-btn__kicker,
body:not(:has(.control-shell)) .loc1-deliver {
  text-align: center;
}
/* Search bar: keep grid stretch so Submit fills pill height; center label inside button */
body:not(:has(.control-shell)) .ash-search {
  /* app.css uses display:grid; align-items:stretch — do not override to flex */
  align-items: stretch;
}
body:not(:has(.control-shell)) .ash-search-field,
body:not(:has(.control-shell)) .ash-search-scope {
  display: flex;
  align-items: center;
}
body:not(:has(.control-shell)) .ash-search-field input {
  line-height: 1.3;
}
body:not(:has(.control-shell)) .ash-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}
/* Category / filter chips */
body:not(:has(.control-shell)) .cfl__opt,
body:not(:has(.control-shell)) .cfl__moreBtn,
body:not(:has(.control-shell)) .cfl__clear,
body:not(:has(.control-shell)) .cf__chip,
body:not(:has(.control-shell)) .cf__clear,
body:not(:has(.control-shell)) .cf-panel__toggle,
body:not(:has(.control-shell)) .gc-types__chip,
body:not(:has(.control-shell)) .gc-cpick__opt,
body:not(:has(.control-shell)) .adv-sort-chip,
body:not(:has(.control-shell)) .catalog-main__chips > a,
body:not(:has(.control-shell)) .catalog-main__chips > span,
body:not(:has(.control-shell)) .catalog-stage__mini-nav > span,
body:not(:has(.control-shell)) .catalog-stage__actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}
body:not(:has(.control-shell)) .cfl__opt {
  justify-content: flex-start; /* label stays readable; vertical center */
  text-align: left;
}
body:not(:has(.control-shell)) .cfl__name {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
body:not(:has(.control-shell)) .cbr__row,
body:not(:has(.control-shell)) .cbr__link,
body:not(:has(.control-shell)) .cbr-drawer__toggle {
  display: flex;
  align-items: center;
  line-height: 1.25;
}
body:not(:has(.control-shell)) .cbr__name {
  display: inline-flex;
  align-items: center;
}
/* Qty steppers / inputs in boxes */
body:not(:has(.control-shell)) .qty-stepper,
body:not(:has(.control-shell)) .qty-stepper__btn,
body:not(:has(.control-shell)) .qty-stepper__input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Empty states / modal button rows */
body:not(:has(.control-shell)) .loc1-empty,
body:not(:has(.control-shell)) .cart-empty-panel,
body:not(:has(.control-shell)) .cf__none {
  text-align: center;
}
body:not(:has(.control-shell)) .loc1-empty__actions,
body:not(:has(.control-shell)) .cart-empty-wrap,
body:not(:has(.control-shell)) .modal__actions,
body:not(:has(.control-shell)) .ash-adv__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  text-align: center;
}
/* Footer link rows */
body:not(:has(.control-shell)) .site-footer a,
body:not(:has(.control-shell)) .ash-footer a,
body:not(:has(.control-shell)) footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}
/* Card meta pills like OVER-EAR HEADPHONES */
body:not(:has(.control-shell)) .product-card__meta > span,
body:not(:has(.control-shell)) .product-card__meta > .pill,
body:not(:has(.control-shell)) .catalog-card__link,
body:not(:has(.control-shell)) .shelf-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Keep long-form readable */
body:not(:has(.control-shell)) .product-market__lead,
body:not(:has(.control-shell)) .product-market__content p,
body:not(:has(.control-shell)) .product-market__bullets,
body:not(:has(.control-shell)) .product-market__section p,
body:not(:has(.control-shell)) .page-main article p,
body:not(:has(.control-shell)) .page-main .prose,
body:not(:has(.control-shell)) .page-main .policy,
body:not(:has(.control-shell)) .page-main .review,
body:not(:has(.control-shell)) .page-main .review p,
body:not(:has(.control-shell)) .product-card__body > p,
body:not(:has(.control-shell)) .product-card__body > h3,
body:not(:has(.control-shell)) .shelf-card__title {
  text-align: left;
  justify-content: flex-start;
}
/* Hide leftover count slots if any old markup cached */
body:not(:has(.control-shell)) .cbr__count,
body:not(:has(.control-shell)) .cfl__n,
body:not(:has(.control-shell)) .cf-col__n {
  display: none !important;
}

/* ui1 follow-up: stronger center + load-last wins over later app styles */
body:not(:has(.control-shell)):not(:has(.ops-shell)) .adv-sort-chip,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-adv__chip,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .catalog-main__chips > a,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .catalog-main__chips > span,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .sf-pill,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .sf-pill--ad,
body:not(:has(.control-shell)):not(:has(.ops-shell)) a.pill,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .pill,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .catalog-card__badge,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .catalog-card__badges > span,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .product-market__badge,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .loc1-xborder__badge,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .button,
body:not(:has(.control-shell)):not(:has(.ops-shell)) a.button,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-header-account,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-header-join,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .loc1-deliver-btn,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-nav-label,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-nav-label-short {
  text-align: center !important;
}
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-search-field,
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-search-scope {
  display: flex !important;
  align-items: center !important;
}
/* ui1g: Search button fills pill height; label centered inside */
body:not(:has(.control-shell)):not(:has(.ops-shell)) .ash-search-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  height: 100% !important;
  min-height: 100% !important;
  text-align: center !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}
/* ui1g: filter group headings left-aligned (label left, chevron right) — incl. multi-line */
body:not(:has(.control-shell)):not(:has(.ops-shell)) .cfl__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: left !important;
  width: 100%;
  gap: 0.5rem;
  line-height: 1.25;
}
body:not(:has(.control-shell)):not(:has(.ops-shell)) .cfl__head > span:first-child {
  flex: 1 1 auto;
  text-align: left !important;
  justify-content: flex-start;
}
body:not(:has(.control-shell)):not(:has(.ops-shell)) .cfl__head .cbr__caret {
  flex: 0 0 auto;
  margin-left: auto;
}
/* ui1g: results-bar context removed; if any leftover cf__shown, don't shove right */
body:not(:has(.control-shell)):not(:has(.ops-shell)) .cf__shown {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  justify-content: flex-start !important;
}
body:not(:has(.control-shell)):not(:has(.ops-shell)) .cf__bar {
  justify-content: flex-start !important;
}
