/* Vehicle category menu styling */
body#module-psvehiclecompat-vehicle #left-column .block-categories:not(.psvc-block-categories):not(.psvc-universal-toggle) .category-top-menu.tvside-panel-dropdown {
	display: none !important;
}

#left-column .psvc-block-categories {
	margin-bottom: .75rem;
}

body#module-psvehiclecompat-vehicle .psvc-vehicle-categories {
	margin-top: 1.25rem;
	border-radius: 8px;
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .2);
}

body#module-psvehiclecompat-vehicle .psvc-vehicle-categories .card-header {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-weight: 600;
	text-transform: uppercase;
	font-size: .78rem;
	letter-spacing: .03em;
}

body#module-psvehiclecompat-vehicle .psvc-vehicle-categories .card-header .material-icons {
	font-size: 18px;
	color: #2684ff;
}

body#module-psvehiclecompat-vehicle .psvc-vehicle-categories .list-group-item {
	font-size: .85rem;
	padding: .55rem .9rem;
}

body#module-psvehiclecompat-vehicle .psvc-vehicle-categories .list-group-item a {
	color: inherit;
	text-decoration: none;
}

body#module-psvehiclecompat-vehicle .psvc-vehicle-categories .list-group-item a:hover {
	color: #2684ff;
}

body#module-psvehiclecompat-vehicle .psvc-vehicle-categories .card-footer {
	font-size: .75rem;
	font-style: italic;
}

/* Árbol de categorías compatibles: contador en hojas */
#left-column .block-categories.psvc-block-categories .category-sub-menu li {
	position: relative;
}

#left-column .block-categories.psvc-block-categories .category-sub-menu li > a,
#left-column .block-categories.psvc-block-categories .category-sub-menu li > .category-sub-link {
	display: flex !important;
	align-items: center;
	gap: .55rem;
	min-width: 0;
	width: 100%;
	min-height: 44px;
	padding-right: 2.75rem !important;
	text-align: left !important;
	justify-content: flex-start !important;
	white-space: normal !important;
	overflow: visible !important;
}

#left-column .block-categories.psvc-block-categories .ma-cat-link__icon {
	display: block;
	flex: 0 0 32px;
	width: 32px;
	min-width: 32px;
	max-width: 32px;
	height: 32px;
	object-fit: contain;
	border: 0;
	border-radius: 4px;
	background: transparent;
}

#left-column .block-categories.psvc-block-categories .ma-cat-link__icon--placeholder {
	visibility: hidden;
}

#left-column .block-categories.psvc-block-categories .category-sub-menu li > a .psvc-cat-copy,
#left-column .block-categories.psvc-block-categories .category-sub-menu li > .category-sub-link .psvc-cat-copy {
	display: flex !important;
	align-items: center;
	gap: .45rem;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	text-align: left !important;
	line-height: 1.35;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
}

#left-column .block-categories.psvc-block-categories .category-sub-menu li > a .psvc-cat-name,
#left-column .block-categories.psvc-block-categories .category-sub-menu li > .category-sub-link .psvc-cat-name {
	flex: 1 1 auto !important;
	min-width: 0;
	overflow-wrap: anywhere;
	white-space: normal !important;
	text-align: left !important;
}

#left-column .block-categories.psvc-block-categories .psvc-cat-count {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 22px;
	height: 22px;
	margin: 0 .5rem 0 auto !important;
	padding: 0 6px;
	border: 1px solid #b8c4d2;
	border-radius: 999px;
	background: #fff;
	color: #334155;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	opacity: 1;
	white-space: nowrap;
}

#left-column .block-categories.psvc-block-categories .category-sub-menu li > .collapse-icons {
	right: .35rem;
	top: .35rem;
	min-width: 1.75rem;
	text-align: center;
}

#left-column .block-categories.psvc-block-categories .category-sub-menu li > a.active,
#left-column .block-categories.psvc-block-categories .category-sub-menu li > .category-sub-link.active {
	color: #F76300 !important;
	font-weight: 900;
}

/* Toggle "Mostrar productos universales" */
#left-column .block-categories.psvc-universal-toggle .category-top-menu > li.tv-leftcategory-wrapper,
.psvc-universal-toggle .tv-leftcategory-wrapper {
	box-sizing: border-box;
	padding: 1rem 1.15rem;
	background: #fff;
}

