.panel {
    background-color: color(gray, lightest);
    border-radius: $border-radius;
    margin: $line-height-base 0;

    &__title {
        font-size: $font-size-xlarge;
        line-height: 1em;
        padding: $padding-base-vertical $padding-base-horizontal;

        i::before {
          width: 30px;
        }
    }

    &__body {
        margin-left: 38px;
        padding: 0 $padding-base-horizontal .5em $padding-base-horizontal;

        p:last-of-type {
            margin-bottom: 0;
        }
    }

    &--danger  {
        background-color: color(danger);
        color: color(white);
    }

    &--info    {
        background-color: color(info);
        color: color(black);
    }

    &--inverse {
        background-color: color(inverse);
        color: color(white);
    }

    &--success {
        background-color: color(success);
        color: color(white);
    }

    &--warning {
        background-color: color(warning);
        color: color(black);
    }

}

.form-v2 > .panel:first-of-type {
    margin-top: 0;
}

.panel {
    background-color: color(gray, lightest);
    border-radius: $border-radius;
    margin: $line-height-base 0;

    &__title {
        font-size: $font-size-xlarge;
        line-height: 1em;
        padding: $padding-base-vertical $padding-base-horizontal;

        i::before {
          width: 30px;
        }
    }

    &__body {
        margin-left: 38px;
        padding: 0 $padding-base-horizontal .5em $padding-base-horizontal;

        p,
        ul {
            margin-bottom: $padding-base-vertical;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    &--danger  {
        background-color: color(danger);
        color: color(white);
    }

    &--info    {
        background-color: color(info);
        color: color(black);
    }

    &--inverse {
        background-color: color(inverse);
        color: color(white);
    }

    &--success {
        background-color: color(success);
        color: color(white);
    }

    &--warning {
        background-color: color(warning);
        color: color(black);
    }

    a {
        font-family: $font-family-regular;

        &,
        &:visited,
        &:hover,
        &:active,
        &:focus {
            color: inherit;
        }

        &,
        &:visited {
            opacity: .8;
        }
    }

}

.form-v2 > .panel:first-of-type {
    margin-top: 0;
}

Improve styling of paragraphs, lists and links within the panel component.
Improve styling of paragraphs, lists and links within the panel component.
