.x-opta-native-variation-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.x-opta-product-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  align-items: center;
}

.x-opta-product-swatch {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: none;
}

.x-opta-product-swatch--image {
  width: 62px;
  height: 62px;
  padding: 2px;
}

.x-opta-product-swatch--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.x-opta-product-swatch--color {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 3px;
}

.x-opta-product-swatch-color {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--x-opta-swatch-color, #fff);
  border: 1px solid rgba(0,0,0,.08);
}

.x-opta-product-swatch.is-selected {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.x-opta-product-swatch.is-disabled,
.x-opta-product-swatch:disabled {
  opacity: .34;
  cursor: not-allowed;
  position: relative;
}

.x-opta-product-swatch.is-disabled::after,
.x-opta-product-swatch:disabled::after {
  content: '';
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: rotate(-32deg);
  transform-origin: center;
}

.x-opta-product-swatch:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* Product-page variation rows: Opta places the attribute label above the swatches. */
.variations tr.x-opta-swatches-row {
  display: block;
  width: 100%;
}

.variations tr.x-opta-swatches-row > th.label,
.variations tr.x-opta-swatches-row > td.value {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.variations tr.x-opta-swatches-row > th.label {
  padding-bottom: 7px;
}

.variations tr.x-opta-swatches-row > td.value {
  padding-left: 0;
}
