.colour-swatches {
  display: flex;
  flex-direction: column;
  gap: 8px;

  &__container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.colour-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;

  &--active {
    position: relative;
    pointer-events: none;
    cursor: default;
    outline: 4px solid $gray-dark;

    &::after {
      content: '';
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: transparent;
      outline: 3px solid $white;
    }
  }

  &--hidden {
    display: none;
  }

  &--bordered {
    border: 1px solid #ccc;
  }

  &--bordered#{&}--active {
    border: 0;
  }
}

.swatch-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: $gray-light;
  cursor: pointer;
}

.colour-wheel {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;

  img {
    width: 100%;
    object-fit: cover;
  }
}
