/* WeTheme FAQ Accordion Widget */
.wetheme-faq {
	width: 100%;
	max-width: 100%;
	direction: rtl;
	text-align: right;
	box-sizing: border-box;
}

.wetheme-faq *,
.wetheme-faq *::before,
.wetheme-faq *::after {
	box-sizing: border-box;
}

.wtf-header {
	margin-bottom: 32px;
}

.wtf-title {
	margin: 0 0 12px;
	font-size: clamp(22px, 2.5vw, 28px);
	font-weight: 700;
	line-height: 1.4;
	color: #35425a;
}

.wtf-subtitle {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
	color: #8a8a8a;
}

.wtf-accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.wtf-item {
	background-color: #f5f5f5;
	border: 1px solid transparent;
	border-radius: 16px;
	overflow: hidden;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wtf-item.wtf-item--open {
	background-color: #fff;
	border-color: #ebebeb;
}

.wtf-trigger {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 20px 24px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: right;
	font: inherit;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
}

.wtf-trigger:focus-visible {
	outline: 2px solid #35425a;
	outline-offset: 2px;
}

.wtf-question {
	flex: 1;
	min-width: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: #35425a;
	word-break: break-word;
}

.wtf-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: #35425a;
	user-select: none;
}

.wtf-icon::before {
	content: "+";
}

.wtf-item--open .wtf-icon::before {
	content: "\2212";
}

.wtf-panel {
	overflow: hidden;
	transition: height 0.3s ease;
}

.wtf-panel[hidden] {
	display: block;
	height: 0 !important;
	visibility: hidden;
}

.wtf-panel-inner {
	padding: 0 24px 20px;
}

.wtf-answer {
	margin: 0;
	padding-top: 4px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.85;
	color: #777;
	word-break: break-word;
}

/* Tablet */
@media (max-width: 1024px) {
	.wtf-header {
		margin-bottom: 28px;
	}

	.wtf-title {
		margin-bottom: 10px;
		font-size: clamp(20px, 2.8vw, 24px);
	}

	.wtf-subtitle {
		font-size: 14.5px;
		line-height: 1.75;
	}

	.wtf-accordion {
		gap: 10px;
	}

	.wtf-item {
		border-radius: 14px;
	}

	.wtf-trigger {
		gap: 14px;
		padding: 18px 20px;
	}

	.wtf-panel-inner {
		padding: 0 20px 18px;
	}

	.wtf-question {
		font-size: 15.5px;
		line-height: 1.55;
	}

	.wtf-answer {
		font-size: 13.5px;
		line-height: 1.8;
	}

	.wtf-icon {
		width: 22px;
		height: 22px;
		font-size: 20px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.wtf-header {
		margin-bottom: 24px;
	}

	.wtf-title {
		margin-bottom: 8px;
		font-size: 22px;
	}

	.wtf-subtitle {
		font-size: 14px;
		line-height: 1.7;
	}

	.wtf-accordion {
		gap: 8px;
	}

	.wtf-item {
		border-radius: 12px;
	}

	.wtf-trigger {
		gap: 12px;
		padding: 16px 18px;
	}

	.wtf-panel-inner {
		padding: 0 18px 16px;
	}

	.wtf-question {
		font-size: 15px;
		line-height: 1.55;
	}

	.wtf-answer {
		font-size: 13px;
		line-height: 1.75;
		padding-top: 2px;
	}

	.wtf-icon {
		width: 20px;
		height: 20px;
		margin-top: 1px;
		font-size: 18px;
	}
}

/* Small phones */
@media (max-width: 480px) {
	.wtf-header {
		margin-bottom: 20px;
	}

	.wtf-title {
		font-size: 20px;
		line-height: 1.35;
	}

	.wtf-subtitle {
		font-size: 13px;
		line-height: 1.65;
	}

	.wtf-accordion {
		gap: 8px;
	}

	.wtf-item {
		border-radius: 10px;
	}

	.wtf-trigger {
		gap: 10px;
		padding: 14px 14px;
	}

	.wtf-panel-inner {
		padding: 0 14px 14px;
	}

	.wtf-question {
		font-size: 14px;
		line-height: 1.5;
	}

	.wtf-answer {
		font-size: 12.5px;
		line-height: 1.7;
	}

	.wtf-icon {
		width: 18px;
		height: 18px;
		font-size: 16px;
	}
}
