/* WPEI Addons Timeline
 *
 * Visual contract ported from the original WPEI Elementor timeline.
 * Original wpei-* timeline classes are represented here as wpei-addons-*.
 */

.wpei-addons-timeline,
.wpei-addons-timeline-wrapper,
.wpei-addons-timeline-node,
.wpei-addons-timeline-main {
	position: relative;
}

/* CSS custom properties.
 * Listed on both the semantic class and Elementor's generated widget class so
 * the variables cascade correctly in the editor (where Elementor outputs the
 * wrapper tag before our render() runs, making add_render_attribute('_wrapper')
 * arrive too late from inside render() — before_render() now handles that, but
 * the Elementor widget class is kept here as a belt-and-suspenders fallback). */
.wpei-addons-timeline,
.elementor-widget-wpei_addons_timeline {
	--wpei-addons-timeline-marker-size: 3em;
	--wpei-addons-timeline-side-visual-size: 96px;
	--wpei-addons-timeline-side-visual-column-size: 96px;
	--wpei-addons-timeline-side-content-column-size: 150px;
	--wpei-addons-timeline-side-visual-icon-size: 48px;
	--wpei-addons-timeline-side-visual-gap: 20px;
}

.wpei-addons-timeline-main .wpei-addons-days {
	position: relative;
}

.wpei-addons-timeline--center .wpei-addons-timeline-left .wpei-addons-timeline-date-new,
.wpei-addons-timeline--center .wpei-addons-timeline-right .wpei-addons-timeline-date-new,
.wpei-addons-timeline-main .wpei-addons-year,
.wpei-addons-timeline-marker,
.wpei-addons-timeline-right .wpei-addons-timeline-date-new,
.wpei-addons-timeline-widget {
	display: flex;
}

.wpei-addons-timeline-widget {
	position: relative;
	align-items: flex-start;
}

#infscr-loading div,
.wpei-addons-timeline--center .wpei-addons-timeline-date-hide {
	display: none;
}

.wpei-addons-date-inner .inner-date-new p {
	margin-bottom: 0;
}

.wpei-addons-timeline__line {
	background-color: #eee;
}

.wpei-addons-timeline__line__inner {
	width: 100%;
	background-color: transparent;
}

.wpei-addons-timeline-main .timeline-icon-new,
.wpei-addons-timeline-main .wpei-addons-timeline-icon-new {
	display: inline-block;
	line-height: 1em;
	vertical-align: middle;
}

.wpei-addons-timeline-shadow-yes .wpei-addons-day-new,
.wpei-addons-timeline--shadow .wpei-addons-day-new {
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.wpei-addons-timeline-field:not(:last-child) {
	margin-bottom: 20px;
}

.wpei-addons-timeline-field:last-child {
	margin-bottom: 0;
}

.wpei-addons-timeline--center .wpei-addons-timeline-widget.wpei-addons-timeline-right,
.wpei-addons-timeline--right .wpei-addons-timeline-widget {
	flex-direction: row-reverse;
}

.wpei-addons-timeline--left .wpei-addons-day-left .wpei-addons-events-inner-new,
.wpei-addons-timeline--left .wpei-addons-day-right .wpei-addons-events-inner-new,
.wpei-addons-timeline--left .wpei-addons-days {
	text-align: left;
}

.wpei-addons-timeline--right .wpei-addons-day-left .wpei-addons-events-inner-new,
.wpei-addons-timeline--right .wpei-addons-day-right .wpei-addons-events-inner-new,
.wpei-addons-timeline--right .wpei-addons-days {
	text-align: right;
}

.wpei-addons-timeline--center .wpei-addons-timeline-date-new {
	display: block;
}

.wpei-addons-timeline--right .wpei-addons-timeline__line {
	right: 16px;
	left: auto;
}

.wpei-addons-timeline--right .wpei-addons-timeline-left .wpei-addons-timeline-arrow,
.wpei-addons-timeline--right .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
	top: 0;
	right: 0;
	width: 10px;
	height: 40px;
	position: absolute;
}

