.qa_question_button,
.qa_comment,
.qa_button_submit {
	color: white;
}

.qa_question_button:hover,
.qa_comment:hover,
.qa_button_submit:hover {
	background-color: #59bd59;
}

#question .qa_input_details {
	display: flex;
	justify-content: space-evenly;
}

.votes-more-answers {
	text-decoration: none;
}

.votes-more-answers::after {
	content: "\25bc";
	margin-left: 5px;
	font-size: smaller;
}

.votes-more-answers.arrow-up::after {
	content: "\25b2";
}

.qa-section {
	padding-top: 10px;
	padding-bottom: 48px;
}

.qa-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.qa-section__title {
	margin: 0;
}

.qa-section__search {
	position: relative;
	flex: 0 1 240px;
}

.qa-section__search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	font-size: 14px;
	pointer-events: none;
}

.filter_qa_input {
	width: 100%;
	background: #f1f5f9;
	border: none;
	border-radius: 10px;
	padding: 10px 14px 10px 34px;
	font-size: 13px;
	color: #1e293b;
	box-shadow: none;
	height: auto;
}

.filter_qa_input:focus {
	outline: none;
	background: #fff;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--custom-primary-color-1) 35%, transparent);
}

.qa-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 40px 24px;
	color: #64748b;
	font-size: 14px;
}

.qa-loading[hidden] {
	display: none;
}

.qa-loading__spinner {
	width: 22px;
	height: 22px;
	border: 3px solid color-mix(in srgb, var(--custom-primary-color-1) 20%, white);
	border-top-color: var(--custom-primary-color-1);
	border-radius: 50%;
	animation: qa-spin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes qa-spin {
	to {
		transform: rotate(360deg);
	}
}

.qa_table,
.qa_table tbody,
.qa_table tr,
.qa_table td {
	display: block;
	width: auto;
	border: 0;
	background: none;
}

.qa_table {
	border-collapse: collapse;
	margin: 0;
}

.qa_table td {
	padding: 0;
}

.qa_table .qa_headers,
.qa_table .qa_votes {
	display: none !important;
}

.qa_table tr:has(.votes-question) {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	padding: 24px 24px 0;
	margin-top: 24px;
}

.qa_table tr:has(.votes-answer) {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	padding: 14px 24px 24px;
}

.qa_table tr:has(> td[colspan="3"]) {
	margin: 0;
	padding: 0;
	border: 0;
}

.qa_table td[colspan="3"] > hr {
	display: none;
}

.qa_table .votes-question {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.4;
	color: #1e293b;
	text-decoration: none;
}

.qa_table .votes-question::before {
	content: "Q: ";
	color: var(--custom-primary-color-1);
	font-weight: 700;
}

.qa_table .votes-answer {
	display: block;
	color: #475569;
	line-height: 1.5;
	font-size: 1rem;
}

.qa_table .votes-answer::before {
	content: "A: ";
	color: #64748b;
	font-weight: 700;
}

.qa_table .btn-warning.qa_answer {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	background: color-mix(in srgb, var(--custom-primary-color-1) 10%, white);
	color: var(--custom-primary-color-1);
	border: 1px solid color-mix(in srgb, var(--custom-primary-color-1) 25%, white);
	border-radius: 8px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.qa_table .btn-warning.qa_answer:hover {
	background: var(--custom-primary-color-1);
	color: #fff;
}

.qa_table .comment-link,
#qa_grid .comment-link {
	font-size: 12px;
}

.qa_table .votes-answer ~ small,
.qa_table .text-success {
	font-size: 12px;
	color: #64748b;
}

.qa_table .text-success .star {
	color: var(--custom-primary-color-1) !important;
}

.qa-ask {
	margin-top: 24px;
}

.qa-ask__bar {
	display: flex;
	align-items: center;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	padding: 4px 6px;
}

.qa-ask__bar:focus-within {
	border-color: color-mix(in srgb, var(--custom-primary-color-1) 50%, white);
}

.qa_input {
	flex: 1;
	border: none;
	background: transparent;
	box-shadow: none;
	padding: 10px 12px;
	font-size: 14px;
	height: auto;
}

.qa_input:focus {
	outline: none;
	box-shadow: none;
}

#question .qa_input_details:empty {
	display: none;
}

@media screen and (max-width: 640px) {
	.qa-section__header {
		flex-direction: column;
		align-items: stretch;
	}

	.qa-section__search {
		flex-basis: auto;
	}

	.qa_table tr:has(.votes-question) {
		padding: 18px 16px 0;
	}

	.qa_table tr:has(.votes-answer) {
		padding: 12px 16px 18px;
	}
}
