@mixin checkout__total(
    $name-space:        null,
    $content-max-width: null,
    $padding:           null,
    $margin-bottom:     null,
    $gutter:            null,
    $background-color:  null,
    $color:             null
) {
    .#{$name-space}total {
        @include checkout__reset;
        padding: $padding;
        margin-bottom: $margin-bottom;
        background-color: $background-color;
        color: $color;

        &__list,
        &__label,
        &__value {
            margin: 0;
            padding: 0;
        }

        &__list {
            @include checkout__clearfix;
            max-width: $content-max-width;
            margin-left: auto;
            margin-right: auto;
        }

        &__label,
        &__value {
            float: left;
            width: 50%;

            &:not(:last-of-type) {
                margin-bottom: $gutter;
            }
        }

        &__label {
            clear: left;
            padding-right: $gutter / 2;
        }

        &__value {
            clear: right;
            padding-left: $gutter / 2;
            text-align: right;
        }

        @content;
    }
}