.product-in-cart-popup {
	position: fixed;
	padding: 24px;
	width: 100%;
	max-width: 515px;
	border-radius: 32px;
	background-color: $color-white;
	box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	transition: top 0.3s ease;
	z-index: 9999;
}

.product-in-cart-popup__close-btn {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 24px;
	height: 24px;
	z-index: 1;

	svg {
		width: 100%;
		height: 100%;
	}

	@include desktop {
		&:hover {
			color: $color-green;
		}
	}
}

.product-in-cart-popup__content {
	display: flex;
	flex-flow: column;
	gap: 20px;
}

.product-in-cart-popup__title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.product-in-cart-popup__product {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 16px;
}

.product-in-cart-popup__product-cover {
	flex: 0 0 84px;
	height: 64px;
	border-radius: 20px;
	background-color: $color-surface;

	img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: contain;
		object-position: center;
		pointer-events: none;
	}
}

.product-in-cart-popup__product-name {
	flex: 1;
	font-size: 16px;
	font-weight: 500;
	line-height: 18px;
	-webkit-line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-in-cart-popup__product-price {
	font-size: 16px;
	font-weight: 500;
	line-height: 18px;
}

.product-in-cart-popup__footer {
	display: flex;
	flex-flow: row nowrap;
	gap: 10px;
}

.product-in-cart-popup__btn {
	$self: &;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 0px 24px;
	border-radius: 16px;
	background-color: $color-green;
	font-weight: 500;
	font-size: 16px;
	line-height: 18px;
	color: $color-white;
	box-sizing: border-box;

	@include desktop {
		&:not(#{ $self }--primary):hover {
			background-color: $color-green-hover;
		}
	}

	&--primary {
		color: $color-green;
		background-color: rgba($color-green, 0.1);

		@include desktop {
			&:is(#{ $self }--primary):hover {
				background-color: rgba($color-green, 0.2);
			}
		}
	}
}
