/* Functional behavior only; visual presentation belongs to the active theme. */
[data-tk-search] {
	position: relative;
}

.tk-search-results {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	z-index: 1000;
	max-height: min(70vh, 30rem);
	overflow-y: auto;
	background: Canvas;
	color: CanvasText;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.tk-search-results[hidden] {
	display: none;
}

.tk-search-result {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.625rem;
	color: inherit;
	text-decoration: none;
}

.tk-search-result[aria-selected="true"],
.tk-search-result:focus,
.tk-search-result:hover {
	background: color-mix(in srgb, currentColor 8%, transparent);
	outline: none;
}

.tk-search-result__image {
	flex: 0 0 auto;
	object-fit: cover;
}

.tk-search-result__body,
.tk-search-result__title,
.tk-search-result__meta {
	display: block;
}

.tk-search-results__status {
	margin: 0;
	padding: 0.875rem;
}

.tk-wishlist-button[aria-busy="true"] {
	cursor: progress;
	opacity: 0.65;
}

.tk-sale-countdown:empty {
	display: none;
}

.tk-empty-state {
	padding: 1rem;
	border: 1px dashed currentColor;
}

.tk-screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
