.qv-loading-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #333;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: translate(-50%, -50%) rotate(0deg);
	}

	100% {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

#qv-popup-wrapper {
	display: none;
	position: fixed;
	top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
	left: 0;
	bottom: 0;
	width: 100%;
	z-index: 9999;
}

#qv-popup-wrapper.is-open {
	display: block;
}

.qv-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}


.qv-popup-container {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	position: absolute;
	top: 0;
	right: -100%;
	width: 100%;
	max-width: 400px;
	height: 100%;
	background: #fff;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
	transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	z-index: 999;
}

@media (max-width:767px){
	#qv-popup-wrapper {
		top: 0;
	}

	.qv-popup-container {
		top: auto;
		bottom: 0;
		height: 70%;
		max-width: 100%;
	}
}

#qv-popup-wrapper.is-open .qv-popup-container {
	right: 0;
}


.qv-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding: 20px;
}

.qv-header h2 {
	margin: 0;
	font-size: 22px;
}

.qv-close-button {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0 5px;
	color: #555;
}


.qv-popup-content{
	overflow-y: auto;
	padding-bottom: 70px;
}

.qv-variations {
	/* 	padding: 20px; */
	margin-bottom: 20px;
}

.qv-size-option {
	padding: 8px 15px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-bottom: 1px solid #eee;
}
.qv-size-options > div{
	padding: 12px 25px;
}

.qv-variations > span{
	padding: 15px 25px;
	border-bottom: 1px solid #eee;
	display: block;
	font-size: 15px;
}

.qv-size-option.selected {
	background-color: black;
	color: #fff !important;
	border-color: #333;
}

.qv-size-option.out-of-stock {
	/*   background-color: #f5f5f5; */
	color: #aaa;
	border-color: #eee;
	/*cursor: not-allowed;*/
	text-decoration: line-through;
}

/* Add to Cart */
.qv-add-to-cart-form{
	display: block !important;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 15px;
	background-color: #fff;
	border-top: 1px solid #d9d9d9;
}

#qv-popup-wrapper .qv-add-to-cart-button {
	width: 100%;
	padding: 15px;
	background-color: #333;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	transition: background-color 0.2s ease;
}

#qv-popup-wrapper .qv-add-to-cart-button:hover {
	background-color: #000;
}

.qv-add-to-cart-button:disabled {
	display: none;
}
