/* ==========================================================================
   Compass Elements — Product Image Slider
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root widget wrapper — flex column keeps dots structurally below the media.
   -------------------------------------------------------------------------- */
.cc-slider {
	display: flex;
	flex-direction: column;
	width: 100%;
	-webkit-user-select: none;
	user-select: none;
}

.cc-slider--single .cc-slider__viewport,
.cc-slider--single .cc-slider__viewport:active {
	cursor: default;
}

.cc-slider--single .cc-slider__dots {
	display: none;
}

.cc-slider--empty {
	padding: 2rem;
	background: #f5f5f5;
	border: 2px dashed #ccc;
	text-align: center;
	color: #888;
}

/* --------------------------------------------------------------------------
   Viewport — clips the track, owns the border-radius.
   overflow:hidden here is what makes border-radius apply to iframe children.
   -------------------------------------------------------------------------- */
.cc-slider__viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	cursor: grab;
	/* border-radius driven by Elementor style control via {{WRAPPER}} selector */
}

.cc-slider__viewport:active {
	cursor: grabbing;
}

/* --------------------------------------------------------------------------
   Track — all slides laid out side-by-side; moves via translateX.
   -------------------------------------------------------------------------- */
.cc-slider__track {
	display: flex;
	flex-direction: row;
	width: 100%;
	will-change: transform;
	transition: transform 0.35s ease;
}

/* --------------------------------------------------------------------------
   Individual slide — exactly one viewport wide with a default aspect ratio.
   -------------------------------------------------------------------------- */
.cc-slider__slide {
	flex: 0 0 100%;
	width: 100%;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: transparent;
}

.cc-slider__slide--video {
	background: #000;
}

/* --------------------------------------------------------------------------
   Image slide
   -------------------------------------------------------------------------- */
.cc-slider__slide .cc-slider__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Video slide — poster
   -------------------------------------------------------------------------- */
.cc-slider__video-poster {
	position: relative;
	width: 100%;
	height: 100%;
}

.cc-slider__video-poster .cc-slider__poster-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Play button — rounded rectangle, centered over the poster.
   Colors driven by Elementor style controls via {{WRAPPER}} selectors.
   -------------------------------------------------------------------------- */
.cc-slider__play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 16px 40px;
	/* background-color and color driven by Elementor controls */
	background-color: rgba(0, 0, 0, 0.54);
	color: #ffffff;
	font-size: 15px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1;
	border: none;
	border-radius: 6px;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	text-transform: none;
	white-space: nowrap;
	transition: opacity 0.2s ease;
	z-index: 2;
}

.cc-slider__play-btn:hover {
	opacity: 0.85;
}

.cc-slider__play-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.cc-slider__play-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.cc-slider__play-label {
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Video lightbox — modal overlay for playing videos without blocking swipe.
   -------------------------------------------------------------------------- */
.cc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.85);
}

body.cc-lightbox--open {
	overflow: hidden;
}

.cc-lightbox__content {
	position: relative;
	width: 90vw;
	max-width: 900px;
	aspect-ratio: 16 / 9;
}

.cc-lightbox__content iframe,
.cc-lightbox__content video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.cc-lightbox__close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 4px;
	line-height: 0;
	font-size: 0;
	opacity: 0.8;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.cc-lightbox__close:hover {
	opacity: 1;
	color: var(--cc-lightbox-close-hover, #fff);
}

.cc-lightbox__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Pagination dots — flex row centered, sibling of viewport, never overlaps.
   Padding driven by Elementor style control via {{WRAPPER}} selector.
   -------------------------------------------------------------------------- */
.cc-slider__dots {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}

.cc-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	/* background-color driven by Elementor control */
	background-color: rgba(0, 0, 0, 0.25);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.cc-slider__dot--active {
	/* background-color driven by Elementor control */
	background-color: #2b5c9a;
	transform: scale(1.25);
}

.cc-slider__dot:focus-visible {
	outline: 2px solid #2b5c9a;
	outline-offset: 3px;
}
