/* ONYX HARD: supplementary accessibility fixes, 20261120-media-restore1.
   Loaded after onyx-polish.css. No global colour filters or text-size limits. */

/* Two contrasting edges remain distinguishable on light and dark surfaces. */
body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
body .onyx-contact-form__prestashop :is(input, select, textarea):focus-visible {
  outline: 3px solid #111 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
}
body.onyx-high-contrast :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
body.onyx-high-contrast .onyx-contact-form__prestashop :is(input, select, textarea):focus-visible {
  outline: 3px solid #111 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
}
body .skip-link:focus,
body .skip-link:focus-visible {
  position: fixed !important;
  inset: 12px auto auto 12px !important;
  z-index: 2147483647 !important;
  max-width: calc(100vw - 24px);
  white-space: normal;
  color: #fff !important;
  background: #111 !important;
}
:where(a, button, input, select, textarea, [tabindex]) { scroll-margin-block: 28px; }

/* Visible boundaries for controls, in addition to their textual labels. */
body :is(.form-control, .form-select):not(:disabled):not(.is-invalid):not(.is-valid):not([aria-invalid="true"]),
body:is(#checkout, #authentication, #registration, #password, #address, #identity, #guest-tracking) :is(.form-control, .form-select):not(:disabled):not(.is-invalid):not(.is-valid):not([aria-invalid="true"]),
body .form-check-input:not(:disabled):not(:checked):not(:indeterminate):not(.is-invalid):not(.is-valid):not([aria-invalid="true"]) {
  border-color: #767676;
}
body .onyx-contact-form__prestashop :is(input, select, textarea):not(:disabled):not(.is-invalid):not(.is-valid):not([aria-invalid="true"]) {
  border-bottom-color: #767676 !important;
}
body :is(.form-control, .form-select, .form-check-input)[aria-invalid="true"],
body .onyx-contact-form__prestashop [aria-invalid="true"] { border-color: #a22035 !important; }
body .was-validated :is(.form-control, .form-select):invalid { border-color: #a22035 !important; }
body .was-validated :is(.form-control, .form-select):valid { border-color: #146c43 !important; }
body.onyx-high-contrast .form-check-input:checked,
body.onyx-high-contrast .form-check-input:indeterminate {
  background-color: #111 !important;
  background-image: var(--bs-form-check-bg-image) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  border-color: #111 !important;
}

/* Contrast in unexpanded panels, sale prices and help/contact/CMS text. */
body .onyx-product-card__regular-price,
body .onyx-product-short,
body .onyx-product-rating,
body .onyx-product-rating.is-empty-rating::after { color: #626262 !important; }
body .onyx-help-panel__eyebrow,
body .onyx-size-guide__eyebrow,
body .onyx-product-safety .onyx-feature-list dt,
body#cms .onyx-cms-hero__eyebrow,
body#cms .onyx-cms-section__label,
body#cms .onyx-cms-feature__eyebrow,
body#cms .onyx-regulations .onyx-cms-section__content ol > li::marker,
body .onyx-contact-eyebrow,
body .onyx-contact-info__label,
body .onyx-empty-category__eyebrow,
body .onyx-configurator-guide__eyebrow,
body .onyx-configurator-category-cta__eyebrow,
body .onyx-configurator-guide__number,
body .onyx-contact-form__prestashop label,
#searchCanvas .offcanvas-header::before { color: #70583b !important; }
body#product .product__availability-status.text-warning { color: #8a5700 !important; }
body#product .product__availability-status.text-danger { color: #a22035 !important; }
body .form-control::placeholder,
body .onyx-contact-form__prestashop input::placeholder,
body .onyx-contact-form__prestashop textarea::placeholder { color: #626262; opacity: 1; }
body.onyx-high-contrast .onyx-product-card__regular-price,
body.onyx-high-contrast .onyx-product-short,
body.onyx-high-contrast .onyx-product-rating { color: #111 !important; }

/* The replacement desktop controller uses normal navigation links. */
.onyx-header__nav [data-onyx-menu-ref="desktop-submenu"][hidden],
.onyx-header__nav [data-onyx-menu-ref="desktop-submenu-right-items"][hidden] { display: none !important; }
.onyx-header__nav .ps-mainmenu__tree-dropdown-toggle {
  min-width: 24px;
  min-height: 24px;
}
.onyx-mobile-shortcuts { display: flex; flex-wrap: wrap; gap: 12px 24px; width: 100%; }
.onyx-mobile-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
#mobileMenu .js-menu-open-child { min-width: 44px; min-height: 44px; }
.onyx-faq-toggle {
  display: block; width: 100%; padding: 0 36px 0 0; border: 0;
  background: transparent; color: inherit; font: inherit; text-align: inherit;
}
.onyx-faq [data-onyx-faq-answer][hidden] { display: none !important; }

/* Long tab labels and zoom must grow the container. */
body .onyx-product-tabs__nav { display: flex !important; height: auto; min-height: 56px; flex-wrap: wrap; overflow: visible; }
body .onyx-product-tabs__nav button {
  flex: 1 1 180px; min-width: 0 !important; max-width: 100%; min-height: 56px; height: auto;
  white-space: normal; overflow-wrap: anywhere;
}
.product-modal__video[controls] { pointer-events: auto; }
body .onyx-video-description { margin-block: 16px 28px; font-size: 14px; line-height: 1.65; color: #333; }

/* Preserve the original banner composition at the default text size.
   Enlarged text retains the existing reflow and selector specificity. */
body:where(.onyx-text-resized) .onyx-hero, body:where(.onyx-text-resized) .onyx-video { height: auto; }
body:where(.onyx-text-resized) .onyx-hero__content, body:where(.onyx-text-resized) .onyx-video__content {
  position: relative; inset: auto; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; min-height: 906px; padding: 96px max(24px, calc((100vw - 1320px) / 2));
}
body:where(.onyx-text-resized) .onyx-hero__content { min-height: 952px; }
body:where(.onyx-text-resized) .onyx-hero__kicker, body:where(.onyx-text-resized) .onyx-hero h1, body:where(.onyx-text-resized) .onyx-hero p,
body:where(.onyx-text-resized) .onyx-hero .onyx-outline-button, body:where(.onyx-text-resized) .onyx-video__play,
body:where(.onyx-text-resized) .onyx-video h2, body:where(.onyx-text-resized) .onyx-video p, body:where(.onyx-text-resized) .onyx-video .onyx-outline-button {
  position: static !important; inset: auto !important; transform: none !important;
  margin: 0; max-width: 100%; white-space: normal;
}
body:where(.onyx-text-resized) .onyx-hero h1, body:where(.onyx-text-resized) .onyx-video h2 { width: auto; overflow-wrap: anywhere; }
body:where(.onyx-text-resized) .onyx-hero p, body:where(.onyx-text-resized) .onyx-video p { width: min(100%, 850px); }
body:where(.onyx-text-resized) .onyx-hero .onyx-outline-button, body:where(.onyx-text-resized) .onyx-video .onyx-outline-button { height: auto; }
body:where(.onyx-text-resized) .onyx-hero__media, body:where(.onyx-text-resized) .onyx-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Default mode: retain the original light editorial look of the video banners.
   No black rectangles behind the slogan or supporting copy.
   The existing shade covering the media remains unchanged. */
body:not(.onyx-high-contrast) .onyx-hero .onyx-media-text,
body:not(.onyx-high-contrast) .onyx-video .onyx-media-text {
  background: transparent;
  padding: 0;
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .56), 0 2px 14px rgba(0, 0, 0, .24);
}
/* Restore the original outlined CTA buttons in normal display mode. */
body:not(.onyx-high-contrast) .onyx-hero .onyx-outline-button,
body:not(.onyx-high-contrast) .onyx-video .onyx-outline-button {
  color: #fff;
  background: transparent;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
body:not(.onyx-high-contrast) .onyx-hero .onyx-outline-button:hover,
body:not(.onyx-high-contrast) .onyx-video .onyx-outline-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
/* Keep pause/play controls visually discernible over motion without boxing every caption. */
body .onyx-media-control,
body .onyx-video__play { color: #fff; background: rgba(0, 0, 0, .32); }
body .onyx-media-control:hover,
body .onyx-video__play:hover,
body .onyx-video__play[aria-pressed="true"] { background: rgba(0, 0, 0, .52); }
/* Strong text backing is opt-in: only when the visitor activates high contrast. */
body.onyx-high-contrast .onyx-media-text {
  padding: .04em .14em;
  background: rgba(0, 0, 0, .90);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-shadow: none;
}
body.onyx-high-contrast .onyx-hero .onyx-outline-button,
body.onyx-high-contrast .onyx-video .onyx-outline-button {
  color: #fff;
  background: #000;
  border-color: #fff;
}
body:where(.onyx-high-contrast) .onyx-category-card__active-copy {
  padding: 14px; background: rgba(0, 0, 0, .68); border-radius: 2px;
}
body:where(.onyx-high-contrast) .onyx-category-card > strong,
body:where(.onyx-high-contrast) .onyx-category-card__dynamic-title { background: rgba(0, 0, 0, .68); padding: 6px 10px; }
@media (max-width: 991.98px) {
  body:where(.onyx-text-resized) .onyx-hero__content, body:where(.onyx-text-resized) .onyx-video__content { min-height: 680px; padding: 64px 24px; gap: 24px; }
  body .onyx-product-tabs__nav button { flex: 1 1 140px; }
  body:where(.onyx-text-resized) .onyx-category-card__active-copy { left: 16px !important; right: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .onyx-categories__grid, .onyx-category-card, .onyx-category-card *,
  .onyx-gift-card__media img, .onyx-help-panel, .onyx-help-overlay {
    transition: none !important; animation: none !important;
  }
}
@media (forced-colors: active) {
  body :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline-color: Highlight !important; }
  body .form-check-input { appearance: auto; background-image: none !important; forced-color-adjust: auto; }
  body .onyx-category-card__active-copy,
  body .onyx-category-card > strong { background: Canvas; color: CanvasText; }
}

/* Remove fixed copy heights, including overrides that preceded text scaling. */
body:where(.onyx-text-resized) .onyx-category-card.is-onyx-expanded > strong {
  white-space: normal !important; max-width: calc(100% - 48px); overflow-wrap: anywhere;
}
body:where(.onyx-text-resized) .onyx-category-card__active-copy em {
  height: auto !important; min-height: 50px; max-width: 100%; white-space: normal; padding-block: 12px;
}
body .onyx-product-card__info { height: auto; min-height: 88px; }
body.onyx-text-resized .onyx-categories { height: auto !important; overflow: visible; padding-bottom: 48px; }
body.onyx-text-resized .onyx-categories__grid { height: auto !important; min-height: 750px; }
body.onyx-text-resized .onyx-category-card__active-copy { left: 16px !important; right: 16px !important; }

/* The same address action appears both at checkout and in the account. */
body .address-card__actions .address-card__delete.link-danger,
body .address-card__actions .address-card__delete.link-danger:hover,
body .address-card__actions .address-card__delete.link-danger:focus-visible,
body#checkout .step__account a.text-danger { color: #a22035 !important; }
