.modern-faq-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin: 0;
	color: #171735;
	direction: rtl;
	font-family: inherit;
}

.modern-faq-container .modern-faq-item {
	overflow: hidden;
	border: 1px solid #e8e8ec;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(12, 12, 13, 0.05);
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.modern-faq-container .modern-faq-item:hover {
	border-color: #c7d7fb;
	box-shadow: 0 2px 8px rgba(12, 12, 13, 0.08);
}

.modern-faq-container .modern-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-width: 0;
	padding: 20px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #171735;
	cursor: pointer;
	font-family: inherit;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: 0;
	text-align: right;
	text-decoration: none;
	appearance: none;
}

.modern-faq-container .modern-faq-question > span:first-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.modern-faq-container .modern-faq-question:focus {
	outline: none;
}

.modern-faq-container .modern-faq-question:hover,
.modern-faq-container .modern-faq-question:focus,
.modern-faq-container .modern-faq-question:active,
.modern-faq-container .modern-faq-question[aria-expanded="true"] {
	background: transparent !important;
	color: #171735 !important;
}

.modern-faq-container .modern-faq-question:focus-visible {
	outline: 2px solid #072acb;
	outline-offset: -3px;
}

.modern-faq-container .modern-faq-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin: 0;
	border-radius: 4px;
	background: #e9f1ff url("../icons/faq-chevron-down.svg") center / 24px 24px no-repeat;
	color: #072acb;
	transition: background-color 200ms ease;
}

.modern-faq-container .modern-faq-icon svg {
	display: none;
}

.modern-faq-container .modern-faq-answer {
	display: grid;
	border: 0;
	background: transparent;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 250ms ease, visibility 0s linear 250ms;
}

.modern-faq-container .modern-faq-answer-inner {
	min-height: 0;
	overflow: hidden;
	padding: 0 20px;
	color: #77778e;
	font-family: inherit;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 25px;
	letter-spacing: 0;
	text-align: right;
	opacity: 0;
	transition: padding 250ms ease, opacity 180ms ease;
}

.modern-faq-container .modern-faq-answer-inner > :first-child {
	margin-top: 0;
}

.modern-faq-container .modern-faq-answer-inner > :last-child {
	margin-bottom: 0;
}

.modern-faq-container .modern-faq-answer-inner p {
	margin-block: 0 8px;
	color: inherit;
	font: inherit;
}

.modern-faq-container .modern-faq-item.active .modern-faq-icon {
	background: #072acb url("../icons/faq-chevron-up.svg") center / 24px 24px no-repeat;
	color: #fff;
}

.modern-faq-container .modern-faq-item.active .modern-faq-answer {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 250ms ease, visibility 0s;
}

.modern-faq-container .modern-faq-item.active .modern-faq-answer-inner {
	padding-top: 0;
	padding-bottom: 20px;
	opacity: 1;
}

@media (max-width: 768px) {
	.modern-faq-container .modern-faq-question {
		padding: 16px;
	}

	.modern-faq-container .modern-faq-answer-inner {
		padding-right: 16px;
		padding-left: 16px;
	}

	.modern-faq-container .modern-faq-item.active .modern-faq-answer-inner {
		padding-bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.modern-faq-container .modern-faq-item,
	.modern-faq-container .modern-faq-icon,
	.modern-faq-container .modern-faq-answer,
	.modern-faq-container .modern-faq-answer-inner {
		transition: none;
	}
}
