%ribbon-common-style {
  content: "";
  position: absolute;   
  top: 100%;
  z-index: -1;
  border-top: 3px solid;
  border-bottom: 3px solid transparent !important;
}

.ribbon {
  position: absolute;
  right: -5px; top: -5px;
  z-index: 1;
  overflow: hidden;
  width: 75px; height: 75px;
  text-align: right;
  span {
    font-size: 10px;
    font-weight: bold;
    color: $color_white;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 100px;
    display: block;
     @extend %bg-primary;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px; 
    right: -21px;
    &:after {
      @extend %ribbon-common-style;
      @extend %border-primary;
      right: 0px;
      border-left: 3px solid transparent;
      border-right: 3px solid;
    }
    &:before {
      left: 0px;
      @extend %ribbon-common-style;
      border-left: 3px solid;
      border-right: 3px solid transparent !important;
      @extend %border-primary;
    }
  }
}

.box-business {
  .ribbon {
    span {
      background: $color_secondary;
      &:after {
        border-right: 3px solid $color_secondary;
        border-top: 3px solid $color_secondary;
      }
      &:before {
        border-left: 3px solid $color_secondary;
        border-top: 3px solid $color_secondary;
      }
    }
  }
}
