:root {
	--am-live-blue: #123bea;
	--am-live-dark: #061760;
	--am-live-orange: #ff5015;
	--am-live-lime: #d7f500;
	--am-live-violet: #c7a0f5;
	--am-live-cream: #fff9ee;
}

.am-sidebar-container .am-sidebar-section:first-child {
	overflow: visible !important;
}

.am-sidebar-container .am-search-box {
	position: relative !important;
	z-index: 12 !important;
}

.am-live-results {
	display: none;
	width: 100%;
	margin-top: 10px;
	overflow: hidden;
	border: 1px solid rgba(18, 59, 234, 0.12);
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 44px rgba(6, 23, 96, 0.15);
}

.am-live-results.is-open,
.am-live-results.is-loading,
.am-live-results.is-empty,
.am-live-results.is-error,
.am-live-results.is-hint {
	display: block;
	animation: am-live-results-in 0.22s ease both;
}

.am-live-results__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px 8px;
	color: var(--am-live-dark);
	background: linear-gradient(90deg, rgba(215, 245, 0, 0.17), rgba(199, 160, 245, 0.13));
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 7px;
	font-weight: 950;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.am-live-results__heading span:last-child {
	display: inline-flex;
	min-width: 21px;
	height: 21px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: #fff;
	background: var(--am-live-blue);
	font-size: 8px;
	letter-spacing: 0;
}

.am-live-results__list {
	display: flex;
	flex-direction: column;
	padding: 5px;
}

