.spc-qa,
.spc-qa * {
	box-sizing: border-box;
}

.spc-qa {
	border: 1px solid #e3e8ef;
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
	box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
	color: #172033;
	display: grid;
	gap: 12px;
	margin: 24px 0;
	padding: 16px;
}

.spc-qa__header {
	display: grid;
	gap: 4px;
}

.spc-qa__eyebrow {
	align-self: start;
	background: #eaf2ff;
	border: 1px solid #cfe0ff;
	border-radius: 999px;
	color: #155bc3;
	font-size: 11px;
	font-weight: 800;
	justify-self: start;
	letter-spacing: 0;
	line-height: 1;
	padding: 6px 9px;
	text-transform: uppercase;
}

.spc-qa__header h2 {
	font-size: 20px;
	line-height: 1.25;
	margin: 0;
}

.spc-qa__header p,
.spc-qa__privacy {
	color: #506070;
	font-size: 14px;
	line-height: 1.45;
	margin: 0;
}

.spc-qa__privacy {
	background: #f6f8fb;
	border: 1px solid #e4e8ef;
	border-radius: 8px;
	padding: 9px 11px;
}

.spc-qa__suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.spc-qa__suggestions button {
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #fff;
	color: #1f3654;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	padding: 8px 12px;
}

.spc-qa__suggestions button:hover,
.spc-qa__suggestions button:focus-visible {
	border-color: #1f6feb;
	color: #1f6feb;
	outline: none;
}

.spc-qa__answer {
	background: #eef3fb;
	border-radius: 8px;
	color: #172033;
	font-size: 15px;
	line-height: 1.55;
	overflow-wrap: break-word;
	padding: 12px;
	white-space: normal;
}

.about-ai-section .spc-qa__answer,
.about-ai-section .spc-qa__answer p,
.about-ai-section .spc-qa__answer ul,
.about-ai-section .spc-qa__answer li {
	color: #172033 !important;
	-webkit-text-fill-color: #172033;
}

.about-ai-section .spc-qa__answer li::marker {
	color: #506070;
}

.spc-qa__answer[hidden] {
	display: none;
}

.spc-qa__answer--loading {
	color: #58677a;
	font-style: italic;
}

.spc-qa__typing {
	display: inline-flex;
	gap: 5px;
	height: 18px;
	align-items: center;
}

.spc-qa__typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #3f5762;
	animation: spc-qa-typing 900ms ease-in-out infinite;
}

.spc-qa__typing span:nth-child(2) {
	animation-delay: 120ms;
}

.spc-qa__typing span:nth-child(3) {
	animation-delay: 240ms;
}

@keyframes spc-qa-typing {
	0%,
	80%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}

	40% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

.spc-qa__answer--error {
	background: #fff1f0;
	border: 1px solid #ffd4ce;
	color: #8a1f11;
}

.spc-qa__answer a {
	color: #155bc3;
	font-weight: 700;
	text-decoration: underline;
}

.spc-qa__answer p,
.spc-qa__answer ul {
	margin: 0 0 10px;
}

.spc-qa__answer p:last-child,
.spc-qa__answer ul:last-child {
	margin-bottom: 0;
}

.spc-qa__answer ul {
	padding-left: 20px;
}

.spc-qa__answer li + li {
	margin-top: 5px;
}

.spc-qa__sources {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.spc-qa__sources[hidden] {
	display: none;
}

.spc-qa__sources-title {
	color: #506070;
	font-size: 13px;
	font-weight: 700;
}

.spc-qa__sources a {
	color: #1f6feb;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.spc-qa__sources a:hover,
.spc-qa__sources a:focus-visible {
	text-decoration: underline;
	outline: none;
}

.spc-qa__cta[hidden] {
	display: none;
}

.spc-qa__cta {
	display: flex;
}

.spc-qa__cta-link {
	align-items: center;
	background: #172033;
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	padding: 10px 14px;
	text-decoration: none;
}

.spc-qa__cta-link:hover,
.spc-qa__cta-link:focus-visible {
	background: #3f5762;
	color: #fff;
	outline: none;
	text-decoration: none;
}

.spc-qa__form {
	display: flex;
	gap: 8px;
}

.spc-qa__form input {
	flex: 1;
	min-width: 0;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #172033;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	-webkit-text-fill-color: #172033;
	opacity: 1;
	padding: 11px 12px;
}

.spc-qa__form input::placeholder {
	color: #44546a;
	font-weight: 500;
	opacity: 1;
}

.spc-qa__form input:focus {
	border-color: #1f6feb;
	box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.18);
	outline: none;
}

.spc-qa__form button {
	border: 0;
	border-radius: 8px;
	background: #1f6feb;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 0 18px;
}

.spc-qa__form button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

@media (max-width: 600px) {
	.spc-qa {
		padding: 14px;
	}

	.spc-qa__form {
		flex-direction: column;
	}

	.spc-qa__form button {
		min-height: 44px;
	}
}
