.wcqv2-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.6 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
	padding: 20px;
	box-sizing: border-box;
}

.wcqv2-overlay.wcqv2-active {
	opacity: 1;
	visibility: visible;
}

body.wcqv2-lock-scroll {
	overflow: hidden;
}

.wcqv2-modal {
	background: #fff;
	max-width: 900px;
	width: 100%;
	max-height: 70vh;
	/* overflow: hidden only clips to the rounded corners here — the actual
	   scrolling happens one level down, on .wcqv2-body. Chromium has a
	   rendering bug where position: sticky content can bleed outside a
	   border-radius when overflow/scrolling and the radius are on the
	   same element; keeping the radius-clipping box separate from the
	   scrolling box avoids it. */
	overflow: hidden;
	border-radius: 6px;
	position: relative;
	box-sizing: border-box;
}

.wcqv2-body {
	max-height: 70vh;
	overflow-y: auto;
	padding: 30px;
	box-sizing: border-box;
}

.wcqv2-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	padding: 4px 8px;
}

.wcqv2-loading {
	text-align: center;
	padding: 60px 0;
	color: #666;
}

.wcqv2-error,
.wcqv2-add-error {
	color: #b32d2e;
	text-align: center;
}

.wcqv2-product {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
}

.wcqv2-gallery {
	flex: 1 1 320px;
	max-width: 400px;
	/* Sticks to the top of .wcqv2-modal's scrollport and is exactly as
	   tall as the visible viewport (max-height minus its vertical
	   padding), so the image centered inside it via flex sits at a fixed
	   distance from the top/bottom of what's actually visible and holds
	   that position while .wcqv2-details scrolls beside it. */
	position: sticky;
	top: 0;
	height: calc( 70vh - 60px );
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 4px;
}

.wcqv2-gallery img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
	transition: transform 0.35s ease;
}

.wcqv2-gallery:hover img {
	transform: scale( 1.15 );
}

.wcqv2-details {
	flex: 1 1 320px;
}

.wcqv2-title {
	margin-top: 0;
	/* Pins the title to the top of the visible viewport (same scrolling
	   ancestor and top offset as .wcqv2-gallery) while the rest of
	   .wcqv2-details scrolls past underneath it. The solid background
	   and z-index keep that scrolling content from showing through. */
	position: sticky;
	top: 0;
	z-index: 1;
	background: #fff;
	padding: 4px 0;
}

.wcqv2-price {
	font-size: 1.3em;
	margin: 10px 0;
}

.wcqv2-excerpt {
	margin-bottom: 15px;
	color: #555;
}

.quantity {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.wcqv2-cart-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0;
}

.wcqty-btn {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border: none;
	background: #b3372e !important;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.wcqty-btn:hover {
	background: #942b23;
}

input.qty {
	width: 48px !important;
	height: 40px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 20px !important;
	text-align: center;
	padding: 0 4px;
	font-size: 15px;
	/* Hide native number spinner arrows so the box reads cleanly next to
	   our own round +/- buttons instead of showing a second, mismatched
	   set of controls. */
	-moz-appearance: textfield;
	appearance: textfield;
}

input.qty::-webkit-outer-spin-button,
input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	position: relative;
	background: #b3372e !important;
	color: #fff;
	    border-radius: 20px !important;
    padding: 12px 16px !important;
}
	


.single_add_to_cart_button.wcqv2-loading {
	opacity: 0.6;
	pointer-events: none;
}

.wcqty-price {
	font-weight: 600;
}
