@mixin checkout__cart-item(
    $name-space:               null,
    $td-padding:               null,
    $td-padding-first:         $td-padding,
    $td-padding-last:          $td-padding,
    $td-bottom-border:         null,
    $image-margin-top:         null,
    $image-width:              null,
    $image-background-color:   null,
    $name-margin-bottom:       null,
    $name-color:               null,
    $description-color:        null,
    $discount-price-color:     null,
    $price-color:              null,
    $quantity-margin-top:      null,
    $quantity-text-margin-top: null
) {
    $image-width--small: checkout__responsive-value($image-width, small);
    $image-width--large: checkout__responsive-value($image-width, large);

    .#{$name-space}cart-item {
        @include checkout__reset;

        @include checkout__media-small {
            @include checkout__clearfix;
            display: block;
        }

        &__column {
            @include checkout__media-large {
                vertical-align: top;
                border-bottom: $td-bottom-border;
            }

            &:not(:first-child):not(:last-child) {
                @include checkout__media-large {
                    padding: $td-padding;
                }
            }

            &:first-child {
                @include checkout__media-small {
                    float: left;
                    width: 25%;
                }

                @include checkout__media-large {
                    padding: $td-padding-first;
                }
            }

            &:nth-child(2) {
                @include checkout__media-small {
                    float: left;
                    width: 50%;
                }
            }

            &:nth-child(3) {
                @include checkout__media-small {
                    display: none;
                }
            }

            &:not(:first-child):not(:nth-child(2)) {
                @include checkout__media-small {
                    float: right;
                    clear: right;
                    width: 25%;
                }
            }

            &:last-child {
                padding: $td-padding-last;
            }
        }

        &__product {
            @include checkout__clearfix;
        }

        &__product-image {
            float: left;
            margin-top: $image-margin-top;
            background-color: $image-background-color;

            @include checkout__media-small {
                width: $image-width--small;
                margin-top: 0;
            }

            @include checkout__media-large {
                width: $image-width--large;
            }
        }

        &__product-text {
            float: left;
            width: 100%;
        }

        &__name {
            margin: 0 0 $name-margin-bottom 0;
            color: $name-color;
        }

        &__name-anchor {
            color: inherit;
            text-decoration: none;
        }

        &__description {
            margin: 0;
            color: $description-color;
        }

        &__discount-price {
            display: block;
            text-align: right;
            color: $discount-price-color;
        }

        &__list-price {
            display: block;
            text-align: right;
            color: $price-color;
        }

        &__discount-price-without-tax {
            display: block;
            text-align: right;
            color: $discount-price-color;
        }

        &__quantity {
            margin-top: $quantity-margin-top;

            &__text {
                display: block;
                margin-top: $quantity-text-margin-top;
                text-align: right;
            }
        }

        &__discount {
            text-align: right;
            color: $discount-price-color;
        }

        &__total {
            text-align: right;
            color: $price-color;
        }

        // stylelint-disable-next-line
        &__error-message {}

        @content;
    }
}