/* Accordion (replaces former sp-faq plugin styles) */
.doranyprzyloz-faq [data-accordion] [data-content] {
	overflow: hidden;
	max-height: 0;
}

.doranyprzyloz-faq [data-accordion] > [data-control] {
	position: relative;
	cursor: pointer;
	user-select: none;
}

/* Chevron: vertically centered (overrides theme top: 0 !important) */
.doranyprzyloz-faq [data-accordion] > [data-control]:after,
.doranyprzyloz-faq .faq-list .faq-main .faq-title:after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50% !important;
	width: 10px;
	height: 10px;
	margin-top: 0 !important;
	border-right: 2px solid #444;
	border-bottom: 2px solid #444;
	transform: translateY(-50%) rotate(45deg);
	transition: transform 0.2s ease;
}

.doranyprzyloz-faq [data-accordion].open > [data-control]:after,
.doranyprzyloz-faq .faq-list .faq-main.open .faq-title:after {
	transform: translateY(-50%) rotate(-135deg);
}

.doranyprzyloz-faq .faq-title h4 {
	margin: 0 !important;
	font-size: 20px !important;
	line-height: 22px !important;
	padding: 0 !important;
}

.doranyprzyloz-faq .faq-accordion .faq-main {
	margin-bottom: 15px;
	-webkit-transition: all 0.5s ease 0s;
	transition: all 0.5s ease 0s;
}

.doranyprzyloz-faq .faq-accordion .faq-main.open {
	background: #fff;
}

.doranyprzyloz-faq .faq_switches {
	display: flex;
	align-items: flex-end;
	padding: 50px 0;
}

.doranyprzyloz-faq .faq_switch {
	cursor: pointer;
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: #000;
	position: relative;
	flex-basis: 50%;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.doranyprzyloz-faq .faq_switch h3 {
	padding-top: 15px;
	font-size: 20px;
	font-weight: 400;
}

.doranyprzyloz-faq .faq_switch img {
	max-width: 300px;
	height: auto;
}

.doranyprzyloz-faq .faq_switch:not(:last-child):after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	display: block;
	width: 2px;
	height: 80%;
	background: #eee;
}

.doranyprzyloz-faq .faq_switch.off,
.doranyprzyloz-faq .faq_switch:not(.is-active) {
	opacity: 0.6;
}

.doranyprzyloz-faq .faq_switch.off img,
.doranyprzyloz-faq .faq_switch:not(.is-active) img {
	filter: grayscale(100%);
}

.doranyprzyloz-faq .faq_switch:hover,
.doranyprzyloz-faq .faq_switch.is-active {
	opacity: 1;
}

.doranyprzyloz-faq .faq_switch.is-active img {
	filter: none;
}

/*
 * Panels: opacity fade between categories + height morph on .faq-panels.
 * Never rely on theme .faq-list.off for visibility.
 */
.doranyprzyloz-faq .faq-panels {
	position: relative;
}

.doranyprzyloz-faq .faq-list {
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.doranyprzyloz-faq .faq-list.is-active {
	display: block;
	opacity: 1;
}

.doranyprzyloz-faq .faq-list.is-animating {
	display: block;
}

.doranyprzyloz-faq .faq-list.is-leaving {
	opacity: 0;
	transition-duration: 0.2s;
	pointer-events: none;
}

.doranyprzyloz-faq .faq-list.is-entering {
	opacity: 0;
	transition: none;
}

.doranyprzyloz-faq .faq-list.is-active.off {
	display: block;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.doranyprzyloz-faq .faq-list {
		transition: none;
	}
}

@media screen and (max-width: 700px) {
	.doranyprzyloz-faq .faq_switch {
		padding: 0 3%;
		box-sizing: border-box;
	}

	.doranyprzyloz-faq .faq_switch img {
		max-width: 80%;
		height: auto;
	}
}
