@mixin checkout__customer-form(
    $name-space:                  null,
    $header-margin-bottom:        null,
    $fields-margin-bottom:        null,
    $input-gutter:                null,
    $input-zipcode-width:         null,
    $input-city-width:            null,
    $password-margin-bottom:      null,
    $password-tick-margin-bottom: null,
    $actions-gutter:              null
) {
    .#{$name-space}customer-form {
        &__header {
            margin-bottom: $header-margin-bottom;
        }

        &__fields {
            margin-bottom: $fields-margin-bottom;
        }

        &__text-input {
            &:last-child {
                margin-bottom: 0;
            }

            &:not(:last-child) {
                margin-bottom: $input-gutter;
            }

            &[name="firstName"] {
                width: calc(50% - #{$input-gutter / 2});
                float: left;
                clear: left;
            }

            &[name="lastName"] {
                width: calc(50% - #{$input-gutter / 2});
                float: right;
                clear: right;
            }

            &[name="address.zipcode"] {
                width: calc(#{$input-zipcode-width} - #{$input-gutter / 2});
                float: left;
                clear: left;
            }

            &[name="address.city"] {
                width: calc(#{$input-city-width} - #{$input-gutter / 2});
                float: right;
                clear: right;
            }

            &[name="address.state"] {
                width: calc(50% - #{$input-gutter / 2});
                float: left;
                clear: left;
            }

            &[name="address.country"] {
                width: calc(50% - #{$input-gutter / 2});
                float: right;
                clear: right;
            }
        }

        &__password {
            margin-bottom: $password-margin-bottom;

            &__tick {
                margin-bottom: $password-tick-margin-bottom;
            }

            // stylelint-disable-next-line
            &__fields {}
        }

        &__actions {
            font-size: 0;
        }

        &__submit-button {
            position: relative;
            display: inline-block;
        }

        &__loader {
            display: inline-block;
        }

        &__submit {
            @include checkout__reset-button;
            display: inline-block;
            font-size: 1rem;
        }

        &__cancel {
            @include checkout__reset-button;
            display: inline-block;
            font-size: 1rem;
            margin-left: $actions-gutter;
        }

        @content;
    }
}