.ips-cc-widget {
	--ips-cc-card-width: 303px;
	--ips-cc-card-height: 405px;
	--ips-cc-card-scale: 100;
	--ips-cc-visible-items: 7;
	--ips-cc-gap: 36px;
	--ips-cc-manual-radius: 970px;
	--ips-cc-perspective: 1800px;
	--ips-cc-tilt-x: 0deg;
	--ips-cc-offset-y: 0px;
	--ips-cc-curve-width: 1;
	--ips-cc-curve-depth: 1;
	--ips-cc-card-radius: 20px;
	--ips-cc-card-background: transparent;
	--ips-cc-card-opacity: 1;
	--ips-cc-global-blur: 0px;
	--ips-cc-edge-color: #000000;
	--ips-cc-edge-width: 15%;
	--ips-cc-edge-opacity: 1;
	--ips-cc-reflection-opacity: 0.25;
	--ips-cc-reflection-height: 35%;
	--ips-cc-reflection-gap: 8px;
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	min-width: 0;
}

.elementor-widget-ips-3d-curved-carousel {
	align-self: stretch;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
}

.elementor-widget-ips-3d-curved-carousel > .elementor-widget-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 0;
}

/* Live fallback for Elementor containers that use min-height instead of an explicit height. */
body:not(.elementor-editor-active) .ips-cc-container-host {
	position: relative !important;
}

body:not(.elementor-editor-active) .ips-cc-container-host > .elementor-widget-ips-3d-curved-carousel.ips-cc-live-fill {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	inset: 0 !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
}

.ips-cc-viewport {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: transparent;
	cursor: default;
	contain: layout paint;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
}

.ips-cc-widget[data-ips-drag-enabled="true"] .ips-cc-viewport {
	cursor: grab;
	touch-action: pan-y;
	-webkit-touch-callout: none;
}

.ips-cc-widget[data-ips-drag-enabled="true"] .ips-cc-viewport.is-dragging {
	cursor: grabbing;
}

.ips-cc-viewport:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -3px;
}

.ips-cc-scene {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	inset: 0;
	overflow: hidden;
	-webkit-perspective: var(--ips-cc-perspective);
	perspective: var(--ips-cc-perspective);
	-webkit-perspective-origin: 50% 50%;
	perspective-origin: 50% 50%;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

.ips-cc-center {
	position: absolute;
	top: calc(50% + var(--ips-cc-offset-y));
	left: 50%;
	width: var(--ips-cc-card-width);
	height: var(--ips-cc-card-height);
	-webkit-transform: translate(-50%, -50%) rotateX(var(--ips-cc-tilt-x)) scaleZ(var(--ips-cc-curve-depth));
	transform: translate(-50%, -50%) rotateX(var(--ips-cc-tilt-x)) scaleZ(var(--ips-cc-curve-depth));
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	pointer-events: none;
}

.ips-cc-ring {
	position: relative;
	width: 100%;
	height: 100%;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	will-change: transform;
}

.ips-cc-card {
	--ips-cc-current-opacity: 1;
	--ips-cc-depth-scale: 1;
	--ips-cc-depth-blur: 0px;
	--ips-cc-depth-brightness: 1;
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--ips-cc-card-width);
	height: var(--ips-cc-card-height);
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	pointer-events: auto;
}

.ips-cc-card-inner {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: var(--ips-cc-card-radius);
	background: var(--ips-cc-card-background);
	opacity: var(--ips-cc-current-opacity);
	-webkit-filter: blur(calc(var(--ips-cc-global-blur) + var(--ips-cc-depth-blur))) brightness(var(--ips-cc-depth-brightness));
	filter: blur(calc(var(--ips-cc-global-blur) + var(--ips-cc-depth-blur))) brightness(var(--ips-cc-depth-brightness));
	-webkit-transform: scale(var(--ips-cc-depth-scale)) translate3d(0, 0, 0);
	transform: scale(var(--ips-cc-depth-scale)) translate3d(0, 0, 0);
	transform-origin: center;
	transition: filter 160ms ease-out, opacity 160ms ease-out, transform 160ms ease-out;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.ips-cc-media,
.ips-cc-media-link {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.ips-cc-media img,
.ips-cc-media video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: inherit;
	object-fit: contain;
	object-position: center;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}

.ips-cc-media video {
	background: transparent;
}

.ips-cc-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: #000000;
	opacity: 0;
}

.ips-cc-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	padding: 12px 14px;
	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;
	font-size: 14px;
	line-height: 1.4;
	pointer-events: none;
}

.ips-cc-reflection {
	position: absolute;
	top: calc(100% + var(--ips-cc-reflection-gap));
	left: 0;
	width: 100%;
	height: var(--ips-cc-reflection-height);
	overflow: hidden;
	border-radius: var(--ips-cc-card-radius);
	opacity: var(--ips-cc-reflection-opacity);
	-webkit-transform: scaleY(-1) translate3d(0, 0, 0);
	transform: scaleY(-1) translate3d(0, 0, 0);
	-webkit-filter: blur(1px);
	filter: blur(1px);
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
}

.ips-cc-reflection .ips-cc-caption,
.ips-cc-reflection .ips-cc-overlay,
.ips-cc-reflection video {
	display: none;
}

.ips-cc-edge-fade {
	position: absolute;
	inset: 0;
	z-index: 50;
	pointer-events: none;
	opacity: 0;
	background: linear-gradient(
		90deg,
		var(--ips-cc-edge-color) 0%,
		transparent var(--ips-cc-edge-width),
		transparent calc(100% - var(--ips-cc-edge-width)),
		var(--ips-cc-edge-color) 100%
	);
}

.ips-cc-has-edge-fade .ips-cc-edge-fade {
	opacity: var(--ips-cc-edge-opacity);
}

.ips-cc-sources {
	display: none !important;
}

.ips-cc-editor-placeholder {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 60;
	width: min(90%, 420px);
	padding: 20px;
	transform: translate(-50%, -50%);
	border: 1px dashed rgba(255, 255, 255, 0.45);
	border-radius: 10px;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

body.elementor-editor-active .elementor-widget-ips-3d-curved-carousel:not([style*="height"]) .ips-cc-viewport {
	min-height: 320px;
}

@media (prefers-reduced-motion: reduce) {
	.ips-cc-ring,
	.ips-cc-card-inner {
		transition: none;
	}
}
