/* =========================================================
    Opta Archive Swatches
   v1.4.8: title-area placement, image + length swatches, selected link update
   ========================================================= */

body .products .opta-archive-swatches,
body ul.products .opta-archive-swatches,
body .product-small .opta-archive-swatches,
body li.product .opta-archive-swatches,
body .box-text-products .opta-archive-swatches,
body .opta-archive-swatches {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  column-gap: 5px !important;
  row-gap: 5px !important;
  margin: 7px 0 8px !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: left !important;
}

body .products .box-image + .opta-archive-swatches,
body ul.products .box-image + .opta-archive-swatches,
body .product-small .box-image + .opta-archive-swatches,
body li.product .box-image + .opta-archive-swatches {
  margin-top: 7px !important;
  margin-bottom: 4px !important;
}

body .products .opta-archive-swatch,
body ul.products .opta-archive-swatch,
body .product-small .opta-archive-swatch,
body li.product .opta-archive-swatch,
body .opta-archive-swatches > .opta-archive-swatch {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 45px !important;
  min-height: 45px !important;
  max-height: 45px !important;
  flex: 0 0 40px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid transparent !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: 0;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;

  box-sizing: border-box !important;
  text-decoration: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1 !important;
  vertical-align: top !important;
}

body .products .opta-archive-swatch:hover,
body ul.products .opta-archive-swatch:hover,
body .product-small .opta-archive-swatch:hover,
body li.product .opta-archive-swatch:hover {
  border-color: transparent !important;
  box-shadow: none !important;
}

body .products .opta-archive-swatch img,
body ul.products .opta-archive-swatch img,
body .product-small .opta-archive-swatch img,
body li.product .opta-archive-swatch img,
body .opta-archive-swatches > .opta-archive-swatch > img {
  display: block !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 45px !important;
  min-height: 45px !important;
  max-height: 45px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: brightness(0.96) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-user-drag: none;
  user-select: none;
}

body .products .opta-archive-swatch-more,
body ul.products .opta-archive-swatch-more,
body .product-small .opta-archive-swatch-more,
body li.product .opta-archive-swatch-more {
  font-size: 11px !important;
  font-weight: 300 !important;
  color: #333 !important;
  background: #fff !important;
  cursor: default !important;
}

body .products .opta-archive-swatch.is-active,
body ul.products .opta-archive-swatch.is-active,
body .product-small .opta-archive-swatch.is-active,
body li.product .opta-archive-swatch.is-active,
body .products .opta-archive-swatch.is-selected,
body ul.products .opta-archive-swatch.is-selected,
body .product-small .opta-archive-swatch.is-selected,
body li.product .opta-archive-swatch.is-selected {
  border-color: rgba(0, 0, 0, .72) !important;
  box-shadow: none !important;
}

body .products .opta-archive-swatch.is-active:hover,
body ul.products .opta-archive-swatch.is-active:hover,
body .product-small .opta-archive-swatch.is-active:hover,
body li.product .opta-archive-swatch.is-active:hover,
body .products .opta-archive-swatch.is-selected:hover,
body ul.products .opta-archive-swatch.is-selected:hover,
body .product-small .opta-archive-swatch.is-selected:hover,
body li.product .opta-archive-swatch.is-selected:hover {
  border-color: rgba(0, 0, 0, .72) !important;
}

body .products .opta-archive-swatch:focus-visible,
body ul.products .opta-archive-swatch:focus-visible,
body .product-small .opta-archive-swatch:focus-visible,
body li.product .opta-archive-swatch:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .55) !important;
  outline-offset: 2px !important;
}

body .products .box-image img.opta-archive-swatch-image-active,
body ul.products .box-image img.opta-archive-swatch-image-active,
body .product-small .box-image img.opta-archive-swatch-image-active,
body li.product .box-image img.opta-archive-swatch-image-active {
  transition: opacity .12s ease;
}

/* =========================================================
   Opta Archive Swatches – responsive + length text swatches
   ========================================================= */

body .opta-archive-swatch-more-medium {
  display: none !important;
}

