/* שאלות נפוצות - אקורדיון דינמי */

.noa-faq {
	width: 100%;
	text-align: start;
}

.noa-faq__item {
	border-bottom: 1.5px dotted rgba(210, 167, 150, 0.42);
	border-top-width: 0;
	border-top-style: none;
	border-inline-width: 0;
	border-inline-style: none;
}

.noa-faq__heading {
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

.noa-faq__q {
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 40px 0;
	font: inherit;
	color: #8D675F;
	text-align: start;
	cursor: pointer;
	transition: color 0.2s ease, padding 0.3s ease;
}

/*
 * מנטרל את כלל האיפוס של Hello Elementor:
 * button:hover { background-color:#c36 } שצובע כל כפתור בוורוד.
 * הסלקטור מכוון גבוה בכוונה כדי לגבור עליו בלי important.
 */
.noa-faq .noa-faq__item .noa-faq__q,
.noa-faq .noa-faq__item .noa-faq__q:link,
.noa-faq .noa-faq__item .noa-faq__q:visited,
.noa-faq .noa-faq__item .noa-faq__q:hover,
.noa-faq .noa-faq__item .noa-faq__q:focus,
.noa-faq .noa-faq__item .noa-faq__q:focus-visible,
.noa-faq .noa-faq__item .noa-faq__q:active {
	background-color: transparent;
	background-image: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-decoration: none;
}

.noa-faq .noa-faq__item .noa-faq__q:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.noa-faq__q-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
}

/* ---- הסימן ---- */

.noa-faq__icon {
	flex: 0 0 auto;
	position: relative;
	display: inline-block;
	width: 34px;
	height: 34px;
	color: #8D675F;
}

.noa-faq--icon-plus .noa-faq__icon::before,
.noa-faq--icon-plus .noa-faq__icon::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	width: 100%;
	height: 3px;
	background: currentColor;
	transform: translateY(-50%);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.noa-faq--icon-plus .noa-faq__icon::after {
	transform: translateY(-50%) rotate(90deg);
}

.noa-faq--icon-plus .noa-faq__item.is-open .noa-faq__icon::after {
	transform: translateY(-50%) rotate(0deg);
	opacity: 0;
}

.noa-faq--icon-chevron .noa-faq__icon::before {
	content: "";
	position: absolute;
	top: 30%;
	inset-inline-start: 25%;
	width: 50%;
	height: 50%;
	border-inline-end: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: rotate(45deg);
	transform-origin: center;
	transition: transform 0.3s ease;
}

.noa-faq--icon-chevron .noa-faq__item.is-open .noa-faq__icon::before {
	transform: rotate(225deg);
}

/* ---- הפאנל ---- */

.noa-faq__panel {
	display: grid;
	grid-template-rows: 1fr;
}

.noa-faq__panel-inner {
	overflow: hidden;
	min-height: 0;
}

.noa-faq--js .noa-faq__panel {
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.32, 0.72, 0.3, 1);
}

.noa-faq--js .noa-faq__item.is-open .noa-faq__panel {
	grid-template-rows: 1fr;
}

.noa-faq__answer {
	color: #28190F;
	padding-bottom: 36px;
}

.noa-faq__answer > *:first-child {
	margin-top: 0;
}

.noa-faq__answer > *:last-child {
	margin-bottom: 0;
}

.noa-faq__answer a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.noa-faq__empty {
	padding: 24px;
	border: 1px dashed rgba(141, 103, 95, 0.5);
	color: #8D675F;
	font-size: 14px;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.noa-faq--js .noa-faq__panel,
	.noa-faq__q,
	.noa-faq__icon::before,
	.noa-faq__icon::after {
		transition: none;
	}
}


/* שאלה ארוכה: נשברת לשורה נוספת במקום לגלוש מהמסך */
@media (max-width: 1024px) {
	.noa-faq__q { padding: 26px 0; gap: 12px; align-items: flex-start; }
	.noa-faq__icon { width: 24px; height: 24px; margin-top: 2px; }
}
@media (max-width: 767px) {
	.noa-faq__q { padding: 20px 0; gap: 10px; }
	.noa-faq__icon { width: 20px; height: 20px; }
	.noa-faq__answer { padding-bottom: 22px; }
}


/* שבירת שורה בשאלה ארוכה. השאלה יושבת בתוך button, ולכפתורים יש ברירת מחדל שמונעת שבירה. */
.noa-faq .noa-faq__item .noa-faq__q {
	white-space: normal;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	align-items: flex-start;
}
.noa-faq .noa-faq__item .noa-faq__q .noa-faq__q-text {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}
.noa-faq .noa-faq__item .noa-faq__q .noa-faq__icon {
	flex: 0 0 auto;
	margin-top: 0.15em;
}
.noa-faq, .noa-faq__item, .noa-faq__heading {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}
