/* Soda Zoomist Widget Styles */

.soda-zoomist-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.zoomist-container {
	position: relative;
	overflow: hidden;
	cursor: grab;
	margin: 0 auto;
	background-color: #f5f5f5;
}

.zoomist-container:active {
	cursor: grabbing;
}

.zoomist-wrapper {
	width: 100%;
	height: 100%;
}

.zoomist-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zoomist-image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

/* Slider Styles */
.zoomist-slider {
	width: 100%;
	height: 8px;
	background-color: #e0e0e0;
	border-radius: 4px;
	position: relative;
	cursor: pointer;
	margin: 10px 0;
}

.zoomist-slider-bar {
	height: 100%;
	background-color: #333;
	border-radius: 4px;
	position: relative;
	transition: width 0.1s ease;
}

.zoomist-slider-button {
	width: 20px;
	height: 20px;
	background-color: #333;
	border: 2px solid #fff;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	right: -10px;
	transform: translateY(-50%);
	cursor: grab;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zoomist-slider-button:active {
	cursor: grabbing;
}

/* Zoomer Buttons */
.zoomist-zoomer {
	position: absolute;
	z-index: 2;
	bottom: 5px;
	right: 5px;
	top: inherit;
	display: flex;
	gap: 5px;
	border-radius: 0 0 0 3px;
	overflow: hidden;
}

.zoomist-zoomer button {
	width:30px;
	height:30px;
	padding: 0px;
	border: none;
	background-color: #fff;
	color:#154893;
	font-size: 22px;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	margin: 0;
}

.zoomist-zoomer button:hover {
	background-color: #f6f6f6;
	transform: scale(1.05);
}

.zoomist-zoomer button:active {
	transform: scale(0.95);
}

.zoomist-zoomer button:disabled,
.zoomist-zoomer button.zoomist-zoomer-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.zoomist-in-zoomer {
	font-weight: bold;
}

.zoomist-out-zoomer {
	font-weight: bold;
}

.zoomist-reset-zoomer {
	padding: 0;
}

svg.zoomist-zoomer-icon {
	width: 14px;
	height: 14px;
	fill: #154893;
	display: block;
}

.zoomist-reset-zoomer {
	font-size: 24px;
	font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.soda-zoomist-wrapper {
		gap: 10px;
	}

	.zoomist-zoomer button {
		width: 30px;
		height: 30px;
		font-size: 18px;
	}

	.zoomist-slider {
		height: 6px;
	}

	.zoomist-slider-button {
		width: 18px;
		height: 18px;
		right: -9px;
	}
}

/* Loading State */
.zoomist-container.loading {
	position: relative;
}

.zoomist-container.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #333;
	border-radius: 50%;
	animation: zoomist-spin 1s linear infinite;
}

@keyframes zoomist-spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}
