/**
 * Шорткод поиска по артикулу (.skyexpo-search).
 */

.skyexpo-search {
	position: relative;
	max-width: 28rem;
	width: 100%;
	margin-bottom: 1rem;
}

.skyexpo-search__field-wrap {
	position: relative;
}

.skyexpo-search__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.85rem;
	font-size: 1rem;
	line-height: 1.35;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.skyexpo-search__input:hover {
	border-color: rgba(0, 0, 0, 0.28);
}

.skyexpo-search__input:focus {
	outline: none;
	border-color: #5c6bc0;
	box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.22);
}

.skyexpo-search__dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 50;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	overflow: hidden;
	max-height: min(18rem, 50vh);
	overflow-y: auto;
}

.skyexpo-search__status {
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: #64748b;
}

.skyexpo-search__status--empty {
	color: #94a3b8;
}

.skyexpo-search__status--error {
	color: #b91c1c;
}

.skyexpo-search__list {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0;
}

.skyexpo-search__item {
	margin: 0;
}

.skyexpo-search__link {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.55rem 1rem;
	text-decoration: none;
	color: inherit;
	border: 0;
	background: transparent;
	width: 100%;
	text-align: left;
	cursor: pointer;
	transition: background 0.12s ease;
}

.skyexpo-search__link:hover,
.skyexpo-search__link:focus {
	background: rgba(92, 107, 192, 0.08);
	outline: none;
}

.skyexpo-search__link-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #1e293b;
}

.skyexpo-search__link-sku {
	font-size: 0.8rem;
	font-family: ui-monospace, Consolas, monospace;
	color: #64748b;
}

/* Подпись для скринридеров, если тема не задаёт .screen-reader-text */
.skyexpo-search .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