.psvc-universal-toggle__label {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.25;
	cursor: pointer;
	color: #073C5E;
}

.psvc-universal-toggle__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.psvc-universal-toggle__label span {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 34px;
	padding: 0 64px 0 0;
	white-space: normal;
}

.psvc-universal-toggle__label span::before,
.psvc-universal-toggle__label span::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, right .18s ease;
}

.psvc-universal-toggle__label span::before {
	right: 0;
	width: 46px;
	height: 26px;
	border: 1px solid #c9d2dc;
	border-radius: 999px;
	background: #dfe5eb;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}

.psvc-universal-toggle__label span::after {
	right: 23px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(20,31,42,.24);
}

.psvc-universal-toggle__input:checked + span::before {
	border-color: #F76300;
	background: #F76300;
}

.psvc-universal-toggle__input:checked + span::after {
	right: 3px;
}

.psvc-universal-toggle__input:focus-visible + span::before {
	outline: 2px solid rgba(38,132,255,.42);
	outline-offset: 2px;
}

/* MOTAREA: desktop compatible-category sidebar polish */
@media (min-width: 992px) {
	#left-column .block-categories.psvc-block-categories {
		border-color: #dbe5ef !important;
		border-radius: 8px !important;
		background: #fff !important;
		box-shadow: 0 18px 40px rgba(7, 38, 61, .08) !important;
	}

	#left-column .block-categories.psvc-block-categories .category-top-menu > li.tv-category-title-wrapper {
		background:
			radial-gradient(circle at 92% 18%, rgba(247, 99, 0, .22), transparent 28%),
			linear-gradient(135deg, #052b49, #073c5e) !important;
	}

	#left-column .block-categories.psvc-block-categories .category-top-menu > li.tv-category-title-wrapper a.tv-main-category-title {
		color: #fff !important;
		font-size: 15px !important;
		font-weight: 900 !important;
		line-height: 1.15 !important;
		text-transform: uppercase !important;
	}

	#left-column .block-categories.psvc-block-categories .category-sub-menu li > a,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li > .category-sub-link {
		min-height: 50px !important;
		padding: 8px 38px 8px 14px !important;
		color: #082846 !important;
		font-size: 13.5px !important;
		font-weight: 700 !important;
		line-height: 1.25 !important;
	}

	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="1"] > a,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="1"] > .category-sub-link {
		min-height: 44px !important;
		padding-left: 24px !important;
		background: #fff !important;
		font-size: 13px !important;
		font-weight: 700 !important;
	}

	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="2"] > a,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="2"] > .category-sub-link {
		min-height: 40px !important;
		padding-left: 32px !important;
		background: #fff !important;
		color: #64758a !important;
		font-size: 12.5px !important;
		font-weight: 650 !important;
	}

	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="3"] > a,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="3"] > .category-sub-link {
		min-height: 38px !important;
		padding-left: 34px !important;
		padding-right: 34px !important;
		gap: 8px !important;
		background: #fff !important;
		color: #5f7187 !important;
		font-size: 12px !important;
		font-weight: 600 !important;
	}

	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="4"] > a,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="4"] > .category-sub-link,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="5"] > a,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="5"] > .category-sub-link,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="6"] > a,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li[data-depth="6"] > .category-sub-link {
		min-height: 36px !important;
		padding-left: 36px !important;
		padding-right: 32px !important;
		gap: 8px !important;
		background: #fff !important;
		color: #5f7187 !important;
		font-size: 11.5px !important;
		font-weight: 600 !important;
	}

	#left-column .block-categories.psvc-block-categories .ma-cat-link__icon {
		flex: 0 0 34px !important;
		width: 34px !important;
		min-width: 34px !important;
		max-width: 34px !important;
		height: 34px !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: #fff !important;
		object-fit: contain !important;
		padding: 0 !important;
	}

	#left-column .block-categories.psvc-block-categories li[data-depth="2"] .ma-cat-link__icon,
	#left-column .block-categories.psvc-block-categories li[data-depth="3"] .ma-cat-link__icon,
	#left-column .block-categories.psvc-block-categories li[data-depth="4"] .ma-cat-link__icon,
	#left-column .block-categories.psvc-block-categories li[data-depth="5"] .ma-cat-link__icon,
	#left-column .block-categories.psvc-block-categories li[data-depth="6"] .ma-cat-link__icon {
		flex-basis: 30px !important;
		width: 30px !important;
		min-width: 30px !important;
		max-width: 30px !important;
		height: 30px !important;
	}

	#left-column .block-categories.psvc-block-categories .ma-cat-link__icon--placeholder {
		visibility: visible !important;
	}

	#left-column .block-categories.psvc-block-categories .psvc-cat-copy,
	#left-column .block-categories.psvc-block-categories .psvc-cat-name {
		white-space: normal !important;
		overflow-wrap: normal !important;
	}

	#left-column .block-categories.psvc-block-categories .psvc-cat-count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		min-width: 22px;
		height: 22px;
		margin: 0 .5rem 0 auto;
		padding: 0 6px;
		border-radius: 999px;
		border: 1px solid #b8c4d2;
		background: #fff;
		color: #334155;
		font-size: 11px;
		font-weight: 800;
		line-height: 1;
		opacity: 1;
		white-space: nowrap;
	}

	#left-column .block-categories.psvc-block-categories .collapse {
		border-left: 0 !important;
	}

	#left-column .block-categories.psvc-block-categories .collapse.in:not(:has(.collapse.in, .collapse.show)),
	#left-column .block-categories.psvc-block-categories .collapse.show:not(:has(.collapse.in, .collapse.show)) {
		border-left: 4px solid #f76300 !important;
	}

	#left-column .block-categories.psvc-block-categories .category-sub-menu li > .collapse-icons {
		top: 5px !important;
		right: 8px !important;
		color: #082846 !important;
	}

	#left-column .block-categories.psvc-block-categories .category-sub-menu li > .collapse-icons:hover,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li > .collapse-icons[aria-expanded="true"] {
		color: #f76300 !important;
	}

	#left-column .block-categories.psvc-block-categories .category-sub-menu li > a.active,
	#left-column .block-categories.psvc-block-categories .category-sub-menu li > .category-sub-link.active {
		color: #f76300 !important;
		background: #fff !important;
		font-weight: 900 !important;
		box-shadow: inset 4px 0 0 #f76300 !important;
	}

	#left-column .block-categories.psvc-block-categories .tv-leftcategory-wrapper > .text-muted {
		margin: 8px 14px 12px;
		padding: 9px 10px !important;
		border-radius: 8px;
		background: #f5f8fb;
		color: #64758a !important;
		font-size: 12px !important;
		font-weight: 700;
		line-height: 1.35;
	}

	#left-column .block-categories.psvc-universal-toggle {
		overflow: hidden !important;
		border: 1px solid #dbe5ef !important;
		border-radius: 8px !important;
		background: #fff !important;
		box-shadow: 0 18px 40px rgba(7, 38, 61, .08) !important;
	}

	#left-column .block-categories.psvc-universal-toggle .category-top-menu > li.tv-leftcategory-wrapper,
	#left-column .block-categories.psvc-universal-toggle .tv-leftcategory-wrapper {
		margin: 0 !important;
		padding: 14px 16px 16px !important;
		border: 0 !important;
		border-radius: 8px 8px 0 0 !important;
		background: #fff !important;
	}

	#left-column .block-categories.psvc-universal-toggle .psvc-universal-toggle__label {
		min-height: 48px;
		padding: 0 !important;
		color: #073C5E !important;
		font-size: 14px !important;
		font-weight: 850 !important;
		line-height: 1.2 !important;
	}

	#left-column .block-categories.psvc-universal-toggle .psvc-universal-toggle__label span {
		min-height: 48px;
		padding: 0 66px 0 0 !important;
	}

	#left-column .block-categories.psvc-universal-toggle .psvc-universal-toggle__label span::before {
		right: 0;
		width: 50px;
		height: 28px;
	}

	#left-column .block-categories.psvc-universal-toggle .psvc-universal-toggle__label span::after {
		right: 25px;
		width: 22px;
		height: 22px;
	}

	#left-column .block-categories.psvc-universal-toggle .psvc-universal-toggle__input:checked + span::after {
		right: 3px;
	}
}

.psvc-universal-toggle__input:disabled + span {
	cursor: not-allowed;
	opacity: .55;
}

.psvc-universal-toggle__input:disabled + span::before {
	background: #edf1f5;
	border-color: #d8dee6;
}
