.color-slider-container {
  margin: 0 auto;
  position: relative;
}

.color-slider {
  overflow: hidden;

  &__slide {
    @include link-primary;
    text-decoration: none;
    overflow: hidden;

    &:hover {
      text-decoration: none;
    }
  }

  &__color-preview {
    border-radius: 100%;
    margin: 0 auto 10px;
    width: 24px;
    height: 24px;

    &_bordered {
      border: 1px solid $gray-light;
    }

    a:hover > & {
      border: 1px solid $blue;
    }
  }

  &__color-name {
    text-align: center;

    &::first-letter {
      text-transform: uppercase;
    }
  }

  &__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    cursor: pointer;
    color: $blue;

    &_next {
      right: -20px;

      @include media-breakpoint-down(md) {
        right: -10px;
      }
    }

    &_prev {
      left: -20px;

      @include media-breakpoint-down(md) {
        left: -10px;
      }
    }
  }

  &.is-locked {
    .swiper-wrapper {
      justify-content: center;
    }
  }
}
