/*===============================
Start Cart Page Wrapper
=================================*/

// Cart Table Style
.cart-table {
    & .table {
        margin: 0;
        white-space: nowrap;

        // Head
        & thead {
            background-color: $brand-color;

            & tr {
                & th {
                    border-color: $brand-color;
                    border-bottom: 0 solid transparent;
                    color: $white;
                    font-size: 14px;
                    font-weight: 600;
                    padding: 15px 20px;
                    text-align: center;
                    text-transform: uppercase;
                }
            }
        }

        // Body
        & tbody {
            & tr {
                & td {
                    border-color: #ccc;
                    text-align: center;
                    padding: 10px 20px;
                    vertical-align: middle;
                    font-weight: 600;
                    color: $black-soft;

                    a {
                        color: $black-soft;

                        &:hover {
                            color: $brand-color;
                        }

                        &.btn {
                            color: $white;

                            &:hover {
                                color: $white;
                            }
                        }
                        &.check-btn {
                            color: $white;
                        }
                    }
                }
            }
        }

        tr {
            .pro-thumbnail,
            .pro-price,
            .pro-quantity,
            .pro-subtotal,
            .pro-remove {
                width: 140px;
            }
            .pro-qty{
                width: 90px;
                height: 35px;
                border: 1px solid #ddd;
                border-radius: 50px;
                padding: 0 15px;
                float: left;
                & .qtybtn {
                    width: 15px;
                    display: block;
                    float: left;
                    line-height: 31px;
                    cursor: pointer;
                    text-align: center;
                    font-size: 15px;
                    font-weight: 700;
                    color: $paragraph;
                }
                & input {
                    width: 28px;
                    float: left;
                    border: none;
                    height: 33px;
                    line-height: 33px;
                    padding: 0;
                    text-align: center;
                    background-color: transparent;
                }
            }
        }
    }
}

// Cart Update Option
.cart-update-option {
    border: 1px solid #ccc;
    margin-top: 15px;
    padding: 15px 20px;
    @include align-items(center);
    @include justify-content(space-between);

    @media #{$desktop-device,$laptop-device} {
        margin-top: 0;
        border-top: 0 solid transparent;
    }

    .apply-coupon-wrapper {
        width: 55%;

        @media #{$large-mobile, $tablet-device} {
            width: auto;
        }

        form {
            @include align-items(center);
            @include justify-content(center);
            white-space: nowrap;

            input {
                border: 1px solid #ccc;
                font-size: 14px;
                padding: 12px 10px;
                outline: none;
                @include transition(0.4s);
                margin-right: 15px;
                width: 100%;

                &:focus,
                &:active {
                    border-color: $brand-color;
                }
            }
        }
        @media #{$large-mobile} {
            & button {
                display: block;
                width: 100%;
                margin-top: 15px;
                border-radius: 0;
            }
        }
    }

    .btn-brand {
        padding: 18px 30px;

        @media #{$large-mobile} {
            display: block;
            width: 100%;
            margin-top: 15px;
        }
    }
    @media #{$large-mobile} { 
        & .cart-update {
            .check-btn {
                display: block;
                text-align: center;
                margin-top: 15px;
                border-radius: 0;
            }
        }
    }
}

.cart-calculator-wrapper {
    margin-top: 30px;
    background-color: #f8f8f8;

    h3 {
        color: $black;
        font-size: 18px;
        font-weight: 500;
        padding: 27px 15px 25px;
        margin-bottom: 0;
    }

    .cart-calculate-items {
        font-weight: 500;

        .table {
            margin-bottom: 0;

            tr {
                td {
                    padding: 15px 20px;
                    &:nth-child(2) {
                        color: $black-soft;
                        text-align: right;
                    }

                    &.total-amount {
                        color: $brand-color-dark;
                        font-weight: 700;
                    }
                }
            }
        }
    }
    & a {
        border-radius: 0;
        text-align: center;
    }
}