/* Растягивающийся быстрый поиск сайта w3strict:fastsearch.
   Настройка через переменные на .w3s-fast или выше:
   --w3s-fast-z, --w3s-fast-bg, --w3s-fast-color, --w3s-fast-muted,
   --w3s-fast-border, --w3s-fast-accent, --w3s-fast-accent-soft,
   --w3s-fast-radius, --w3s-fast-height, --w3s-fast-aside-bg,
   --w3s-fast-skeleton, --w3s-fast-skeleton-shine. */

/* Плейсхолдер: держит высоту корня в потоке, пока тот растянут. Сам не
   позиционирован: корень растягивается по ближайшему позиционированному
   предку из вёрстки сайта. */
.w3s-fast-holder {
	width: 100%;
	min-height: 48px;
}

/* Корень компонента (контейнер, в который смонтировано приложение). */
.w3s-fast {
	--w3s-fast-z: 1000;
	--w3s-fast-bg: #fff;
	--w3s-fast-color: #1f2328;
	--w3s-fast-muted: #6b7280;
	--w3s-fast-border: #d5d9e0;
	--w3s-fast-accent: #2067b0;
	--w3s-fast-accent-soft: rgba(32, 103, 176, .1);
	--w3s-fast-radius: 8px;
	--w3s-fast-height: 48px;
	--w3s-fast-aside-bg: #f7f8fa;
	--w3s-fast-line: #eceef2;
	--w3s-fast-hover: #f3f5f8;
	--w3s-fast-danger: #d93025;
	--w3s-fast-skeleton: #e9ebef;
	--w3s-fast-skeleton-shine: #f6f7f9;

	position: relative;
	width: 100%;
	box-sizing: border-box;
	color: var(--w3s-fast-color);
	font-size: 14px;
	line-height: 1.4;
}

.w3s-fast *,
.w3s-fast *::before,
.w3s-fast *::after {
	box-sizing: border-box;
}

/* Вынут из потока: при фокусе сразу растягивается на всю ширину ближайшего
   позиционированного предка, без анимации. */
.w3s-fast--absolute {
	position: absolute;
	z-index: var(--w3s-fast-z);
	top: 11px;
	right: 0;
	left: 0;
	width: auto;
	padding: 0 20px;
}

.w3s-fast__body {
	position: relative;
	width: 100%;
	margin-left: auto;
	background: var(--w3s-fast-bg);
	border-radius: var(--w3s-fast-radius);
}

/* Строка ввода */
.w3s-fast__form {
	position: relative;
	width: 100%;
	margin: 0;
}

.w3s-fast__row,
.w3s-fast__fallback {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: var(--w3s-fast-height);
	margin: 0;
	border: 1px solid var(--w3s-fast-border);
	border-radius: var(--w3s-fast-radius);
	background: var(--w3s-fast-bg);
	overflow: hidden;
	transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.w3s-fast__row:hover {
	border-color: #b9c0cb;
}

.w3s-fast--active .w3s-fast__row {
	border-color: var(--w3s-fast-accent);
	box-shadow: 0 0 0 3px var(--w3s-fast-accent-soft);
}

.w3s-fast__body--open .w3s-fast__row {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: none;
}

.w3s-fast__lead {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	padding-left: 14px;
	color: var(--w3s-fast-muted);
}

.w3s-fast--active .w3s-fast__lead {
	display: inline-flex;
	color: var(--w3s-fast-accent);
}

.w3s-fast__input,
.w3s-fast__fallback-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 12px;
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	appearance: none;
}

.w3s-fast__input::placeholder,
.w3s-fast__fallback-input::placeholder {
	color: var(--w3s-fast-muted);
}

.w3s-fast__form--listening .w3s-fast__input::placeholder {
	color: var(--w3s-fast-accent);
}

/* Чип выбранной категории-фильтра слева от поля: 100px название + 20px крестик */
.w3s-fast__category-chip {
	display: flex;
	flex: 0 0 120px;
	align-items: stretch;
	width: 120px;
	height: 100%;
	margin-left: 8px;
	border-right: 1px solid var(--w3s-fast-border);
	background: var(--w3s-fast-accent-soft);
	color: var(--w3s-fast-accent);
}

