/* Relifi Oral Care Steps Elementor v2 */

.elementor-widget-relifi-oral-care-steps-v2,
.elementor-widget-relifi-oral-care-steps-v2 > .elementor-widget-container {
	width: 100%;
	max-width: none;
}

.relifi-v2-section {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	box-sizing: border-box;
	background: #F7F4EE;
	font-family: Arial, Helvetica, sans-serif;
}

.relifi-v2-section *,
.relifi-v2-section *::before,
.relifi-v2-section *::after {
	box-sizing: border-box;
}

.relifi-v2-inner {
	width: 100%;
	margin: 0 auto;
}

.relifi-v2-header {
	margin: 0 auto 24px;
	text-align: center;
}

.relifi-v2-eyebrow {
	margin: 0 0 8px;
	color: #00653B;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.relifi-v2-heading {
	margin: 0;
	color: #00653B;
	font-size: clamp(28px, 2.5vw, 38px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.relifi-v2-subheading {
	max-width: 760px;
	margin: 14px auto 0;
	color: #2F2925;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

.relifi-v2-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	width: 100%;
}

.relifi-v2-card {
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid #D8D6CF;
	border-radius: 14px;
	background: #FFFFFF;
	overflow: hidden;
}

.relifi-v2-duo {
	border-color: #00834E;
}

.relifi-v2-step::before {
	content: "";
	position: absolute;
	top: 0;
	left: 30%;
	right: 30%;
	height: 3px;
	background: #79BDA0;
}

.relifi-v2-duo-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	min-height: 34px;
}

.relifi-v2-duo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 5px 14px;
	border-radius: 999px;
	background: #48984D;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.relifi-v2-duo-overview {
	color: #3C9A71;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .10em;
	text-align: right;
	text-transform: uppercase;
}

.relifi-v2-step-top {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 34px;
}

.relifi-v2-step-number {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #00653B;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
}

.relifi-v2-step-label {
	color: #00653B;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .10em;
	text-transform: uppercase;
}

.relifi-v2-duo-image,
.relifi-v2-image-area {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.relifi-v2-duo-image {
	flex: 1 1 auto;
	min-height: 175px;
	padding: 10px 0 5px;
}

.relifi-v2-image-area {
	flex: 0 0 auto;
	height: 220px;
	padding: 8px 0 2px;
}

.relifi-v2-duo-image img,
.relifi-v2-image-area img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.relifi-v2-duo-image img {
	max-height: 190px;
}

.relifi-v2-image-area img {
	max-height: 190px;
}

.relifi-v2-duo-content {
	margin-top: auto;
	text-align: center;
}

.relifi-v2-step-content {
	margin-top: auto;
	padding-top: 8px;
}

.relifi-v2-card-title {
	margin: 0;
	color: #00653B;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.relifi-v2-card-text {
	margin-top: 12px;
	color: #2F2925;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
}

.relifi-v2-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 40px;
	margin-top: 16px;
	padding: 10px 17px;
	border-radius: 999px;
	background: #00653B;
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	transition: transform .18s ease, filter .18s ease;
}

.relifi-v2-button:hover {
	color: #fff !important;
	filter: brightness(.9);
	transform: translateY(-1px);
}

.relifi-v2-arrow {
	font-size: 22px;
	line-height: .6;
	font-weight: 400;
	transform: translateY(-1px);
}