.am-live-product {
	position: relative;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 25px;
	gap: 9px;
	align-items: center;
	min-height: 69px;
	padding: 7px;
	border-bottom: 1px solid rgba(18, 59, 234, 0.07);
	border-radius: 12px;
	color: #111 !important;
	text-decoration: none !important;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.am-live-product:last-child {
	border-bottom: 0;
}

.am-live-product:hover,
.am-live-product:focus-visible {
	z-index: 2;
	color: #111 !important;
	background: #fff8f2;
	box-shadow: 0 9px 23px rgba(6, 23, 96, 0.09);
	transform: translateY(-1px);
}

.am-live-product__media {
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid rgba(18, 59, 234, 0.09);
	border-radius: 11px;
	background: #fff;
}

.am-live-product__media img {
	width: 100%;
	height: 100%;
	display: block;
	margin: 0 !important;
	padding: 4px;
	object-fit: contain;
}

.am-live-product__content {
	min-width: 0;
	display: block;
}

.am-live-product__meta {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 3px;
	overflow: hidden;
}

.am-live-product__category {
	overflow: hidden;
	color: rgba(6, 23, 96, 0.55);
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 6px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.am-live-product__stock {
	flex: 0 0 auto;
	padding: 3px 5px;
	border-radius: 999px;
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 5px;
	font-weight: 950;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.am-live-product__stock.is-in-stock {
	color: #146d36;
	background: rgba(72, 201, 112, 0.13);
}

.am-live-product__stock.is-out-of-stock {
	color: #bd3508;
	background: rgba(255, 80, 21, 0.12);
}

.am-live-product__name {
	display: -webkit-box;
	overflow: hidden;
	color: #111;
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 9px;
	font-weight: 900;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.am-live-product__price {
	display: block;
	margin-top: 4px;
	color: var(--am-live-orange);
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 9px;
	font-weight: 950;
	line-height: 1.1;
}

.am-live-product__price del {
	margin-right: 3px;
	color: #9a9a9a;
	font-size: 7px;
}

.am-live-product__price ins {
	color: var(--am-live-orange);
	text-decoration: none;
}

.am-live-product__arrow {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: var(--am-live-dark);
	background: var(--am-live-lime);
	font-family: Inter, Arial, sans-serif;
	font-size: 12px;
	font-weight: 950;
	transition: transform 0.2s ease;
}

.am-live-product:hover .am-live-product__arrow {
	transform: translateX(2px);
}

.am-live-results__all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 41px;
	padding: 10px 12px;
	color: #fff !important;
	background: linear-gradient(135deg, var(--am-live-blue), var(--am-live-dark));
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 7px;
	font-weight: 950;
	letter-spacing: 0.06em;
	text-decoration: none !important;
	text-transform: uppercase;
}

.am-live-results__all:hover {
	color: var(--am-live-lime) !important;
}

.am-live-results__status {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 58px;
	padding: 12px;
	color: #5f6575;
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 8px;
	font-weight: 750;
	line-height: 1.45;
}

.am-live-results__status-icon {
	width: 29px;
	height: 29px;
	flex: 0 0 29px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	color: var(--am-live-dark);
	background: rgba(215, 245, 0, 0.75);
	font-size: 10px;
	font-weight: 950;
}

.am-live-results.is-loading .am-live-results__status-icon {
	animation: am-live-loading 1s ease-in-out infinite;
}

.am-live-categories {
	position: relative;
	z-index: 3;
	width: 100%;
	margin-top: 14px;
	padding: 17px;
	overflow: hidden;
	border: 1px solid rgba(18, 59, 234, 0.1);
	border-radius: 20px;
	background:
		radial-gradient(circle at 100% 0, rgba(215, 245, 0, 0.25), transparent 23%),
		linear-gradient(155deg, #fff 0%, #fffaf1 100%);
	box-shadow: 0 14px 36px rgba(6, 23, 96, 0.09);
}

.am-live-categories::before {
	content: "";
	position: absolute;
	width: 78px;
	height: 78px;
	top: -45px;
	right: -36px;
	border: 16px solid var(--am-live-lime);
	border-radius: 50%;
	pointer-events: none;
}

.am-live-categories__heading {
	position: relative;
	z-index: 2;
	margin-bottom: 13px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(18, 59, 234, 0.09);
}

.am-live-categories__eyebrow {
	display: block;
	margin-bottom: 5px;
	color: var(--am-live-orange);
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 6px;
	font-weight: 950;
	letter-spacing: 0.13em;
	line-height: 1;
}

.am-live-categories__heading h3 {
	margin: 0 0 5px !important;
	color: var(--am-live-dark) !important;
	font-family: Inter, Montserrat, Arial, sans-serif !important;
	font-size: 17px !important;
	font-weight: 950 !important;
	letter-spacing: -0.045em !important;
	line-height: 1 !important;
	text-transform: none !important;
}

.am-live-categories__heading p {
	margin: 0 !important;
	color: #717584;
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 7.5px;
	font-weight: 650;
	line-height: 1.45;
}

.am-category-roots,
.am-category-children {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.am-category-roots {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.am-category-item {
	margin: 0 !important;
	padding: 0 !important;
}

.am-category-item.has-children {
	position: relative;
}

.am-category-parent {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 25px;
	gap: 8px;
	align-items: center;
	min-height: 39px;
	padding: 5px 7px;
	border: 1px solid rgba(18, 59, 234, 0.08);
	border-radius: 12px;
	color: var(--am-live-dark) !important;
	background: rgba(255, 255, 255, 0.77);
	text-decoration: none !important;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.am-category-item.has-children > .am-category-parent {
	padding-right: 43px;
}

.am-category-parent:hover {
	color: var(--am-live-dark) !important;
	border-color: rgba(255, 80, 21, 0.28);
	background: #fff;
	transform: translateX(2px);
}

.am-category-icon {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	background: rgba(199, 160, 245, 0.24);
	font-size: 13px;
}

.am-category-item:nth-child(3n+2) > .am-category-parent .am-category-icon {
	background: rgba(215, 245, 0, 0.32);
}

.am-category-item:nth-child(3n+3) > .am-category-parent .am-category-icon {
	background: rgba(255, 80, 21, 0.12);
}

.am-category-name {
	overflow: hidden;
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 8px;
	font-weight: 900;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.am-category-count {
	min-width: 23px;
	height: 23px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: #fff;
	background: var(--am-live-blue);
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 6px;
	font-weight: 950;
}

.am-category-children {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	max-height: 0;
	margin: 0 !important;
	padding: 0 2px 0 38px !important;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-5px);
	transition:
		max-height 0.34s ease,
		padding 0.25s ease,
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.25s ease;
}

.am-category-item.is-open > .am-category-children {
	max-height: 1300px;
	padding: 7px 2px 1px 38px !important;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.am-category-toggle {
	position: absolute;
	z-index: 4;
	top: 5px;
	right: 5px;
	width: 31px;
	height: 31px;
	min-width: 31px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(18, 59, 234, 0.11) !important;
	border-radius: 9px !important;
	color: var(--am-live-blue) !important;
	background: rgba(18, 59, 234, 0.07) !important;
	box-shadow: none !important;
	cursor: pointer;
	transition:
		color 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease,
		transform 0.2s ease;
}

.am-category-toggle svg {
	width: 13px;
	height: 13px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.24s ease;
}

.am-category-toggle:hover,
.am-category-toggle:focus-visible,
.am-category-item.is-open > .am-category-toggle {
	color: var(--am-live-dark) !important;
	border-color: var(--am-live-lime) !important;
	background: var(--am-live-lime) !important;
}

.am-category-item.is-open > .am-category-toggle svg {
	transform: rotate(180deg);
}

.am-category-children .am-category-item {
	display: inline-flex;
}

.am-category-children .am-category-parent {
	display: inline-flex;
	grid-template-columns: none;
	gap: 5px;
	min-height: 27px;
	padding: 5px 8px;
	border-radius: 999px;
}

.am-category-children .am-category-icon {
	display: none;
}

.am-category-children .am-category-name {
	max-width: 145px;
	font-size: 6.5px;
}

.am-category-children .am-category-count {
	min-width: 17px;
	width: 17px;
	height: 17px;
	font-size: 5px;
	background: var(--am-live-orange);
}

.am-category-children .am-category-children {
	width: 100%;
	padding-right: 0 !important;
	padding-left: 8px !important;
}

.am-category-children .am-category-item.is-open > .am-category-children {
	padding-top: 5px !important;
	padding-bottom: 0 !important;
}

.am-live-categories__all {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 41px;
	margin-top: 13px;
	padding: 10px 12px;
	border-radius: 12px;
	color: #fff !important;
	background: linear-gradient(135deg, var(--am-live-orange), #e94008);
	box-shadow: 0 9px 20px rgba(255, 80, 21, 0.19);
	font-family: Inter, Montserrat, Arial, sans-serif;
	font-size: 7px;
	font-weight: 950;
	letter-spacing: 0.05em;
	text-decoration: none !important;
	text-transform: uppercase;
}

.am-live-categories__all:hover {
	color: #fff !important;
	transform: translateY(-1px);
}

@keyframes am-live-results-in {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes am-live-loading {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(0.9);
	}
}

@media (min-width: 701px) {
	html body.woocommerce-shop #content > .ast-container,
	html body.post-type-archive-product #content > .ast-container,
	html body.tax-product_cat #content > .ast-container,
	html body.archive.tax-product_cat #content > .ast-container {
		grid-template-columns: 295px minmax(0, 1fr) !important;
	}

	.am-live-categories {
		padding: 19px;
	}

	.am-live-categories__heading h3 {
		font-size: 19px !important;
	}

	.am-live-categories__heading p {
		font-size: 8px;
	}

	.am-category-parent {
		min-height: 43px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.am-category-name {
		font-size: 9px;
	}

	.am-category-toggle {
		top: 6px;
		right: 6px;
	}
}

@media (max-width: 700px) {
	.am-live-categories {
		display: none !important;
	}

	.am-live-results {
		margin-top: 8px;
		border-radius: 15px;
	}

	.am-live-product {
		grid-template-columns: 59px minmax(0, 1fr) 29px;
		min-height: 74px;
		gap: 10px;
		padding: 7px;
	}

	.am-live-product__media {
		width: 59px;
		height: 59px;
	}

	.am-live-product__name {
		font-size: 10px;
	}

	.am-live-product__price {
		font-size: 10px;
	}

	.am-live-product__arrow {
		width: 28px;
		height: 28px;
	}

}

@media (max-width: 390px) {
	.am-live-product {
		grid-template-columns: 54px minmax(0, 1fr) 27px;
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-live-results,
	.am-live-product,
	.am-live-product__arrow,
	.am-category-parent,
	.am-category-toggle,
	.am-category-toggle svg,
	.am-category-children {
		animation: none !important;
		transition: none !important;
	}
}
