.#{$n}-carousel {
  position: relative;
}

.#{$n}-carousel__slides-wrapper {
  display: block;
  width: 100%;
  overflow: hidden;
}

.#{$n}-carousel__slides {
  display: flex;
  position: relative;
  flex-direction: row;
  padding: 0;
  transition: left $transition;
  list-style: none;
}

.#{$n}-carousel__slide {
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
}

.#{$n}-carousel-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* stylelint-disable no-descending-specificity */
.#{$n}-carousel-item .#{$n}-button {
  display: block;
  width: 100%;
}
/* stylelint-enable */

.#{$n}-carousel-controls {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: $spacer * 0.5;
  width: 100%;
  height: fit-content;
  padding: 0;
  border-top: 1px solid $grey-b;
}

/* stylelint-disable no-descending-specificity */
.#{$n}-carousel-controls .#{$n}-button {
  display: flex;
  flex: 0 0 $buttonsize;
  align-items: center;
  justify-content: center;
  width: $buttonsize;
  height: $buttonsize;
  background-color: initial;
  color: transparent;
  font-size: 0;
}

.#{$n}-carousel-controls .#{$n}-button--previous {
  left: 0;
}

.#{$n}-carousel-controls .#{$n}-button--next {
  right: 0;
}

.#{$n}-carousel__controls .#{$n}-button .#{$n}-icon {
  display: block;
  width: $iconsize-small;
  height: $iconsize-small;
  padding: 0;
  border: 0;

  svg path {
    fill: $interaction;
  }
}
/* stylelint-enable */

.#{$n}-carousel__pagination {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
}

.#{$n}-carousel-pagination__wrapper {
  display: flex;
  position: relative;
  flex-direction: row;
  justify-content: center;
}

.#{$n}-carousel-pagination {
  display: flex;
  position: relative;
  flex-flow: row wrap;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.#{$n}-carousel-pagination__item {
  display: block;
  list-style: none;
}

.#{$n}-carousel-pagination__button {
  display: block;
  position: relative;
  width: $buttonsize-small * 0.75;
  height: $buttonsize-small * 0.75;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: initial;

  &::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: $iconsize-small * 0.6;
    height: $iconsize-small * 0.6;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
    border-radius: 50%;
    background-color: $grey-c;
  }
}

.#{$n}-is-active .#{$n}-carousel-pagination__button {
  &::before {
    background-color: $brand1;
  }
}
