
.inline__help {
  & button {
    position : relative;
    display: inline-block;
    color: $grey-2;
    cursor: pointer;
    margin-bottom: 1rem;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding-left: 25px !important;
    text-align: left;
    font-size: $inline__help-font-size;
    font-weight: $bold-weight;

    & span.mat-button-wrapper {
      display:inline;
      border-bottom: dotted 2px $grey-2;
      &:active, &:focus {
        outline: 2px dotted $ochre-focus;
      }
    }

    &.mat-button:hover {
      .mat-button-focus-overlay {
        opacity:0;
      }
    }

    &.mat-button:not(:disabled):not(.disabled):active:focus {
      box-shadow: none;
    }

    &:hover::before {
      border-left-color: $ochre;
    }

    &:hover span {
      color: $ochre;
      border-bottom: solid 2px $ochre;
    }
  }

  &.open button {
    margin-bottom:0.25rem;

    & span {
      color:$ochre;
      border-bottom: solid 2px $ochre;
    }
  }

  & button:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    -webkit-clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    border-width: 7px 0 7px 12.124px;
    border-left-color: $grey-2;
  }

  &.open button:before {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    -webkit-clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
    clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
    border-width: 12.124px 7px 0 7px;
    border-top-color: $ochre;
  }

  & .card {
    margin-bottom: 1rem;
    border: none;

    &.card-header {
      padding:0;
      background-color: $white;
    }

    & .well {
      border-left-width: 3px;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      clear: both;
      border-left-style: solid;
      border-color: $ochre;
      padding: 0.5em;
      margin-bottom: 0;
      font-size: $inline__help-font-size;

      & ul {
        margin-bottom: 0;
        text-align:left;
      }
    }
  }
}

@media print, (min-width:975px) {
  .inline__help {
    & button {
      font-size: $inline__help-sm-font-size;
    }

    & .card {
      & .well {
        font-size: $inline__help-sm-font-size;
      }
    }
  }
}

@media print, (min-width:1220px) {
  .inline__help {
    & button {
      font-size: $inline__help-m-font-size;
    }

    & .card {
      & .well {
        font-size: $inline__help-m-font-size;
      }
    }
  }
}


@media print, (min-width:1480px) {
  .inline__help {
    & button {
      font-size: $inline__help-l-font-size;
    }

    & .card {
      & .well {
        font-size: $inline__help-l-font-size;
      }
    }
  }
}
