.eifc-card {
	--eifc-card-height: 360px;
	--eifc-container-fallback-height: 360px;
	--eifc-front-panel-height: var(--eifc-card-height);
	--eifc-back-panel-height: var(--eifc-card-height);
	position: relative;
	overflow: hidden;
	width: 100%;
	height: var(--eifc-card-height);
	min-height: var(--eifc-card-height);
	border-radius: 8px;
	cursor: pointer;
	perspective: 1000px;
}

.elementor-widget-eifc_image_flip_card.elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
}

.eifc-card.eifc-height-container {
	height: 100%;
	min-height: var(--eifc-container-fallback-height);
}

.eifc-card-inner,
.eifc-panel {
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.eifc-card-inner {
	inset: 0;
	height: 100%;
	min-height: inherit;
	transform-style: preserve-3d;
	transition: transform 0.65s ease, scale 0.45s ease;
}

.eifc-panel {
	display: flex;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	backface-visibility: hidden;
	transform-style: preserve-3d;
}

.eifc-front {
	align-items: flex-end;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.eifc-front-height-custom .eifc-front {
	bottom: auto;
	height: var(--eifc-front-panel-height);
	min-height: var(--eifc-front-panel-height);
}

.eifc-back-height-custom .eifc-back {
	bottom: auto;
	height: var(--eifc-back-panel-height);
	min-height: var(--eifc-back-panel-height);
}

.eifc-front-bar {
	--eifc-front-bar-color: #000000;
	--eifc-front-bar-opacity: 0.68;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	padding: 16px 18px;
	color: #fff;
}

.eifc-front-bar::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--eifc-front-bar-color);
	content: "";
	opacity: var(--eifc-front-bar-opacity);
}

.eifc-front-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}

.eifc-front-title,
.eifc-back-title {
	margin: 0;
	line-height: 1.2;
}

.eifc-front-title {
	min-width: 0;
	font-size: 20px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.eifc-front-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	width: 1.25em;
	height: 1.25em;
	font-size: 20px;
	line-height: 1;
}

.eifc-front-icon svg,
.eifc-front-icon i {
	display: block;
	width: 1em;
	height: 1em;
	color: currentColor;
}

.eifc-front-icon svg {
	overflow: visible;
}

.eifc-back {
	--eifc-back-overlay-color: #000000;
	--eifc-back-overlay-opacity: 0;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: #111827;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
	text-align: center;
}

.eifc-back::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--eifc-back-overlay-color);
	content: "";
	opacity: var(--eifc-back-overlay-opacity);
	pointer-events: none;
}

.eifc-back-body {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	color: inherit;
	opacity: 1;
}

.eifc-back-title {
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	opacity: 1;
}

.eifc-back-content {
	margin-top: 12px;
	color: #fff;
	font-size: 16px;
	line-height: 1.6;
	opacity: 1;
}

.eifc-back-content > :first-child {
	margin-top: 0;
}

.eifc-back-content > :last-child {
	margin-bottom: 0;
}

.eifc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: 20px;
	padding: 10px 18px;
	border-radius: 6px;
	background: #fff;
	color: #111827;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.eifc-button:hover,
.eifc-button:focus {
	opacity: 0.86;
	transform: translateY(-1px);
}

.eifc-front-button {
	margin-top: 0;
}

.eifc-back-button {
	margin-top: 20px;
}

.eifc-animation-flip .eifc-back {
	transform: rotateY(180deg);
}

.eifc-animation-flip.eifc-trigger-hover:hover .eifc-card-inner,
.eifc-animation-flip.eifc-is-active .eifc-card-inner {
	transform: rotateY(180deg);
}

.eifc-animation-fade .eifc-front,
.eifc-animation-shrink .eifc-front,
.eifc-animation-grow .eifc-front,
.eifc-animation-slide .eifc-front {
	z-index: 2;
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.eifc-animation-fade .eifc-back,
.eifc-animation-shrink .eifc-back,
.eifc-animation-grow .eifc-back,
.eifc-animation-slide .eifc-back {
	z-index: 1;
}

.eifc-animation-fade.eifc-trigger-hover:hover .eifc-front,
.eifc-animation-fade.eifc-is-active .eifc-front {
	opacity: 0;
}

.eifc-animation-shrink.eifc-trigger-hover:hover .eifc-front,
.eifc-animation-shrink.eifc-is-active .eifc-front {
	opacity: 0;
	transform: scale(0.86);
}

.eifc-animation-grow .eifc-front {
	transform: scale(1);
}

.eifc-animation-grow.eifc-trigger-hover:hover .eifc-front,
.eifc-animation-grow.eifc-is-active .eifc-front {
	opacity: 0;
	transform: scale(1.14);
}

.eifc-animation-slide .eifc-front {
	transform: translateY(0);
}

.eifc-animation-slide.eifc-trigger-hover:hover .eifc-front,
.eifc-animation-slide.eifc-is-active .eifc-front {
	transform: translateY(-100%);
}

.eifc-trigger-click:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.eifc-front-bar {
		padding: 14px 16px;
	}

	.eifc-back {
		padding: 22px;
	}

	.eifc-front-title {
		font-size: 18px;
	}

	.eifc-back-title {
		font-size: 21px;
	}
}
