/**
 * MFS Variation Helper - Frontend Styles
 * Compatible with woo-variation-gallery plugin
 */

/* Hide elements */
.mfs-hidden {
	display: none !important;
}

/* MFS Thumbnail Strip */
.mfs-thumbnail-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 15px;
	padding: 0;
	position: relative;
	z-index: 10;
}

.mfs-thumbnail-strip .mfs-thumb-item {
	width: 80px;
	height: 80px;
	cursor: pointer;
	border: 2px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.mfs-thumbnail-strip .mfs-thumb-item:hover {
	border-color: #333;
}

.mfs-thumbnail-strip .mfs-thumb-item.active {
	border-color: #000;
}

.mfs-thumbnail-strip .mfs-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mfs-thumbnail-strip .mfs-360-thumb-item {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	font-size: 14px;
	font-weight: bold;
	color: #333;
}

/* 360 Active Viewer in main image area */
.mfs-360-active-viewer {
	width: 100%;
	min-height: 400px;
}

.mfs-360-active-viewer .webrotate360,
.mfs-360-active-viewer .wr360embed,
.mfs-360-active-viewer > div {
	width: 100% !important;
	max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.mfs-thumbnail-strip .mfs-thumb-item {
		width: 60px;
		height: 60px;
	}

	.mfs-360-active-viewer {
		min-height: 300px;
	}
}
