/* ==========================================================================
   Multi Selection Product Widget Styles
   ========================================================================== */

.pretpot-msp-widget {
	position: relative;
	width: 100%;
}

/* Carousel Rows */
.pretpot-msp-carousels {
	position: relative;
}

.pretpot-msp-carousel-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.6s ease;
	margin-bottom: 0;
}

.pretpot-msp-carousel-row.pretpot-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Carousel Track */
.pretpot-msp-carousel-track {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	/* overflow visible so images larger than the track are not clipped.
	   The track width grows with the image — controlled by Elementor's image_width
	   selector, not hardcoded here. */
	overflow: visible;
	width: 100%;
	/* No max-width here — a hardcoded max-width was silently capping the Elementor
	   image size control. The track width is determined by its flex context instead. */
	height: 250px;
}

/* Product Items */
.pretpot-msp-product-item {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 0.4s ease;
	text-align: center;
}

.pretpot-msp-product-item.active {
	opacity: 1;
	z-index: 2;
}

.pretpot-msp-product-item img {
	display: block;
	/* Do NOT set max-width: 100% here — it would override the Elementor image_width
	   control (which sets an explicit width on this element) and cap the image at the
	   container boundary, preventing the user from sizing images freely. */
	height: auto;
	object-fit: contain;
}

/* Size Labels */
.pretpot-msp-sizes {
	font-size: 12px;
	color: #666;
	margin-top: 8px;
	text-align: center;
}

/* Navigation Arrows */
.pretpot-msp-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	background-color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	flex-shrink: 0;
	padding: 0;
}

.pretpot-msp-nav:hover {
	background-color: #f5f5f5;
	transform: scale(1.05);
}

.pretpot-msp-nav svg {
	display: block;
	width: 20px;
	height: 20px;
	stroke: #000;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 0.3s ease;
}

.pretpot-msp-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	transform: none;
}

.pretpot-msp-nav:disabled:hover {
	background-color: #fff;
	transform: none;
}

/* Product Titles Display */
.pretpot-msp-titles {
	text-align: center;
	margin-top: 40px;
	font-size: 14px;
	line-height: 1.8;
	color: #333;
	min-height: 60px;
}

.pretpot-msp-title-item {
	opacity: 0;
	transition: opacity 0.4s ease;
}

.pretpot-msp-title-item.visible {
	opacity: 1;
}

/* Button */
.pretpot-msp-button-wrap {
	text-align: center;
	margin-top: 30px;
}

.pretpot-msp-button {
	display: inline-block;
	padding: 15px 40px;
	background-color: #000;
	color: #fff;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
	cursor: pointer;
	font-family: inherit;
}

.pretpot-msp-button:hover {
	background-color: #333;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pretpot-msp-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.pretpot-msp-button.loading {
	position: relative;
	color: transparent;
}

.pretpot-msp-button.loading::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -8px;
	border: 2px solid #fff;
	border-radius: 50%;
	border-top-color: transparent;
	animation: pretpot-spin 0.6s linear infinite;
}

@keyframes pretpot-spin {
	to { transform: rotate(360deg); }
}

.pretpot-msp-button-text {
	margin-right: 8px;
}

.pretpot-msp-button-price {
	font-weight: 700;
	position: relative;
	display: inline-block;
	min-width: 60px;
	text-align: left;
}

/* Typewriter Effect */
.pretpot-msp-button-price.typewriter {
	overflow: hidden;
	border-right: 2px solid currentColor;
	white-space: nowrap;
	animation: pretpot-blink-caret 0.75s step-end infinite;
}

@keyframes pretpot-blink-caret {
	from, to { border-color: transparent; }
	50% { border-color: currentColor; }
}

/* Responsive */
@media (max-width: 768px) {
	.pretpot-msp-carousel-row {
		gap: 10px;
	}
	
	.pretpot-msp-carousel-track {
		/* max-width removed — was silently overriding Elementor's tablet image_width
		   default (150px) and capping anything set above it. Height scales down for
		   smaller screens but image size is fully controlled by Elementor. */
		height: 200px;
	}
	
	.pretpot-msp-button {
		padding: 12px 30px;
		font-size: 14px;
	}
	
	.pretpot-msp-titles {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.pretpot-msp-carousel-track {
		/* max-width removed — was the 150px ceiling that blocked mobile image sizing.
		   Elementor's mobile_default of 120px applies instead, and users can override
		   it freely from the panel. */
		height: 160px;
	}
	
	.pretpot-msp-sizes {
		font-size: 11px;
	}
}