@import './../../../../sources/styles/include.scss';

$component: 'reviews';
$template: 'template-11';
$item: 'widget-item';

.widget.c-#{$component}.c-#{$component}-#{$template} {
  .widget-title-margin {
    margin-left: 117px;
    @media (max-width: 500px) {
      margin-left: 54px;
    }
  }
  .widget-title {
    overflow: hidden;
  }
  .widget-send {
    color: #808080;
    padding: 8px 14px;
    border: 1px solid #E8E8E8;
    cursor: pointer;
    @include border-radius(2px);
    @include user-select(none);
    @include transition(.35s, (color, border-color));
  }
  .widget-send-icon {
    svg {
      path {
        stroke: #B0B0B0;
        @include transition(.35s, stroke);
      }
    }
  }
  .widget-send-content {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
  }
  .widget-all {
    display: block;
    text-decoration: none;
  }
  .widget-all-desktop {
    display: block;
    font-size: 10px;
    line-height: 1;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    @include transition(.35s, color);
  }
  .widget-all-mobile {
    display: none;
    padding: 6px 7px;

    svg {
      path {
        stroke: #B0B0B0;
        @include transition(.35s, stroke);
      }
    }
  }

  .widget-outer-items {
    overflow: visible !important;
  }
  .widget-items {
    margin-bottom: 15px;
  }
  .widget-item-wrapper {
    padding: 30px 30px 30px 90px;
    height: 100%;
  }
  .widget-owl-item {

    opacity: 0;
    @include transition((0s, 0.2s, 0.2s), (opacity, box-shadow, transform));

    &:hover {
      z-index: 2;
      @include box-shadow(0, 0, 20px, 0, rgba(0,0,0,0.1));
      @include transform-translate(null, -1px);
    }

    &.active {
      opacity: 1;
    }

    &:last-child {
      .widget-item {
        border-right: 1px solid #F2F2F2;
      }
    }

    .widget-item {
      background: #ffffff;
      border: 1px solid #F2F2F2;
      border-right: 0;
    }
  }

  .#{$item}-date {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #808080;
  }
  .#{$item}-image {
    display: block;
    width: 64px;
    height: 64px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    @include border-radius(50%);
  }
  .#{$item}-description {
    position: relative;
    margin-top: 12px;
    padding-bottom: 20px;
    font-size: 14px;
    line-height: 24px;
    color: #808080;

    &:before {
      content: '';
      position: absolute;
      top: 0;
      left: -50px;
      width: 26px;
      height: 26px;
      background: url('images/quote_icon.svg') no-repeat center;
      background-size: contain;
    }
  }
  .#{$item}-name {
    display: inline-block;
    font-size: 18px;
    line-height: 20px;
    color: #404040;
    text-decoration: none;
    @include transition(0.35s, color);
  }
  .#{$item}-rating-item {
    svg {
      width: 20px;
      height: 20px;

      path {
        fill: #E8E8E8;
        stroke: #E8E8E8;
      }
    }

    &[data-active='true'] {
      svg {
        path {
          fill: #FBCD56;
          stroke: #FBCD56;
        }
      }
    }
  }
  .#{$item}-link-detail-button {
    padding: 10px 15px !important;
    font-weight: 500;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-width: 1px;
  }

  .intec-ui-control-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    @include transform-translate(null, -20px);

    .intec-ui-part-button-left,
    .intec-ui-part-button-right {
      font-size: 0;
      width: 40px;
      height: 40px;
      background-color: #ffffff;
      border: 1px solid #f2f2f2;
      outline: none;
      @include border-radius(2px);
      @include transition(0.35s, (background-color, border-color));

      svg {
        path {
          stroke: #808080;
          @include transition(0.35s, all);
        }
      }

      &:hover {
        svg {
          path {
            stroke: #FFF;
          }
        }
      }

      &.disabled {
        background-color: #FFF!important;
        border-color: #F2F2F2!important;
        opacity: 0.7;
        cursor: not-allowed;
        @include user-select(none);

        svg {
          path {
            stroke: #F2F2F2!important;
          }
        }
      }
    }
    .intec-ui-part-button-left {
      left: -20px;
    }
    .intec-ui-part-button-right {
      right: -20px;
    }
  }
  .widget-items-dots {
    margin-top: 25px;

    .widget-items-dot {
      margin-left: 16px;
      border-radius: 50%;
      cursor: pointer;
      @include transition(.35s, background);

      &:first-child {
        margin-left: 0;
      }
      &:not(.active):not(:hover) {
        background: #CFCFCF !important;
      }

      span {
        display: block;
        width: 8px;
        height: 8px;
        @include border-radius(50%);
      }
    }
  }

  @include breakpoint-custom(950) {
    .widget-item-wrapper {
      padding: 30px 20px 30px 60px;
    }
  }
  @include breakpoint-768() {
    .widget-send-content {
      display: none;
    }
  }
  @include breakpoint-custom(700) {
    .widget-owl-item {
      &:hover {
        z-index: 2;
        box-shadow: none;
        transform: none;
      }
    }
  }
  @include breakpoint-custom(500) {
    .widget-send {
      padding: 6px;
    }
    .widget-all-desktop {
      display: none;
    }
    .widget-all-mobile {
      display: block;
    }
    .widget-items {
      padding-left: 0;
      padding-right: 0;
    }

    .widget-items {
      padding-left: 0;
      padding-right: 0;
    }
    .widget-item-wrapper {
      padding: 15px;
    }
    .#{$item}-description {
      position: relative;
      margin-top: 12px;
      padding-bottom: 20px;
      font-size: 14px;
      line-height: 24px;
      color: #808080;

      &:before {
        display: none;
      }
    }
  }
}