.w3s-fast--active .w3s-fast__category-chip {
	margin-left: 6px;
}

.w3s-fast__category-chip-name {
	display: block;
	flex: 0 0 100px;
	width: 100px;
	height: 100%;
	padding: 0 4px 0 10px;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: calc(var(--w3s-fast-height) - 2px);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w3s-fast__category-chip-remove {
	display: inline-flex;
	flex: 0 0 20px;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: .7;
}

.w3s-fast__category-chip-remove:hover,
.w3s-fast__category-chip-remove:focus-visible {
	background: rgba(32, 103, 176, .12);
	opacity: 1;
}

.w3s-fast__category-chip-remove:focus-visible {
	outline: 2px solid var(--w3s-fast-accent);
	outline-offset: -3px;
}

/* Кнопки в строке */
.w3s-fast__action {
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--w3s-fast-muted);
	cursor: pointer;
	transition: color 120ms ease-out;
}

.w3s-fast__action:hover,
.w3s-fast__action:focus-visible,
.w3s-fast__action--active {
	color: var(--w3s-fast-accent);
}

.w3s-fast__action:focus-visible {
	outline: 2px solid var(--w3s-fast-accent);
	outline-offset: -4px;
}

.w3s-fast__icon {
	display: block;
	flex: none;
	pointer-events: none;
}

.w3s-fast__voice.w3s-fast__action--active {
	color: var(--w3s-fast-danger);
	animation: w3s-fast-pulse 1.2s ease-in-out infinite;
}

.w3s-fast__submit {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 100%;
	margin: 0;
	padding: 0 18px;
	border: 0;
	background: var(--w3s-fast-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter 120ms ease-out;
}

.w3s-fast__submit:hover {
	filter: brightness(1.08);
}

.w3s-fast__submit:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.w3s-fast__submit-icon {
	display: none;
}

.w3s-fast__voice-error {
	padding: 6px 2px 0;
	color: var(--w3s-fast-danger);
	font-size: 13px;
}

/* Запасная форма без JS */
.w3s-fast__fallback-submit {
	flex: 0 0 auto;
	margin: 0;
	padding: 0 16px;
	border: 0;
	background: var(--w3s-fast-accent);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

/* Панель */
.w3s-fast__panel {
	position: absolute;
	z-index: var(--w3s-fast-z);
	top: var(--w3s-fast-height);
	right: 0;
	left: 0;
	border: 1px solid var(--w3s-fast-accent);
	border-top: 1px solid var(--w3s-fast-line);
	border-radius: 0 0 var(--w3s-fast-radius) var(--w3s-fast-radius);
	background: var(--w3s-fast-bg);
	box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
	overflow: hidden;
	animation: w3s-fast-drop 140ms ease-out;
	transform-origin: top center;
}

.w3s-fast__results {
	max-height: min(72vh, 680px);
	overflow-y: auto;
}

/* Колонки: разделы (со своей прокруткой), запросы с брендами, товары.
   Ширины задаёт панель по набору колонок; на узких экранах одна колонка. */
.w3s-fast__results--columns {
	overflow: hidden;
}

.w3s-fast__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	max-height: min(72vh, 680px);
	min-height: 120px;
}

.w3s-fast__column {
	min-width: 0;
	min-height: 0;
	padding: 16px 20px 20px;
	overflow-y: auto;
}

.w3s-fast__column + .w3s-fast__column {
	border-left: 1px solid var(--w3s-fast-line);
}

.w3s-fast__column--categories,
.w3s-fast__column--aside {
	background: var(--w3s-fast-aside-bg);
}

.w3s-fast__columns--1 .w3s-fast__column {
	background: transparent;
}

/* Состояния: подсказка, пусто, ошибка */
.w3s-fast__state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 36px 20px;
	color: var(--w3s-fast-muted);
	text-align: center;
}

