/* ============================================
   PRODUCT GALLERY V2 — MADISON AVENUE STYLE
   ============================================ */

/* --- Base Gallery Wrapper --- */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-product-gallery,
.wcppe-product-gallery {
	position: relative;
	width: 100%;
}

/* --- Sale Badge --- */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-sale-badge,
.wcppe-sale-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 10;
	pointer-events: none;
}

/* ============================================
   DESKTOP: THUMBNAILS LEFT (VERTICAL)
   ============================================ */

.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-desktop,
.wcppe-gallery-desktop {
	display: flex !important;
	gap: 20px;
	align-items: flex-start;
}

/* Thumbnails column — LEFT side */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-thumbnails,
.wcppe-gallery-thumbnails {
	width: 70px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 480px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-thumbnails::-webkit-scrollbar,
.wcppe-gallery-thumbnails::-webkit-scrollbar {
	display: none;
}

/* Individual thumbnail */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-thumb,
.wcppe-gallery-thumb {
	width: 100%;
	aspect-ratio: 1;
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s ease;
	flex-shrink: 0;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-thumb:hover,
.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-thumb.active,
.wcppe-gallery-thumb:hover,
.wcppe-gallery-thumb.active {
	border-color: #000000;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-thumb img,
.wcppe-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Main image area */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-main,
.wcppe-gallery-main {
	flex: 1;
	min-width: 0;
}

/* Main image — max-height controlled via Elementor */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-main-image,
.wcppe-gallery-main-image {
	position: relative;
	width: 100%;
	height: auto;
	background: #fafafa;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-main-image img,
.wcppe-gallery-main-image img {
	position: relative;
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.3s;
	max-height: 700px;
	object-fit: cover;
}

/* ============================================
   DESKTOP: THUMBNAILS BOTTOM (HORIZONTAL)
   ============================================ */

.wcppe-thumbs-bottom .wcppe-gallery-desktop {
	flex-direction: column-reverse;
}

.wcppe-thumbs-bottom .wcppe-gallery-thumbnails {
	width: 100%;
	flex-direction: row;
	max-height: none;
	overflow-x: auto;
	overflow-y: hidden;
}

.wcppe-thumbs-bottom .wcppe-gallery-thumb {
	width: 80px;
	flex-shrink: 0;
}

/* ============================================
   MOBILE & TABLET: SWIPEABLE SINGLE IMAGE
   ============================================ */

.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-mobile,
.wcppe-gallery-mobile {
	display: none;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-carousel,
.wcppe-mobile-carousel {
	position: relative;
	overflow: hidden;
	touch-action: pan-y;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-track,
.wcppe-mobile-track {
	display: flex;
	transition: transform 0.3s ease-out;
	cursor: grab;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-track:active,
.wcppe-mobile-track:active {
	cursor: grabbing;
}

/* Mobile slides — max-height controlled via Elementor */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-slide,
.wcppe-mobile-slide {
	min-width: 100%;
	height: auto;
	position: relative;
	background: #fafafa;
	line-height: 0;
	font-size: 0;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-slide img,
.wcppe-mobile-slide img {
	position: relative;
	width: 100%;
	height: auto;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	max-height: 400px;
	object-fit: cover;
}

/* Counter badge */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-counter,
.wcppe-mobile-counter {
	position: absolute;
	bottom: 16px;
	right: 16px;
	background: rgba(0,0,0,0.6);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	z-index: 2;
}

/* Dots navigation */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-dots,
.wcppe-mobile-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
	padding: 0 20px;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-dot,
.wcppe-mobile-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
	padding: 0;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-mobile-dot.active,
.wcppe-mobile-dot.active {
	background: #333;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-lightbox,
.wcppe-gallery-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-lightbox.active,
.wcppe-gallery-lightbox.active {
	display: flex;
	opacity: 1;
	visibility: visible;
}

/* Close button */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-lightbox-close,
.wcppe-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	padding: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
}

.elementor-widget-wcppe-product-gallery-v2 .wcppe-lightbox-close:hover,
.wcppe-lightbox-close:hover {
	opacity: 0.7;
}

/* Lightbox content wrapper — clicking here closes the lightbox */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-lightbox-content,
.wcppe-lightbox-content {
	position: relative;
	width: 90%;
	height: 90%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

/* The image itself — clicking here does NOT close */
.elementor-widget-wcppe-product-gallery-v2 .wcppe-lightbox-content img,
.wcppe-lightbox-content img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: default;
	pointer-events: auto;
}

/* ============================================
   RESPONSIVE: SHOW MOBILE ON TABLET TOO
   ============================================ */

@media (max-width: 1024px) {
	.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-desktop,
	.wcppe-gallery-desktop {
		display: none !important;
	}

	.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-mobile,
	.wcppe-gallery-mobile {
		display: block !important;
	}
}

@media (min-width: 1025px) {
	.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-desktop,
	.wcppe-gallery-desktop {
		display: flex !important;
	}

	.elementor-widget-wcppe-product-gallery-v2 .wcppe-gallery-mobile,
	.wcppe-gallery-mobile {
		display: none !important;
	}
}

/* ============================================
   PRODUCT GALLERY LAYOUTS (LEGACY)
   ============================================ */

.wcppe-gallery-layout-vertical .woocommerce-product-gallery {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

.wcppe-gallery-layout-vertical .flex-viewport {
	order: 2;
	flex: 1;
	min-width: 0;
}

.wcppe-gallery-layout-vertical .flex-control-thumbs {
	order: 1;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcppe-gallery-layout-vertical .flex-control-thumbs li {
	width: 100% !important;
	margin: 0 !important;
}

.wcppe-gallery-layout-horizontal .woocommerce-product-gallery {
	display: flex;
	flex-direction: column;
}

.wcppe-gallery-layout-horizontal .flex-viewport {
	order: 1;
}

.wcppe-gallery-layout-horizontal .flex-control-thumbs {
	order: 2;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcppe-gallery-layout-horizontal .flex-control-thumbs li {
	width: auto !important;
	flex: 0 0 auto;
	margin: 0 !important;
}

@media (max-width: 767px) {
	.wcppe-gallery-layout-mobile_horizontal .woocommerce-product-gallery {
		flex-direction: column;
	}

	.wcppe-gallery-layout-mobile_horizontal .flex-viewport {
		order: 1;
	}

	.wcppe-gallery-layout-mobile_horizontal .flex-control-thumbs {
		order: 2;
		flex-direction: row;
		flex-wrap: wrap;
		margin-right: 0;
		margin-top: 15px;
		width: 100% !important;
	}

	.wcppe-gallery-layout-mobile_horizontal .flex-control-thumbs li {
		width: auto !important;
		flex: 0 0 auto;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.wcppe-gallery-layout-tablet_horizontal .woocommerce-product-gallery {
		flex-direction: column;
	}

	.wcppe-gallery-layout-tablet_horizontal .flex-viewport {
		order: 1;
	}

	.wcppe-gallery-layout-tablet_horizontal .flex-control-thumbs {
		order: 2;
		flex-direction: row;
		flex-wrap: wrap;
		margin-right: 0;
		margin-top: 15px;
		width: 100% !important;
	}

	.wcppe-gallery-layout-tablet_horizontal .flex-control-thumbs li {
		width: auto !important;
		flex: 0 0 auto;
	}
}

/* ============================================
   PRODUCT TABS ACCORDION
   ============================================ */

.wcppe-product-tabs-accordion {
	width: 100%;
}

.wcppe-accordion-item {
	overflow: hidden;
}

.wcppe-accordion-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s ease;
}

.wcppe-accordion-title-text {
	flex: 1;
}

.wcppe-accordion-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.wcppe-accordion-icon-active {
	display: none;
}

.wcppe-accordion-item.active .wcppe-accordion-icon-inactive {
	display: none;
}

.wcppe-accordion-item.active .wcppe-accordion-icon-active {
	display: inline-flex;
}

.wcppe-accordion-content {
	display: none;
	overflow: hidden;
	transition: all 0.3s ease;
}

.wcppe-accordion-item.active .wcppe-accordion-content {
	display: block;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

.wcppe-product-related {
	width: 100%;
}

.wcppe-related-heading {
	margin-top: 0;
}

.wcppe-related-grid {
	display: grid;
}

.wcppe-related-carousel {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.wcppe-related-carousel::-webkit-scrollbar {
	display: none;
}

.wcppe-related-carousel .wcppe-related-product {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 280px;
}

.wcppe-related-product {
	text-align: center;
	transition: all 0.3s ease;
}

.wcppe-related-link {
	text-decoration: none;
	display: block;
	color: inherit;
}

.wcppe-related-image-wrap {
	margin-bottom: 15px;
	overflow: hidden;
}

.wcppe-related-image-wrap img {
	max-width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
	.wcppe-related-product:hover .wcppe-related-image-wrap img {
		transform: scale(1.05);
	}
}

.wcppe-related-title {
	margin: 0 0 10px;
	font-size: 1em;
	font-weight: 500;
	line-height: 1.3;
}

.wcppe-related-price {
	font-weight: 600;
}

.wcppe-related-price del {
	opacity: 0.6;
	margin-right: 5px;
}

/* ============================================
   QUANTITY SELECTOR
   ============================================ */

.wcppe-product-quantity {
	display: inline-block;
}

.wcppe-quantity-wrapper {
	display: inline-flex;
	align-items: center;
}

.wcppe-quantity-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	background: #f7f7f7;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}

.wcppe-quantity-btn:hover {
	background: #eee;
}

.wcppe-quantity-input {
	text-align: center;
	border: 1px solid #ddd;
	border-left: none;
	border-right: none;
	-moz-appearance: textfield;
}

.wcppe-quantity-input::-webkit-outer-spin-button,
.wcppe-quantity-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ============================================
   VARIATIONS SELECTOR
   ============================================ */

.wcppe-product-variations {
	width: 100%;
}

.wcppe-variation-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.wcppe-variation-select {
	width: 100%;
	max-width: 100%;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
	cursor: pointer;
}

/* ============================================
   PRODUCT TAGS
   ============================================ */

.wcppe-product-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
}

.wcppe-tag-label {
	font-weight: 500;
	margin-right: 5px;
}

.wcppe-tag-link {
	display: inline-block;
	text-decoration: none;
	transition: all 0.2s ease;
}

.wcppe-tag-link:hover {
	opacity: 0.8;
}

/* ============================================
   ADD TO CART / BUY NOW BUTTONS
   ============================================ */

.wcppe-add-to-cart-btn,
.wcppe-buy-now-btn {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}

.wcppe-add-to-cart-btn:hover,
.wcppe-buy-now-btn:hover {
	opacity: 0.9;
}

/* ============================================
   PRODUCT CONDITION GRADE
   ============================================ */

.wcppe-condition-grade {
	width: 100%;
}

.wcppe-condition-header {
	gap: 8px;
}

.wcppe-condition-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #555;
}

.wcppe-condition-badge {
	display: inline-flex;
	align-items: center;
	background: #333;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
}

.wcppe-condition-timeline {
	margin-top: 20px;
}

.wcppe-timeline-track {
	position: absolute;
	left: 8px;
	right: 8px;
	top: 4px;
	height: 2px;
	background: #ddd;
	margin: 0;
	z-index: 0;
}

.wcppe-timeline-progress {
	background: #333;
}

.wcppe-timeline-points {
	position: relative;
	z-index: 1;
	margin-top: 0;
	padding-bottom: 16px;
}

.wcppe-point-marker {
	width: 8px;
	height: 8px;
	background: #ccc;
	box-shadow: 0 0 0 1px #ccc;
}

.wcppe-timeline-point.active .wcppe-point-marker {
	background: #333;
	box-shadow: 0 0 0 1px #333;
}

.wcppe-timeline-point.active .wcppe-point-marker.pulse {
	animation: wcppe-marker-pulse 2s ease-in-out infinite;
}

@keyframes wcppe-marker-pulse {
	0%, 100% { box-shadow: 0 0 0 1px #333, 0 0 0 0px var(--wcppe-pulse-color, rgba(51,51,51,0.3)); }
	50% { box-shadow: 0 0 0 1px #333, 0 0 0 6px var(--wcppe-pulse-color, rgba(51,51,51,0)); }
}

.wcppe-point-label {
	font-size: 12px;
	color: #999;
	margin-top: 10px;
}

.wcppe-timeline-point.active .wcppe-point-label {
	color: #333;
	font-weight: 500;
}

.wcppe-condition-description {
	background: #f5f3f0;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 13px;
	color: #555;
	line-height: 1.5;
	margin-top: 16px;
}

@media (max-width: 480px) {
	.wcppe-condition-label,
	.wcppe-condition-badge {
		font-size: 10px;
	}

	.wcppe-point-label {
		font-size: 11px;
	}

	.wcppe-condition-description {
		font-size: 12px;
		padding: 10px 12px;
	}
}

/* ============================================
   VARIATIONS SELECTOR — multi-attribute rows
   ============================================ */

.wcppe-variation-row {
	display: flex;
	flex-direction: column;
}

/* ============================================
   PRODUCT BRAND
   ============================================ */

.wcppe-product-brand {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.wcppe-brand-label {
	font-weight: 500;
	margin-right: 6px;
	flex-shrink: 0;
}

.wcppe-brand-link {
	display: inline-block;
	text-decoration: none;
	transition: all 0.2s ease;
}

.wcppe-brand-link:hover {
	opacity: 0.8;
}

/* ============================================
   RELATED PRODUCTS V2 — CAROUSEL & ALIGNMENT
   ============================================ */

.wcppe-related-is-carousel .wcppe-related-swiper {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.wcppe-related-is-carousel .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.wcppe-related-is-carousel .swiper-slide {
	flex-shrink: 0;
	width: auto;
	height: auto;
}

.wcppe-related-is-carousel .wcppe-related-product {
	height: 100%;
}

.wcppe-related-swiper .swiper-slide .wcppe-related-product {
	width: 100%;
}

.wcppe-swiper-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: #fff;
	color: #333;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
	font-size: 16px;
}

.wcppe-swiper-button::after {
	font-family: 'eicons';
	font-size: inherit;
	font-weight: 900;
}

.wcppe-swiper-button-prev {
	left: 10px;
}

.wcppe-swiper-button-prev::after {
	content: '\e879';
}

.wcppe-swiper-button-next {
	right: 10px;
}

.wcppe-swiper-button-next::after {
	content: '\e87a';
}

.wcppe-swiper-button:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wcppe-related-swiper .wcppe-swiper-button.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.wcppe-swiper-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	position: relative;
}

.wcppe-swiper-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background-color: #ccc;
	border-radius: 50%;
	opacity: 0.4;
	cursor: pointer;
	transition: all 0.3s ease;
}

.wcppe-swiper-pagination .swiper-pagination-bullet-active {
	opacity: 1;
	background-color: #333;
}

.wcppe-related-title {
	margin: 0 0 10px;
	font-size: 1em;
	font-weight: 500;
	line-height: 1.3;
}

.wcppe-related-price {
	font-weight: 600;
}

.wcppe-related-price del {
	opacity: 0.6;
	margin-right: 5px;
}

.wcppe-related-image-wrap {
	overflow: hidden;
	position: relative;
}

.wcppe-related-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.wcppe-related-product:hover .wcppe-related-image-wrap img {
	transform: scale(1.05);
}

@media (max-width: 767px) {
	.wcppe-swiper-button {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}

	.wcppe-swiper-button-prev {
		left: 5px;
	}

	.wcppe-swiper-button-next {
		right: 5px;
	}
}

/* ============================================
   BASE STYLES
   ============================================ */

.wcppe-product-title {
	margin: 0 0 15px;
	font-weight: 600;
	line-height: 1.3;
}

.wcppe-product-price {
	margin: 0 0 20px;
	font-size: 1.5em;
	font-weight: 600;
}

.wcppe-product-price .woocommerce-Price-amount {
	color: inherit;
}

.wcppe-product-gallery {
	margin: 0 0 25px;
}

.wcppe-product-gallery .woocommerce-product-gallery {
	margin: 0;
}

.wcppe-product-gallery .woocommerce-product-gallery {
	float: none;
	width: 100% !important;
}

.wcppe-product-add-to-cart {
	margin: 0 0 25px;
}

.wcppe-product-add-to-cart .quantity {
	display: inline-block;
	margin-right: 10px;
}

.wcppe-product-short-description {
	margin: 0 0 25px;
	line-height: 1.6;
}

.wcppe-product-meta {
	margin: 0 0 20px;
	font-size: 0.9em;
	color: #666;
}

.wcppe-product-meta span {
	display: block;
	margin-bottom: 5px;
}

.wcppe-product-tabs {
	margin: 30px 0;
}

.wcppe-product-tabs .woocommerce-tabs {
	margin: 0;
}

.wcppe-product-related,
.wcppe-product-upsells {
	margin: 40px 0;
}

.wcppe-product-breadcrumbs {
	margin: 0 0 20px;
	font-size: 0.9em;
}

.wcppe-product-breadcrumbs .woocommerce-breadcrumb {
	margin: 0;
}

.wcppe-product-stock {
	margin: 0 0 15px;
	font-weight: 600;
}

.wcppe-product-stock.in-stock {
	color: #7ad03a;
}

.wcppe-product-stock.out-of-stock {
	color: #a00;
}

.wcppe-product-gallery img {
	max-width: 100%;
	height: auto;
}

.wcppe-product-gallery .flex-viewport {
	max-height: none !important;
}

/* ============================================
   PAYMENT OPTIONS ACCORDION
   ============================================ */

.wcppe-payment-accordion {
	width: 100%;
}

/* Title above the button */
.wcppe-pa-title {
	font-size: 0.85em;
	font-weight: 500;
	color: #333;
	margin-bottom: 6px;
}

/* Button wrapper — flex column so alignment control works */
.wcppe-pa-button-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* overridden per-device by Elementor selector */
}

/* Trigger button */
.wcppe-pa-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;          /* overridden by button_width control */
	background-color: #111111;
	color: #ffffff;
	border: none;
	padding: 14px 20px;
	cursor: pointer;
	text-align: left;
	font-size: 1em;
	font-weight: 500;
	line-height: 1.3;
	transition: background-color 0.2s ease, opacity 0.2s ease;
	box-sizing: border-box;
}

.wcppe-pa-trigger:hover {
	opacity: 0.88;
}

.wcppe-pa-trigger-label {
	flex: 1;
	min-width: 0;
}

.wcppe-pa-trigger-icon {
	flex-shrink: 0;
	margin-left: 12px;
	font-size: 1.1em;
	line-height: 1;
	font-style: normal;
}

/* Collapsible body — flex so table alignment works */
.wcppe-pa-body {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: flex-start; /* overridden by table_align control */
}

/* Table */
.wcppe-pa-table {
	width: 100%;              /* overridden by table_width control */
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;      /* honours <col> widths */
	box-sizing: border-box;
}

/* <col> elements — widths controlled by Elementor selectors */
.wcppe-pa-table .wcppe-col-type,
.wcppe-pa-table .wcppe-col-pct,
.wcppe-pa-table .wcppe-col-total {
	/* default: auto — Elementor overrides per device */
}

.wcppe-pa-table th,
.wcppe-pa-table td {
	padding: 10px 12px;
	border: 1px solid #dddddd;
	vertical-align: middle;
	line-height: 1.4;
}

/* Header row */
.wcppe-pa-table thead th {
	text-align: center;
	font-weight: 600;
	font-size: 0.9em;
	background: transparent;
}

/* Body rows */
.wcppe-pa-table tbody td {
	text-align: center;
	font-size: 0.9em;
	color: #333;
}

/* Percentage column */
.wcppe-pa-pct {
	white-space: nowrap;
}

/* Total column */
.wcppe-pa-total {
	white-space: nowrap;
	font-weight: 500;
}

/* ============================================
   PAYMENT ACCORDION — POPUP (NEW)
   ============================================ */

/* --- Info Icon ("?") --- */
.wcppe-pa-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #999;
	color: #999;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding-bottom: 1px;
	margin-left: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
	vertical-align: middle;
	background: transparent;
	user-select: none;
}

.wcppe-pa-info-icon:hover,
.wcppe-pa-info-icon:focus {
	border-color: #333;
	color: #333;
	outline: none;
}

/* --- Glass Blur Overlay --- */
.wcppe-pa-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wcppe-pa-popup-overlay.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* --- Popup Box --- */
.wcppe-pa-popup-box {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.96);
	z-index: 1000000;
	width: 90%;
	max-width: 420px;
	background: #000000;
	color: #ffffff;
	border-radius: 8px;
	padding: 28px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.wcppe-pa-popup-box.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}

/* Close X button */
.wcppe-pa-popup-close-x {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 28px;
	height: 28px;
	border-style: solid;
	background: transparent;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	padding: 0;
	padding-bottom: 1px;
}

.wcppe-pa-popup-close-x:hover {
	opacity: 0.8;
}

/* Popup Title */
.wcppe-pa-popup-title {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 12px;
	padding-right: 36px;
	line-height: 1.4;
}

/* Divider */
.wcppe-pa-popup-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.2);
	margin-bottom: 16px;
}

/* Description */
.wcppe-pa-popup-desc {
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 24px;
}

/* Buttons wrapper */
.wcppe-pa-popup-buttons {
	display: flex;
	gap: 12px;
}

/* Shared button styles */
.wcppe-pa-popup-btn {
	flex: 1;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
	border-style: solid;
	border-width: 0;
	display: inline-block;
	box-sizing: border-box;
	line-height: 1.4;
}

/* "Back to item" button */
.wcppe-pa-popup-btn-close {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.wcppe-pa-popup-btn-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* "Read about payments" button */
.wcppe-pa-popup-btn-link {
	background: #fff;
	color: #000;
	text-decoration: none;
}

.wcppe-pa-popup-btn-link:hover {
	background: #e0e0e0;
	color: #000;
}

/* Responsive tweaks for very small screens */
@media (max-width: 480px) {
	.wcppe-pa-popup-box {
		padding: 20px;
		max-width: 340px;
	}

	.wcppe-pa-popup-title {
		font-size: 15px;
	}

	.wcppe-pa-popup-desc {
		font-size: 13px;
	}

	.wcppe-pa-popup-btn {
		font-size: 12px;
		padding: 10px 12px;
	}
}