@import "../../../../themes/default";

:global {
  .app-carousel {
    line-height: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;

    .smooth-slider {
      position: relative;
      display: block;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      -webkit-touch-callout: none;
      -ms-touch-action: pan-y;
      touch-action: pan-y;
      -webkit-tap-highlight-color: transparent;
    }

    .smooth-list {
      position: relative;
      overflow: hidden;
      display: block;
      //margin: 0;
      //padding: 0;
    }

    .smooth-list:focus {
      outline: none;
    }

    .smooth-list.dragging {
      cursor: pointer;
    }

    .smooth-slider {
      .smooth-track, .smooth-list {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
      }
    }

    .smooth-track {
      position: relative;
      left: 0;
      top: 0;
      display: block;

      &:before, &:after {
        content: "";
        display: table;
      }

      &:after {
        clear: both;
      }
    }

    .smooth-slide {
      float: left;
      height: 100%;
      min-height: 1px;
      display: none;
      vertical-align: top;

      img {
        display: block;
      }
    }

    .smooth-slide.smooth-loading img {
      display: none;
    }

    .smooth-slide.dragging img {
      pointer-events: none;
    }

    .smooth-initialized .smooth-slide {
      display: block;
    }

    .smooth-loading .smooth-slide {
      visibility: hidden;
    }

    .smooth-vertical .smooth-slide {
      display: block;
      height: auto;
      border: 1px solid transparent;
    }

    &:hover {
      .smooth-arrow {
        opacity: 1 !important;
      }
    }

    .smooth-arrow {
      position: absolute;
      top: 0;
      bottom: 0;
      margin-top: auto;
      margin-bottom: auto;
      background: #fff;
      width: 40px;
      height: 40px;
      line-height: 40px;
      font-size: 0;
      opacity: 0.4;
    }

    .smooth-arrow-top {
      margin: inherit;
    }

    .smooth-arrow.smooth-hidden {
      display: none;
    }

    .smooth-prev, .smooth-next {
      display: block;
      line-height: 0;
      cursor: pointer;
      color: #fff;
      font-size: 0;
      padding: 0;
      border: 0;
      outline: none;
      z-index: 9;
    }

    .smooth-prev:hover, .smooth-next:hover, .smooth-prev:focus, .smooth-next:focus {
      outline: none;
    }

    .smooth-prev:hover:before, .smooth-next:hover:before, .smooth-prev:focus:before, .smooth-next:focus:before {
      opacity: 1;
    }

    .smooth-prev.smooth-disabled:before, .smooth-next.smooth-disabled:before {
      opacity: 0.25;
    }

    .smooth-next {
      right: 0;
    }

    .smooth-prev {
      left: 0;
    }

    .smooth-dots {
      position: absolute;
      bottom: 12px;
      list-style: none;
      display: block;
      text-align: center;
      margin: 0;
      padding: 0;
      width: auto;
      height: 3px;

      li {
        position: relative;
        display: inline-block;
        vertical-align: top;
        text-align: center;
        margin: 0 2px;
        padding: 0;

        button {
          border: 0;
          cursor: pointer;
          background: #fff;
          opacity: 0.3;
          display: block;
          width: 16px;
          height: 3px;
          border-radius: 1px;
          outline: none;
          font-size: 0;
          color: transparent;
          -webkit-transition: all .5s;
          transition: all .5s;
          padding: 0;

          &:hover, &:focus {
            opacity: 0.75;
          }
        }
      }

      li.smooth-active {
        button {
          background: #fff;
          opacity: 1;
          width: 24px;
        }

        &:hover, &:focus {
          opacity: 1;
        }
      }
    }
  }

  .smooth-loading .app-carousel .smooth-track {
    visibility: hidden;
  }

  [dir="rtl"] .app-carousel .smooth-slide {
    float: right;
  }

  .app-carousel .smooth-arrow.smooth-disabled, .jarvis-slider-text .app-carousel .smooth-arrow.smooth-disabled {
    display: none !important;
  }

  .app-carousel-vertical {
    .smooth-dots {
      width: 3px;
      bottom: auto;
      right: 12px;
      top: 50%;
      -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
      transform: translateY(-50%);
      height: auto;

      li {
        margin: 0 2px;
        vertical-align: baseline;

        button {
          width: 3px;
          height: 16px;
        }
      }

      li.smooth-active {
        button {
          width: 3px;
          height: 24px;
        }
      }
    }
  }
}
