/* SMT WP Customize – Category accordion (only when .smt-wpc-has-accordion) */

.smt-wpc-category-widget.smt-wpc-has-accordion li.cat-parent {
	position: relative;
}

.smt-wpc-category-widget.smt-wpc-has-accordion li.cat-parent > a {
	padding-right: 24px;
}

.smt-wpc-category-widget.smt-wpc-has-accordion li.cat-parent > ul.children {
	display: none;
}

.smt-wpc-category-widget.smt-wpc-has-accordion li.cat-parent.smt-wpc-category-open > ul.children,
.smt-wpc-category-widget.smt-wpc-has-accordion li.cat-parent.current-cat-parent > ul.children,
.smt-wpc-category-widget.smt-wpc-has-accordion li.cat-parent.current-cat-ancestor > ul.children {
	display: block;
}

.smt-wpc-category-widget.smt-wpc-has-accordion .smt-wpc-category-toggle {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	font-size: 0;
	line-height: 1;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	transition: transform 0.2s ease;
}

/* Chevron arrow via CSS — no text content */
.smt-wpc-category-widget.smt-wpc-has-accordion .smt-wpc-category-toggle::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
}

/* Open state: rotate chevron down */
.smt-wpc-category-widget.smt-wpc-has-accordion li.cat-parent.smt-wpc-category-open > .smt-wpc-category-toggle::before {
	transform: rotate(45deg);
}

.smt-wpc-category-widget.smt-wpc-has-accordion .smt-wpc-category-toggle:hover,
.smt-wpc-category-widget.smt-wpc-has-accordion .smt-wpc-category-toggle:focus {
	opacity: 0.7;
}

/* Hide Flatsome .toggle so SMT button is the only control on the right */
.smt-wpc-category-widget.smt-wpc-has-accordion li.cat-parent > .toggle {
	display: none;
}
