/* clean-code-exception:magic_number stylesheet -- CSS geometry literals are measured figma values, not registry values */
.redesign_faq {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-bottom: 80px;
	overflow-x: hidden;
	background: transparent;
}

.redesign_faq_hero {
	width: 100%;
	height: 60px;
}

.redesign_faq_column {
	position: relative;
	width: 100%;
	max-width: min(var(--reading_column_max_width), 100% - 2 * var(--column_gutter_wide));
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.redesign_faq_title {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.redesign_faq_heading {
	width: 100%;
	margin: 0;
	font-size: var(--font_size_page_title);
	line-height: var(--line_height_page_title);
	font-weight: var(--font_weight_regular);
	color: var(--color_white_900);
	text-align: center;
}

.redesign_faq_topics {
	display: flex;
	flex-direction: column;
}

.redesign_faq_tabs {
	display: flex;
	align-items: center;
	gap: 0;
	margin: -12px 0;
	white-space: nowrap;
	overflow: scroll hidden;
}

.redesign_faq_tab {
	display: inline-flex;
	align-items: center;
	padding: 12px 16px;
	font-size: 20px;
	line-height: 20px;
	font-weight: var(--font_weight_regular);
	color: var(--color_menu_muted);
}

.redesign_faq_tab_active {
	color: var(--color_white_900);
	/* the active topic is drawn underlined -- 2062:12600 phone, 1881:15141 desktop. UC-DU1. */
	text-decoration: underline;
}

.redesign_faq_list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.redesign_faq_list[hidden] {
	display: none;
}

.redesign_faq_item {
	--metallic_edge_angle_primary: 297deg;
	--metallic_edge_angle_secondary: 120deg;
	box-sizing: border-box;
	scroll-margin-top: var(--mobile_nav_bar_height);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 12px;
}

.redesign_faq_question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	cursor: pointer;
}

.redesign_faq_question_text {
	font-size: 20px;
	line-height: 28px;
	font-weight: var(--font_weight_regular);
	color: var(--color_white_900);
	text-align: right;
}

.redesign_faq_toggle {
	position: relative;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--color_pink_500) 0%, var(--color_purple_500) 100%);
}

.redesign_faq_toggle::before,
.redesign_faq_toggle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--color_white_900);
	transform: translate(-50%, -50%);
}

.redesign_faq_toggle::before {
	width: 8px;
	height: 1px;
}

.redesign_faq_toggle::after {
	width: 1px;
	height: 8px;
}

.redesign_faq_item.expanded .redesign_faq_toggle::after {
	display: none;
}

/* Visibility is owned by faq.js's Web Animations slide, which writes an inline display and
   animates height. A rule keying display off .expanded would show the answer before the slide
   starts, so it would jump open. The row that ships open on load carries its own inline display. */
.redesign_faq_answer {
	display: none;
	margin: 0;
	font-size: var(--font_size_body);
	line-height: var(--line_height_body);
	font-weight: var(--font_weight_regular);
	color: var(--color_white_900);
	text-align: right;
	white-space: pre-line;
}

.redesign_faq_footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.redesign_faq_contact {
	margin: 0;
	text-align: center;
	font-size: var(--font_size_body);
	line-height: var(--line_height_body);
	font-weight: var(--font_weight_regular);
}

.redesign_faq_contact_prompt {
	color: var(--color_menu_muted);
}

.redesign_faq_answer a {
	color: var(--color_pink_500);
	text-decoration: underline;
}

.redesign_faq_contact_link {
	color: var(--color_pink_500);
	/* drawn underlined -- 2176:13156 phone, 1881:14624 desktop. UC-DU1. */
	text-decoration: underline;
}

/* search field + autocomplete list -- Eran #117, no figma frame draws it; styled from the nearest element of its kind (the FAQ row card) and theme tokens. UC-FS1..FS4 */
.redesign_faq_search {
	position: relative;
	width: 100%;
}

.redesign_faq_search_input {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	/* two 44px tap boxes touching on the left (RTL end): magnifier 0-44, X 44-88, plus 4px before the text -- UC-FS5 */
	padding: 12px 16px 12px 92px;
	border: 1px solid var(--color_menu_muted);
	border-radius: 12px;
	background: transparent;
	font-family: inherit;
	font-size: 18px;
	line-height: 24px;
	color: var(--color_white_900);
	text-align: right;
}

/* figma Icons / Search 2780:38162, raster webp -- Eran mail 1a162e5397268295, UC-FS5. A 44px tap box that focuses the field; the X sits against it, no gap */
.faq_search_magnifier {
	position: absolute;
	font: inherit; /* icon-only button: drop the UA 13.333px control font, Rule 21 floor */
	top: 26px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	transform: translateY(-50%);
	cursor: pointer;
}

.faq_search_magnifier:focus-visible {
	outline: none;
}

.redesign_faq_search_icon {
	width: 24px;
	height: 24px;
	pointer-events: none;
}

.redesign_faq_search_input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.faq_search_clear {
	position: absolute;
	font: inherit; /* icon-only button: drop the UA 13.333px control font, Rule 21 floor */
	top: 26px;
	left: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	transform: translateY(-50%);
	cursor: pointer;
}

.faq_search_clear[hidden] {
	display: none;
}

.faq_search_clear img {
	width: 16px;
	height: 16px;
}

.faq_search_clear:focus-visible {
	outline: none;
}

.redesign_faq_search_input::placeholder {
	color: var(--color_menu_muted);
}

.redesign_faq_suggestions {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 2;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	max-height: 320px;
	overflow-y: auto;
	border-radius: 12px;
	background: #0b0b0f;
	border: 1px solid var(--color_menu_muted);
}

.redesign_faq_suggestions[hidden] {
	display: none;
}

.redesign_faq_suggestion {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 18px;
	line-height: 24px;
	color: var(--color_white_900);
	text-align: right;
	cursor: pointer;
}

.redesign_faq_suggestion:hover,
.redesign_faq_suggestion:focus-visible,
.redesign_faq_suggestion:active {
	color: var(--color_pink_500);
}