.w3s-fast__state-icon {
	margin-bottom: 4px;
	color: #b9c0cb;
}

.w3s-fast__state-text {
	color: var(--w3s-fast-color);
	font-size: 15px;
	font-weight: 600;
}

.w3s-fast__state-hint {
	font-size: 13px;
}

.w3s-fast__state--error .w3s-fast__state-icon,
.w3s-fast__state--error .w3s-fast__state-text {
	color: var(--w3s-fast-danger);
}

/* Секции */
.w3s-fast__section + .w3s-fast__section {
	margin-top: 18px;
}

.w3s-fast__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
}

.w3s-fast__section-title {
	color: var(--w3s-fast-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.w3s-fast__section-action {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--w3s-fast-muted);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.w3s-fast__section-action:hover,
.w3s-fast__section-action:focus-visible {
	color: var(--w3s-fast-accent);
	text-decoration: underline;
}

.w3s-fast__chips,
.w3s-fast__recent,
.w3s-fast__categories,
.w3s-fast__brands,
.w3s-fast__products {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Подсветка совпадений */
.w3s-fast__mark {
	background: transparent;
	color: var(--w3s-fast-accent);
	font-weight: 700;
}

/* Чипы: популярные запросы и бренды */
.w3s-fast__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.w3s-fast__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--w3s-fast-border);
	border-radius: 999px;
	background: var(--w3s-fast-bg);
	color: inherit;
	font: inherit;
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 120ms ease-out, color 120ms ease-out, background-color 120ms ease-out;
}

.w3s-fast__chip:hover,
.w3s-fast__chip:focus-visible {
	border-color: var(--w3s-fast-accent);
	background: var(--w3s-fast-accent-soft);
	color: var(--w3s-fast-accent);
	text-decoration: none;
}

.w3s-fast__chip > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w3s-fast__chip-icon {
	flex: none;
	color: var(--w3s-fast-muted);
}

.w3s-fast__chip:hover .w3s-fast__chip-icon {
	color: inherit;
}

.w3s-fast__brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 6px;
}

.w3s-fast__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 4px 6px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: background-color 120ms ease-out;
}

.w3s-fast__brand:hover,
.w3s-fast__brand:focus-visible {
	background: var(--w3s-fast-hover);
	color: var(--w3s-fast-accent);
	text-decoration: none;
}

/* Логотип по центру блока по обеим осям; картинка не растягивается. */
.w3s-fast__brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 56px;
	padding: 6px;
	border: 1px solid var(--w3s-fast-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.w3s-fast__brand-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
	object-fit: contain;
}

.w3s-fast__brand-initial {
	color: var(--w3s-fast-accent);
	font-size: 20px;
	font-weight: 700;
}

.w3s-fast__brand-name {
	display: -webkit-box;
	max-width: 100%;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
}

/* Недавние запросы */
.w3s-fast__recent-item {
	display: flex;
	align-items: center;
	margin: 0 -8px;
	border-radius: 6px;
}

.w3s-fast__recent-item:hover {
	background: var(--w3s-fast-hover);
}

.w3s-fast__recent-query {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 7px 8px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.w3s-fast__recent-query:hover,
.w3s-fast__recent-query:focus-visible {
	color: var(--w3s-fast-accent);
}

.w3s-fast__recent-icon {
	flex: none;
	color: var(--w3s-fast-muted);
}

.w3s-fast__recent-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w3s-fast__recent-remove {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0 2px 0 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--w3s-fast-muted);
	cursor: pointer;
	opacity: .55;
}

.w3s-fast__recent-item:hover .w3s-fast__recent-remove,
.w3s-fast__recent-remove:focus-visible {
	opacity: 1;
}

.w3s-fast__recent-remove:hover {
	background: #e4e7ec;
	color: var(--w3s-fast-color);
}

/* Дерево разделов: переключатель, название-ссылка, счётчик, плюсик-фильтр */
.w3s-fast__categories--level-0 {
	margin: 0 -8px;
}

