$component: 'services';
$template: 'template-22';
$item: 'widget-item';

@mixin transition ($property, $duration) {
  -webkit-transition-property: $property;
  -moz-transition-property: $property;
  -ms-transition-property: $property;
  -o-transition-property: $property;
  transition-property: $property;
  -webkit-transition-duration: $duration;
  -moz-transition-duration: $duration;
  -ms-transition-duration: $duration;
  -o-transition-duration: $duration;
  transition-duration: $duration;
}
@mixin border-radius ($radius) {
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  border-radius: $radius;
}
@mixin box-shadow ($shadow) {
  -webkit-box-shadow: $shadow;
  -moz-box-shadow: $shadow;
  box-shadow: $shadow;
}

.widget.c-#{$component}.c-#{$component}-#{$template} {
  .widget-items {
    margin-top: 1px;
    position: relative;
  }
  .#{$item} {
    &:hover {
      .#{$item}-button {
        opacity: 1;
      }
    }
  }

  .#{$item}-wrapper {
    height: 100%;
    background-color: #FFF;
    border: 1px solid #f2f2f2;
    box-sizing: border-box;
    padding: 32px;
    @include transition((border-color, box-shadow), 0.4s);

    &:hover {
      border-color: #fff;
      @include box-shadow(0px 8px 32px rgba(27, 30, 37, 0.08));
    }
  }

  .#{$item}-picture {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    width: 48px;
    height: 48px;
    margin-right: 24px;

    @include border-radius(2px);

    img {
      display: none;
    }
  }
  .#{$item}-category {
    font-size: 11px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: 2.2px;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .#{$item}-name {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #1B1E25;
    display: block;
    text-decoration: none!important;
    @include transition(color, 0.4s);
  }
  .#{$item}-information {
    margin-left: 72px;
  }
  .#{$item}-description {
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 28px;
    color: #404040;
  }
  .#{$item}-price-title {
    font-size: 14px;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: 2.2px;
    color: #888888;
    margin-bottom: 5px;
    text-transform: uppercase;
  }
  .#{$item}-price {
    font-style: normal;
    font-weight: bold;
    font-size: 22px;
    line-height: 28px;
    color: #1B1E25;
    min-width: 110px;
  }
  .#{$item}-button {
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
    line-height: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0;
    @include transition(all, 0.4s);

    @media all and (max-width: 768px) {
      opacity: 1;
    }
  }

  .#{$item}-description + .#{$item}-price-wrap {
    margin-top: 18px;
  }

  .widget-footer-button {
    color: #2d2d2d !important;

    &:hover,
    &:focus,
    &:active {
      color: #fff !important;
    }
  }
  .widget-header {
    overflow: hidden;
  }
  .widget-all-container {
    display: none;
  }
  .widget-all-button {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #808080;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    i {
      display: none;
      font-size: 18px;
    }
  }

  @media all and (max-width: 550px) {
    .widget-all-container {
      display: block;
    }
    .widget-title.align-center.widget-title-margin {
      margin-left: 25px;
    }
    .widget-all-container.mobile {
      text-align: right;
      width: 25px;
      max-height: 36px;
    }
    .widget-all-container i {
      display: inline-block;
    }
    .widget-footer.mobile,
    .widget-footer-button.mobile{
      display: none;
    }
    .widget-all-container {
      width: 25px;
    }
  }
  @media all and (max-width: 768px) {
    .#{$item}-information {
      margin-left: 0;
      margin-top: 20px;
    }
  }
}