/* Kiwi FAQ Accordion Widget Styles */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.kiwi-faq-wrapper {
	width: 100%;
	margin: 0 auto;
}

/* Section Title */
.kiwi-faq-title {
	margin: 0 0 30px 0;
	font-size: 28px;
	font-weight: 600;
	color: #000000;
	text-align: center;
	letter-spacing: 0.5px;
}

/* FAQ Container */
.faq-container {
	width: 100%;
}

/* FAQ Item */
.faq-item {
	margin: 0 0 10px 0;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background-color: #ffffff;
	transition: all 0.3s ease;
}

.faq-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Question Button */
.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 20px;
	background-color: #ffffff;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 16px;
	font-weight: 600;
	color: #000000;
	transition: all 0.3s ease;
}

.faq-question:hover {
	background-color: #f9f9f9;
}

.faq-item.active .faq-question {
	background-color: #f9f9f9;
	color: #333333;
}

.faq-question:focus {
	outline: 2px solid #333333;
	outline-offset: -2px;
}

/* Question Text */
.faq-question-text {
	display: flex;
	align-items: center;
	flex: 1;
	line-height: 1.5;
	word-break: break-word;
}

/* Icon Positioning */
.faq-item.icon-left .faq-question {
	flex-direction: row-reverse;
	justify-content: flex-start;
	gap: 15px;
}

.faq-item.icon-left .faq-question-text {
	flex: 1;
}

.faq-item.icon-right .faq-question {
	gap: 15px;
}

.faq-item.icon-right .faq-question-text {
	flex: 1;
}

/* Icon */
.faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #333333;
	font-size: 14px;
	transition: transform 0.3s ease;
}

.faq-item.icon-right .faq-icon {
	margin-left: auto;
}

.faq-item.icon-left .faq-icon {
	margin-right: auto;
}

.faq-item.active .faq-icon {
	transform: rotate(180deg);
}

/* Answer Wrapper */
.faq-answer-wrapper {
	max-height: 0;
	overflow: hidden;
	background-color: #ffffff;
	transition: max-height 0.3s ease;
	will-change: max-height;
	display: block;
}

.faq-item.active .faq-answer-wrapper {
	max-height: 2000px;
	overflow: visible;
	display: block;
}

/* Answer */
.faq-answer {
	padding: 20px;
	color: #666666;
	font-size: 14px;
	line-height: 1.6;
	border-top: 1px solid #f0f0f0;
}

.faq-answer p {
	margin: 0 0 15px 0;
}

.faq-answer p:last-child {
	margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
	margin: 0 0 15px 20px;
	padding: 0;
}

.faq-answer li {
	margin-bottom: 8px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
	.kiwi-faq-title {
		font-size: 24px;
		margin-bottom: 20px;
	}

	.faq-question {
		padding: 16px;
		font-size: 15px;
	}

	.faq-answer {
		padding: 15px;
		font-size: 13px;
	}

	.faq-icon {
		width: 18px;
		height: 18px;
		font-size: 12px;
	}
}

/* Responsive - Mobile */
@media (max-width: 576px) {
	.kiwi-faq-title {
		font-size: 18px;
		margin-bottom: 15px;
	}

	.faq-item {
		margin-bottom: 8px;
		border-radius: 6px;
	}

	.faq-question {
		padding: 14px 12px;
		font-size: 14px;
		gap: 12px;
	}

	.faq-answer-wrapper {
		max-height: 0;
	}

	.faq-item.active .faq-answer-wrapper {
		max-height: 2000px;
		overflow: visible;
	}

	.faq-answer {
		padding: 12px;
		font-size: 12px;
		border-top: 1px solid #f0f0f0;
	}

	.faq-icon {
		width: 16px;
		height: 16px;
		font-size: 11px;
	}

	.faq-question:focus {
		outline: 1px solid #333333;
		outline-offset: -1px;
	}
}