/* Tablet */
@media (max-width: 1024px) {
	.relifi-v2-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile */
@media (max-width: 767px) {
	.relifi-v2-section {
		left: 0;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
	}

	.relifi-v2-grid {
		grid-template-columns: 1fr;
	}

	.relifi-v2-card {
		min-height: 0 !important;
	}

	.relifi-v2-header {
		margin-bottom: 18px;
	}

	.relifi-v2-heading {
		font-size: clamp(25px, 8vw, 32px);
	}

	.relifi-v2-subheading {
		font-size: 14px;
	}

	.relifi-v2-image-area {
		height: 185px;
	}

	.relifi-v2-card-title {
		font-size: 19px;
	}

	.relifi-v2-card-text {
		font-size: 14px;
	}
}

html,
body {
	overflow-x: clip;
}

@supports not (overflow: clip) {
	html,
	body {
		overflow-x: hidden;
	}
}


/* =========================================================
   STEP 3 IMAGE — REFERENCE STYLE
   Circular mouth image, centered and intentionally smaller
   than the square image area used by Step 1 / Step 2.
========================================================= */

.relifi-v2-step--3 .relifi-v2-image-area {
	display: flex;
	align-items: center;
	justify-content: center;
}

.relifi-v2-step--3 .relifi-v2-image-area img {
	width: 150px !important;
	height: 150px !important;
	max-width: 150px !important;
	max-height: 150px !important;
	flex: 0 0 150px;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: center center !important;
	overflow: hidden;
}

/* Tablet */
@media (max-width: 1024px) {
	.relifi-v2-step--3 .relifi-v2-image-area img {
		width: 145px !important;
		height: 145px !important;
		max-width: 145px !important;
		max-height: 145px !important;
		flex-basis: 145px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.relifi-v2-step--3 .relifi-v2-image-area img {
		width: 140px !important;
		height: 140px !important;
		max-width: 140px !important;
		max-height: 140px !important;
		flex-basis: 140px;
	}
}


/* =========================================================
   MOBILE RESPONSIVE FIX v1.4.0
   True single-column mobile layout with compact spacing,
   auto card height, responsive images and no overflow.
========================================================= */

@media (max-width: 767px) {

	.elementor-widget-relifi-oral-care-steps-v2,
	.elementor-widget-relifi-oral-care-steps-v2 > .elementor-widget-container {
		width: 100% !important;
		max-width: 100% !important;
		overflow: visible !important;
	}

	.relifi-v2-section {
		position: relative !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding: 22px 14px 24px !important;
		overflow: hidden !important;
	}

	.relifi-v2-inner {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		padding: 0 !important;
	}

	.relifi-v2-header {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 auto 18px !important;
		padding: 0 2px !important;
	}

	.relifi-v2-eyebrow {
		margin-bottom: 7px !important;
		font-size: 10px !important;
		line-height: 1.2 !important;
		letter-spacing: .13em !important;
	}

	.relifi-v2-heading {
		max-width: 100% !important;
		margin: 0 auto !important;
		font-size: clamp(24px, 7.2vw, 30px) !important;
		line-height: 1.1 !important;
		letter-spacing: -.025em !important;
		overflow-wrap: anywhere;
	}

	.relifi-v2-subheading {
		max-width: 100% !important;
		margin: 10px auto 0 !important;
		font-size: 13px !important;
		line-height: 1.45 !important;
		padding: 0 4px !important;
	}

	.relifi-v2-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 14px !important;
		align-items: stretch !important;
	}

	.relifi-v2-card {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		min-height: 0 !important;
		height: auto !important;
		padding: 16px !important;
		margin: 0 !important;
		border-radius: 13px !important;
		overflow: hidden !important;
	}

	.relifi-v2-duo-top,
	.relifi-v2-step-top {
		min-height: 30px !important;
	}

	.relifi-v2-duo-badge {
		min-height: 26px !important;
		padding: 5px 12px !important;
		font-size: 9px !important;
	}

	.relifi-v2-duo-overview {
		font-size: 8.5px !important;
		letter-spacing: .08em !important;
	}

	.relifi-v2-step-number {
		width: 28px !important;
		height: 28px !important;
		flex-basis: 28px !important;
		font-size: 12px !important;
	}

	.relifi-v2-step-label {
		font-size: 9.5px !important;
		letter-spacing: .09em !important;
	}

	/* Duo card image */
	.relifi-v2-duo-image {
		flex: 0 0 auto !important;
		width: 100% !important;
		min-height: 0 !important;
		height: auto !important;
		padding: 12px 0 8px !important;
	}

	.relifi-v2-duo-image img {
		width: auto !important;
		height: auto !important;
		max-width: min(78%, 245px) !important;
		max-height: 175px !important;
		object-fit: contain !important;
	}

	/* Step image area */
	.relifi-v2-image-area {
		width: 100% !important;
		height: 175px !important;
		min-height: 0 !important;
		padding: 10px 0 4px !important;
		overflow: hidden !important;
	}

	.relifi-v2-image-area img {
		width: auto !important;
		height: auto !important;
		max-width: 88% !important;
		max-height: 155px !important;
		object-fit: contain !important;
		object-position: center !important;
	}

	/* Step 3 remains circular */
	.relifi-v2-step--3 .relifi-v2-image-area {
		height: 175px !important;
	}

	.relifi-v2-step--3 .relifi-v2-image-area img {
		width: 138px !important;
		height: 138px !important;
		max-width: 138px !important;
		max-height: 138px !important;
		flex-basis: 138px !important;
		border-radius: 50% !important;
		object-fit: cover !important;
		object-position: center center !important;
	}

	.relifi-v2-duo-content,
	.relifi-v2-step-content {
		margin-top: 0 !important;
		padding-top: 8px !important;
	}

	.relifi-v2-card-title {
		margin: 0 !important;
		font-size: 18px !important;
		line-height: 1.18 !important;
		letter-spacing: -.015em !important;
		overflow-wrap: anywhere;
	}

	.relifi-v2-card-text {
		margin-top: 9px !important;
		font-size: 13px !important;
		line-height: 1.45 !important;
		overflow-wrap: anywhere;
	}

	.relifi-v2-button {
		min-height: 38px !important;
		margin-top: 14px !important;
		padding: 9px 15px !important;
		font-size: 12px !important;
	}

	.relifi-v2-step::before {
		left: 35% !important;
		right: 35% !important;
		height: 3px !important;
	}
}

/* Extra-small phones */
@media (max-width: 390px) {
	.relifi-v2-section {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.relifi-v2-card {
		padding: 14px !important;
	}

	.relifi-v2-heading {
		font-size: 24px !important;
	}

	.relifi-v2-image-area {
		height: 165px !important;
	}

	.relifi-v2-image-area img {
		max-height: 145px !important;
	}

	.relifi-v2-step--3 .relifi-v2-image-area img {
		width: 132px !important;
		height: 132px !important;
		max-width: 132px !important;
		max-height: 132px !important;
		flex-basis: 132px !important;
	}
}


/* =========================================================
   MOBILE TRUE FULL WIDTH FIX v1.4.1
   Breaks out of Elementor boxed/container width and fills
   the actual phone viewport edge-to-edge.
========================================================= */
@media (max-width: 767px) {

	.elementor-widget-relifi-oral-care-steps-v2 {
		position: relative !important;
		left: 50% !important;
		width: 100vw !important;
		width: 100dvw !important;
		max-width: 100vw !important;
		max-width: 100dvw !important;
		margin-left: -50vw !important;
		margin-left: -50dvw !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.elementor-widget-relifi-oral-care-steps-v2 > .elementor-widget-container {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.relifi-v2-section {
		position: relative !important;
		left: 0 !important;
		right: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 20px 10px 24px !important;
		overflow: hidden !important;
	}

	.relifi-v2-inner {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		padding: 0 !important;
	}

	.relifi-v2-grid {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.relifi-v2-card {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

@media (max-width: 390px) {
	.relifi-v2-section {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
}
