/* Bandenmeesters — canonical global UI layer. Cross-page geometry, focus and shell state only. */
html,body{max-width:100%;overflow-x:clip}body.bm-theme{--bm-theme-radius:12px;--bm-theme-radius-control:10px;--border-radius-base:12px;--buttons-radius:10px;--inputs-radius:10px;--bm-soft-radius:12px;--bm-soft-radius-lg:16px;--bm-soft-radius-sm:8px;background:#fff;color:#171819}body.bm-theme :where(.button,.bm-theme-button,.btn,button[class*="button"],a[class*="button"]){border-radius:10px!important}body.bm-theme :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea,.bm-theme-input,.bm-theme-select,.bm-theme-textarea){border-radius:10px!important}body.bm-theme :where(.bm-fitment__panel,.bm-fitment-panel){border-radius:16px!important}body.bm-theme :where(.bm-choice,.bm-choice--brand,.bm-fitment__dynamic .bm-choice){border-radius:12px!important}body.bm-theme :where(.bm-theme-card,.card-product,product-card,.bm-product-buybox,.bm-product-specs,.bm-product-inspection,.bm-condition-meter,.bm-model-card,.bm-generation-card,.bm-brand-card){border-radius:12px!important}body.bm-theme :where(.card-product,product-card,.bm-model-card,.bm-generation-card,.bm-brand-card){overflow:hidden}body.bm-theme :where(.predictive-search,.header-search__results,.search-results,.drawer__inner,.modal__content,.popover__content){border-radius:12px!important}body.bm-theme :where(a,button,input,select,textarea):focus-visible{outline-offset:3px}body.bm-theme .bm-sticky-buy{transition:transform .2s ease,opacity .2s ease}body.bm-mobile-menu-open,body.bm-vehicle-dialog-open{overflow:hidden!important}body.bm-mobile-menu-open .bm-sticky-buy,body.bm-vehicle-dialog-open .bm-sticky-buy{display:none!important}.bm-vehicle-dialog{z-index:2200!important}@media(max-width:749px){body.bm-theme{--bm-theme-radius:11px;--bm-theme-radius-control:9px;--bm-soft-radius:11px;--bm-soft-radius-lg:14px}body.bm-theme :where(.button,.bm-theme-button,.btn,button[class*="button"],a[class*="button"],input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){border-radius:9px!important}body.bm-theme :where(.bm-fitment__panel,.bm-fitment-panel){border-radius:14px!important}}

/* Canonical BM orange primary action — modern automotive CTA, not retro/raised UI. */
html body.bm-theme :is(
  .button:not(.button-secondary):not(.button-tertiary):not(.button-outline):not(.button-form-input):not(.button-text-link):not(.loading),
  .bm-home-podium__button,
  .bm-home-wheels__cta,
  .bm-inventory-card__cta,
  .bm-new-card__cta,
  .bm-brand-button,
  .bm-model-hero__actions .bm-model-primary,
  .bm-knowledge__hero-actions a:first-child,
  .bm-market-suggest__primary,
  .bm-new-buybox__advice-submit,
  .bm-new-results__browse-link--primary,
  .bm-new-results__choose-vehicle,
  .bm-new-results__empty-actions [data-bm-new-empty-change],
  .bm-new-results__empty-actions [data-bm-new-search-vehicle],
  .bm-new-results[data-empty-kind="vehicle"] .bm-new-results__empty-actions [data-bm-new-browse-all],
  .bm-new-buybox[data-bm-inquiry-mode="true"] .bm-new-buybox__question,
  .bm-new-product[data-bm-catalog-state="empty"] .bm-new-buybox__question,
  .bm-new-product[data-bm-catalog-state="unavailable"] .bm-new-buybox__question,
  .bm-exact-vehicle-used__empty-actions button,
  .bm-fitment-confirmation__button,
  .bm-sold-panel__button,
  .bm-search-empty__primary,
  .bm-tyres__search-action,
  .bm-tyres__cart-action,
  .bm-tyres[data-mode="standalone"] .bm-tyre-card__choose,
  .bm-tyres__size-dialog-primary,
  .bm-vehicle-search-cta,
  .bm-wheel-discovery__vehicle-cta,
  .shopify-challenge__button,
  .bm-404__button--primary,
  .bm-404__search-form button,
  .bm-about-button--primary,
  .bm-cart-checkout,
  .bm-cart-empty__primary,
  .bm-mini-cart-empty__primary,
  .bm-mini-cart-action,
  .bm-contact__quick-card:first-child,
  .bm-knowledge__decision a:first-child,
  .bm-tyre-hub__finder,
  .bm-wheel-gallery__vehicle,
  .bm-wheel-gallery__editorial-next a,
  .bm-contact__submit,
  .bm-contact-person__actions a:first-child,
  .bm-footer .bm-footer__contact-button,
  .bm-footer-cookie__primary,
  .bm-generation-new-zone__recovery-actions a:first-child,
  .bm-generation-new-zone__recovery-actions button:first-child,
  .template-index .bmhx-button--orange,
  .bm-withdrawal__submit,
  .bm-mega__vehicle-action,
  .bm-mobile-menu-vehicle-card__action,
  .bm-new-buybox__cart,
  .bm-stock-filter__apply,
  .template-product .product-form__buttons button,
  .template-product .product-form__submit,
  .template-product .bm-sticky-buy__button,
  .bm-search-form__button,
  .bm-sell__submit,
  .bm-service-button--primary,
  .bm-search-request__button,
  .bm-va-btn--orange,
  .bm-stock-hero__primary,
  .bm-my-auto-bar__primary,
  .template-index .bm-selector-summary__button,
  .template-index .bm-selector-brand-tools__toggle
){
  box-sizing:border-box!important;
  min-height:48px!important;
  height:auto!important;
  max-height:none!important;
  padding:12px 18px!important;
  border-radius:10px!important;
  font-family:"Instrument Sans",sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:22px!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-decoration:none!important;
  text-align:center!important;
  white-space:normal!important;
  text-wrap:balance!important;
  overflow-wrap:anywhere!important;
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border:1px solid #e54500!important;
  background:linear-gradient(180deg,#ff5a14 0%,#ff4d00 100%)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:none!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 6px 16px rgba(255,77,0,.22)!important;
  transform:translateY(0)!important;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease!important;

  & svg{display:block!important;width:20px!important;height:20px!important;flex-shrink:0!important}
  &::before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    z-index:-1!important;
    background:linear-gradient(115deg,transparent 25%,rgba(255,255,255,.14) 48%,transparent 70%)!important;
    opacity:0!important;
    transform:translateX(-22%)!important;
    transition:opacity .18s ease,transform .28s cubic-bezier(.2,.75,.2,1)!important;
    pointer-events:none!important;
  }
  &:is(:hover,:focus-visible){
    border-color:#dc4200!important;
    background:linear-gradient(180deg,#ff6423 0%,#ff4d00 100%)!important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.24),
      0 9px 22px rgba(255,77,0,.28)!important;
    transform:translateY(-1px)!important;
    filter:none!important;
  }
  &:is(:hover,:focus-visible)::before{
    opacity:1!important;
    transform:translateX(18%)!important;
  }
  &:focus-visible{outline:2px solid #171819!important;outline-offset:3px!important}
  &:active{
    border-color:#dc4200!important;
    background:linear-gradient(180deg,#f94c05 0%,#ec4500 100%)!important;
    box-shadow:
      inset 0 1px 3px rgba(112,28,0,.14),
      0 3px 9px rgba(255,77,0,.18)!important;
    transform:translateY(0) scale(.985)!important;
  }
  &[disabled],
  &[aria-disabled="true"]{
    border-color:#b9bbb8!important;
    background:#b9bbb8!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:none!important;
    transform:none!important;
    filter:none!important;
    cursor:not-allowed!important;
  }
  @media(prefers-reduced-motion:reduce){
    &{
      transition:none!important;
    }
    &::before{display:none!important}
    &:is(:hover,:focus-visible,:active){transform:none!important}
  }
}


/* Jesse's canonical CTA decision: ALL orange solid BM actions have white text.
   This supplements the shared primary action owner for independently named
   USED / NEW / home / catalogue / enquiry CTAs. It changes foreground ONLY:
   no background, width, padding, radius, hover motion or other controls.
   White/outline/ghost controls and disabled non-orange states are excluded. */
html body.bm-theme :is(
  .bm-inventory-card__cta,
  .bm-new-card__cta,
  .bmhx-button--orange,
  .bmhx-used-feature__cta,
  .bm-search-form__button,
  .bm-search-empty__primary,
  .bm-stock-hero__primary,
  .bm-new-results__browse-link--primary,
  .bm-new-results__choose-vehicle,
  .bm-new-buybox[data-bm-inquiry-mode="true"] .bm-new-buybox__question,
  .bm-new-product[data-bm-catalog-state="empty"] .bm-new-buybox__question,
  .bm-new-product[data-bm-catalog-state="unavailable"] .bm-new-buybox__question
):not([disabled]):not([aria-disabled="true"]){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.bm-theme .bm-inventory-card__cta .bm-inventory-card__cta-arrow{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
