@charset "UTF-8";

/* Onboarding styles */

.mail-doctor-onboarding {
	max-width: 960px;
}

.mail-doctor-onboarding__steps {
	display: flex;
	gap: 16px;
	margin: 20px 0 30px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.mail-doctor-onboarding__steps li {
	flex: 1;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 12px;
	text-align: center;
	position: relative;
}

.mail-doctor-onboarding__steps li.is-current {
	border-color: #4f46e5;
	box-shadow: 0 0 0 1px #4f46e5;
	background: #f8f9ff;
}

.mail-doctor-onboarding__steps li.is-complete {
	border-color: #46b450;
	background: #f6fff7;
}

.mail-doctor-onboarding__step-number {
	display: inline-block;
	width: 28px;
	height: 28px;
	line-height: 28px;
	border-radius: 50%;
	background: #4f46e5;
	color: #fff;
	font-weight: 600;
	margin-bottom: 6px;
}

.mail-doctor-onboarding__steps li.is-complete .mail-doctor-onboarding__step-number {
	background: #46b450;
}

.mail-doctor-onboarding__content {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 24px;
}

.mail-doctor-onboarding__providers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.mail-doctor-onboarding__provider {
	display: block;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 16px;
	background: #fafafa;
	cursor: pointer;
}

.mail-doctor-onboarding__provider.is-selected {
	border-color: #4f46e5;
	box-shadow: 0 0 0 1px #4f46e5;
	background: #f8f9ff;
}

.mail-doctor-onboarding__provider input {
	margin-right: 10px;
}

.mail-doctor-onboarding__provider-name {
	display: block;
	font-weight: 600;
}

.mail-doctor-onboarding__provider-help {
	display: block;
	font-size: 13px;
	color: #555d66;
	margin-top: 6px;
}

.mail-doctor-onboarding__actions {
	margin-top: 24px;
	display: flex;
	gap: 12px;
	align-items: center;
}

.mail-doctor-onboarding__dns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.mail-doctor-onboarding__dns-item {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 16px;
	background: #fafafa;
}

.mail-doctor-onboarding__dns-item--present {
	border-color: #46b450;
}

.mail-doctor-onboarding__dns-item--warning,
.mail-doctor-onboarding__dns-item--missing {
	border-color: #d63638;
}

.mail-doctor-onboarding__summary th {
	width: 200px;
}

.mail-doctor__skip-link {
	position: absolute;
	top: 10px;
	left: -9999px;
	z-index: 100;
	padding: 8px 12px;
	background: #4f46e5;
	color: #fff;
	font-weight: 600;
	border-radius: 4px;
}

.mail-doctor__skip-link:focus,
.mail-doctor__skip-link:focus-visible {
	left: 10px;
	outline: none;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4);
}

.mail-doctor-onboarding button:focus-visible,
.mail-doctor-onboarding a:focus-visible,
.mail-doctor-onboarding input:focus-visible,
.mail-doctor-onboarding select:focus-visible {
	outline: 2px solid #4f46e5;
	outline-offset: 2px;
}

.mail-doctor-onboarding__provider:focus-within {
	box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.4);
}

.mail-doctor-test-results {
	margin-top: 12px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 12px;
	min-height: 48px;
}

.mail-doctor-test-results .mail-doctor-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	text-transform: uppercase;
	margin-right: 6px;
	background: #e5e7eb;
	color: #1f2933;
	font-weight: 600;
}

.mail-doctor-test-results .mail-doctor-badge.is-ok {
	background: #e6f6e6;
	color: #23623b;
}

.mail-doctor-test-results .mail-doctor-badge.is-warn {
	background: #fff4e5;
	color: #8a4b1f;
}

.mail-doctor-test-results .mail-doctor-badge.is-fail {
	background: #fdeaea;
	color: #7d2323;
}

.mail-doctor-inline-list {
	margin: 8px 0 0;
	padding-left: 18px;
}

.mail-doctor-inline-list li {
	list-style: disc;
}

.mail-doctor-debug {
	margin-top: 10px;
}

.mail-doctor-debug-log {
	background: #1e293b;
	color: #f8fafc;
	padding: 8px;
	border-radius: 4px;
	max-height: 200px;
	overflow: auto;
	font-size: 12px;
}
