// Checkout
.checkout-progress-bar {
	display: block;
	margin: 0 0 3rem;
	font-size: 0;
	line-height: 1.4;
	counter-reset: i;

	li {
		display: inline-block;
		position: relative;
		width: 50%;
		margin: 0;
		text-align: center;
		vertical-align: top;

		&:before {
			position: absolute;
			top: 1.9rem;
			left: 0;
			width: 100%;
			height: .7rem;
			transition: background .3s;
			background-color: #e4e4e4;
			content: '';
		}

		> span {
			display: inline-block;
			width: 100%;
			padding-top: 4.5rem;
			color: #ccc;
			font-size: 1.6rem;
			font-weight: 300;
			word-wrap: break-word;

			&:before,
			&:after {
				position: absolute;
				top: 0;
				left: 50%;
				transition: background .3s;
				border-radius: 50%;
				content: '';
			}

			&:before {
				width: 3.8rem;
				height: 3.8rem;
				margin-left: -1.9rem;
				background-color: #e4e4e4;
			}

			&:after {
				top: .6rem;
				width: 2.6rem;
				height: 2.6rem;
				margin-left: -1.3rem;
				background: #fff;
				color: #777;
				font-weight: 600;
				content: counter(i);
				counter-increment: i;
			}
		}

		&.active {
			&:before,
			> span:before {
				background-color: #ff5501;
			}

			> span {
				color: #000;
			}

			> span:after {
				font-family: 'porto';
				content: '\e84e';
			}
		}

		&:first-child {
			&:before {
				border-radius: .6rem 0 0 .6rem;
			}
		}

		&:last-child {
			&:before {
				border-radius: 0 .6rem .6rem 0;
			}
		}
	}
}


.shipping-step-addresses {
	@include clearfix;

	margin-bottom: 2rem;
	font-size: 0;
}

.shipping-address-box {
	display: inline-block;
	position: relative;
	width: 100%;
	min-height: 240px;
	margin: 0;
	padding: 1.8rem 3.2rem 1rem 1.8rem;
	transition: .3s border-color;
	border: .2rem solid transparent;
	font-size: 1.3rem;
	line-height: 3rem;
	vertical-align: top;
	word-wrap: break-word;

	&.active {
		border-color: #ff5501;

		&:after {
			position: absolute;
			top: 0;
			right: 0;
			width: 2.7rem;
			height: 2.7rem;
			padding-top: .2rem;
			background-color: #ff5501;
			color: #fff;
			font-family: 'porto';
			font-size: 1.9rem;
			line-height: 2.1rem;
			text-align: center;
			content: '\e84e';
		}

		.address-box-action {
			visibility: hidden;
		}
	}
}

.address-box-action {
	margin-top: 2rem;

	.btn {
		letter-spacing: 0;
		text-transform: initial;

		&.btn-sm {
			padding: .85rem 1.2rem;
			font-size: 1.3rem;

			&.btn-link {
				padding-right: 0;
				padding-left: 0;
			}
		}
	}
}

.btn-new-address {
	margin-bottom: 1.2rem;
	padding: .95rem 1.3rem;
	letter-spacing: 0;
	text-transform: initial;
}

.table-step-shipping {
	max-width: 600px;

	tr {
		td {
			padding: 1.8rem 1.5rem;
			border: 0;
			border-bottom: 1px solid #ccc;
		}
	}
}


.order-summary {
	margin-top: 3.3rem;
	margin-bottom: 3rem;
	padding: 2.2rem 2.7rem;
	border: 1px solid #ddd;
	background: #f5f5f5;

	h3 {
		margin-bottom: 1.3rem;
		font-size: 2.5rem;
		font-weight: 300;
	}

	h4 {
		margin-bottom: 0;
		border-top: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		font-size: 1.5rem;
		font-weight: 600;

		a {
			display: block;
			position: relative;
			padding: 1rem 2rem 1rem 0;

			&:after {
				display: inline-block;
				position: absolute;
				top: 50%;
				right: .4rem;
				transform: translateY(-50%);
				font-family: 'porto';
				font-size: 1.5rem;
				font-weight: 400;
				content: '\e81b';
			}

			&.collapsed:after {
				content: '\e81c';
			}
		}
	}
}

.table-mini-cart {
	margin-bottom: 0;

	tr {
		td {
			padding: 2rem 0;
			border: 0;
			border-bottom: 1px solid #ccc;
			vertical-align: top;
		}
	}

	.product-col {
		.product-image-container {
			max-width: 75px;
			padding-right: 1.5rem;
			vertical-align: top;
		}

		> div {
			display: table-cell;
			padding-top: .7rem;
			vertical-align: top;
		}
	}

	.price-col {
		padding-top: 2.5rem;
		font-size: 1.6rem;
		font-weight: 400;
	}

	.product-title {
		display: block;
		max-width: 170px;
		margin-bottom: .8rem;
		font-size: 1.4rem;
		font-weight: 600;
	}

	.product-qty {
		display: block;
		color: #777;
		font-size: 1.3rem;
	}
}

