.mst-qv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	overflow-x: hidden;
	overflow-y: auto;
}

.mst-qv-modal.open {
	display: block;
}

.mst-qv-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.mst-qv-modal.open .mst-qv-overlay {
	opacity: 1;
}

.mst-qv-dialog {
	position: relative;
	max-width: 920px;
	width: calc(100% - 40px);
	margin: 60px auto;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.mst-qv-modal.open .mst-qv-dialog {
	transform: translateY(0);
	opacity: 1;
}

.mst-qv-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	color: #777777;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.mst-qv-close:hover,
.mst-qv-close:focus {
	color: #ed516c;
	background: #ffffff;
}

.mst-qv-body {
	padding: 28px;
	min-height: 220px;
}

.mst-qv-loader {
	width: 42px;
	height: 42px;
	margin: 90px auto;
	border: 4px solid #eeeeee;
	border-top-color: #ed516c;
	border-radius: 50%;
	animation: mstqvspin 0.8s linear infinite;
}

@keyframes mstqvspin {
	to { transform: rotate(360deg); }
}

.mst-qv-product {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: flex-start;
}

.mst-qv-image {
	flex: 0 0 46%;
}

.mst-qv-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.mst-qv-summary {
	flex: 1;
	min-width: 260px;
}

.mst-qv-summary .product_title {
	font-size: 24px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.mst-qv-summary .woocommerce-product-rating {
	margin-bottom: 10px;
}

.mst-qv-summary .price {
	font-size: 22px;
	margin: 0 0 16px;
	color: #ed516c;
	text-decoration: none;
}

.mst-qv-summary .price ins,
.mst-qv-summary .price bdi {
	text-decoration: none;
}

.mst-qv-summary .price del {
	text-decoration: line-through;
}

.mst-qv-summary .woocommerce-product-details__short-description {
	margin-bottom: 18px;
	color: #555555;
	line-height: 1.6;
}

.mst-qv-summary form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0 0 20px;
}

/* Quantity input group */
.mst-qv-summary form.cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e3e3e6;
	border-radius: 50px;
	background: #f7f7f9;
	margin: 0;
	height: 48px;
	min-width: 116px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mst-qv-summary form.cart .quantity:hover,
.mst-qv-summary form.cart .quantity:focus-within {
	border-color: #ed516c;
	box-shadow: 0 0 0 3px rgba(237, 81, 108, 0.12);
}

.mst-qv-summary form.cart .quantity .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.mst-qv-summary form.cart .qty {
	width: 100% !important;
	height: 100%;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #222222;
	padding: 0;
	border-radius: 50px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.mst-qv-summary form.cart .qty::-webkit-outer-spin-button,
.mst-qv-summary form.cart .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Add to cart button */
.mst-qv-summary .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 32px;
	border: 0;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	cursor: pointer;
	flex: 1 1 auto;
	min-width: 160px;
	transition: box-shadow 0.25s ease, transform 0.1s ease, opacity 0.2s ease;
}

.mst-qv-summary .single_add_to_cart_button:hover,
.mst-qv-summary .single_add_to_cart_button:focus {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mst-qv-summary .single_add_to_cart_button:active {
	transform: translateY(1px);
}

.mst-qv-summary .single_add_to_cart_button.loading {
	opacity: 0.7;
	pointer-events: none;
}

.mst-qv-summary .product_meta {
	font-size: 13px;
	color: #888888;
	margin-bottom: 18px;
}

.mst-qv-summary .product_meta a {
	color: #555555;
}

.mst-qv-details {
	display: inline-block;
}

.mst-qv-error {
	text-align: center;
	color: #ed516c;
	margin: 90px 0;
}

body.mst-qv-open {
	overflow: hidden;
}

@media (max-width: 700px) {
	.mst-qv-dialog {
		margin: 20px auto;
	}

	.mst-qv-body {
		padding: 20px;
	}

	.mst-qv-image {
		flex: 1 1 100%;
	}

	.mst-qv-summary {
		min-width: 0;
	}

	.mst-qv-summary form.cart {
		flex-direction: column;
	}

	.mst-qv-summary .single_add_to_cart_button {
		flex-basis: 100%;
		min-width: 0;
	}
}
