.product-colors-swatches {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-colors-swatches__current {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 2px;
  text-transform: uppercase;

  .product-colors-swatches__current--color {
    font-weight: 600;
  }
}

.product-colors-swatches__options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 10px;
}

.product-colors-swatches__groups {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-line-primary);
}

.product-colors-swatches__group {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #6b7177;
  font-weight: 400;
  border: 1px solid var(--border-line-primary);
  transition: 0.1s ease-in-out;

  &.active,
  &:hover,
  &:focus {
    color: #000;
    border-color: #000;
  }
}

.product-colors-swatches__groups-value {
  width: 100%;
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;

  &.active {
    display: flex;
  }
}

.product-colors-swatches__option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  transition: 0.1s ease-in-out;

  &.active,
  &:hover,
  &:focus {
    border: 1px solid #000;
  }

  .image-wrapper {
    padding: 0;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;

    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }
}

@media screen and (max-width: 750px) {
  .product-colors-swatches__groups {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
