.ola-swipeable {
  position: relative;
  /* Hide scrollbar */
  overflow: hidden;
  flex: 1;

  .ola-snippet {
    flex: 1;
    display: flex;
  }
}

.ola-swipeable-flow {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(0,0,0);
  position: relative;
  padding-bottom: 8px; /* Push the scrollbar */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  margin-bottom: -20px;

  &:focus {
    outline: none;
  }
}

.ola-swipeable-flow::-webkit-scrollbar {
  display: none;
}

  .ola-swipeable-row {
    display: block;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    padding-bottom: 20px;

    @include media (mobile) {
      display: inline-flex;
    }
  }

  .ola-swipeable-item {
    flex: 1 1 auto;
    display: inline-block;
    padding: 8px 16px 8px 0;

    @include media (mobile) {
      display: flex;
    }

    .ola-field-img {
      padding: 0;
      max-width: none;
    }
  }

    /**
     * Remove image margin on ola-answer-carousel
     */
    .ola-answer-carousel {
      .ola-swipeable-item .ola-field-img {
        margin: 0;
      }
    }

  /**
   * Innner
   */
  .ola-swipeable-item-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
  }

/**
 * Hide next prev in mobile
 */
.ola-swipeable-prev,
.ola-swipeable-next {
  display: none;
  background: none;
  padding: 0;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -20px;
  bottom: 0;
  width: 40px;
  min-width: 40px;
  height: 40px;
  color: white;
  box-shadow: $small-box-shadow;
  // border-radius: 50%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.2s ease-in;
  line-height: 1;
  display: none;

  .ola-swipeable:hover & {
    opacity: 1;
    background: white;
    // color: $link-color;
  }

  &, &:focus {
    outline: none;
  }

  &[disabled]{
    &, .ola-swipeable:hover & {
      opacity: 0;
      visibility: hidden;
      background: white;
      box-shadow: none;
    }
  }

  &:focus, &:active, &:hover {

  }

  .ola-search-desktop &, .ola-modal-desktop & {
    display: block;
  }
}

  /**
   * Previos
   */
  .ola-swipeable-prev {
    left: 0;
    right: auto;
  }

/**
 * Show button
 */
.ola-swipeable-button, .ola-swipeable-show .ola-link-load-more {
  @extend .ola-btn;
  text-align: center;
  width: 100px;

  .ola-icon {
    width: 60px;
    height: 60px;
    padding: 16px;
    border-radius: 50%;
    box-shadow: $small-box-shadow;
    margin: 3px;
    background: white;
  }
}
  .olachat .ola-swipeable-show .ola-link-load-more {
    width: 100px;
    .ola-link-load-more-text {
      display: block;
      color: #666;
      padding: 12px 0;

      &[disabled] {
        opacity: 0.6;
      }
    }
    .ola-icon {
      transform: rotate(-90deg)
    }
  }

.ola-swipeable-button-text {
  display: block;
  padding-top: 8px;
  font-size: 12px;
}

.ola-swipeable-show {
  display: flex;
  align-items: center;

  .ola-swipeable-item-inner {
    width: auto !important;
  }
}


/**
 * Answer list
 */
.ola-answer-list-swipe .ola-answer-list-items{
  display: block;
}



/**
 * For chatbot
 */

/**
 * Swipeable inside chatbot
 */

.ola-swipeable {
  // /* On desktop */
  // margin-left: -60px;
  // margin-right: -80px;

  // .olachat-bot-mobile &{
  //   margin-left: -16px;
  //   margin-right: -16px;
  // }
}
  /**
   * Row
   */
  .ola-swipeable {
    // padding-left: 0;
    // padding-right: 0;
  }

  .ola-swipeable-flow {
    // padding-left: 60px;
    // padding-right: 80px;

    .olachat-bot-mobile & {
      // padding-left: 16px;
      // padding-right: 16px;
    }
  }

  /**
   * Inside swipeable, set height as 100%
   */
  .ola-swipeable {

    .ola-answer-card,
    .ola-answer-carousel-item,
    .ola-answer-card-wrapper,
    .ola-answer-carousel-item-wrapper,
    .ola-answer-list-wrapper {
      display: flex;
      flex-direction: column;
      flex: 1;
    }
  }

  .olachat-bot-desktop .ola-swipeable-prev,
  .olachat-bot-desktop .ola-swipeable-next {
    display: block;
  }

/**
 * Inside modal
 */
.ola-modal-portal {
  .ola-swipeable-flow {
    padding: 0;
  }
}

/* Swipeable shadow */
.ola-swipeable-shadow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  transition: all 0.2s ease-in;
  background: -moz-radial-gradient(left, ellipse cover, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 90%);
  background: -webkit-radial-gradient(left, ellipse cover, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 90%);
  background: radial-gradient(ellipse at left, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 90%);
  z-index: 1;
}
.ola-swipeable-shadow-right {
  right: 0;
  left: auto;
  background: -moz-radial-gradient(right, ellipse cover, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 90%);
  background: -webkit-radial-gradient(right, ellipse cover, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 90%);
  background: radial-gradient(ellipse at right, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 90%);
}
