@import '../../style/themes/default';
.@{dndc-prefix}-swiper {
  width: 100%;
  background-color: #fff;
  overflow: hidden;
  height: 100%;
  min-height: 30px;
  .swiper-slide.swiper-slide-duplicate {
    img {
      opacity: 1 !important;
    }
  }
  .text {
    position: absolute;
    color: white;
    width: 100%;
    height: 11%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(24, 23, 23, 0.9);
  }
  .swiper-button-next,
  .swiper-button-prev {
    top: 0;
    bottom: 0;
    margin: auto;
    outline: none;
    pointer-events: auto !important;
  }
  &:hover {
    .@{dndc-prefix}-swiper {
      &-navigation {
        &--type2 {
          opacity: 1;
          &.swiper-button-disabled {
            opacity: 0.35 !important;
            pointer-events: auto;
          }
        }
      }
    }
  }
  &-navigation {
    &--type1 {
      background-color: #eee;
      opacity: 0.7;
      color: #555;
      top: 0;
      bottom: 0;
      margin: auto;
      &:hover {
        background-color: #c3002f;
      }
      &.swiper-button-next {
        right: 0;
        &:after {
          content: '\e783';
        }
      }
      &.swiper-button-prev {
        left: 0;
        &:after {
          content: '\e784';
        }
      }
      &.swiper-button-prev,
      &.swiper-button-next {
        background-image: none;
        color: #555;
        &:hover {
          color: #fff;
        }
        &:after {
          font-family: 'icon';
          display: flex;
          justify-content: center;
          align-items: center;
          width: 100%;
          height: 100%;
        }
      }
    }
    &--type2 {
      top: 0;
      bottom: 0;
      margin: auto;
      color: #fff;
      border-radius: 100%;
      background-color: @primary-color;
      transition: opacity 0.4s;
      opacity: 0;
      &.swiper-button-disabled {
        opacity: 0 !important;
        pointer-events: auto;
      }
      &.swiper-button-prev,
      &.swiper-button-next {
        background-image: none;
        &:after {
          font-family: 'icon';
          display: flex;
          justify-content: center;
          align-items: center;
          width: 100%;
          height: 100%;
        }
      }
      &.swiper-button-prev {
        left: 2%;
        &:after {
          content: '\e662';
          color: #fff;
        }
      }
      &.swiper-button-next {
        right: 2%;
        &:after {
          content: '\e659';
          color: #fff;
        }
      }
    }
    &--type3 {
      &.swiper-button-prev {
        left: 2%;
        &:after {
          font-family: 'icon';
          content: '\e77f';
          color: #000;
        }
      }
      &.swiper-button-next {
        right: 2%;
        &:after {
          font-family: 'icon';
          content: '\e77e';
          color: #000;
        }
      }
    }
    &--hidden {
      display: none !important;
      opacity: 0 !important;
    }
  }
  .@{dndc-prefix}-swiper-pagination--type1 {
    width: 100%;
    bottom: 0 !important;
    height: 8%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    &.swiper-pagination {
      .swiper-pagination-bullet {
        width: 2px;
        margin: 0 0.6% !important;
        vertical-align: bottom;
        border-radius: 0;
        height: 50%;
        opacity: 0.5;
        transition: 0.4s;
      }
      .swiper-pagination-bullet-active {
        opacity: 1;
        height: 100%;
      }
    }
  }
  .@{dndc-prefix}-swiper-pagination--type2 {
    bottom: 10px;
    width: 100%;
    &.swiper-pagination {
      .swiper-pagination-bullet {
        position: relative;
        transition: 0.5s;
        margin: 0 5px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        opacity: 1;
        overflow: hidden;
        &::before {
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          width: 0;
          content: '';
          transition: 0s;
        }
      }
      .swiper-pagination-bullet-active {
        width: 30px;
        border-radius: 10px;
        opacity: 1;
        &::before {
          width: 110%;
          transition: width 6.3s linear;
        }
      }
    }
  }
  .@{dndc-prefix}-swiper-pagination--type3 {
    bottom: 10px;
    width: 100%;
    &.swiper-pagination {
      .swiper-pagination-bullet {
        transition: 0.5s;
        margin: 0 5px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        opacity: 0.5;
      }
      .swiper-pagination-bullet-active {
        opacity: 1;
      }
    }
  }
  .@{dndc-prefix}-swiper-pagination--hidden {
    display: none !important;
    opacity: 0 !important;
  }
}
