/**
 * Wix FAQ ([wix_faq]): tabs, accordion and list. Colours come from the
 * storefront tokens (--wixhc-*, wixhc-tokens.css).
 *
 * @package Headless_Connect_For_Wix
 */

/* The search spans the accordion it filters. */
.wixhc-faq__search { max-width: none; width: 100%; }
.wixhc-faq__search input { width: 100%; }
.wixhc-faq__tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--wixhc-border); }
.wixhc-root .wixhc-faq__tab,
.wixhc-faq__tab {
	min-height: var(--wixhc-control-h);
	padding: 0 14px;
	border-radius: 0;
	margin-bottom: -1px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--wixhc-muted);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.wixhc-root .wixhc-faq__tab:hover,
.wixhc-faq__tab:hover { color: inherit; background: none; border-color: transparent; border-bottom-color: var(--wixhc-border-strong); }
.wixhc-root .wixhc-faq__tab[aria-selected="true"],
.wixhc-faq__tab[aria-selected="true"] { border-bottom-color: currentColor; color: inherit; font-weight: 600; }
.wixhc-faq__group { display: flex; flex-direction: column; gap: 8px; }
.wixhc-faq__group:focus-visible { outline: 2px dashed var(--wixhc-border-strong); outline-offset: 4px; }
.wixhc-faq__group-title { margin: 8px 0 0; font-size: 1.25em; }
.wixhc-faq--tabs:not(.wixhc-faq--searching) .wixhc-faq__group-title { display: none; }
.wixhc-faq__list { display: flex; flex-direction: column; }
.wixhc-faq__item { border-bottom: 1px solid var(--wixhc-border); }
.wixhc-faq__question { margin: 0; font-size: 1.05em; }
.wixhc-faq[data-layout="list"] .wixhc-faq__question { padding: 14px 0 6px; }
.wixhc-root .wixhc-faq__toggle,
.wixhc-faq__toggle {
	display: flex;
	min-height: var(--wixhc-control-h);
	border-radius: 0;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: var(--wixhc-space-4) 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.wixhc-root .wixhc-faq__toggle:hover,
.wixhc-faq__toggle:hover { background: none; color: inherit; }
.wixhc-faq__icon { flex: none; position: relative; width: 14px; height: 14px; }
.wixhc-faq__icon::before,
.wixhc-faq__icon::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	background: currentColor;
	transition: transform var(--wixhc-duration) var(--wixhc-ease);
}
.wixhc-faq__icon::after { transform: rotate(90deg); }
.wixhc-faq__toggle[aria-expanded="true"] .wixhc-faq__icon::after { transform: rotate(0deg); }
.wixhc-faq__answer { padding: 0 0 var(--wixhc-space-4); line-height: 1.65; overflow-wrap: anywhere; }
.wixhc-faq__answer > :first-child { margin-top: 0; }
.wixhc-faq__answer > :last-child { margin-bottom: 0; }
.wixhc-faq__answer img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
	.wixhc-faq__icon::before,
	.wixhc-faq__icon::after { transition: none; }
}
