.vwpv-card {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: #f0f0f0;
	border-radius: 16px;
	padding: 32px 36px 36px;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color: #111;
}

.vwpv-title {
	margin: 0 0 32px;
	padding: 0;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #000;
}

.vwpv-section {
	width: 100%;
	margin-bottom: 32px;
	box-sizing: border-box;
}

.vwpv-section:last-child {
	margin-bottom: 0;
}

.vwpv-color-label,
.vwpv-section-label {
	margin: 0 0 16px;
	padding: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #111;
}

.vwpv-color-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	width: 100%;
}

.vwpv-swatch {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 4px;
	position: relative;
	flex-shrink: 0;
}

.vwpv-swatch input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.vwpv-swatch-circle {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	box-shadow: 0 0 0 2px #f0f0f0, 0 0 0 2px transparent;
	transition: box-shadow 0.15s ease;
}

.vwpv-swatch input[type="radio"]:checked + .vwpv-swatch-circle {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}

.vwpv-swatch input[type="radio"]:focus-visible + .vwpv-swatch-circle {
	outline: 2px solid #111;
	outline-offset: 4px;
}

.vwpv-swatch.is-hidden {
	display: none;
}

.vwpv-storage-options {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

.vwpv-storage-btn {
	display: block;
	width: 100%;
	margin: 0;
	cursor: pointer;
	box-sizing: border-box;
}

.vwpv-storage-btn input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.vwpv-storage-btn__text {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 17px 20px;
	border: 1px solid #d4d4d4;
	border-radius: 4px;
	background: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	color: #111;
	transition: border-color 0.15s ease, border-width 0.15s ease, box-shadow 0.15s ease;
}

.vwpv-storage-btn input[type="radio"]:checked + .vwpv-storage-btn__text {
	border: 3px solid #111;
	padding: 15px 18px;
}

.vwpv-storage-btn input[type="radio"]:focus-visible + .vwpv-storage-btn__text {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.vwpv-storage-btn.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.vwpv-storage-btn.is-hidden {
	display: none;
}

/* Hide parent product gallery thumbs — only variation additional images show */
.vwpv-gallery-active .flex-control-nav,
.vwpv-gallery-active .flex-control-thumbs,
.vwpv-has-variation-gallery .flex-control-nav,
.vwpv-has-variation-gallery .flex-control-thumbs {
	display: none !important;
}

.vwpv-gallery-active .woocommerce-product-gallery__image:not(:first-child) {
	display: none !important;
}

/* Main image slider — click main image or arrows to cycle variation images */
.woocommerce-product-gallery.vwpv-gallery-slider {
	position: relative;
}

.woocommerce-product-gallery.vwpv-gallery-slider .woocommerce-product-gallery__wrapper {
	position: relative;
}

.woocommerce-product-gallery.vwpv-gallery-slider .woocommerce-product-gallery__image:first-child a {
	cursor: pointer;
}

.vwpv-gallery-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 2;
}

.vwpv-gallery-nav__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.vwpv-gallery-nav__btn span {
	display: block;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	margin-top: -5px;
}

.vwpv-gallery-nav__btn:hover,
.vwpv-gallery-nav__btn:focus-visible {
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
	outline: none;
}

.vwpv-gallery-nav__btn--prev {
	left: 10px;
}

.vwpv-gallery-nav__btn--next {
	right: 10px;
}

.vwpv-gallery-nav__btn--prev,
.vwpv-gallery-nav__btn--next {
	background: rgba(255, 255, 255, 0.92) !important;
	color: #111 !important;
}

@media (max-width: 767px) {
	.vwpv-gallery-nav__btn {
		width: 34px;
		height: 34px;
	}

	.vwpv-gallery-nav__btn span {
		font-size: 24px;
	}

	.vwpv-gallery-nav__btn--prev {
		left: 6px;
	}

	.vwpv-gallery-nav__btn--next {
		right: 6px;
	}
}

/* Variation additional images under featured image */
.vwpv-variation-gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	margin-top: 14px;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	box-sizing: border-box;
}

.vwpv-variation-gallery__item {
	display: block;
	width: 72px;
	height: 72px;
	padding: 0;
	margin: 0;
	border: 2px solid #d4d4d4;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	flex-shrink: 0;
	transition: border-color 0.15s ease;
}

.vwpv-variation-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vwpv-variation-gallery__item.is-active,
.vwpv-variation-gallery__item:hover {
	border-color: #111;
}

.vwpv-variation-gallery__item:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.elementor-widget-woocommerce-product-images .vwpv-variation-gallery {
	display: flex !important;
	justify-content: center !important;
}

.elementor-widget-woocommerce-product-images.vwpv-has-variation-gallery .woocommerce-product-gallery__wrapper {
	position: relative;
}

.woocommerce-product-gallery.vwpv-gallery-active + .vwpv-variation-gallery {
	margin-top: 14px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 767px) {
	.vwpv-card {
		padding: 24px 20px 28px;
		border-radius: 12px;
	}

	.vwpv-title {
		font-size: 22px;
		margin-bottom: 24px;
	}

	.vwpv-section {
		margin-bottom: 24px;
	}

	.vwpv-color-label,
	.vwpv-section-label {
		font-size: 16px;
		margin-bottom: 14px;
	}

	.vwpv-storage-btn__text {
		padding: 15px 16px;
		font-size: 15px;
	}

	.vwpv-storage-btn input[type="radio"]:checked + .vwpv-storage-btn__text {
		padding: 13px 14px;
	}
}
