@mixin checkout__row(
    $name-space:  null,
    $max-columns: null,
    $gutter:      null
) {
    .#{$name-space}row {
        @include checkout__reset;

        @include checkout__media-large {
            @include checkout__clearfix;
            margin-left: -$gutter;
            margin-right: -$gutter;
        }

        &__column {
            @include checkout__media-large {
                padding: $gutter;
                float: left;
                min-height: 1px;
            }
        }

        &__column:not(:last-child) {
            @include checkout__media-small {
                margin-bottom: $gutter;
            }
        }

        @include checkout__media-large {
            @for $i from 1 through $max-columns {
                $width: (1 / $max-columns) * ($max-columns / $i);

                &--#{$i} &__column {
                    width: percentage($width);
                }
            }
        }

        @content;
    }
}

