.emero-quote-results {
	--emero-ink: #17233c;
	--emero-muted: #5a6475;
	--emero-line: #dce2ea;
	--emero-soft: #f5f7fa;
	--emero-accent: #176b61;
	--emero-accent-dark: #0f5149;
	box-sizing: border-box;
	color: var(--emero-ink);
	margin: 0 auto;
	max-width: 1180px;
	padding: 56px 24px 72px;
}

.emero-quote-results *,
.emero-quote-results *::before,
.emero-quote-results *::after {
	box-sizing: inherit;
}

.emero-results-header {
	margin: 0 0 24px;
}

.emero-results-header h1 {
	color: var(--emero-ink);
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.08;
	margin: 0 0 10px;
}

.emero-results-header > p:last-child {
	color: var(--emero-muted);
	font-size: 1.1rem;
	margin: 0;
}

.emero-results-eyebrow {
	color: var(--emero-accent);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.emero-test-banner,
.emero-results-error,
.emero-provider-warning {
	align-items: flex-start;
	border-radius: 8px;
	display: flex;
	gap: 8px 14px;
	margin: 0 0 22px;
	padding: 15px 18px;
}

.emero-test-banner {
	background: #fff7df;
	border: 1px solid #ead38c;
	color: #5d4705;
	flex-direction: column;
}

.emero-results-error {
	background: #fff0f0;
	border: 1px solid #e5aaaa;
	color: #812525;
}

.emero-provider-warning {
	background: #f2f6fb;
	border-left: 4px solid #597b9f;
	color: #334b65;
}

.emero-quote-summary {
	background: var(--emero-soft);
	border: 1px solid var(--emero-line);
	border-radius: 10px;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 28px 0 42px;
	overflow: hidden;
}

.emero-quote-summary > div {
	border-right: 1px solid var(--emero-line);
	padding: 18px 20px;
}

.emero-quote-summary > div:last-child {
	border-right: 0;
}

.emero-quote-summary dt {
	color: var(--emero-muted);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	margin: 0 0 5px;
	text-transform: uppercase;
}

.emero-quote-summary dd {
	color: var(--emero-ink);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
}

.emero-result-group {
	margin: 0 0 46px;
}

.emero-result-group h2 {
	color: var(--emero-ink);
	font-size: 1.55rem;
	margin: 0 0 18px;
}

.emero-quote-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.emero-quote-row {
	align-items: stretch;
	background: #fafafa;
	border: 2px solid var(--emero-line);
	border-radius: 9px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .11);
	display: grid;
	grid-template-columns: minmax(190px, 1fr) minmax(180px, .75fr) minmax(230px, 1fr);
	min-width: 0;
	overflow: hidden;
}

.emero-provider {
	align-items: center;
	border-right: 1px solid var(--emero-line);
	display: flex;
	font-size: 1.05rem;
	gap: 11px;
	justify-content: center;
	min-height: 132px;
	padding: 20px 24px;
	text-align: center;
}

.emero-provider-mark {
	align-items: center;
	background: var(--emero-ink);
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	font-size: .72rem;
	font-weight: 800;
	height: 38px;
	justify-content: center;
	letter-spacing: -.02em;
	width: 38px;
}

.emero-provider-mark--logo {
	background: transparent;
	border-radius: 0;
	flex: 0 0 110px;
	height: 58px;
	width: 110px;
}

.emero-provider-mark--logo img {
	display: block;
	height: 100%;
	max-height: 58px;
	max-width: 110px;
	object-fit: contain;
	width: 100%;
}

