/**
 * TECHNO FAQ widget — visual language from catalog v2 / empty-cart v3.
 * !important: beat Elementor + Rey heading/button defaults, same as checkout/catalog.
 */

.techno-faq,
.elementor-widget-techno-faq {
	--faq-bg-panel: #2a2b2e;
	--faq-border: rgba(255, 255, 255, 0.08);
	--faq-accent: #ff7a00;
	--faq-accent-hover: #e86c03;
	--faq-text: #ffffff;
	--faq-text-muted: #9ca3b6;
	--faq-radius: 16px;
}

.elementor-widget-techno-faq {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
	align-self: stretch !important;
}

.elementor-widget-techno-faq > .elementor-widget-container,
.elementor-widget-techno-faq .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

.techno-faq {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	color: var(--faq-text) !important;
	font-family: Rubik, system-ui, -apple-system, sans-serif !important;
	box-sizing: border-box !important;
}

.techno-faq *,
.techno-faq *::before,
.techno-faq *::after {
	box-sizing: border-box;
}

.techno-faq__title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	text-align: left !important;
	font-family: Rubik, system-ui, -apple-system, sans-serif !important;
	font-size: clamp(22px, 3.2vw, 28px) !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
	color: var(--faq-text) !important;
}

.techno-faq__panel {
	width: 100% !important;
	max-width: none !important;
	background: var(--faq-bg-panel) !important;
	border: 1px solid var(--faq-border) !important;
	border-radius: var(--faq-radius) !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
	padding: 8px 18px !important;
	box-sizing: border-box !important;
}

.techno-faq__list {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.techno-faq__item {
	width: 100%;
	border-bottom: 1px solid var(--faq-border) !important;
}

.techno-faq__item:last-child {
	border-bottom: 0 !important;
}

.techno-faq__item.is-nested .techno-faq__item-btn,
.techno-faq__item.is-nested .techno-faq__answer {
	padding-left: 20px !important;
}

.techno-faq__item-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 16px 4px !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none !important;
	color: var(--faq-text) !important;
	font-family: Rubik, system-ui, -apple-system, sans-serif !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
	text-align: left !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer !important;
}

.techno-faq__item-btn::before,
.techno-faq__item-btn::after {
	display: none !important;
	content: none !important;
}

.techno-faq__item-btn:hover,
.techno-faq__item-btn:focus,
.techno-faq__item-btn:active {
	background: transparent !important;
	box-shadow: none !important;
	color: var(--faq-text) !important;
}

.techno-faq__item-btn:hover .techno-faq__question {
	color: var(--faq-accent) !important;
}

.techno-faq__item-btn:focus-visible {
	outline: 2px solid var(--faq-accent) !important;
	outline-offset: 2px !important;
	border-radius: 8px !important;
}

.techno-faq__question {
	display: block !important;
	min-width: 0;
	flex: 1 1 auto;
	color: inherit !important;
	font-weight: 500 !important;
	transition: color 0.15s ease;
}

.techno-faq__icon {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 12px;
	height: 8px;
	color: var(--faq-text-muted) !important;
	transition: transform 0.2s ease, color 0.15s ease;
}

.techno-faq__icon svg {
	display: block;
	width: 12px;
	height: 8px;
}

.techno-faq__item.is-open .techno-faq__icon {
	transform: rotate(180deg);
	color: var(--faq-accent) !important;
}

.techno-faq__item.is-open .techno-faq__question {
	color: var(--faq-text) !important;
}

.techno-faq__answer {
	overflow: hidden;
	max-height: 0;
	padding: 0 4px !important;
	color: var(--faq-text-muted) !important;
	font-family: Rubik, system-ui, -apple-system, sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	transition: max-height 0.28s ease, padding-bottom 0.28s ease;
}

.techno-faq__item.is-open .techno-faq__answer {
	max-height: 640px;
	padding-bottom: 16px !important;
}

.techno-faq__answer-inner {
	overflow: hidden;
}

.techno-faq__answer-inner > *:first-child {
	margin-top: 0 !important;
}

.techno-faq__answer-inner > *:last-child {
	margin-bottom: 0 !important;
}

.techno-faq__answer p {
	margin: 0 0 0.7em !important;
	color: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

.techno-faq__answer a {
	color: var(--faq-accent) !important;
	text-decoration: none !important;
	font-weight: 500 !important;
	transition: color 0.15s ease;
}

.techno-faq__answer a:hover {
	color: #ff9a40 !important;
}

@media (max-width: 767px) {
	.techno-faq__title {
		margin-bottom: 14px !important;
		font-size: 22px !important;
	}

	.techno-faq__panel {
		padding: 4px 14px !important;
		border-radius: 14px !important;
	}

	.techno-faq__item-btn {
		padding: 14px 0 !important;
		font-size: 15px !important;
		gap: 12px !important;
	}

	.techno-faq__answer {
		font-size: 14px !important;
	}
}

/* FAQ / SEO sit inside the products column, right under the grid */
.bottom-category-description--in-main {
	margin: 40px 0 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.bottom-category-description--faq-only {
	margin-top: 40px !important;
}

.bottom-category-description--in-main .techno-faq--in-description,
.bottom-category-description--in-main .elementor-widget-techno-faq,
.rey-siteMain > .elementor-widget-techno-faq {
	margin-top: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.bottom-category-description--faq-only .techno-faq--in-description,
.bottom-category-description--faq-only .elementor-widget-techno-faq {
	margin-top: 0 !important;
}

.rey-siteMain > .elementor-widget-techno-faq {
	margin-top: 40px !important;
}

.bottom-category-description--in-main .techno-faq--in-description .techno-faq__title,
.bottom-category-description--in-main .elementor-widget-techno-faq .techno-faq__title {
	margin-bottom: 14px !important;
}

/* Hide the Elementor copy when FAQ is already printed in the description */
body.techno-has-archive-faq .elementor-widget-techno-faq,
body.techno-has-archive-faq .techno-faq-elementor-skipped,
body.techno-has-archive-faq .techno-faq:not(.techno-faq--in-description) {
	display: none !important;
}

body.techno-has-archive-faq .elementor-top-section:has(.elementor-widget-techno-faq):not(:has(.elementor-widget:not(.elementor-widget-techno-faq))),
body.techno-has-archive-faq .e-con:has(> .e-con-inner > .elementor-widget-techno-faq:only-child) {
	display: none !important;
}