.w3s-fast__categories--level-1,
.w3s-fast__categories--level-2,
.w3s-fast__categories--level-3 {
	margin: 0 0 2px;
	padding-left: 18px;
}

.w3s-fast__category {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 4px 2px 2px;
	border-radius: 6px;
	transition: background-color 120ms ease-out;
}

.w3s-fast__category:hover {
	background: var(--w3s-fast-hover);
}

.w3s-fast__category--selected {
	background: var(--w3s-fast-accent-soft);
}

.w3s-fast__category-toggle {
	display: inline-flex;
	flex: 0 0 22px;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--w3s-fast-muted);
	cursor: pointer;
}

.w3s-fast__category-toggle svg {
	transition: transform 120ms ease-out;
}

.w3s-fast__category-node--open > .w3s-fast__category > .w3s-fast__category-toggle svg {
	transform: rotate(90deg);
}

.w3s-fast__category-toggle:hover {
	background: #e4e7ec;
	color: var(--w3s-fast-color);
}

.w3s-fast__category-toggle--empty {
	cursor: default;
}

.w3s-fast__category-link {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 5px 4px;
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
}

.w3s-fast__category-link:hover,
.w3s-fast__category-link:focus-visible {
	color: var(--w3s-fast-accent);
	text-decoration: underline;
}

.w3s-fast__category--selected .w3s-fast__category-link {
	color: var(--w3s-fast-accent);
	font-weight: 600;
}

.w3s-fast__category-name {
	display: -webkit-box;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-height: 1.3;
}

.w3s-fast__category-hint {
	flex: none;
	color: var(--w3s-fast-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

/* Плюсик: добавить раздел в поиск; у выбранного — галочка, снимает фильтр */
.w3s-fast__category-add {
	display: inline-flex;
	flex: 0 0 26px;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--w3s-fast-accent);
	cursor: pointer;
	transition: background-color 120ms ease-out, color 120ms ease-out;
}

.w3s-fast__category-add:hover,
.w3s-fast__category-add:focus-visible {
	background: var(--w3s-fast-accent-soft);
}

.w3s-fast__category-add--selected {
	color: var(--w3s-fast-accent);
}

.w3s-fast__category-add--selected:hover,
.w3s-fast__category-add--selected:focus-visible {
	background: rgba(217, 48, 37, .1);
	color: var(--w3s-fast-danger);
}

.w3s-fast__category-add:focus-visible {
	outline: 2px solid var(--w3s-fast-accent);
	outline-offset: 1px;
}

/* Товары */
.w3s-fast__products {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.w3s-fast__product-link {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0 -8px;
	padding: 8px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: background-color 120ms ease-out;
}

a.w3s-fast__product-link:hover,
a.w3s-fast__product-link:focus-visible {
	background: var(--w3s-fast-hover);
	color: inherit;
	text-decoration: none;
}

.w3s-fast__product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--w3s-fast-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

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

.w3s-fast__product-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8eef7, #f5f7fa);
	color: var(--w3s-fast-accent);
	font-size: 20px;
	font-weight: 700;
}

.w3s-fast__product-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.w3s-fast__product-name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-height: 1.35;
}

a.w3s-fast__product-link:hover .w3s-fast__product-name {
	color: var(--w3s-fast-accent);
}