.wpei-addons-timeline--right .wpei-addons-timeline-left .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--right .wpei-addons-timeline-right .wpei-addons-timeline-arrow:after {
	top: 0;
}

.wpei-addons-timeline--right .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
	right: -12px;
}

.wpei-addons-timeline--right .wpei-addons-timeline-left .wpei-addons-timeline-arrow {
	right: -10px;
}

.wpei-addons-timeline--right .wpei-addons-day-new,
.wpei-addons-timeline--right .wpei-addons-timeline-marker {
	max-width: 100%;
	position: relative;
}

.wpei-addons-timeline--right .wpei-addons-day-new {
	margin-right: 14px;
	flex-grow: 1;
}

.wpei-addons-timeline--right .wpei-addons-timeline-marker,
.wpei-addons-timeline--left .wpei-addons-timeline-marker {
	flex-shrink: 0;
	flex-grow: 0;
}

.wpei-addons-timeline--left .wpei-addons-day-new,
.wpei-addons-timeline--left .wpei-addons-timeline-marker {
	max-width: 100%;
	position: relative;
}

.wpei-addons-timeline--left .wpei-addons-timeline__line {
	left: 20px;
	right: auto;
}

.wpei-addons-timeline--left .wpei-addons-timeline-marker {
	order: 0;
}

.wpei-addons-timeline--left .wpei-addons-day-new {
	margin-left: 14px;
	order: 1;
	flex-grow: 1;
}

/* Center the timeline track horizontally for left / right orientations.
 * Without a side visual the wrapper never receives
 * wpei-addons-timeline-has-side-visual, so without these rules the track
 * stretches to the full container width and sits flush to the edge instead
 * of being centered. fit-content collapses the track to its natural width;
 * max-width: 100% prevents overflow; margin: auto centers the block.
 * flex-grow: 1 on day-new has no effect inside a fit-content container
 * (zero surplus space), so cards size naturally. If content is very wide
 * max-width: 100% takes over and flex-grow restores full-row expansion —
 * matching the previous full-width behaviour for long content. */
.wpei-addons-timeline.wpei-addons-timeline--left .wpei-addons-timeline-main,
.wpei-addons-timeline.wpei-addons-timeline--right .wpei-addons-timeline-main,
.wpei-addons-timeline--left .wpei-addons-timeline-main,
.wpei-addons-timeline--right .wpei-addons-timeline-main {
	width: fit-content;
	max-width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.wpei-addons-timeline.wpei-addons-timeline--left .wpei-addons-days,
.wpei-addons-timeline.wpei-addons-timeline--right .wpei-addons-days,
.wpei-addons-timeline--left .wpei-addons-days,
.wpei-addons-timeline--right .wpei-addons-days {
	width: fit-content;
	max-width: 100%;
}

.wpei-addons-timeline--left .wpei-addons-timeline-left .wpei-addons-timeline-arrow,
.wpei-addons-timeline--left .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
	top: 0;
	width: 10px;
	height: 40px;
	position: absolute;
}

.wpei-addons-timeline--left .wpei-addons-timeline-left .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--left .wpei-addons-timeline-right .wpei-addons-timeline-arrow:after {
	top: 0;
}

.wpei-addons-timeline--left .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
	left: -10px;
}

.wpei-addons-timeline--left .wpei-addons-timeline-left .wpei-addons-timeline-arrow {
	left: -12px;
}

.wpei-addons-timeline-marker {
	position: relative;
	z-index: 1;
	align-items: center;
	justify-content: center;
	background-color: #eee;
	border-radius: 999px;
	transition: all 0.2s ease-in-out;
}

.wpei-addons-timeline-main .wpei-addons-days .wpei-addons-animate-border:hover .wpei-addons-timeline-marker,
.wpei-addons-timeline-main .wpei-addons-days .animate-border:hover .wpei-addons-timeline-marker {
	transition: all 0.2s ease-in-out;
}

.wpei-addons-timeline--center .wpei-addons-timeline-marker {
	order: 1;
	flex-shrink: 0;
	flex-grow: 0;
}