#checkout-shipping-address {
	display: none;
	padding-left: 3rem;
	line-height: 3rem;

	&.show {
		display: block;
	}
}



//checkout new
.cart-page-main-content {
    justify-content: space-between;
    .cart-col {
        @include mq(md, max) {
            width: 100%;
            max-width: 100%;
            .cart-box {
                width: 100%;
                max-width: 100%;
            }
        }

    }
    .product-list-col {
        flex: 1;
        @include mq(md, max) {
            width: 100%;
            max-width: 100%;
        }
    }
}
.checkout-page {
    .checkout-payment {
        margin-bottom: 3rem;
        max-width: 770px;
    }
    .cart-box {
        width: 470px;
        max-width: 470px;
        min-height: 320px;
        border-radius: 4px;
        border: 1px solid #CBE7EB;
        background: #FFF;
        padding: 30px;
        box-shadow: 0 4px 23px 0 rgba(203, 231, 235, 0.25);
        margin-left: auto;

        display: flex;
        flex-direction: column;
        &.cart-box--large {
            max-width: 750px;
            width: auto;
        }
        @include mq(xl, max) {
            width: 360px;
        }
        @include mq(md, max) {
            padding-left: 15px;
            padding-right: 15px;
            min-height: 220px;
            margin-bottom: 30px;
        }
        .cart-title {
            font-family: $font-primary-bold;
            font-size: 32px;
            color: $color-primary;
            @include mq(md, max) {
                font-size: 24px;
                margin-bottom: 20px;
            }
        }
        .cart-table {
            margin-top: auto;
        }
        .main-btn {
            font-family: $font-primary-bold;
            width: 100%;
            min-height: 48px;
            @include mq(md, max) {
               min-height: 40px;
            }
        }
        .clear-cart {
            display: none;
            margin-bottom: 24px;
            @include mq(md, max) {
                margin-bottom: 12px;
            }
        }

        .cart-table {
            margin-bottom: 20px;
            th, td {
                padding-top: 10px;
                padding-bottom: 10px;
            }
            .cart-subtotal {
                font-family: $font-primary-bold;
                font-size: 16px;
                color: #252525;
                td {
                    text-align: right;
                }
            }
            .order-total {
                th {
                    font-family: $font-primary-bold;
                    font-size: 18px;
                    color: #252525;
                    vertical-align: bottom;
                    @include mq(md, max) {
                        font-size: 16px;
                    }
                }
                td {
                    display: flex;
                    flex-direction: column;
                    text-align: right;
                    .amount-refined {
                        font-family: $font-primary-bold;
                        font-size: 24px;
                        color: $color-primary;
                        order: 1;
                        @include mq(md, max) {
                            font-size: 22px;
                        }
                    }
                    .amount {
                        font-family: $font-primary-light;
                        font-size: 20px;
                        color: #999;
                        text-decoration: line-through;
                    }
                }
            }
        }
    }
    .shop-table-cart {
        .shop-table-cart__title-box {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 42px;
            @include mq(md, max) {
                margin-bottom: 24px;
            }
        }
        .shop-table-cart__title {
            font-family: $font-primary-bold;
            font-size: 22px;
            color: #2D2D2D;
            text-transform: uppercase;
            border-radius: 30px;
            background: #CBE7EB;
            min-width: 256px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 68px;
            @include mq(md, max) {
                min-height: 48px;
                font-size: 20px;
            }
        }
        .shop-table-box {
            max-width: 600px;
            width: 100%;
            margin: 0 auto;
            #scrollTop {
                width: 100%;
            }
        }
        .shop-table {
            width: 100%;
            tr, thead {
                &:not(:last-child) {
                    border-bottom: 1px solid #E6E6E6;
                }
            }
            th, td {
                padding: 16px 12px;
                &:last-child {
                    text-align: right;
                }
            }
            thead {
                th {
                    font-family: $font-primary-bold;
                    font-size: 18px;
                    text-transform: uppercase;
                    color: #2d2d2d;
                }
            }
            td {
                font-family: $font-primary;
                font-size: 16px;
                color: #777;
            }
            tfoot {
                th, td {
                    font-family: $font-primary-bold;
                    color: #000;
                }
                .order-total {
                    th, td {
                        font-size: 18px;
                    }
                }
            }
        }
        .see-more-all {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            .see-more-all-btn {
                &.main-btn {
                    max-width: 250px;
                    border-color: $color-primary;
                }
            }
        }
        .shop-table-bottom-box {
            padding-top: 30px;
            border-top: 1px solid #E6E6E6;
            .info {
                font-family: $font-primary;
                font-size: 16px;
                color: #777;
                padding-top: 20px;
                padding-bottom: 20px;
            }
        }
    }
    .cart-table-section {
        table {
            margin-bottom: 35px;
            width: 100%;
            thead {
                th {
                    font-family: $font-primary-bold;
                    border-bottom: 1px solid #efefef;
                    padding: 16px 10px;
                    line-height: 1.2;
                    font-size: 14px;
                    color: #252525;
                    text-align: center;

                    &.product-subtotal {
                        text-align: right;
                    }

                    @include mq(md, max) {
                        display: none;
                    }
                }
            }
            tbody {
                @include mq(md, max) {
                    display: block;
                    width: 100%;
                }
                tr {
                    @include mq(md, max) {
                        display: block;
                        width: 100%;
                    }
                    .desktop-hide {
                        @include mq(md) {
                            display: none!important;
                        }
                    }
                    td {
                        @include mq(md, max) {
                            display: block!important;
                            width: 100%;
                        }
                        &.product-remove,
                        &.product-thumbnail {
                            @include mq(md, max) {
                                display: none!important;
                            }
                        }
                    }
                }
                .product-data {
                    &:not(:last-child) {
                        border-bottom: 1px solid #e8e8e8;
                        @include mq(md, max) {
                            border: none;
                        }
                    }
                    .product-image {
                        width: 100px;
                        display: block;
                        @include mq(xxl, max) {
                            width: 70px;
                        }
                    }
                    &:not(:last-of-type) {
                        margin-bottom: 30px;
                    }
                    td[data-label] {
                        position: relative;
                        &::after {
                            content: attr(data-label);
                            position: absolute;
                            top: 15px;
                            bottom: 15px;
                            align-items: center;
                            margin: auto 0;
                            left: 0;
                            text-align: left;
                            font-size: 12px;
                            color: $color-primary;
                            text-transform: uppercase;
                            font-family: $font-primary-bold;
                            display: none;
                            @include mq(md, max) {
                                display: flex;
                            }
                        }
                        &:not(:last-of-type) {
                            @include mq(md, max) {
                                border-bottom: 1px dashed #D8D8D8;
                                padding-left: 50%;
                                display: block;
                                width: 100%;
                                text-align: right;
                            }
                        }
                    }
                    td.product-name {
                        .title {
                            font-family: $font-primary-bold;
                            font-size: 12px;
                            color: $color-primary;
                        }
                        @include mq(md, max) {
                            display: flex!important;
                            align-items: center;
                            border-bottom: none;
                            .image {
                                margin-right: 20px;
                            }
                            .title {
                                margin-right: 20px;
                            }
                            .remove {
                                align-self: flex-start;
                                font-size: 24px;
                                margin-left: auto;
                            }
                        }
                    }
                    td {
                        padding: 30px 12px;
                        @include mq(md, max){
                            padding: 5px 0;
                        }
                    }
                    .product-remove {
                        text-align: center;
                        padding-left: 0;
                        padding-right: 0;
                        vertical-align: top;
                        cursor: pointer;
                    }
                    .product-subtotal {
                        text-align: right;
                        .product-subtotal-price {
                            display: flex;
                            flex-direction: column;
                        }
                    }
                }
                .order-count-box {
                    margin-bottom: 0;
                    height: 32px;
                    .icon-btn {
                        width: 32px;
                        &.minus {
                            border-radius: 4px 0 0 4px;
                        }
                        &.plus {
                            border-radius: 0 4px 4px 0;
                        }
                        .icon {
                            width: 12px;
                            height: 12px;
                        }
                    }
                }
                .amount {
                    font-family: $font-primary-bold;
                    font-size: 16px;
                    order: 2;
                    color: $color-primary;
                    white-space: nowrap;
                    @include mq(md) {
                        float: right;
                    }
                    @include mq(md, max) {
                        font-size: 14px;
                    }
                }
                .amount-refined + .amount {
                    font-family: $font-primary;
                    font-size: 14px;
                    color: #999;
                    text-decoration: line-through;
                    order: 1;
                }
                .total-price{
                    td {
                        padding-top: 22px;
                        border-top: 1px solid $color-primary;
                        @include mq(md, max) {
                            padding: 5px 0;
                            display: flex!important;
                            justify-content: space-between;
                        }
                        .total-price-title {
                            display: inline-block;
                            font-family: $font-primary-bold;
                            font-size: 20px;
                            color: $color-primary;
                            @include mq(md, max) {
                                font-size: 18px;
                            }
                        }
                        .amount {
                            font-size: 20px;
                            display: inline-block;
                        }
                    }
                }
                .btn-box td {
                    text-align: right;
                    padding: 0;
                    border: 0;
                    button {
                        color: rgba(0, 0, 0, 0.8);
                        padding: 0.6em 1em 0.4em;
                        border: 1px solid #ccc;
                        letter-spacing: .3px;
                        background: #e6e6e6;
                        border-radius: 3px;
                        margin-top: 35px;
                        font-size: 12px;
                        height: 42px;
                    }
                }
            }
        }
    }

    .form-content {
        .top-box {
            margin-bottom: 30px;
        }
    }
}

/*.sticky-section--outer  {
    position: relative;
    display: flex;
    align-items: flex-start;
    .sticky-section {
        height: 100vh;
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        justify-items: center;
        order: 1;
    }
}*/
