@mixin checkout__message(
    $name-space:             null,
    $padding:                null,
    $error-background-color: null,
    $error-color:            null,
    $error-border:           null,
    $info-background-color:  null,
    $info-color:             null,
    $info-border:            null
) {
    .#{$name-space}message {
        @include checkout__reset;
        padding: $padding;

        &--error {
            background-color: $error-background-color;
            color: $error-color;
            border: $error-border;
        }

        &--info {
            background-color: $info-background-color;
            color: $info-color;
            border: $info-border;
        }

        @content;
    }
}