.w3s-fast__product-hint {
	overflow: hidden;
	color: var(--w3s-fast-muted);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w3s-fast__product-prices {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	padding-left: 4px;
	text-align: right;
	white-space: nowrap;
}

.w3s-fast__product-price {
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.w3s-fast__product-old-price {
	color: var(--w3s-fast-muted);
	font-size: 12px;
}

/* Подвал панели: ссылка на все результаты; с выбранным разделом — две
   ссылки по 50%, текст которых читается как одно предложение. */
.w3s-fast__footer {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	border-top: 1px solid var(--w3s-fast-line);
	background: var(--w3s-fast-bg);
}

.w3s-fast__show-all {
	display: flex;
	flex: 1 1 100%;
	align-items: center;
	width: 100%;
	min-width: 0;
	padding: 12px 20px;
	color: var(--w3s-fast-accent);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 120ms ease-out;
}

.w3s-fast__show-all:hover,
.w3s-fast__show-all:focus-visible {
	background: var(--w3s-fast-accent-soft);
	color: var(--w3s-fast-accent);
	text-decoration: none;
}

.w3s-fast__show-all > span {
	margin: 0 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w3s-fast__footer--pair .w3s-fast__show-all {
	flex: 0 0 50%;
	width: 50%;
}

.w3s-fast__footer--pair .w3s-fast__show-all--query {
	padding-right: 2px;
}

.w3s-fast__footer--pair .w3s-fast__show-all--query > span {
	margin-right: 0;
}

.w3s-fast__show-all--category {
	padding-left: 2px;
	font-weight: 500;
}

.w3s-fast__show-all--category > span {
	margin-left: 0;
}

/* Скелетон: повторяет раскладку панели, кости с бегущим бликом */
.w3s-fast__skeleton {
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.4fr) minmax(0, 2.6fr);
	max-height: min(72vh, 680px);
	overflow: hidden;
}

.w3s-fast__skeleton-column {
	min-width: 0;
	padding: 16px 20px 20px;
}

.w3s-fast__skeleton-column + .w3s-fast__skeleton-column {
	border-left: 1px solid var(--w3s-fast-line);
}

.w3s-fast__skeleton-column--categories,
.w3s-fast__skeleton-column--aside {
	background: var(--w3s-fast-aside-bg);
}

.w3s-fast__skeleton-bone {
	display: block;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--w3s-fast-skeleton) 25%, var(--w3s-fast-skeleton-shine) 42%, var(--w3s-fast-skeleton) 60%);
	background-size: 300% 100%;
	animation: w3s-fast-shimmer 1.4s ease-in-out infinite;
}

.w3s-fast__skeleton-title {
	width: 34%;
	height: 10px;
	margin: 3px 0 14px;
}

.w3s-fast__skeleton-row + .w3s-fast__skeleton-title,
.w3s-fast__skeleton-chips + .w3s-fast__skeleton-title {
	margin-top: 22px;
}

.w3s-fast__skeleton-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 6px;
}

.w3s-fast__skeleton-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 8px 4px 6px;
}

.w3s-fast__skeleton-tile-logo {
	width: 84px;
	height: 56px;
	border-radius: 10px;
}

.w3s-fast__skeleton-line--tile {
	width: 70%;
	height: 10px;
}

.w3s-fast__skeleton-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.w3s-fast__skeleton-chip {
	height: 28px;
	border-radius: 999px;
}

.w3s-fast__skeleton-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
}

.w3s-fast__skeleton-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 0;
}

.w3s-fast__skeleton-thumb {
	flex: 0 0 56px;
	height: 56px;
	border-radius: 8px;
}

.w3s-fast__skeleton-lines {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
}

.w3s-fast__skeleton-line {
	height: 12px;
}

.w3s-fast__skeleton-line--short {
	width: 40%;
	height: 10px;
}

.w3s-fast__skeleton-line--count {
	flex: 0 0 34px;
	height: 10px;
}

.w3s-fast__skeleton-price {
	flex: 0 0 64px;
	height: 14px;
}

@keyframes w3s-fast-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@keyframes w3s-fast-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .5; }
}

@keyframes w3s-fast-drop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Экранная клавиатура (в body через teleport) */
.w3s-fast-keyboard {
	position: fixed;
	z-index: 1010;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #d5d9e0;
	background: #eef1f5;
	box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
	color: #1f2328;
	font-size: 16px;
	line-height: 1;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	animation: w3s-fast-rise 160ms ease-out;
}

.w3s-fast-keyboard *,
.w3s-fast-keyboard *::before,
.w3s-fast-keyboard *::after {
	box-sizing: border-box;
}

.w3s-fast-keyboard__inner {
	max-width: 860px;
	margin: 0 auto;
}

.w3s-fast-keyboard__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.w3s-fast-keyboard__title {
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.w3s-fast-keyboard__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
}

