/* =================================================================
   Emerald FAQ Accordion widget (pill / capsule)
   ================================================================= */

/* Beat Elementor column align-items:center shrink-wrapping short FAQs. */
.elementor-widget-emerald_faq_accordion,
.elementor-widget-emerald_faq_accordion > .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	align-self: stretch !important;
}

.emerald-faq {
	--emerald-faq-duration: 0.42s;
	--emerald-faq-ease: cubic-bezier(0.33, 1, 0.68, 1);
	--emerald-faq-icon: #41a48f;
	--emerald-faq-inset: 160px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	padding: 0;
	margin: 0;
}

.emerald-faq__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	gap: 10px;
	margin: 0 0 28px;
}

.emerald-faq__tab {
	margin: 0;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background-color: #ffffff;
	box-shadow: 0 2px 10px 0 rgba(31, 45, 42, 0.08);
	color: #1f2d2a;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.emerald-faq__tab:hover {
	color: #1d5f51;
}

.emerald-faq__tab.is-active,
.emerald-faq__tab.is-active:hover {
	background-color: #1d5f51;
	box-shadow: none;
	color: #ffffff;
}

.emerald-faq__tab:focus {
	outline: 0;
}

.emerald-faq__tab:focus-visible {
	outline: 2px solid #1d5f51;
	outline-offset: 3px;
}

.emerald-faq__list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	gap: 16px;
	width: calc(100% - (var(--emerald-faq-inset) * 2)) !important;
	max-width: 100% !important;
	margin-left: auto;
	margin-right: auto;
}

.emerald-faq__item {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	align-self: stretch;
	padding: 20px 28px 20px 32px;
	border: 1px solid #ffffff54;
	border-radius: 32px;
	background-color: #ffffff;
	box-shadow: 0 0 8px 0 rgba(29, 95, 81, 0.2);
	color: #1f2d2a;
	overflow: visible;
}

.emerald-faq__header {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	appearance: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.emerald-faq__header:focus {
	outline: 0;
}

.emerald-faq__header:focus-visible {
	outline: 2px solid var(--emerald-faq-icon);
	outline-offset: 4px;
}

.emerald-faq__question {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	margin: 0;
	color: #1f2d2a;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.emerald-faq__icon {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: 1.5px solid var(--emerald-faq-icon);
	border-radius: 50%;
	color: var(--emerald-faq-icon);
	transition: transform var(--emerald-faq-duration) var(--emerald-faq-ease);
}

.emerald-faq__icon::before,
.emerald-faq__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background-color: currentColor;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/* Horizontal bar of the +. */
.emerald-faq__icon::before {
	width: 46%;
	height: 1.5px;
}

/* Vertical bar of the +. */
.emerald-faq__icon::after {
	width: 1.5px;
	height: 46%;
}

/* Open: rotate the + into an X. */
.emerald-faq__item.is-active .emerald-faq__icon {
	transform: rotate(45deg);
}

.emerald-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	width: 100%;
	padding-top: 0;
	overflow: hidden;
	transition:
		grid-template-rows var(--emerald-faq-duration) var(--emerald-faq-ease),
		padding-top var(--emerald-faq-duration) var(--emerald-faq-ease);
}

.emerald-faq__panel-inner {
	min-height: 0;
	width: 100%;
	overflow: hidden;
}

.emerald-faq__item.is-active .emerald-faq__panel {
	grid-template-rows: 1fr;
	padding-top: 12px;
}

.emerald-faq__item.is-hidden {
	display: none;
}

.emerald-faq__answer {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding-right: 48px;
	color: #1f2d2a;
	font-family: 'Source Sans 3', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

.emerald-faq__answer p {
	margin: 0 0 0.6em;
}

.emerald-faq__answer p:last-child {
	margin-bottom: 0;
}

.emerald-faq__answer a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.emerald-faq__answer a:hover,
.emerald-faq__answer a:focus {
	color: inherit;
}

@media (max-width: 767px) {
	.emerald-faq {
		--emerald-faq-inset: 12px;
	}

	.emerald-faq__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		scroll-behavior: smooth;
		margin-bottom: 20px;
		padding: 4px 12px 4px 16px;
	}

	.emerald-faq__tabs::-webkit-scrollbar {
		display: none;
	}

	.emerald-faq__item {
		padding: 16px 18px 16px 20px;
	}

	.emerald-faq__question,
	.emerald-faq__answer {
		font-size: 14px;
	}

	.emerald-faq__answer {
		padding-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.emerald-faq__panel,
	.emerald-faq__item.is-active .emerald-faq__panel,
	.emerald-faq__icon {
		transition: none;
	}
}
