@import './../../../../sources/styles/include.scss';

$component: 'reviews';
$template: 'template-18';
$item: 'widget-item';

@keyframes c-#{$component}-#{$template}-keyframes {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.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);
      }
    }
  }

  .#{$item}-picture {
    display: block;
    font-size: 0;
    text-align: center;
    width: 584px;
    max-width: 100%;
    height: 360px;
    margin-right: 55px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    @include transition(.35s, (opacity, box-shadow));

    &::after {
      content: '';
      display: inline-block;
      vertical-align: middle;
      width: 0;
      height: 100%;
      overflow: hidden;
    }
    &[data-role='video'] {
      cursor: pointer;
    }

    > img {
      display: none;
    }
  }
  .#{$item}-picture-icon {
    display: inline-block;
    width: 96px;
    height: 96px;
    vertical-align: middle;
    pointer-events: none;

    &-path-white {
      fill: #ffffff !important;
      stroke: #ffffff !important;
    }
  }
  .#{$item}-description {
    position: relative;
    font-size: 14px;
    line-height: 24px;
    color: #808080;
    margin-bottom: 20px;
  }
  .#{$item}-name {
    display: inline-block;
    font-size: 18px;
    line-height: 20px;
    color: #404040;
    text-decoration: none;
    @include transition(.35s, color);
  }
  .#{$item}-rating {
    margin-top: 8px;
  }
  .#{$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 {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 15px !important;
  }
  .#{$item}-wrapper {
    &:hover {
      .#{$item}-picture-icon {
        animation-name: c-#{$component}-#{$template}-keyframes;
        animation-duration: 1.5s;
        animation-iteration-count: infinite;
      }
    }
  }

  .widget-items-dots {
    padding-top: 35px;

    .widget-items-dot {
      margin: 8px;
      @include border-radius(50%);
      @include transition(.35s, (background-color, border-color));

      &:first-child {
        margin-left: 0;
      }
      &:not(.active) {
        background-color: #CFCFCF !important;
      }

      span {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        @include border-radius(50%);
      }
    }
  }

  [data-slider='false'] {
    .#{$item}-wrapper {
      &:hover {
        .#{$item}-picture {
          @include box-shadow(0, 5px, 25px, 0, rgba(0, 0, 0, 0.4));
        }
      }
    }
  }

  @include breakpoint-custom(1060) {
    .#{$item}-picture {
      height: 300px;
    }
  }
  @include breakpoint-768() {
    .widget-send-content {
      display: none;
    }

    .#{$item}-picture {
      width: 320px;
      height: 180px;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 20px;

      &-icon {
        width: 54px;
        height: 54px;
      }
    }
    .#{$item}-text {
      text-align: center;
    }
  }
  @include breakpoint-900() {
    .#{$item}-wrapper {
      height: auto;
    }
    .#{$item}-content-wrap {
      height: auto;
    }
    .#{$item}-content {
      height: auto;
    }
  }
  @include breakpoint-custom(600) {
    .#{$item}-content {
      padding: 20px;

      &:hover {
        background-color: #FBFCFD;
        @include box-shadow();
      }
    }
  }
  @include breakpoint-custom(500) {
    .widget-send {
      padding: 6px;
    }
    .widget-all-desktop {
      display: none;
    }
    .widget-all-mobile {
      display: block;
    }

    .#{$item}-description {
      font-size: 14px;
      line-height: 21px;
    }
  }
}