.ccsgs-legacy-results {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.ccsgs-results-portal {
	position: fixed !important;
	z-index: 2147483000 !important;
	display: none !important;
	box-sizing: border-box !important;
	max-width: calc(100vw - 16px) !important;
	max-height: min(62vh, 620px) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	border: 1px solid rgba(255,255,255,.24) !important;
	border-radius: 10px !important;
	background: #182330 !important;
	box-shadow: 0 18px 48px rgba(0,0,0,.52) !important;
	transform: translateZ(0) !important;
	isolation: isolate;
}

.ccsgs-results-portal.ccsgs-visible:not(:empty) {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.ccsgs-search-message,
.ccsgs-search-loading {
	margin: 0 !important;
	padding: 16px !important;
	color: #fff !important;
	font-size: 14px !important;
	text-align: left !important;
}

.ccsgs-section-heading {
	position: sticky;
	top: 0;
	z-index: 3;
	padding: 9px 12px;
	border-bottom: 1px solid #465463;
	background: #263544;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.ccsgs-taxonomy-result,
.ccsgs-product-result,
.ccsgs-view-all {
	box-sizing: border-box !important;
	text-decoration: none !important;
}

.ccsgs-taxonomy-result {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	min-height: 44px !important;
	padding: 9px 12px !important;
	border-bottom: 1px solid #364656 !important;
	background: #1d2a37 !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.ccsgs-result-type {
	flex: 0 0 auto;
	padding: 3px 7px;
	border-radius: 999px;
	background: #d8e8fa;
	color: #173c68;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ccsgs-product-result {
	display: grid !important;
	grid-template-columns: 70px minmax(0, 1fr) !important;
	gap: 12px !important;
	align-items: center !important;
	min-height: 88px !important;
	padding: 9px 12px !important;
	border-bottom: 1px solid #364656 !important;
	background: #182330 !important;
	color: #fff !important;
}

.ccsgs-product-result:hover,
.ccsgs-product-result:focus,
.ccsgs-product-result.is-selected,
.ccsgs-taxonomy-result:hover,
.ccsgs-taxonomy-result:focus,
.ccsgs-taxonomy-result.is-selected {
	background: #263b50 !important;
	outline: none !important;
}

.ccsgs-product-image,
.ccsgs-product-image img {
	display: block !important;
	width: 70px !important;
	height: 70px !important;
	max-width: 70px !important;
	border-radius: 6px !important;
	object-fit: contain !important;
	background: #fff !important;
}

.ccsgs-product-copy {
	display: flex !important;
	min-width: 0 !important;
	flex-direction: column !important;
	gap: 5px !important;
}

.ccsgs-product-title {
	display: block !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
}

.ccsgs-product-price {
	display: block !important;
	color: #d8e8fa !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.ccsgs-view-all {
	display: block !important;
	padding: 12px 14px !important;
	background: #3f6194 !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	text-align: center !important;
}

.ccsgs-gallery-data {
	display: none !important;
}

.ccsgs-stage-shell {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
	touch-action: pan-y pinch-zoom !important;
	-webkit-user-select: none !important;
	user-select: none !important;
}

.ccsgs-stage-shell > img:not(.ccsgs-stage-image) {
	visibility: hidden !important;
}

.ccsgs-stage-image {
	position: absolute !important;
	inset: 0 !important;
	z-index: 2 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	object-fit: contain !important;
	pointer-events: none !important;
	-webkit-user-drag: none !important;
	user-select: none !important;
	transition: opacity .12s ease, transform .12s ease !important;
}

.ccsgs-stage-shell.ccsgs-stage-changed .ccsgs-stage-image {
	animation: ccsgs-stage-pulse .18s ease-out;
}

@keyframes ccsgs-stage-pulse {
	0% { opacity: .55; transform: scale(.985); }
	100% { opacity: 1; transform: scale(1); }
}

.ccsgs-gallery-control,
.ccsgs-single-control {
	position: absolute !important;
	z-index: 12 !important;
	top: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 0 3px !important;
	border: 1px solid rgba(255,255,255,.58) !important;
	border-radius: 999px !important;
	background: rgba(16,27,39,.82) !important;
	box-shadow: 0 3px 12px rgba(0,0,0,.36) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-family: Arial, sans-serif !important;
	font-size: 31px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	transform: translateY(-50%) !important;
	cursor: pointer !important;
	pointer-events: auto !important;
	touch-action: manipulation !important;
}

.ccsgs-gallery-previous,
.ccsgs-single-previous { left: 6px !important; }
.ccsgs-gallery-next,
.ccsgs-single-next { right: 6px !important; }

.ccsgs-gallery-control:hover,
.ccsgs-gallery-control:focus,
.ccsgs-single-control:hover,
.ccsgs-single-control:focus {
	background: rgba(63,97,148,.96) !important;
	outline: 2px solid #fff !important;
	outline-offset: 1px !important;
}

.ccsgs-gallery-count {
	position: absolute !important;
	z-index: 11 !important;
	right: 7px !important;
	bottom: 7px !important;
	display: block !important;
	min-width: 42px !important;
	padding: 4px 7px !important;
	border-radius: 999px !important;
	background: rgba(16,27,39,.82) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-align: center !important;
	pointer-events: none !important;
}

.woocommerce-product-gallery.ccsgs-swipe-ready {
	position: relative !important;
	touch-action: pan-y pinch-zoom !important;
}

.ccsgs-single-control {
	position: absolute !important;
}

@media (hover: none), (pointer: coarse) {
	.ccsgs-gallery-control,
	.ccsgs-single-control {
		width: 38px !important;
		height: 50px !important;
		font-size: 34px !important;
	}
}

@media (max-width: 760px) {
	.ccsgs-results-portal,
	.ccsgs-results-portal.ccsgs-mobile-portal {
		max-width: calc(100vw - 16px) !important;
		border-radius: 8px !important;
	}

	.ccsgs-product-result {
		grid-template-columns: 58px minmax(0, 1fr) !important;
		gap: 10px !important;
		min-height: 76px !important;
		padding: 8px 9px !important;
	}

	.ccsgs-product-image,
	.ccsgs-product-image img {
		width: 58px !important;
		height: 58px !important;
		max-width: 58px !important;
	}
}
