.ctce-widget {
	width: 100%;
}

.ctce-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.ctce-tab-btn {
	cursor: pointer;
	border: none;
	background: #f2f2f2;
	color: #333;
	font-family: inherit;
	line-height: 1.4;
	transition: background-color .2s ease, color .2s ease;
}

.ctce-tab-btn:hover {
	opacity: 0.85;
}

.ctce-tabs-panels {
	position: relative;
}

.ctce-tab-panel {
	display: none;
}

.ctce-tab-panel.active {
	display: block;
}

.ctce-carousel-outer {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.ctce-swiper {
	width: 100%;
	padding: 4px 2px 40px;
	overflow: hidden;
	box-sizing: border-box;
}

/* Defensive overrides: some themes reset flex/box-sizing globally on divs,
   which can make Swiper appear "stuck" showing only one slide. */
.ctce-swiper.swiper,
.ctce-swiper .swiper-wrapper {
	display: flex !important;
	box-sizing: content-box !important;
}

.ctce-swiper .swiper-wrapper {
	align-items: stretch;
	flex-wrap: nowrap !important;
}

.ctce-swiper .swiper-slide {
	flex-shrink: 0 !important;
	height: auto !important;
	box-sizing: border-box !important;
}

.ctce-slide-link {
	display: block;
	text-decoration: none;
}

.ctce-slide-image-wrap {
	position: relative;
	width: 100%;
	padding-top: 100%;
	background: #f5f5f5;
	border-radius: 8px;
	overflow: hidden;
}

.ctce-slide-image-wrap img.ctce-slide-image,
.ctce-slide-image-wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ctce-slide-title {
	margin-top: 12px;
	text-align: center;
	font-weight: 500;
	color: #333;
}

.ctce-carousel-outer .ctce-nav-arrow {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: #333;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	margin: 0;
}

/* Suppress Swiper's default chevron pseudo-content since we render our own icon markup.
   Both ::before and ::after are covered, and content:none (not '') fully removes the
   generated box so no fallback glyph can render or overlap the custom icon. */
.ctce-carousel-outer .ctce-nav-arrow.ctce-custom-icon::before,
.ctce-carousel-outer .ctce-nav-arrow.ctce-custom-icon::after {
	content: none !important;
	display: none !important;
}

.ctce-nav-arrow svg,
.ctce-nav-arrow i {
	width: 1em;
	height: 1em;
	line-height: 1;
}

.ctce-carousel-outer .ctce-nav-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.ctce-arrows-inside .swiper-button-prev {
	left: 10px;
}

.ctce-arrows-inside .swiper-button-next {
	right: 10px;
}

.ctce-arrows-outside {
	padding-left: 48px;
	padding-right: 48px;
}

.ctce-arrows-outside .swiper-button-prev {
	left: 0;
}

.ctce-arrows-outside .swiper-button-next {
	right: 0;
}

.ctce-swiper .swiper-pagination {
	position: absolute;
	bottom: 4px;
}

.ctce-swiper .swiper-pagination-bullet {
	background: #ccc;
	opacity: 1;
}

.ctce-swiper .swiper-pagination-bullet-active {
	background: #7a1fa2;
}

.ctce-empty-notice,
.ctce-editor-notice {
	padding: 20px;
	text-align: center;
	color: #888;
	background: #f8f8f8;
	border-radius: 6px;
}
