$component: 'services';
$template: 'template-16';
$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;
}

.widget.c-#{$component}.c-#{$component}-#{$template} {
  .widget-items {
    margin-top: 1px;
    position: relative;
  }
  .#{$item} {
    z-index: 1;
    position: relative;
    padding: 45px;
    background-color: #FFF;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    @include transition(box-shadow, 0.4s);
    margin-top: -1px;

    &:hover {
      -webkit-box-shadow: 0 7px 24px 0 rgba(0, 0, 0, 0.15);
      -moz-box-shadow: 0 7px 24px 0 rgba(0, 0, 0, 0.15);
      box-shadow: 0 7px 24px 0 rgba(0, 0, 0, 0.15);
    }

    &:hover {
      z-index: 2;

      .#{$item}-button {
        opacity: 1;
      }
    }
  }
  .#{$item}-picture {
    max-width: 400px;
  }
  .widget-element-picture {
    max-width: 100%;
  }
  .#{$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-size: 24px;
    font-weight: 500;
    line-height: 1.46;
    color: #000000;
    margin-bottom: 15px;
    display: block;
    text-decoration: none!important;
    @include transition(color, 0.4s);
  }
  .#{$item}-description {
    margin-bottom: 30px;
    line-height: 23.4px;
    font-size: 14px;
  }
  .#{$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-size: 24px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.46;
    letter-spacing: normal;
    color: #000000;
    min-width: 110px;
  }
  .#{$item}-button {
    opacity: 0;
    @include transition(all, 0.4s);

    @media all and (max-width: 768px) {
      opacity: 1;
    }
  }

  .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: 500px) {
    .#{$item}-name {
      font-size: 18px;
      line-height: 27px;
    }
    .#{$item}-description {
      font-size: 14px;
      line-height: 21px;
      margin-top: 10px;
    }
  }
}