$component: 'services';
$template: 'template-21';

@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-header+.widget-content {
    margin-top: 32px;
  }

  .widget-items {
    padding-bottom: 1px;
  }

  .widget-item {
    border: 1px solid #f2f2f2;
    margin-bottom: -1px;
  }

  .widget-item-wrapper {
    padding: 30px;
    height: 100%;
  }

  .widget-item {
    margin-left: -1px;
  }

  .widget-item-picture-wrap {
    width: 160px;
    height: 100px;
    margin-right: 30px;
    display: block;
  }

  .widget-item-picture {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    svg {
      display: inline-block;
      max-width: 48px;
      max-height: 48px;
    }
  }

  .widget-item-name {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: #404040;
    text-decoration: none;
  }

  .widget-item-name-wrap + .widget-item-children {
    margin-top: 6px;
  }

  .widget-item-description + .widget-item-children {
    margin-top: 10px;
  }

  .widget-item-description {
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 26px;
    color: #808080;
    margin-top: 16px;
  }

  .widget-item-child {
    font-size: 13px;
    line-height: 18px;
  }

  .widget-item-child-name {
    font-style: normal;
    font-weight: normal;
    font-size: 13px;
    line-height: 18px;
    text-decoration: none;
  }

  .widget-header .widget-title {
    font-size: 32px;
    line-height: 40px;
    color: #1B1E25;
  }

  .widget-header .widget-title + .widget-description {
    margin-top: 12px;
  }

  .widget-description {
    color: #808080;
  }

  .widget-header-button {
    font-style: normal;
    font-weight: normal;
    font-size: 10px;
    line-height: 10px;
    text-align: right;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #808080;
    text-decoration: none;
  }

  .align-left {
    text-align: left;
  }
  .align-center {
    text-align: center;
  }
  .align-right {
    text-align: right;
  }

  &[data-children-display="column"] {
    .widget-item-name + .widget-item-children {
      margin-bottom: 10px;
    }
  }

  &[data-picture-size="small"] {
    .widget-item-picture-wrap {
      width: 80px;
      height: 50px;
      margin-right: 24px;
    }
  }

  &[data-picture-size="middle"] {
    .widget-item-picture-wrap {
      width: 160px;
      height: 100px;
      margin-right: 32px;
    }
  }

  &[data-svg-file-use="true"] {
    .widget-item-picture-wrap {
      height: 48px;
      width: 48px;
    }
  }
  .widget-description {
    margin-top: 15px;
  }
  .widget-title.align-center.widget-title-margin {
    margin-left: 150px;
  }
  .widget-all-container {
    text-align: right;
  }
  .widget-title-container + .widget-all-container{
    width: 150px;
    overflow: hidden;
  }
  .widget-all-container {
    i {
      display: none;
      font-size: 19px;
    }
  }
  .widget-all-button {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #808080;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  @media all and (max-width: 550px){
    .widget-title.align-center.widget-title-margin {
      margin-left: 20px;
    }
    .widget-title-container + .widget-all-container.mobile{
      width: 20px;
      max-height: 36px;
    }
    .widget-all-container.mobile {
      i {
        display: inline-block;
      }
      span {
        display: none;
      }
    }
    .widget-all-container.mobile + .widget-all-button{
      width: 20px;
    }
  }

  @media all and (max-width: 768px) {
    .widget-item-picture-wrap {
      width: 48px!important;
      height: 48px!important;
      margin-right: 15px!important;
    }
  }
}