/**
 * Mobility Marketer Exit Offer public styles.
 *
 * Every selector is scoped to the plugin wrapper.
 */

.mmeo-overlay {
	--mmeo-green: #123f32;
	--mmeo-red: #a82035;
	--mmeo-bg: #fffaf0;
	--mmeo-text: #202020;
	--mmeo-muted: #5d625f;
	--mmeo-border: #d8ddd9;
	align-items: center;
	background: rgba(14, 22, 19, 0.72);
	box-sizing: border-box;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 24px;
	position: fixed;
	transition: opacity 200ms ease;
	z-index: 99998;
}

.mmeo-overlay[hidden] {
	display: none;
}

.mmeo-overlay *,
.mmeo-overlay *::before,
.mmeo-overlay *::after {
	box-sizing: border-box;
}

.mmeo-overlay.mmeo-is-open {
	opacity: 1;
}

.mmeo-overlay .mmeo-dialog {
	background: var(--mmeo-bg);
	border: 1px solid var(--mmeo-border);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	color: var(--mmeo-text);
	display: grid;
	font-family: inherit;
	grid-template-columns: minmax(0, 1fr);
	margin: auto;
	max-height: calc(100vh - 48px);
	max-width: 620px;
	opacity: 0;
	overflow-x: hidden;
	overflow-y: auto;
	position: relative;
	transform: scale(0.975);
	transition: opacity 200ms ease, transform 200ms ease;
	width: 100%;
}

.mmeo-overlay.mmeo-is-open .mmeo-dialog {
	opacity: 1;
	transform: scale(1);
}

.mmeo-overlay .mmeo-dialog--has-image {
	grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
	max-width: 760px;
}

.mmeo-overlay .mmeo-content {
	align-self: center;
	min-width: 0;
	padding: clamp(28px, 5vw, 48px);
}

.mmeo-overlay .mmeo-image {
	align-items: center;
	background: radial-gradient(circle at center, rgba(18, 63, 50, 0.22), rgba(18, 63, 50, 0.06)), #07120f;
	display: flex;
	justify-content: center;
	min-height: 100%;
	overflow: hidden;
	padding: clamp(10px, 2vw, 18px);
}

.mmeo-overlay .mmeo-image img {
	display: block;
	height: 100%;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: center center;
	width: 100%;
}

.mmeo-overlay .mmeo-eyebrow,
.mmeo-overlay .mmeo-headline,
.mmeo-overlay .mmeo-body,
.mmeo-overlay .mmeo-subtext {
	font-family: inherit;
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	padding: 0;
}

.mmeo-overlay .mmeo-eyebrow {
	color: var(--mmeo-green);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	line-height: 1.4;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.mmeo-overlay .mmeo-headline {
	color: var(--mmeo-text);
	font-size: clamp(1.75rem, 5vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.08;
}

.mmeo-overlay .mmeo-body {
	color: var(--mmeo-muted);
	font-size: 1rem;
	line-height: 1.65;
	margin-top: 18px;
}

.mmeo-overlay .mmeo-cta {
	align-items: center;
	background: var(--mmeo-red);
	border: 2px solid var(--mmeo-red);
	border-radius: 5px;
	color: #fff;
	display: inline-flex;
	font-family: inherit;
	font-size: 0.94rem;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	margin-top: 24px;
	min-height: 48px;
	padding: 12px 22px;
	text-align: center;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.mmeo-overlay .mmeo-cta:hover {
	background: #86182a;
	border-color: #86182a;
	color: #fff;
	transform: translateY(-1px);
}

.mmeo-overlay .mmeo-cta:focus-visible,
.mmeo-overlay .mmeo-dismiss:focus-visible,
.mmeo-overlay .mmeo-close:focus-visible {
	outline: 3px solid #0b63ce;
	outline-offset: 3px;
}

.mmeo-overlay .mmeo-subtext {
	color: var(--mmeo-muted);
	font-size: 0.82rem;
	line-height: 1.45;
	margin-top: 8px;
}

.mmeo-overlay .mmeo-dismiss {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--mmeo-muted);
	cursor: pointer;
	display: block;
	font-family: inherit;
	font-size: 0.88rem;
	line-height: 1.4;
	margin: 18px 0 0;
	min-height: 44px;
	padding: 8px 0;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mmeo-overlay .mmeo-dismiss:hover {
	color: var(--mmeo-text);
}

.mmeo-overlay .mmeo-close {
	align-items: center;
	appearance: none;
	background: var(--mmeo-bg);
	border: 1px solid var(--mmeo-border);
	border-radius: 50%;
	color: var(--mmeo-text);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 26px;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	position: absolute;
	right: 12px;
	top: 12px;
	width: 44px;
	z-index: 2;
}

.mmeo-overlay .mmeo-close:hover {
	background: #fff;
	border-color: var(--mmeo-green);
}

.admin-bar .mmeo-overlay {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .mmeo-overlay {
		top: 46px;
	}
}

@media screen and (max-width: 640px) {
	.mmeo-overlay {
		align-items: flex-start;
		padding: 16px;
	}

	.mmeo-overlay .mmeo-dialog,
	.mmeo-overlay .mmeo-dialog--has-image {
		grid-template-columns: minmax(0, 1fr);
		max-height: calc(100vh - 32px);
		max-width: 100%;
	}

	.mmeo-overlay .mmeo-image {
		aspect-ratio: 16 / 10;
		max-height: 260px;
		min-height: 0;
		padding: 12px;
	}

	.mmeo-overlay .mmeo-image img {
		height: 100%;
		width: 100%;
	}

	.mmeo-overlay .mmeo-content {
		padding: 32px 24px 28px;
	}

	.mmeo-overlay .mmeo-headline {
		font-size: clamp(1.65rem, 9vw, 2.2rem);
	}

	.mmeo-overlay .mmeo-cta {
		width: 100%;
	}

	.mmeo-overlay .mmeo-dismiss {
		text-align: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mmeo-overlay,
	.mmeo-overlay .mmeo-dialog,
	.mmeo-overlay .mmeo-cta {
		scroll-behavior: auto;
		transition-duration: 1ms;
	}
}
