/* FAQ wrapper */
.ergoway-faq {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 18px;
	width: 100%;
	max-width: 1200px;
	margin: 30px auto;
}

/* FAQ item */
.ergoway-faq__item {
	align-self: start;
	background: #ffffff !important;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.ergoway-faq__item:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
	background: #ffffff !important;
}

.ergoway-faq__item.is-open {
	border-color: rgba(0, 0, 0, 0.18);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.09);
}

/* Reset Elementor / theme button styling */
.ergoway-faq .ergoway-faq__question,
.ergoway-faq .ergoway-faq__question:hover,
.ergoway-faq .ergoway-faq__question:focus,
.ergoway-faq .ergoway-faq__question:active {
	appearance: none;
	-webkit-appearance: none;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	color: #111111 !important;
}

/* Question button */
.ergoway-faq__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 24px;
	cursor: pointer;
	text-align: left;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 1.35;
	min-width: 0;
}
.ergoway-faq__question h2{
	font-size: 16px !important;
	white-space: normal;
	margin-bottom: 0 !important;
	margin-top: 0 !important;
}

/* Question text wrapping */
.ergoway-faq__question span:first-child {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: normal;
}

.ergoway-faq__question:hover {
	color: #000000 !important;
}

.ergoway-faq__question:focus-visible {
	outline: 3px solid rgba(0, 0, 0, 0.22);
	outline-offset: -3px;
}

/* Plus icon */
.ergoway-faq__icon {
	position: relative;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.ergoway-faq__item.is-open .ergoway-faq__icon {
	transform: rotate(180deg);
	background: rgba(0, 0, 0, 0.1);
}

.ergoway-faq__icon::before,
.ergoway-faq__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 2px;
	background: #111111;
	border-radius: 10px;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.ergoway-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.ergoway-faq__item.is-open .ergoway-faq__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

/* Smooth answer animation */
.ergoway-faq__answer {
	height: 0;
	overflow: hidden;
	opacity: 0;
	transition:
		height 0.35s ease,
		opacity 0.25s ease;
}

.ergoway-faq__item.is-open .ergoway-faq__answer {
	opacity: 1;
}

/* Answer content */
.ergoway-faq__answer-inner {
	padding: 18px 24px 24px;
	color: #444444;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

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

.ergoway-faq__answer-inner p {
	margin-top: 0;
	margin-bottom: 14px;
}

.ergoway-faq__answer-inner a {
	text-decoration: underline;
}

/* Empty message */
.ergoway-faq-empty {
	text-align: center;
	opacity: 0.7;
}
.ergoway-faq__video-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 12px 18px;
	border-radius: 5px;
	background: #21D5A1;
	color: #ffffff !important;
	line-height: 1.2;
	text-decoration: none !important;
	transition:
		background 0.2s ease,
}

.ergoway-faq__video-button:hover {
	background: #21d5a2de;
	color: #ffffff !important;
}

.ergoway-faq__video-button:focus-visible {
	outline: 3px solid rgba(0, 0, 0, 0.25);
	outline-offset: 3px;
}

/* Mobile */
@media (max-width: 767px) {
	.ergoway-faq {
		grid-template-columns: 1fr;
		gap: 10px;
		margin: 20px auto;
	}

	.ergoway-faq__item {
		border-radius: 14px;
	}

	.ergoway-faq__question {
		gap: 14px;
		padding: 18px;
		font-size: 16px;
	}

	.ergoway-faq__icon {
		flex: 0 0 24px;
		width: 24px;
		height: 24px;
	}

	.ergoway-faq__icon::before,
	.ergoway-faq__icon::after {
		width: 12px;
	}

	.ergoway-faq__answer-inner {
		padding: 16px 18px 20px;
		font-size: 15px;
	}
}