/*
 * Compatibility styles for the legacy Shoshin Core Simple Slider.
 * Elementor now uses Swiper 8 and no longer provides the old Swiper 5 layer.
 */

.elementor-widget-shoshin_core_simple_slider .qodef-swiper-container {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	visibility: visible !important;
	opacity: 1 !important;
}

.elementor-widget-shoshin_core_simple_slider .swiper-wrapper {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	box-sizing: content-box;
}

.elementor-widget-shoshin_core_simple_slider .swiper-slide {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 100%;
	height: auto;
}

/*
 * Restore the original fade behaviour.
 * Version 1.2 forced every slide to opacity 1, causing several slides to
 * appear superimposed. Only the active slide must be visible.
 */
.elementor-widget-shoshin_core_simple_slider
.qodef-swiper-container.oc-effect-fade
.swiper-slide {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none;
}

.elementor-widget-shoshin_core_simple_slider
.qodef-swiper-container.oc-effect-fade
.swiper-slide-active {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto;
}

.elementor-widget-shoshin_core_simple_slider
.qodef-swiper-container.oc-slider-fallback
.swiper-slide {
	display: none;
}

.elementor-widget-shoshin_core_simple_slider
.qodef-swiper-container.oc-slider-fallback
.swiper-slide.oc-fallback-active {
	display: block;
	opacity: 1 !important;
	visibility: visible !important;
}

/* Numbered vertical controls, matching the original Shoshin presentation. */
.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination {
	position: absolute;
	top: 50%;
	right: 24px;
	bottom: auto;
	left: auto;
	z-index: 30;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	width: 34px;
	transform: translateY(-50%);
	gap: 30px;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #c7dfec;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	cursor: pointer;
	opacity: 1;
	appearance: none;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button span {
	display: block;
	transform: rotate(90deg);
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button.is-active {
	color: #111;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button.is-active::after {
	content: "";
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	width: 1px;
	height: 40px;
	background: rgba(255, 255, 255, 0.95);
	transform: translateX(-50%);
	pointer-events: none;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button:last-child.is-active::after {
	top: auto;
	bottom: calc(100% + 8px);
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination {
		right: 8px;
		gap: 20px;
	}

	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-button.is-active::after {
		height: 26px;
	}
}


/*
 * Version 1.4: make the custom numbered pagination reliably clickable.
 * Some legacy Shoshin rules leave Swiper pagination without pointer events
 * or behind another slider layer.
 */
.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination {
	z-index: 999 !important;
	pointer-events: auto !important;
}

.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination,
.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination * {
	pointer-events: auto !important;
}

.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination-button {
	position: relative;
	z-index: 1000;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}


/*
 * Version 1.5
 * Restore the original Shoshin numbered pagination styling:
 * - Syne typography
 * - larger animated separation after the active slide
 * - long vertical indicator line
 */

.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination {
	right: 26px;
	gap: 16px;
	overflow: visible;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button {
	width: 36px;
	height: 26px;
	font-family: "Syne", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #bfd6e3;
	transition:
		color 0.35s ease,
		margin 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button span {
	transform: rotate(90deg);
	transform-origin: center;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button.is-active {
	color: #111;
}

/*
 * The active number creates real space before the following number.
 * This reproduces the original "opening" effect instead of merely
 * drawing a line over a fixed gap.
 */
.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button.is-active:not(:last-child) {
	margin-bottom: 82px;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button:last-child.is-active {
	margin-top: 82px;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button.is-active::after {
	top: calc(100% + 11px);
	bottom: auto;
	width: 1px;
	height: 66px;
	background: rgba(255, 255, 255, 0.95);
	opacity: 1;
	transform: translateX(-50%) scaleY(1);
	transform-origin: top;
	transition:
		height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.25s ease,
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button:last-child.is-active::after {
	top: auto;
	bottom: calc(100% + 11px);
	transform-origin: bottom;
}

@media (max-width: 1024px) {
	.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination {
		right: 18px;
	}

	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-button.is-active:not(:last-child) {
		margin-bottom: 66px;
	}

	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-button:last-child.is-active {
		margin-top: 66px;
	}

	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-button.is-active::after {
		height: 50px;
	}
}

@media (max-width: 767px) {
	.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination {
		right: 8px;
		gap: 12px;
	}

	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-button {
		font-size: 12px;
	}

	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-button.is-active:not(:last-child) {
		margin-bottom: 48px;
	}

	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-button:last-child.is-active {
		margin-top: 48px;
	}

	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-button.is-active::after {
		height: 34px;
	}
}


/*
 * Version 1.6
 * Use a dedicated separator element instead of a button pseudo-element.
 * This cannot be overridden by the legacy theme's ::after rules.
 */
.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button.is-active:not(:last-child),
.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button:last-child.is-active {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button::after {
	content: none !important;
	display: none !important;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-line {
	display: block;
	flex: 0 0 auto;
	width: 1px;
	height: 72px;
	margin: 2px 0;
	background: rgba(255, 255, 255, 0.98);
	pointer-events: none !important;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: top;
	transition:
		transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.18s ease;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-line.is-visible {
	opacity: 1;
	transform: scaleY(1);
}

.elementor-widget-shoshin_core_simple_slider .oc-slider-pagination {
	gap: 16px;
}

@media (max-width: 1024px) {
	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-line {
		height: 56px;
	}
}

@media (max-width: 767px) {
	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-line {
		height: 38px;
	}
}


/*
 * Version 1.7
 * Exact pagination correction:
 * - active slide number is always black;
 * - inactive numbers remain light blue;
 * - the white line is always AFTER/BELLOW the active number.
 */
.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button {
	color: #bfd6e3 !important;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button.is-active,
.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-button[aria-current="true"] {
	color: #111111 !important;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-line {
	order: initial;
	height: 72px;
	margin: 8px 0 2px;
	background: #ffffff;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: top center;
}

.elementor-widget-shoshin_core_simple_slider
.oc-slider-pagination-line.is-visible {
	opacity: 1;
	transform: scaleY(1);
}

@media (max-width: 1024px) {
	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-line {
		height: 56px;
	}
}

@media (max-width: 767px) {
	.elementor-widget-shoshin_core_simple_slider
	.oc-slider-pagination-line {
		height: 38px;
		margin-top: 6px;
	}
}