@media (min-width: 850px) and (max-width: 1300px) {
  body .products .opta-archive-swatch-medium-hidden,
  body ul.products .opta-archive-swatch-medium-hidden,
  body .product-small .opta-archive-swatch-medium-hidden,
  body li.product .opta-archive-swatch-medium-hidden,
  body .opta-archive-swatches > .opta-archive-swatch-medium-hidden {
    display: none !important;
  }

  body .products .opta-archive-swatch-more-default,
  body ul.products .opta-archive-swatch-more-default,
  body .product-small .opta-archive-swatch-more-default,
  body li.product .opta-archive-swatch-more-default {
    display: none !important;
  }

  body .products .opta-archive-swatch-more-medium,
  body ul.products .opta-archive-swatch-more-medium,
  body .product-small .opta-archive-swatch-more-medium,
  body li.product .opta-archive-swatch-more-medium,
  body .opta-archive-swatches > .opta-archive-swatch-more-medium {
    display: inline-flex !important;
  }
}

body .products .opta-archive-swatches--length .opta-archive-swatch--text,
body ul.products .opta-archive-swatches--length .opta-archive-swatch--text,
body .product-small .opta-archive-swatches--length .opta-archive-swatch--text,
body li.product .opta-archive-swatches--length .opta-archive-swatch--text,
body .opta-archive-swatches--length > .opta-archive-swatch--text {
  width: auto !important;
  min-width: 34px !important;
  max-width: none !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  flex: 0 0 auto !important;
  padding: 0 9px !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  color: #111 !important;
  background: #fff !important;
  border-radius: 0 !important;
}


/* =========================================================
   v1.4.5 overrides – single +N pill and length text styling
   ========================================================= */

body .products .opta-archive-swatch-more,
body ul.products .opta-archive-swatch-more,
body .product-small .opta-archive-swatch-more,
body li.product .opta-archive-swatch-more,
body .opta-archive-swatches > .opta-archive-swatch-more {
  display: none !important;
  cursor: default !important;
  pointer-events: none !important;
}

body .products .opta-archive-swatch-more.has-default-more,
body ul.products .opta-archive-swatch-more.has-default-more,
body .product-small .opta-archive-swatch-more.has-default-more,
body li.product .opta-archive-swatch-more.has-default-more,
body .opta-archive-swatches > .opta-archive-swatch-more.has-default-more {
  display: inline-flex !important;
}

body .products .opta-archive-swatch-more .opta-archive-swatch-more-label,
body ul.products .opta-archive-swatch-more .opta-archive-swatch-more-label,
body .product-small .opta-archive-swatch-more .opta-archive-swatch-more-label,
body li.product .opta-archive-swatch-more .opta-archive-swatch-more-label,
body .opta-archive-swatches > .opta-archive-swatch-more .opta-archive-swatch-more-label {
  display: none !important;
}

body .products .opta-archive-swatch-more::before,
body ul.products .opta-archive-swatch-more::before,
body .product-small .opta-archive-swatch-more::before,
body li.product .opta-archive-swatch-more::before,
body .opta-archive-swatches > .opta-archive-swatch-more::before {
  content: attr(data-more-default);
}

@media (min-width: 850px) and (max-width: 1300px) {
  body .products .opta-archive-swatch-medium-hidden,
  body ul.products .opta-archive-swatch-medium-hidden,
  body .product-small .opta-archive-swatch-medium-hidden,
  body li.product .opta-archive-swatch-medium-hidden,
  body .opta-archive-swatches > .opta-archive-swatch-medium-hidden {
    display: none !important;
  }

  body .products .opta-archive-swatch-more,
  body ul.products .opta-archive-swatch-more,
  body .product-small .opta-archive-swatch-more,
  body li.product .opta-archive-swatch-more,
  body .opta-archive-swatches > .opta-archive-swatch-more {
    display: none !important;
  }

  body .products .opta-archive-swatch-more.has-medium-more,
  body ul.products .opta-archive-swatch-more.has-medium-more,
  body .product-small .opta-archive-swatch-more.has-medium-more,
  body li.product .opta-archive-swatch-more.has-medium-more,
  body .opta-archive-swatches > .opta-archive-swatch-more.has-medium-more {
    display: inline-flex !important;
  }

  body .products .opta-archive-swatch-more::before,
  body ul.products .opta-archive-swatch-more::before,
  body .product-small .opta-archive-swatch-more::before,
  body li.product .opta-archive-swatch-more::before,
  body .opta-archive-swatches > .opta-archive-swatch-more::before {
    content: attr(data-more-medium);
  }
}

