@mixin checkout__cart(
    $name-space:          null,
    $padding:             null,
    $background-color:    null,
    $th-padding:          null,
    $th-padding-first:    $th-padding,
    $th-padding-last:     $th-padding,
    $th-text-align:       null,
    $th-text-align-first: $th-text-align,
    $th-text-align-last:  $th-padding,
    $th-bottom-border:    null,
    $th-color:            null
) {
    .#{$name-space}cart {
        @include checkout__reset;
        display: block;
        padding: $padding;
        background-color: $background-color;

        &__table {
            width: 100%;
            table-layout: auto;
            border-spacing: 0;
        }

        &__table thead {
            @include checkout__media-small {
                display: none;
            }
        }

        &__table thead th {
            border-bottom: $th-bottom-border;
            color: $th-color;
            vertical-align: top;

            &:not(:first-child):not(:last-child) {
                padding: $th-padding;
                text-align: $th-text-align;
            }

            &:first-child {
                padding: $th-padding-first;
                text-align: $th-text-align-first;
            }

            &:last-child {
                padding: $th-padding-last;
                text-align: $th-text-align-last;
            }
        }

        @content;
    }
}