/* Basket popup */

.basket-popup{
	position: fixed;
	transform: translate(-50%, 200px);
	bottom: 10px;
	left: 50%;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
    border: 1px solid rgba(var(--rgb-primary), .06);
	border-radius: .5em;
	/* overflow: hidden; */
	transition: 400ms ease-in-out;
	opacity: 0;
	z-index: 500;
}

.basket-popup.active{
	transform: translate(-50%, 0);
	opacity: 1;
}

/* // Initials for phone */

.basket-popup .initials{
	--width:60px;
	--height: 50px;
	position: absolute;
	bottom: 10px;
	left: calc(var(--width) * -1);
	height: var(--height);
	width: var(--width);
	border-radius: 6px 0 0 6px;
	background: var(--body-color);
	display: flex;
	justify-content: center;
	align-items: center;
    border: 2px solid rgba(var(--rgb-primary), .06);
	border-right: none;
	display: none;
	transition: 500ms;
}

.basket-popup .initials:active{
	background: var(--primary);
	color: var(--body-color);
}

.basket-popup .items-holder{
	display: flex;
	align-items: center;
	padding: 20px;
	background: var(--body-color);
	border-radius: .5em;
}

.basket-popup .items-holder .img-holder{
	--size: 5em;
	height: var(--size);
	width: 6em;
	position: relative;
	background: rgba(var(--rgb-primary), .06);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 6px;
}

.basket-popup .items-holder .img-holder img{
	width: 2.5em;
	border-radius: 4px;
	z-index: 2;
}

.basket-popup .items-holder .img-holder::before,
.basket-popup .items-holder .img-holder::after{
	content: "";
	width: 2.5em;
	height: 4em;
	border-radius: 4px;
	position: absolute;
	transform: rotate(-15deg);
	margin-left: -20px;
	transition: 400ms;
}

.basket-popup .items-holder .img-holder.one::after,
.basket-popup .items-holder .img-holder.two::before {
  transition: 400ms;
}

.basket-popup .items-holder .img-holder.one::after{
	background: var(--img1);
	background-size: cover;
	transform: rotate(-15deg);
	margin-right: 20px;
}

.basket-popup .items-holder .img-holder.two::before{
	background: var(--img2);
	background-size: cover;
	transform: rotate(15deg);
	margin-left: 20px;
}

.basket-popup .items-holder .info{
	margin: 0 40px 0 20px;
}

.basket-popup .items-holder .info .price{
	font-weight: 600;
	font-size: 1.3em;
}

.basket-popup .items-holder .info span{
	font-size: .9em;
	color: rgba(var(--rgb-primary), .7);
	text-transform: uppercase;
}

.basket-popup .items-holder .btn-holder{
	align-self: flex-end;
}

.basket-popup .items-holder .btn-holder a{
	display: block;
	margin: auto;
	background: var(--primary);
	border-radius: .5em;
	font-weight: 500;
	padding: 10px 20px;
	color: #fff;
	white-space: nowrap;
	border: 2px solid transparent;
}

.basket-popup .items-holder .btn-holder a:hover{
	border-color: var(--primary);
	background: var(--body-color);
	color: var(--primary);
}

.basket-popup .items-holder .btn-holder a i:first-child{
	margin-right: 7px;
	font-size: .8em;
}

.basket-popup .items-holder .btn-holder a i:last-child{
	margin-left: 10px;
}

.basket-popup .items-holder .close-container{
	align-self: flex-start;
}

.basket-popup .items-holder .close-container .close{
	--size: 1.5em;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: 400ms;
	cursor: pointer;
}

.basket-popup .items-holder .close-container .close:hover{
	background: rgba(var(--rgb-primary), .06);
}

@media screen and (max-width: 800px){
	.basket-popup{
		transform: translate(140%,0);
		left: 0;
		right: 0;
		bottom: 60px;
		border-radius: 0;
		border-width: 2px 0 0 0; 
	}
	.basket-popup.active{
		transform: translate(100%,0);
	}

	.basket-popup .initials{
		display: flex;
	}

	.basket-popup .initials.reposition{
		bottom: unset;
		left: unset;
		top: calc(var(--height) * -1);
		right: 20px;
		border-right: 2px solid rgba(var(--rgb-primary), .06);
		border-bottom: none;
		border-radius: 6px 6px 0 0;
	}

	.basket-popup.show{
		transform: translate(0,0);
	}

	.basket-popup .items-holder{
		flex-wrap: wrap;
		gap: 20px;
	}

	.basket-popup .itmes-holder .img-holder,
	.basket-popup .items-holder .info{
		flex: 1;
	}

	.basket-popup .items-holder .btn-holder{
		flex: 2;
	}

	.basket-popup .items-holder .btn-holder a{
		display: flex;
		align-items: center;
	}

	.basket-popup .items-holder .btn-holder a i:last-child{
		margin-left: auto;
	}

	.basket-popup .items-holder .close-container {
		position: absolute;
		right: 20px;
	}
}
