/* Why-slow diagnosis tool */
.speedup-why {
	max-width: 640px;
	margin: 0 auto;
}

.speedup-why__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
	border-radius: 16px;
}

.speedup-why__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.speedup-why__field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--text-dark, #1a1814);
}

.speedup-why__field input,
.speedup-why__field select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
	border-radius: 10px;
	font-size: 16px;
	background: #fff;
	color: var(--wp--preset--color--text-dark, #1a1814);
}

.speedup-why__field input:focus,
.speedup-why__field select:focus {
	outline: 2px solid color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 35%, transparent);
	border-color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-why__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.speedup-why__submit,
.speedup-why__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--primary, #dd2c00);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.speedup-why__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.speedup-why__cta-btn.is-secondary {
	background: transparent;
	color: var(--wp--preset--color--primary, #dd2c00);
	border: 1px solid var(--wp--preset--color--primary, #dd2c00);
}

.speedup-why__status {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.6;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
}

.speedup-why__status.is-pending {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 40%, transparent);
}

.speedup-why__status.is-error {
	border-color: #b91c1c;
	color: #991b1b;
	background: #fef2f2;
}

.speedup-why__card {
	margin-top: 8px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
	border-radius: 16px;
}

.speedup-why__back {
	display: inline-block;
	margin-bottom: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--text-gray, #6b6560);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.speedup-why__url {
	margin: 0 0 12px;
	font-size: 14px;
	word-break: break-all;
}

.speedup-why__url a {
	color: var(--wp--preset--color--text-dark, #1a1814);
}

.speedup-why__headline {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wp--preset--color--text-dark, #1a1814);
}

.speedup-why__list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.speedup-why__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--wp--preset--color--bg-light, #f7f4ef);
	border: 1px solid transparent;
}

.speedup-why__item.is-bad {
	background: #fef2f2;
	border-color: #fecaca;
}

.speedup-why__item.is-warn {
	background: #fff7ed;
	border-color: #fed7aa;
}

.speedup-why__item.is-ok {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.speedup-why__icon {
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 1.6;
}

.speedup-why__item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.speedup-why__item-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--text-dark, #1a1814);
}

.speedup-why__item-detail {
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--text-gray, #6b6560);
}

.speedup-why__cta {
	padding: 22px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 8%, #fff);
	text-align: center;
}

.speedup-why__cta-text {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 650;
	line-height: 1.5;
	color: var(--wp--preset--color--text-dark, #1a1814);
}

.speedup-why__tech {
	margin: 18px 0 0;
	text-align: center;
	font-size: 13px;
}

.speedup-why__tech a {
	color: var(--wp--preset--color--text-gray, #6b6560);
}

@media (max-width: 600px) {
	.speedup-why__row {
		flex-direction: column;
		align-items: stretch;
	}

	.speedup-why__submit {
		width: 100%;
	}

	.speedup-why__headline {
		font-size: 20px;
	}
}