.emero-provider--aviva .emero-provider-mark { background: #6a3ba3; }
.emero-provider--irishlife .emero-provider-mark { background: #007a78; }
.emero-provider--newireland .emero-provider-mark { background: #1d4f91; }
.emero-provider--royallondon .emero-provider-mark { background: #74204f; }
.emero-provider--zurich .emero-provider-mark { background: #165ba8; }
.emero-provider--friendsfirst .emero-provider-mark { background: #ec6b24; }

.emero-provider .emero-provider-mark--logo { background: transparent; }

.emero-visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.emero-premium {
	align-items: center;
	border-right: 1px solid var(--emero-line);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 24px;
	text-align: center;
}

.emero-premium span,
.emero-premium small {
	color: var(--emero-muted);
	display: block;
	font-size: .8rem;
}

.emero-premium strong {
	color: var(--emero-ink);
	display: block;
	font-size: clamp(2rem, 4vw, 2.5rem);
	line-height: 1.1;
	margin: 6px 0 3px;
}

.emero-quote-actions {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
	padding: 20px 24px;
}

.emero-quote-button {
	border: 2px solid var(--emero-accent);
	border-radius: 5px;
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	max-width: 210px;
	padding: 13px 22px;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s, color .2s, transform .2s;
	width: 100%;
}

.emero-quote-button--apply {
	background: var(--emero-accent);
	color: #fff;
}

.emero-quote-button--call {
	background: #fff;
	color: var(--emero-accent);
}

.emero-quote-button--apply:hover,
.emero-quote-button--apply:focus,
.emero-quote-button--call:hover,
.emero-quote-button--call:focus {
	background: var(--emero-accent-dark);
	border-color: var(--emero-accent-dark);
	color: #fff;
	transform: translateY(-2px);
}

.emero-quote-button:focus-visible {
	outline: 3px solid rgba(23, 107, 97, .32);
	outline-offset: 2px;
}

.emero-quote-button--disabled {
	background: #eef0f3;
	border-color: #cfd4da;
	color: #7a828e;
	cursor: not-allowed;
}

.emero-quote-state {
	background: var(--emero-soft);
	border: 1px solid var(--emero-line);
	border-radius: 12px;
	margin: 32px auto;
	max-width: 760px;
	padding: 36px;
	text-align: center;
}

.emero-quote-state h1,
.emero-quote-state h2 {
	color: var(--emero-ink);
	margin-top: 0;
}

.emero-widget-state-message > :first-child,
.emero-widget-success-message > :first-child {
	margin-top: 0;
}

.emero-widget-state-message > :last-child,
.emero-widget-success-message > :last-child {
	margin-bottom: 0;
}

.emero-widget-state-action {
	margin: 24px 0 0;
}

.emero-widget-state-button {
	background: var(--emero-accent);
	border: 0;
	border-radius: 5px;
	color: #fff;
	display: inline-block;
	font-weight: 700;
	padding: 12px 20px;
	text-decoration: none;
	transition: background-color .2s, color .2s, transform .2s;
}

.emero-widget-state-button:hover,
.emero-widget-state-button:focus {
	background: var(--emero-accent-dark);
	color: #fff;
	transform: translateY(-2px);
}

.emero-widget-state-button:focus-visible {
	outline: 3px solid rgba(23, 107, 97, .32);
	outline-offset: 2px;
}

.emero-results-footer {
	border-top: 1px solid var(--emero-line);
	color: var(--emero-muted);
	font-size: .84rem;
	margin-top: 44px;
	padding-top: 20px;
}

.emero-results-footer p {
	margin: 0 0 7px;
}

.emero-selection-header {
	background: #f0f8f6;
	border: 1px solid #b9d8d2;
	border-radius: 12px;
	padding: 28px;
}

.emero-selection-header h1 {
	font-size: clamp(1.75rem, 4vw, 2.65rem);
}

.emero-selection-section {
	margin: 42px 0 0;
}

.emero-selection-section h2 {
	color: var(--emero-ink);
	font-size: 1.55rem;
	margin: 0 0 18px;
}

.emero-selection-subheading {
	color: var(--emero-ink);
	font-size: 1.08rem;
	margin: 26px 0 10px;
}

.emero-selection-section > .emero-selection-subheading:first-of-type {
	margin-top: 0;
}

.emero-selected-provider {
	align-items: center;
	background: #fff;
	border: 1px solid var(--emero-line);
	border-radius: 10px 10px 0 0;
	display: flex;
	font-size: 1.15rem;
	gap: 18px;
	min-height: 92px;
	padding: 18px 22px;
}

.emero-selected-provider img {
	display: block;
	height: auto;
	max-height: 56px;
	max-width: 150px;
	object-fit: contain;
	width: auto;
}

.emero-selection-details {
	background: var(--emero-soft);
	border: 1px solid var(--emero-line);
	border-radius: 10px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	overflow: hidden;
}

.emero-selected-provider + .emero-selection-details {
	border-radius: 0 0 10px 10px;
	border-top: 0;
}

.emero-selection-details > div {
	border-bottom: 1px solid var(--emero-line);
	padding: 16px 20px;
}

.emero-selection-details > div:nth-child(odd) {
	border-right: 1px solid var(--emero-line);
}

.emero-selection-details dt {
	color: var(--emero-muted);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .04em;
	margin: 0 0 5px;
	text-transform: uppercase;
}

.emero-selection-details dd {
	color: var(--emero-ink);
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 900px) {
	.emero-quote-row {
		grid-template-columns: minmax(170px, 1fr) minmax(150px, .8fr) minmax(190px, 1fr);
	}

	.emero-provider,
	.emero-premium,
	.emero-quote-actions {
		padding: 18px 14px;
	}
}

@media (max-width: 620px) {
	.emero-quote-results {
		padding: 36px 16px 56px;
	}

	.emero-quote-summary,
	.emero-quote-row,
	.emero-selection-details {
		grid-template-columns: 1fr;
	}

	.emero-provider,
	.emero-premium {
		border-bottom: 1px solid var(--emero-line);
		border-right: 0;
		min-height: 0;
	}

	.emero-provider {
		justify-content: center;
	}

	.emero-quote-summary > div {
		border-bottom: 1px solid var(--emero-line);
		border-right: 0;
	}

	.emero-quote-summary > div:last-child {
		border-bottom: 0;
	}

	.emero-selection-details > div:nth-child(odd) {
		border-right: 0;
	}

	.emero-selection-header,
	.emero-selection-details > div {
		padding-left: 16px;
		padding-right: 16px;
	}

}
