.zs-cs-widget {
	--zs-cs-bar-bg: #a9822f;
	--zs-cs-bar-color: #ffffff;
	--zs-cs-bar-active-color: #ffffff;
	--zs-cs-gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.zs-cs-widget *,
.zs-cs-widget *::before,
.zs-cs-widget *::after {
	box-sizing: border-box;
}

/* Top category bar */
.zs-cs-widget .zs-cs-tabs {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 30px;
	background: var(--zs-cs-bar-bg) !important;
	padding: 16px 20px;
	margin: 0;
	list-style: none;
}

/* Reset any theme/Elementor "button" or "a" defaults before applying ours */
.zs-cs-widget .zs-cs-tabs button.zs-cs-tab {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-shadow: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.zs-cs-widget .zs-cs-tabs button.zs-cs-tab {
	background: transparent !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	color: var(--zs-cs-bar-color) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	padding: 4px 2px !important;
	opacity: 0.85;
}

.zs-cs-widget .zs-cs-tabs button.zs-cs-tab.is-active {
	font-weight: 700 !important;
	opacity: 1;
	color: var(--zs-cs-bar-active-color) !important;
	border-bottom-color: currentColor !important;
}

.zs-cs-widget .zs-cs-tabs button.zs-cs-tab:hover,
.zs-cs-widget .zs-cs-tabs button.zs-cs-tab:focus {
	opacity: 1;
	color: var(--zs-cs-bar-active-color) !important;
}

.zs-cs-empty {
	text-align: center;
	color: #666;
	padding: 30px 20px;
	margin: 0;
}

/* Carousel — one shared instance per widget; tabs swap its slides */
.zs-cs-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 30px 20px;
}

.zs-cs-track {
	flex: 1 1 auto;
	display: flex;
	gap: var(--zs-cs-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 4px;
	scrollbar-width: none;
}

.zs-cs-track::-webkit-scrollbar {
	display: none;
}

.zs-cs-slide {
	scroll-snap-align: start;
	flex: 0 0 calc(25% - (var(--zs-cs-gap) * 3 / 4));
	text-align: center;
}

.zs-cs-slide-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.zs-cs-slide-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.zs-cs-slide-title {
	margin: 10px 0 0;
	font-size: 15px;
	color: #222;
}

/* --------------------------------------------------------------------
   Prev/Next arrow buttons — isolated from everything else, including
   the tab styling above. Every property is set explicitly (via `all:
   unset` first) and flagged !important so no theme/Elementor rule,
   loaded before or after this stylesheet, can leak into it.
   -------------------------------------------------------------------- */
.zs-cs-widget .zs-cs-carousel button.zs-cs-nav,
.zs-cs-widget .zs-cs-carousel button.zs-cs-nav:link,
.zs-cs-widget .zs-cs-carousel button.zs-cs-nav:visited {
	all: unset !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 36px !important;
	position: relative !important;
	z-index: 1 !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: #fff !important;
	background-image: none !important;
	border: 1px solid #ddd !important;
	border-radius: 50% !important;
	outline: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: #333 !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.zs-cs-widget .zs-cs-carousel button.zs-cs-nav::before,
.zs-cs-widget .zs-cs-carousel button.zs-cs-nav::after {
	content: none !important;
}

.zs-cs-widget .zs-cs-carousel button.zs-cs-nav:hover,
.zs-cs-widget .zs-cs-carousel button.zs-cs-nav:focus,
.zs-cs-widget .zs-cs-carousel button.zs-cs-nav:active {
	background-color: #f2f2f2 !important;
	border-color: #ddd !important;
	color: #333 !important;
}

/* Tablet: 2 slides */
@media (max-width: 1024px) {
	.zs-cs-slide {
		flex-basis: calc(50% - (var(--zs-cs-gap) / 2));
	}
}

/* Mobile: 1 slide */
@media (max-width: 600px) {
	.zs-cs-slide {
		flex-basis: 100%;
	}

	.zs-cs-widget .zs-cs-tabs {
		gap: 18px;
		padding: 12px 16px;
	}

	.zs-cs-widget .zs-cs-tabs button.zs-cs-tab {
		font-size: 14px !important;
	}
}