.wpei-addons-timeline--center .wpei-addons-day-new,
.wpei-addons-timeline--center .wpei-addons-timeline-date-new {
	flex-grow: 1;
	flex-basis: 50%;
	max-width: 100%;
	position: relative;
}

.wpei-addons-timeline--center .wpei-addons-timeline-left .wpei-addons-day-new,
.wpei-addons-timeline--center .wpei-addons-timeline-right .wpei-addons-day-new {
	order: 2;
}

.wpei-addons-timeline--center .wpei-addons-timeline-right .wpei-addons-day-new {
	padding-left: 0;
	padding-right: 12px;
}

.wpei-addons-timeline--center .wpei-addons-timeline-left .wpei-addons-day-new {
	padding-right: 0;
	padding-left: 12px;
}

.wpei-addons-day-right .wpei-addons-events-inner-new {
	text-align: right;
}

.wpei-addons-day-left .wpei-addons-events-inner-new {
	text-align: left;
}

.wpei-addons-events-inner-new {
	padding: 40px;
}

.wpei-addons-timeline--center .wpei-addons-timeline-left .wpei-addons-timeline-date-new {
	justify-content: flex-end;
}

.wpei-addons-timeline--center .wpei-addons-timeline-right .wpei-addons-timeline-date-new {
	justify-content: flex-start;
}

.wpei-addons-timeline-left .wpei-addons-date-new {
	margin-right: 10px;
}

.wpei-addons-timeline-right .wpei-addons-date-new {
	margin-left: 10px;
}

.wpei-addons-timeline-arrow-center .wpei-addons-timeline-widget,
.wpei-addons-timeline-right .wpei-addons-timeline-date-new {
	align-items: center;
}

.wpei-addons-timeline--center .wpei-addons-timeline-left .wpei-addons-timeline-arrow,
.wpei-addons-timeline--center .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
	top: 0;
	width: 10px;
	height: 40px;
	position: absolute;
}

.wpei-addons-timeline--center .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
	right: 0;
}

.wpei-addons-timeline--center .wpei-addons-timeline-left .wpei-addons-timeline-arrow {
	left: 0;
}

.wpei-addons-timeline--center .wpei-addons-timeline-left .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--center .wpei-addons-timeline-right .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--left .wpei-addons-timeline-left .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--left .wpei-addons-timeline-right .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--right .wpei-addons-timeline-left .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--right .wpei-addons-timeline-right .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline-arrow-center .wpei-addons-timeline-left .wpei-addons-timeline-arrow,
.wpei-addons-timeline-arrow-center .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
	top: 50%;
	transform: translateY(-50%);
}

.wpei-addons-timeline-arrow-bottom .wpei-addons-timeline-widget {
	align-items: flex-end;
}

.wpei-addons-timeline-arrow-bottom .wpei-addons-timeline-left .wpei-addons-timeline-arrow,
.wpei-addons-timeline-arrow-bottom .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
	top: 100%;
	transform: translateY(-100%);
}

.wpei-addons-timeline-arrow-bottom .wpei-addons-timeline-date-new .wpei-addons-date-new,
.wpei-addons-timeline-arrow-top .wpei-addons-timeline-date-new .wpei-addons-date-new {
	padding-top: 8px;
	padding-bottom: 8px;
}

.wpei-addons-events-inner-new,
.wpei-addons-timeline-arrow {
	transition: background 0.2s ease-in-out;
}

.wpei-addons-timeline-arrow:after {
	transition: border-color 0.2s ease-in-out;
}

.wpei-addons-date-new {
	transition: color 0.2s ease-in-out;
}

.wpei-addons-timeline-side-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
}

.wpei-addons-timeline-side-visual__image {
	display: block;
	width: var(--wpei-addons-timeline-side-visual-size);
	max-width: 100%;
	height: auto;
}

.wpei-addons-timeline-side-visual svg {
	display: block;
	width: var(--wpei-addons-timeline-side-visual-icon-size);
	height: var(--wpei-addons-timeline-side-visual-icon-size);
}

