.cps-gallery-with-switcher {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 1em;
}

.cps-gallery-with-switcher .woocommerce-product-gallery {
	height: auto;
}

.elementor-widget-shortcode .cps-category-switcher,
.elementor-shortcode .cps-category-switcher {
	width: 100%;
	max-width: 100%;
	float: none;
}

.woocommerce div.product > .cps-category-switcher {
	float: left;
	clear: left;
	width: 48%;
}

.cps-category-switcher {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.3;
	z-index: 20;
}

.cps-category-switcher *,
.cps-category-switcher *::before,
.cps-category-switcher *::after {
	box-sizing: border-box;
}

.cps-category-switcher__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #c5cdd3;
	border-radius: 8px;
	background: #fff;
	color: #1d2a32;
	text-align: left;
	cursor: pointer;
}

.cps-category-switcher.is-open .cps-category-switcher__toggle,
.cps-category-switcher__toggle:focus {
	outline: none;
	border-color: #00a0e3;
	box-shadow: 0 0 0 3px rgba(0, 160, 227, 0.2);
}

.cps-category-switcher__toggle-text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cps-category-switcher__prefix {
	color: #5b6770;
}

.cps-category-switcher__current {
	font-weight: 700;
}

.cps-category-switcher__caret {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-right: 2px solid #6b7780;
	border-bottom: 2px solid #6b7780;
	transform: rotate(45deg) translate(-2px, -2px);
}

.cps-category-switcher.is-open .cps-category-switcher__caret {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.cps-category-switcher__list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 30;
	margin: 0;
	padding: 6px 0;
	max-height: 340px;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid #d5dee4;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(20, 40, 60, 0.16);
}

.cps-category-switcher__list[hidden] {
	display: none;
}

.cps-category-switcher__item {
	margin: 0;
	padding: 0;
}

.cps-category-switcher__option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: inherit;
	text-decoration: none;
}

.cps-category-switcher__option:hover {
	background: #f4f8fb;
	text-decoration: none;
}

.cps-category-switcher__option.is-current,
.cps-category-switcher__option.is-current:hover {
	background: #00a0e3;
	color: #fff;
}

.cps-category-switcher__image {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: contain;
	background: #f3f5f7;
	border-radius: 6px;
}

.cps-category-switcher__meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cps-category-switcher__name {
	font-weight: 700;
	color: #1d2a32;
}

.cps-category-switcher__stock {
	font-size: 13px;
}

.cps-category-switcher__stock.is-in-stock {
	color: #1aa05a;
}

.cps-category-switcher__stock.is-out-of-stock {
	color: #d35400;
}

.cps-category-switcher__price {
	flex: 0 0 auto;
	margin-left: auto;
	font-weight: 700;
	color: #0b6ea3;
	white-space: nowrap;
}

.cps-category-switcher__arrow {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #8b98a2;
	border-top: 2px solid #8b98a2;
	transform: rotate(45deg);
}

.cps-category-switcher__option.is-current .cps-category-switcher__name,
.cps-category-switcher__option.is-current .cps-category-switcher__stock,
.cps-category-switcher__option.is-current .cps-category-switcher__price {
	color: #fff;
}

.cps-category-switcher__option.is-current .cps-category-switcher__arrow {
	border-color: #fff;
}

@media (max-width: 768px) {
	.woocommerce div.product > .cps-category-switcher {
		float: none;
		width: 100%;
	}
}
