.dgwt-wcas-search-wrapp,
form.dgwt-wcas-search-form {
	position: relative;
}

.joker-ai-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 999999;
	width: 100%;
	min-width: 420px;
	max-height: min(68vh, 620px);
	overflow: auto;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
	color: #181818;
}

.joker-ai-results[hidden] {
	display: none !important;
}

.joker-ai-heading {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 11px 14px;
	background: #f7f7f8;
	border-bottom: 1px solid #e7e7e7;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .01em;
}

.joker-ai-heading small {
	margin-left: auto;
	color: #6a6a6a;
	font-size: 11px;
	font-weight: 500;
}

.joker-ai-spark {
	color: #8d6b16;
	font-size: 16px;
}

.joker-ai-result {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	gap: 11px;
	align-items: center;
	min-height: 76px;
	padding: 9px 13px;
	border-bottom: 1px solid #ededed;
	color: inherit;
	text-decoration: none !important;
	transition: background-color .15s ease;
}

.joker-ai-result:last-child {
	border-bottom: 0;
}

.joker-ai-result:hover,
.joker-ai-result:focus {
	background: #faf7ef;
	outline: 0;
}

.joker-ai-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	overflow: hidden;
	background: #fff;
	border-radius: 6px;
}

.joker-ai-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.joker-ai-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 5px;
}

.joker-ai-copy strong {
	overflow: hidden;
	color: #151515;
	font-size: 14px;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.joker-ai-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	color: #6a6a6a;
	font-size: 11px;
}

.joker-ai-meta .is-in-stock {
	color: #16833b;
}

.joker-ai-meta .is-out-of-stock {
	color: #a23c32;
}

.joker-ai-price {
	padding-left: 8px;
	color: #1c1c1c;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

body.joker-ai-search-open .dgwt-wcas-suggestions-wrapp {
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 720px) {
	.joker-ai-results {
		left: 0;
		width: 100%;
		min-width: 0;
		max-height: 62vh;
		border-radius: 7px;
	}

	.joker-ai-result {
		grid-template-columns: 52px minmax(0, 1fr);
		min-height: 70px;
		padding: 8px 10px;
	}

	.joker-ai-image {
		width: 52px;
		height: 52px;
	}

	.joker-ai-price {
		grid-column: 2;
		padding: 0;
	}

	.joker-ai-heading small {
		display: none;
	}
}
