@import './../../../../sources/styles/include.scss';

$component: 'reviews';
$template: 'template-4';
$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);
      }
    }
  }

  .#{$item} {
    margin-bottom: 40px;

    &:last-child {
      margin-bottom: 0;
    }
  }
  .#{$item}-person {
    position: relative;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 40px;
    margin-right: -70px;
    overflow: hidden;
    z-index: 2;
  }
  .#{$item}-person-wrapper {
    position: relative;
    width: 140px;
    margin-left: auto;
    margin-right: auto;
  }
  .#{$item}-picture {
    position: relative;
    display: block;
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    @include border-radius(50%);
  }
  .#{$item}-name {
    display: block;
    font-size: 14px;
    line-height: 21px;
    color: #404040;
    text-decoration: none;
    @include transition(.35s, color);
  }
  .#{$item}-position {
    font-size: 10px;
    line-height: 15px;
    color: #6a6a6a;
  }
  .#{$item}-description {
    position: relative;
    font-size: 16px;
    line-height: 24px;
    padding: 45px 60px 40px 120px;
    border-top: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    z-index: 1;
    background: #fff;
  }
  .#{$item}-line-top,
  .#{$item}-line-bottom {
    position: absolute;
    left: 50%;
    width: 0;
    border-left: 1px solid #e8e8e8;
  }
  .#{$item}-line-top {
    top: -50px;
    bottom: calc(100% + 10px);
  }
  .#{$item}-line-bottom {
    top: calc(100% + 10px);
    bottom: -1000px;
  }

  @include breakpoint-768() {
    .widget-send-content {
      display: none;
    }

    .#{$item}-person {
      padding-top: 0;
      padding-bottom: 0;
      margin-right: 0;
      margin-bottom: -30px;
    }
    .#{$item}-description {
      text-align: center;
      padding: 50px 30px 30px 30px;
      border-top: none;
      border-left: 1px solid #e8e8e8;
    }
    .#{$item}-line-top,
    .#{$item}-line-bottom {
      top: auto;
      bottom: 30px;
      width: auto;
      border-left: none;
      border-top: 1px solid #e8e8e8;
    }
    .#{$item}-line-top {
      left: -500px;
      right: calc(100% + 20px);
    }
    .#{$item}-line-bottom {
      left: calc(100% + 20px);
      right: -500px;
    }
  }
  @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;
      padding-left: 15px;
      padding-right: 15px;
    }
  }
}