.w3s-fast-keyboard__close:hover {
	background: #dfe3ea;
	color: #1f2328;
}

.w3s-fast-keyboard__row {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 5px;
}

.w3s-fast-keyboard__key {
	flex: 1 1 0;
	min-width: 0;
	max-width: 56px;
	height: 42px;
	margin: 0;
	padding: 0 4px;
	border: 1px solid #cfd5de;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 0 #cfd5de;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.w3s-fast-keyboard__key:hover {
	background: #f6f8fb;
}

.w3s-fast-keyboard__key:active {
	background: #e6ebf2;
	box-shadow: none;
	transform: translateY(1px);
}

.w3s-fast-keyboard__key--wide {
	flex: 1.6 1 0;
	max-width: 110px;
	font-size: 14px;
}

.w3s-fast-keyboard__key--space {
	flex: 5 1 0;
	max-width: 320px;
	font-size: 14px;
}

.w3s-fast-keyboard__key--active {
	border-color: var(--w3s-fast-accent, #2067b0);
	color: var(--w3s-fast-accent, #2067b0);
}

.w3s-fast-keyboard__key--enter {
	border-color: #2067b0;
	background: #2067b0;
	color: #fff;
}

.w3s-fast-keyboard__key--enter:hover {
	background: #1a5690;
}

.w3s-fast-keyboard__key:focus-visible,
.w3s-fast-keyboard__close:focus-visible {
	outline: 2px solid #2067b0;
	outline-offset: 1px;
}

@keyframes w3s-fast-rise {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

/* Узкие экраны: одна колонка, компактная строка */
@media (max-width: 767px) {
	.w3s-fast--absolute {
		padding: 0 8px;
	}

	.w3s-fast__submit {
		padding: 0 14px;
	}

	.w3s-fast__submit-text {
		display: none;
	}

	.w3s-fast__submit-icon {
		display: block;
	}

	.w3s-fast__results {
		max-height: min(70vh, 560px);
	}

	/* Одна колонка, прокручивается вся панель, а не колонки по отдельности. */
	.w3s-fast__results--columns {
		overflow-y: auto;
	}

	.w3s-fast__columns,
	.w3s-fast__skeleton {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: none;
		max-height: none;
		overflow: visible;
	}

	.w3s-fast__column,
	.w3s-fast__skeleton-column {
		padding: 14px 16px 16px;
		overflow: visible;
	}

	.w3s-fast__column + .w3s-fast__column,
	.w3s-fast__skeleton-column + .w3s-fast__skeleton-column {
		border-left: 0;
		border-top: 1px solid var(--w3s-fast-line);
	}

	.w3s-fast__column--categories {
		order: 2;
	}

	.w3s-fast__column--aside {
		order: 1;
	}

	.w3s-fast__column--main {
		order: 3;
	}

	.w3s-fast__product-link {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 12px;
	}

	.w3s-fast__product-image {
		width: 48px;
		height: 48px;
	}

	.w3s-fast__product-prices {
		grid-column: 2;
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
		padding-left: 0;
		text-align: left;
	}

	.w3s-fast-keyboard {
		padding-right: 4px;
		padding-left: 4px;
	}

	.w3s-fast-keyboard__row {
		gap: 3px;
	}

	.w3s-fast-keyboard__key {
		height: 40px;
		padding: 0 2px;
		font-size: 15px;
	}

	.w3s-fast-keyboard__key--wide,
	.w3s-fast-keyboard__key--space {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.w3s-fast__panel,
	.w3s-fast-keyboard,
	.w3s-fast__skeleton-bone,
	.w3s-fast__voice.w3s-fast__action--active {
		animation: none;
	}

	.w3s-fast__row,
	.w3s-fast__action,
	.w3s-fast__chip,
	.w3s-fast__brand,
	.w3s-fast__category,
	.w3s-fast__category-add,
	.w3s-fast__category-toggle svg,
	.w3s-fast__category-arrow,
	.w3s-fast__product-link,
	.w3s-fast__show-all {
		transition: none;
	}
}
