.tmt-scan {
	max-width: 34rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 2.5rem;
	text-align: center;
}

.tmt-scan__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}

.tmt-scan--error .tmt-scan__icon {
	background-color: #fdecea;
	color: #c62828;
}

.tmt-scan--ok .tmt-scan__icon {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.tmt-scan__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	line-height: 1.3;
}

.tmt-scan__lead {
	margin: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.6;
	color: #555;
}

/*
 * These are anchors, so the site's global link colour applies to them and wins
 * on specificity - which left white-on-blue rendering as dark-on-blue. Colour
 * is pinned here for every link state, for the same reason the declarations in
 * src/assets/event-mui-overrides.css are: to beat a stylesheet this theme does not
 * own.
 */
.tmt-scan .tmt-scan__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.75rem;
	background-color: #2d52b0;
	border: 0;
	border-radius: 0.5rem;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
}

.tmt-scan .tmt-scan__button:visited {
	color: #fff !important;
}

.tmt-scan .tmt-scan__button:hover,
.tmt-scan .tmt-scan__button:focus {
	background-color: #24418c;
	color: #fff !important;
}

.tmt-scan .tmt-scan__button:focus-visible {
	outline: 2px solid #2d52b0;
	outline-offset: 2px;
}

.tmt-scan .tmt-scan__button--quiet,
.tmt-scan .tmt-scan__button--quiet:visited {
	background-color: transparent;
	border: 1px solid #c4c4c4;
	color: #333 !important;
}

.tmt-scan .tmt-scan__button--quiet:hover,
.tmt-scan .tmt-scan__button--quiet:focus {
	background-color: #f5f5f5;
	color: #333 !important;
}

/* Secondary guidance, kept left-aligned so lists stay readable. */
.tmt-scan__help {
	margin-top: 2rem;
	padding: 1.15rem 1.25rem;
	background-color: #f7f8fa;
	border-radius: 0.5rem;
	text-align: left;
}

.tmt-scan__help h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.tmt-scan__help p,
.tmt-scan__help li {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #555;
}

.tmt-scan__help ul {
	margin: 0;
	padding-left: 1.15rem;
}

.tmt-scan__help li:last-child,
.tmt-scan__help p:last-child {
	margin-bottom: 0;
}

.tmt-scan__note {
	margin: 0;
	font-size: 0.95rem;
	color: #666;
}

@media (max-width: 1024px) {
	.tmt-scan {
		padding: 1.5rem 1rem 2rem;
	}

	.tmt-scan__title {
		font-size: 1.3rem;
	}

	/* Full width so it is an easy target one-handed at the door. */
	.tmt-scan .tmt-scan__button {
		display: flex;
		width: 100%;
	}
}
