/* ==========================================================================
   FAQ Hub Filter — frontend styles
   Colors are locked with !important throughout so the active theme's
   global button / link / heading styles cannot bleed into this widget.
   ========================================================================== */

.faqhub-section,
.faqhub-section * {
	box-sizing: border-box;
}

.faqhub-section {
	padding: 32px 0;
	background-color: #F6F3EC !important;
}

/* ---------- Filter buttons ---------- */

.faqhub-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.faqhub-filter-btn {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	padding: 11px 22px;
	border-radius: 999px;
	border: 1.5px solid rgba(23, 18, 28, .16) !important;
	background-color: #FFFFFF !important;
	color: #17121C !important;
	cursor: pointer;
	margin: 0;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.faqhub-filter-btn:hover {
	border-color: #F2542D !important;
	color: #F2542D !important;
}

.faqhub-filter-btn.faqhub-active {
	border-color: transparent !important;
	color: #FFFFFF !important;
	box-shadow: 0 6px 16px rgba(242, 84, 45, .3);
}

/* ---------- Result count ---------- */

.faqhub-count-line {
	text-align: center;
	color: rgba(23, 18, 28, .62) !important;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	margin: 20px 0 28px;
}

/* ---------- FAQ list ---------- */

.faqhub-list {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.faqhub-group-label {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #F2542D !important;
	margin: 34px 0 6px 4px;
}

.faqhub-group-label:first-child {
	margin-top: 6px;
}

.faqhub-item {
	background-color: #FFFFFF !important;
	border: 1px solid #E6E1D4 !important;
	border-radius: 16px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.faqhub-item.faqhub-open,
.faqhub-item:hover {
	border-color: rgba(242, 84, 45, .35) !important;
	box-shadow: 0 10px 26px rgba(28, 15, 61, .06);
}

/* ---------- Question row ----------
   Fix: flex items don't shrink below their content's natural width
   unless min-width is reset — without it, long questions overflow the
   card instead of wrapping (this is what broke on mobile). */

.faqhub-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 22px 26px;
	cursor: pointer;
	background: none !important;
	border: none;
	text-align: left;
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.faqhub-qtext {
	flex: 1 1 auto;
	min-width: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 16.5px;
	color: #17121C !important;
}

.faqhub-plus {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #F6F3EC !important;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: background-color .2s ease, transform .3s ease;
}

.faqhub-item.faqhub-open .faqhub-plus {
	transform: rotate(135deg);
}

.faqhub-plus::before,
.faqhub-plus::after {
	content: '';
	position: absolute;
	background-color: #17121C !important;
	border-radius: 2px;
}

.faqhub-item.faqhub-open .faqhub-plus::before,
.faqhub-item.faqhub-open .faqhub-plus::after {
	background-color: #FFFFFF !important;
}

.faqhub-plus::before {
	width: 12px;
	height: 2px;
}

.faqhub-plus::after {
	width: 2px;
	height: 12px;
}

/* ---------- Answer panel ---------- */

.faqhub-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}

.faqhub-a-inner {
	padding: 0 26px 24px;
	color: rgba(23, 18, 28, .62) !important;
	font-family: 'Inter', sans-serif;
	font-size: 15.5px;
	line-height: 1.7;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.faqhub-a-inner a {
	color: #F2542D !important;
	font-weight: 600;
}

.faqhub-a-inner a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Mobile — the fix above (min-width:0 + flex-basis on .faqhub-qtext)
   already stops the text overflow; these just tighten spacing so the
   card doesn't feel oversized on small screens.
   ========================================================================== */

@media (max-width: 600px) {

	.faqhub-section {
		padding: 22px 0;
	}

	.faqhub-filters {
		gap: 8px;
	}

	.faqhub-filter-btn {
		padding: 9px 16px;
		font-size: 13px;
	}

	.faqhub-list {
		gap: 10px;
	}

	.faqhub-q {
		padding: 16px 18px;
		gap: 12px;
	}

	.faqhub-qtext {
		font-size: 15px;
	}

	.faqhub-plus {
		width: 26px;
		height: 26px;
	}

	.faqhub-plus::before {
		width: 10px;
	}

	.faqhub-plus::after {
		height: 10px;
	}

	.faqhub-a-inner {
		padding: 0 18px 18px;
		font-size: 14.5px;
	}

	.faqhub-group-label {
		margin: 26px 0 6px 2px;
		font-size: 12px;
	}
}
