/**
 * Product Questions: the answered questions (Q / A), the search, "Show more" and the form.
 */
.sb-pq {
	--sb-pq-line: var(--sb-pq-border, color-mix(in srgb, currentColor 14%, transparent));
	--sb-pq-acc: var(--sb-pq-accent, currentColor);
	color: var(--sb-pq-text, inherit);
}

.sb-pq--has-bg {
	padding: 24px;
	border-radius: 12px;
	background: var(--sb-pq-bg);
}

.sb-pq .sb-pq__title {
	margin: 0 0 16px;
	font-size: 1.4em;
}

.sb-pq__search {
	margin: 0 0 12px;
}

.sb-pq__search input {
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	padding: 10px 14px;
	border: 1px solid var(--sb-pq-line);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.sb-pq__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sb-pq__item {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--sb-pq-line);
}

.sb-pq__item:first-child {
	border-top: 1px solid var(--sb-pq-line);
}

.sb-pq__item[hidden] {
	display: none;
}

.sb-pq__q,
.sb-pq__a {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
}

.sb-pq__q {
	font-weight: 600;
}

.sb-pq__a {
	margin-top: 10px;
}

.sb-pq__a > div {
	flex: 1;
	min-width: 0;
}

.sb-pq__a > div > p {
	margin: 0 0 6px;
}

.sb-pq__label {
	display: inline-flex;
	flex: 0 0 24px;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--sb-pq-acc) 12%, transparent);
	color: var(--sb-pq-acc);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

/* Not "currentColor": the label has its own text color. */
.sb-pq__a .sb-pq__label {
	background: var(--sb-pq-accent, var(--sb-pq-text, #1e293b));
	color: var(--sb-pq-bg, #fff);
}

.sb-pq .sb-pq__meta {
	margin: 4px 0 0;
	font-size: 0.85em;
	opacity: 0.7;
}

.sb-pq__more-wrap {
	margin: 16px 0 0;
}

.sb-pq__more,
.sb-pq__ask-button {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border: 1px solid var(--sb-pq-acc);
	border-radius: 999px;
	background: transparent;
	color: var(--sb-pq-acc);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.sb-pq__more:hover,
.sb-pq__ask-button:hover {
	background: color-mix(in srgb, var(--sb-pq-acc) 10%, transparent);
}

.sb-pq__empty,
.sb-pq__none {
	margin: 0 0 12px;
	opacity: 0.8;
}

.sb-pq__ask {
	margin-top: 20px;
}

.sb-pq__ask-button {
	list-style: none;
}

.sb-pq__ask-button::-webkit-details-marker {
	display: none;
}

.sb-pq__ask[open] .sb-pq__ask-button {
	background: color-mix(in srgb, var(--sb-pq-acc) 10%, transparent);
}

.sb-pq__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	margin-top: 16px;
	padding: 20px;
	border: 1px solid var(--sb-pq-line);
	border-radius: 12px;
}

.sb-pq__form p {
	margin: 0;
}

.sb-pq__field--wide,
.sb-pq__check,
.sb-pq__privacy,
.sb-pq__submit,
.sb-pq__as {
	grid-column: 1 / -1;
}

.sb-pq__field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.sb-pq__field input,
.sb-pq__field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sb-pq-line);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.sb-pq__privacy {
	font-size: 0.85em;
	opacity: 0.7;
}

.sb-pq__send {
	cursor: pointer;
}

.sb-pq__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sb-pq__notice {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
}

.sb-pq__notice.is-success {
	background: #ecfdf5;
	color: #065f46;
}

.sb-pq__notice.is-error {
	background: #fef2f2;
	color: #991b1b;
}

@media (max-width: 600px) {
	.sb-pq__form {
		grid-template-columns: 1fr;
		padding: 16px;
	}
}
