.product__info-container:has([data-wanted-only]) {
  --color-background: 23, 24, 23;
  --color-foreground: 238, 238, 232;
  --color-link: 238, 238, 232;
  --color-button: 232, 231, 223;
  --color-button-text: 23, 24, 23;
  --gradient-background: #171817;
  box-sizing: border-box;
  background: #171817;
  color: #eeeee8;
  padding: clamp(18px, 3vw, 42px);
}
.product__info-container:has([data-wanted-only]) :is(h1, h2, h3, .price, .form__label, .accordion__title, .product__description, .onocan-product-intro, .product__tax, .product__tax a, .rita-color-price__row) {
  color: #eeeee8;
}
.product__info-container:has([data-wanted-only]) :is(.price s, .caption-with-letter-spacing) {
  color: #c0c1b9;
}
.product__info-container:has([data-wanted-only]) :is(.rita-leathers button, .onocan-variant-navigation__controls button) {
  color: #eeeee8;
  background-color: #171817;
  border-color: #898a83;
}
.product__info-container:has([data-wanted-only]) .rita-leathers [aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: .35em;
}
.product__info-container:has([data-wanted-only]) .onocan-variant-strip__item {
  background: transparent;
  border-color: transparent;
  padding: 0;
  box-shadow: none;
}
.product__info-container:has([data-wanted-only]) .onocan-variant-strip__item.is-selected {
  border-bottom-color: #eeeee8;
}
.product__info-container:has([data-wanted-only]) :is(.product-form__submit, .onocan-mobile-buy-bar button) {
  background-color: #e8e7df;
  color: #171817;
}
.product__info-container:has([data-wanted-only]) :is(.product-form__submit, .onocan-mobile-buy-bar button):disabled {
  background-color: #bdbeb6;
  opacity: 1;
}
.product__info-container:has([data-wanted-only]) :is(.rita-fanbox-note, .onocan-compact-summary .rita-color-price__amount) {
  display: none;
}
.product__info-container:has([data-wanted-only]) :focus-visible {
  outline: 2px solid #eeeee8;
  outline-offset: 2px;
}

/* The main variant's offer is replaced by Shopify when a colour changes. */
body.template-product:has(#MainContent product-info[data-update-url="true"] [data-wanted-only]) {
  &,
  & :is(.shopify-section-group-header-group, #MainContent, .shopify-section-group-footer-group) :is(.gradient, [class^="color-scheme-"], [class*=" color-scheme-"]) {
    --color-background: 23, 24, 23;
    --color-foreground: 238, 238, 232;
    --color-link: 238, 238, 232;
    --color-button: 232, 231, 223;
    --color-button-text: 23, 24, 23;
    --color-secondary-button: 23, 24, 23;
    --color-secondary-button-text: 238, 238, 232;
    --gradient-background: #171817;
    background: #171817;
    color: #eeeee8;
  }
  & :is(#MainContent, .header-wrapper, .utility-bar, .product__media-wrapper, .onocan-footer, .onocan-footer__bar) {
    background-color: #171817;
    color: #eeeee8;
  }
  & :is(.header-wrapper, .utility-bar, .onocan-footer, .accordion) {
    border-color: #454641;
  }
  & .rita-color-price__amount {
    display: none;
  }
  & .header__heading-logo {
    filter: brightness(0) invert(1);
  }
  & :is(.header__icon, .announcement-bar__link, .onocan-footer__bar a) {
    color: #eeeee8;
  }
  & .product__info-container:has([data-wanted-only]) {
    padding-inline: 0;
  }
  /* Adapt the app's light palette as a unit, including dynamically inserted controls. */
  & [id*="judge_me_reviews_review_widget"],
  & [id*="judge_me_reviews_preview_badge"] {
    color-scheme: light;
    color: #171817;
    filter: invert(1);
  }
  & :is([id*="judge_me_reviews_review_widget"], [id*="judge_me_reviews_preview_badge"]) :is(img, video, canvas, [style*="background-image"]) {
    filter: invert(1);
  }
}

@media screen and (max-width: 749px) {
  #MainContent product-info[data-update-url="true"] {
    padding-top: 0;

    & .product__media-wrapper {
      position: sticky;
      top: 0;
      align-self: flex-start;
      z-index: 0;
    }

    & .product__info-wrapper {
      position: relative;
      z-index: 1;
      background: rgb(var(--color-background));
    }

    & .product__info-wrapper::before {
      content: "";
      position: absolute;
      inset-block: 0;
      inset-inline: calc(50% - 50vw);
      z-index: -1;
      background: inherit;
      pointer-events: none;
    }

    & .product__media-wrapper slider-component:has(.product__media-list) {
      width: 100vw;
      margin-inline: calc(50% - 50vw);
    }

    & .product__media-list {
      margin-block: 0;
      padding-inline: 0;
    }

    & .product__media-item .product-media-container.media-type-image {
      width: 100%;
      max-width: none;
      height: min(100vw, calc(100svh - var(--header-height, 7rem)));
      aspect-ratio: auto;
      border: 0;
    }

    & .media-type-image :is(.product__modal-opener, .product__media) {
      height: 100%;
      padding-top: 0;
    }

    & .media-type-image .product__media img {
      object-fit: cover;
    }
  }
}

@media screen and (max-width: 749px) {
  body.template-product:has(#MainContent product-info[data-update-url="true"]) {
    & .product__info-container:not(:has([data-wanted-only])) { padding-block: 18px; }
    & .product__info-container .rita-color-price__amount { display: none; }
    & .section-header {
      margin-bottom: calc(-1 * var(--header-height, 6rem));
      z-index: 4;
    }

    & .section-header:not(.scrolled-past-header):not(:has(details[open])) > .header-wrapper {
      background: transparent !important;
      border-bottom-color: transparent;
      box-shadow: none;
      backdrop-filter: none;
    }

    & .section-header:not(.scrolled-past-header):not(:has(details[open])) :is(.header__icon, .header__heading-link) {
      filter: drop-shadow(0 1px 2px #333);
    }

    & #MainContent .product__media-wrapper .product__media-icon {
      top: calc(var(--header-height, 6rem) + 1rem);
    }
  }
}

.ono-wanted-route:not(:empty) { text-align:center; }
.ono-wanted-route a { display:inline-block; padding:.85rem .25rem; font-size:1.3rem; color:inherit; text-underline-offset:.25em; }
.ono-bf-product-prices{display:grid;justify-items:start;gap:.35rem}
.ono-bf-product-prices .ono-bf-sticker{margin:0 0 .3rem}
.ono-bf-product-prices .ono-bf-current{font-size:clamp(2.2rem,2.2vw,2.8rem);font-weight:600;line-height:1.2}
.ono-bf-product-prices .ono-bf-original{font-size:1.5rem;line-height:1.35;color:inherit;opacity:.78}