/* Length swatches are text buttons, not image swatches. */
body .products .opta-archive-swatches--length,
body ul.products .opta-archive-swatches--length,
body .product-small .opta-archive-swatches--length,
body li.product .opta-archive-swatches--length,
body .opta-archive-swatches--length {
  gap: 5px !important;
  column-gap: 5px !important;
  row-gap: 5px !important;
  margin: 7px 0 8px !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body .products .opta-archive-swatches--length .opta-archive-swatch--text,
body ul.products .opta-archive-swatches--length .opta-archive-swatch--text,
body .product-small .opta-archive-swatches--length .opta-archive-swatch--text,
body li.product .opta-archive-swatches--length .opta-archive-swatch--text,
body .opta-archive-swatches--length > .opta-archive-swatch--text {
  width: auto !important;
  min-width: 32px !important;
  max-width: none !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  flex: 0 0 auto !important;
  padding: 0 4px !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  color: #111 !important;
  background: #fff !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 3px !important;
  line-height: 1 !important;
}

body .products .opta-archive-swatches--length .opta-archive-swatch--text:hover,
body ul.products .opta-archive-swatches--length .opta-archive-swatch--text:hover,
body .product-small .opta-archive-swatches--length .opta-archive-swatch--text:hover,
body li.product .opta-archive-swatches--length .opta-archive-swatch--text:hover,
body .opta-archive-swatches--length > .opta-archive-swatch--text:hover {
  border-color: #bfbfbf !important;
}

body .products .opta-archive-swatches--length .opta-archive-swatch--text.is-active,
body ul.products .opta-archive-swatches--length .opta-archive-swatch--text.is-active,
body .product-small .opta-archive-swatches--length .opta-archive-swatch--text.is-active,
body li.product .opta-archive-swatches--length .opta-archive-swatch--text.is-active,
body .products .opta-archive-swatches--length .opta-archive-swatch--text.is-selected,
body ul.products .opta-archive-swatches--length .opta-archive-swatch--text.is-selected,
body .product-small .opta-archive-swatches--length .opta-archive-swatch--text.is-selected,
body li.product .opta-archive-swatches--length .opta-archive-swatch--text.is-selected,
body .opta-archive-swatches--length > .opta-archive-swatch--text.is-active,
body .opta-archive-swatches--length > .opta-archive-swatch--text.is-selected {
  border-color: rgba(0, 0, 0, .72) !important;
}

body .products .opta-archive-swatches--length .opta-archive-swatch-more,
body ul.products .opta-archive-swatches--length .opta-archive-swatch-more,
body .product-small .opta-archive-swatches--length .opta-archive-swatch-more,
body li.product .opta-archive-swatches--length .opta-archive-swatch-more,
body .opta-archive-swatches--length > .opta-archive-swatch-more {
  width: auto !important;
  min-width: 30px !important;
  max-width: none !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  flex: 0 0 auto !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  color: #333 !important;
  background: #fff !important;
  border: 0px solid #f5f5f5 !important;
  border-radius: 3px !important;
}
/* =========================================================
   v1.4.8 – title area placement
   Swatches are rendered by PHP under the product title/subtitle and before price.
   ========================================================= */
body .products .title-wrapper .opta-archive-swatches,
body ul.products .title-wrapper .opta-archive-swatches,
body .product-small .title-wrapper .opta-archive-swatches,
body li.product .title-wrapper .opta-archive-swatches,
body .box-text-products .title-wrapper .opta-archive-swatches {
  margin-top: 6px !important;
  margin-bottom: 7px !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body .products .title-wrapper .opta-archive-swatches--length,
body ul.products .title-wrapper .opta-archive-swatches--length,
body .product-small .title-wrapper .opta-archive-swatches--length,
body li.product .title-wrapper .opta-archive-swatches--length,
body .box-text-products .title-wrapper .opta-archive-swatches--length {
  margin-top: 7px !important;
  margin-bottom: 7px !important;
}