.wpei-addons-timeline-side-visual svg.wpei-addons-timeline-side-visual__image {
	width: var(--wpei-addons-timeline-side-visual-size);
	height: auto;
}

.wpei-addons-timeline-side-visual i {
	display: block;
	font-size: var(--wpei-addons-timeline-side-visual-icon-size);
	line-height: 1;
}

.wpei-addons-timeline-date-new--has-visual .wpei-addons-date-new {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.wpei-addons-timeline-widget.wpei-addons-timeline-left.hide-events .wpei-addons-date-new,
.wpei-addons-timeline-widget.wpei-addons-timeline-left.hide-events .wpei-addons-events-inner-new,
.wpei-addons-timeline-widget.wpei-addons-timeline-right.hide-events .wpei-addons-date-new,
.wpei-addons-timeline-widget.wpei-addons-timeline-right.hide-events .wpei-addons-events-inner-new {
	visibility: hidden;
}

.wpei-addons-timeline-main .wpei-addons-year {
	position: relative;
}

.wpei-addons-timeline-main .wpei-addons-year span {
	display: inline-block;
	padding-bottom: 6px;
}

.wpei-addons-day-left .wpei-addons-timeline-arrow:after,
.wpei-addons-day-right .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--center .wpei-addons-day-right .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--left .wpei-addons-day-right .wpei-addons-timeline-arrow:after {
	content: "";
	position: absolute;
	display: inline;
	width: 0;
	height: 0;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
}

.wpei-addons-day-left .wpei-addons-timeline-arrow:after {
	left: 0;
}

.wpei-addons-timeline--right .wpei-addons-day-left .wpei-addons-timeline-arrow:after {
	right: 0;
}

.wpei-addons-day-right .wpei-addons-timeline-arrow:after {
	right: 0;
}

.wpei-addons-timeline-main .wpei-addons-date .inner-date-new {
	white-space: nowrap;
	margin: 0;
}

.wpei-addons-timeline-main .wpei-addons-timeline__line {
	position: absolute;
	transform: translateX(-50%);
}

.wpei-addons-timeline--right .wpei-addons-timeline__line {
	position: absolute;
	transform: translateX(50%);
}

.wpei-addons-timeline--center .wpei-addons-timeline__line {
	left: 50%;
	right: auto;
}

.wpei-addons-timeline.wpei-addons-timeline--left.wpei-addons-timeline-has-side-visual .wpei-addons-timeline__line,
.wpei-addons-timeline--left.wpei-addons-timeline-has-side-visual .wpei-addons-timeline__line {
	left: calc(var(--wpei-addons-timeline-side-visual-column-size) + var(--wpei-addons-timeline-side-visual-gap) + (var(--wpei-addons-timeline-marker-size) / 2));
}

.wpei-addons-timeline.wpei-addons-timeline--right.wpei-addons-timeline-has-side-visual .wpei-addons-timeline__line,
.wpei-addons-timeline--right.wpei-addons-timeline-has-side-visual .wpei-addons-timeline__line {
	right: calc(var(--wpei-addons-timeline-side-visual-column-size) + var(--wpei-addons-timeline-side-visual-gap) + (var(--wpei-addons-timeline-marker-size) / 2));
}

.wpei-addons-timeline.wpei-addons-timeline--left.wpei-addons-timeline-has-side-visual .wpei-addons-timeline-main,
.wpei-addons-timeline.wpei-addons-timeline--right.wpei-addons-timeline-has-side-visual .wpei-addons-timeline-main,
.wpei-addons-timeline--left.wpei-addons-timeline-has-side-visual .wpei-addons-timeline-main,
.wpei-addons-timeline--right.wpei-addons-timeline-has-side-visual .wpei-addons-timeline-main {
	width: fit-content;
	max-width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.wpei-addons-timeline.wpei-addons-timeline--left.wpei-addons-timeline-has-side-visual .wpei-addons-days,
.wpei-addons-timeline.wpei-addons-timeline--right.wpei-addons-timeline-has-side-visual .wpei-addons-days,
.wpei-addons-timeline--left.wpei-addons-timeline-has-side-visual .wpei-addons-days,
.wpei-addons-timeline--right.wpei-addons-timeline-has-side-visual .wpei-addons-days {
	width: fit-content;
	max-width: 100%;
}

.wpei-addons-timeline-widget--visual-left,
.wpei-addons-timeline-widget--visual-right,
.wpei-addons-timeline--left .wpei-addons-timeline-widget--has-side-visual,
.wpei-addons-timeline--right .wpei-addons-timeline-widget--has-side-visual {
	display: grid;
	align-items: center;
	width: fit-content;
	max-width: 100%;
}

.wpei-addons-timeline-widget--visual-left,
.wpei-addons-timeline--left .wpei-addons-timeline-widget--has-side-visual {
	grid-template-columns: var(--wpei-addons-timeline-side-visual-column-size) var(--wpei-addons-timeline-side-visual-gap) auto var(--wpei-addons-timeline-side-visual-gap) auto;
}

.wpei-addons-timeline-widget--visual-right,
.wpei-addons-timeline--right .wpei-addons-timeline-widget--has-side-visual {
	grid-template-columns: var(--wpei-addons-timeline-side-content-column-size) var(--wpei-addons-timeline-side-visual-gap) auto var(--wpei-addons-timeline-side-visual-gap) var(--wpei-addons-timeline-side-visual-column-size);
}

.wpei-addons-timeline-widget--visual-left > .wpei-addons-timeline-side-visual,
.wpei-addons-timeline--left .wpei-addons-timeline-widget--has-side-visual .wpei-addons-timeline-side-visual {
	grid-column: 1;
	grid-row: 1;
	justify-self: end;
}

.wpei-addons-timeline-widget--visual-left > .wpei-addons-timeline-marker,
.wpei-addons-timeline--left .wpei-addons-timeline-widget--has-side-visual .wpei-addons-timeline-marker {
	grid-column: 3;
	grid-row: 1;
	margin-right: 0;
	margin-left: 0;
}

.wpei-addons-timeline-widget--visual-left > .wpei-addons-day-new,
.wpei-addons-timeline--left .wpei-addons-timeline-widget--has-side-visual .wpei-addons-day-new {
	grid-column: 5;
	grid-row: 1;
	margin-right: 0;
	margin-left: 0;
	flex-grow: 0;
	width: auto;
}

.wpei-addons-timeline-widget--visual-right > .wpei-addons-day-new,
.wpei-addons-timeline--right .wpei-addons-timeline-widget--has-side-visual .wpei-addons-day-new {
	grid-column: 1;
	grid-row: 1;
	margin-right: 0;
	margin-left: 0;
	flex-grow: 0;
	width: auto;
}

.wpei-addons-timeline-widget--visual-right > .wpei-addons-timeline-marker,
.wpei-addons-timeline--right .wpei-addons-timeline-widget--has-side-visual .wpei-addons-timeline-marker {
	grid-column: 3;
	grid-row: 1;
	margin-right: 0;
	margin-left: 0;
}

.wpei-addons-timeline-widget--visual-right > .wpei-addons-timeline-side-visual,
.wpei-addons-timeline--right .wpei-addons-timeline-widget--has-side-visual .wpei-addons-timeline-side-visual {
	grid-column: 5;
	grid-row: 1;
	justify-self: start;
}

.wpei-addons-timeline-widget--has-side-visual .wpei-addons-events-new {
	width: auto;
	min-width: 0;
}

.wpei-addons-timeline-widget.wpei-addons-timeline-widget--arrow-top {
	align-items: flex-start;
}

.wpei-addons-timeline-widget.wpei-addons-timeline-widget--arrow-center {
	align-items: center;
}

.wpei-addons-timeline-widget.wpei-addons-timeline-widget--arrow-bottom {
	align-items: flex-end;
}

.wpei-addons-timeline-widget.wpei-addons-timeline-widget--arrow-top .wpei-addons-timeline-arrow {
	top: 0;
	transform: none;
}

.wpei-addons-timeline-widget.wpei-addons-timeline-widget--arrow-center .wpei-addons-timeline-arrow {
	top: 50%;
	transform: translateY(-50%);
}

.wpei-addons-timeline-widget.wpei-addons-timeline-widget--arrow-bottom .wpei-addons-timeline-arrow {
	top: 100%;
	transform: translateY(-100%);
}

.wpei-addons-timeline-main .in-view i.in-view-timeline-icon {
	transition: background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;
}

.wpei-addons-timeline--center .wpei-addons-days {
	text-align: center;
}

.wpei-addons-timeline--center .wpei-addons-day-right .wpei-addons-timeline-arrow:after {
	content: "";
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.wpei-addons-timeline--center .wpei-addons-day-right .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--right .wpei-addons-day-left .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--right .wpei-addons-day-right .wpei-addons-timeline-arrow:after {
	border-left-style: solid;
	border-left-width: 13px;
	border-left-color: transparent;
}

.wpei-addons-timeline--center .wpei-addons-day-left .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--left .wpei-addons-day-left .wpei-addons-timeline-arrow:after,
.wpei-addons-timeline--left .wpei-addons-day-right .wpei-addons-timeline-arrow:after {
	border-right-style: solid;
	border-right-width: 13px;
	border-right-color: transparent;
}

.wpei-addons-timeline-wrapper .jscroll-loading img {
	position: relative;
	left: 50%;
	transform: translate(-50%, 20%);
}

.wpei-addons-timeline-wrapper {
	container-type: inline-size;
}

@media screen and (max-width: 1024px) {
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-res-right .wpei-addons-timeline__line {
		position: absolute;
		transform: translateX(50%);
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-date-hide {
		display: block;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-day-left .wpei-addons-events-inner-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-day-right .wpei-addons-events-inner-new {
		text-align: left;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline__line {
		left: 20px;
		right: auto;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-day-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-marker {
		max-width: 100%;
		position: relative;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-day-new {
		margin-left: 16px;
		order: 1;
		flex-grow: 1;
		flex-basis: unset;
		width: 100%;
		padding-right: 0;
		padding-left: 0;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-marker {
		order: 0;
		flex-shrink: 0;
		flex-grow: 0;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-left .wpei-addons-timeline-arrow,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
		left: -12px;
		width: 10px;
		height: 40px;
		position: absolute;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
		left: -10px;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-left .wpei-addons-timeline-arrow:after,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-right .wpei-addons-timeline-arrow:after {
		top: 50%;
		transform: translateY(-50%);
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-days {
		text-align: left;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-widget.wpei-addons-timeline-right {
		flex-direction: unset;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-date-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-left .wpei-addons-timeline-date-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-right .wpei-addons-timeline-date-new {
		display: none;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-date-new--has-visual,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-left .wpei-addons-timeline-date-new--has-visual,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-right .wpei-addons-timeline-date-new--has-visual {
		display: flex;
		order: 2;
		flex: 0 0 auto;
		width: auto;
		margin-left: 16px;
		align-items: center;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-left .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-timeline-right .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new {
		display: none;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-day-left .wpei-addons-timeline-arrow:after,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-tablet .wpei-addons-day-right .wpei-addons-timeline-arrow:after {
		border-right-style: solid;
		border-right-width: 13px;
		border-left: none;
		border-right-color: transparent;
	}
}

@media screen and (max-width: 767px) {
	.wpei-addons-timeline-responsive-none .wpei-addons-events-inner-new {
		padding: 15px;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-date-hide {
		display: block;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-day-left .wpei-addons-events-inner-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-day-right .wpei-addons-events-inner-new {
		text-align: left;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline__line {
		left: 20px;
		right: auto;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-day-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-marker {
		max-width: 100%;
		position: relative;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-day-new {
		margin-left: 16px;
		order: 1;
		flex-grow: 1;
		flex-basis: unset;
		padding-right: 0;
		padding-left: 0;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-marker {
		order: 0;
		flex-shrink: 0;
		flex-grow: 0;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-left .wpei-addons-timeline-arrow,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
		left: -12px;
		width: 10px;
		height: 40px;
		position: absolute;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
		left: -10px;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-left .wpei-addons-timeline-arrow:after,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-right .wpei-addons-timeline-arrow:after {
		top: 50%;
		transform: translateY(-50%);
	}

	.wpei-addons-day-left .wpei-addons-events-inner-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-days {
		text-align: left;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-widget.wpei-addons-timeline-right {
		flex-direction: unset;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-date-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-left .wpei-addons-timeline-date-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-right .wpei-addons-timeline-date-new {
		display: none;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-date-new--has-visual,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-left .wpei-addons-timeline-date-new--has-visual,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-right .wpei-addons-timeline-date-new--has-visual {
		display: flex;
		order: 2;
		flex: 0 0 auto;
		width: auto;
		margin-left: 16px;
		align-items: center;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-left .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-timeline-right .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new {
		display: none;
	}

	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-day-left .wpei-addons-timeline-arrow:after,
	.wpei-addons-timeline--center.wpei-addons-timeline-responsive-mobile .wpei-addons-day-right .wpei-addons-timeline-arrow:after {
		border-right-style: solid;
		border-right-width: 13px;
		border-left: none;
	}
}

@container (max-width: 640px) {
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-date-hide {
		display: block;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-day-left .wpei-addons-events-inner-new,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-day-right .wpei-addons-events-inner-new {
		text-align: left;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline__line {
		left: 20px;
		right: auto;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-day-new,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-marker {
		max-width: 100%;
		position: relative;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-day-new {
		width: 100%;
		min-width: 0;
		margin-left: 16px;
		order: 1;
		flex-grow: 1;
		flex-basis: unset;
		padding-right: 0;
		padding-left: 0;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-events-new,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-events-inner-new {
		min-width: 0;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-marker {
		order: 0;
		flex-shrink: 0;
		flex-grow: 0;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-left .wpei-addons-timeline-arrow,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
		left: -12px;
		width: 10px;
		height: 40px;
		position: absolute;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-right .wpei-addons-timeline-arrow {
		left: -10px;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-left .wpei-addons-timeline-arrow:after,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-right .wpei-addons-timeline-arrow:after {
		top: 50%;
		transform: translateY(-50%);
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-days {
		text-align: left;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-widget.wpei-addons-timeline-right,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-widget.wpei-addons-timeline-left {
		flex-direction: unset;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-date-new,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-left .wpei-addons-timeline-date-new,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-right .wpei-addons-timeline-date-new {
		display: none;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-date-new--has-visual,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-left .wpei-addons-timeline-date-new--has-visual,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-right .wpei-addons-timeline-date-new--has-visual {
		display: flex;
		order: 2;
		flex: 0 0 auto;
		width: auto;
		margin-left: 16px;
		align-items: center;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-left .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-timeline-right .wpei-addons-timeline-date-new--has-visual .wpei-addons-inner-date-new {
		display: none;
	}

	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-day-left .wpei-addons-timeline-arrow:after,
	.wpei-addons-timeline-wrapper--center:is(.wpei-addons-timeline-responsive-tablet, .wpei-addons-timeline-responsive-mobile) .wpei-addons-day-right .wpei-addons-timeline-arrow:after {
		border-right-style: solid;
		border-right-width: 13px;
		border-left: none;
		border-right-color: transparent;
	}
}

/* ── Elementor editor overrides ──────────────────────────────────────────────
 * The JS animation depends on outer-window scroll events that don't fire
 * inside the editor preview iframe.  These rules ensure a correct static
 * preview while the page is being edited.
 * ----------------------------------------------------------------------- */

/* Show items regardless of their out-view / in-view scroll state. */
.elementor-editor-active .wpei-addons-timeline-field.out-view,
.elementor-editor-active .wpei-addons-animate-border.out-view,
.elementor-editor-active .animate-border.out-view {
	opacity: 1;
	transform: none;
	visibility: visible;
}

/* Show the connector icon in its "active" colour inside the editor. */
.elementor-editor-active .out-view-timeline-icon {
	opacity: 1;
}
