.gl-smart-search {
	position: relative;
	width: 780px;
	max-width: 52vw;
	min-width: 560px;
	margin: 0 auto;
	z-index: 9999;
}

.ct-header .gl-smart-search {
	width: 780px;
	max-width: 52vw;
	min-width: 560px;
}

.gl-smart-search *,
.gl-smart-search *::before,
.gl-smart-search *::after {
	box-sizing: border-box;
}

.gl-smart-search__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 54px;
	background: #fff;
	border: 1px solid #d8e4f0;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(1, 94, 186, 0.08);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.gl-smart-search.is-open .gl-smart-search__inner,
.gl-smart-search__inner:focus-within {
	border-color: #015eba;
	box-shadow: 0 0 0 3px rgba(1, 94, 186, 0.13), 0 14px 34px rgba(1, 94, 186, 0.12);
}

.gl-smart-search__input {
	width: 100%;
	height: 54px !important;
	padding: 0 18px !important;
	border: 0 !important;
	outline: none !important;
	background: #fff !important;
	color: #1f2933 !important;
	font-size: 15px !important;
	line-height: 54px !important;
	box-shadow: none !important;
}

.gl-smart-search__input::placeholder {
	color: #9aa5b1;
}

.gl-smart-search__button {
	flex: 0 0 118px;
	width: 118px;
	border: 0;
	border-radius: 0 13px 13px 0;
	background: linear-gradient(135deg, #015eba 0%, #0076db 100%);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	transition: background .2s ease, box-shadow .2s ease, transform .12s ease;
	box-shadow: inset 1px 0 0 rgba(255,255,255,.16);
}

.gl-smart-search__button:hover {
	background: linear-gradient(135deg, #004f9c 0%, #015eba 100%);
	box-shadow: inset 1px 0 0 rgba(255,255,255,.16), 0 8px 18px rgba(1, 94, 186, .18);
}

.gl-smart-search__button:active {
	transform: translateY(1px);
}

.gl-smart-search__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.gl-smart-search__button-text {
	display: inline-flex;
	align-items: center;
}

.gl-smart-search__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 18px;
	box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 68vh;
	z-index: 999999;
}

.gl-smart-search__section {
	padding: 10px 12px 8px;
	background: #f7fbff;
	border-bottom: 1px solid #e8eef6;
}

.gl-smart-search__section-title {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #64748b;
}

.gl-smart-search__cat-list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.gl-smart-search__cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #dbeafe;
	color: #015eba;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 800;
	text-decoration: none !important;
	transition: background .15s ease, border-color .15s ease;
}

.gl-smart-search__cat:hover {
	background: #eaf5ff;
	border-color: #015eba;
}

.gl-smart-search__cat-count {
	color: #94a3b8;
	font-weight: 700;
}

.gl-smart-search__item {
	display: grid;
	grid-template-columns: 66px minmax(0, 1fr) 112px;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	text-decoration: none !important;
	color: #1f2933;
	border-bottom: 1px solid #edf1f5;
	transition: background .15s ease;
}

.gl-smart-search__item:hover {
	background: #f3f8ff;
}

.gl-smart-search__image {
	width: 66px;
	height: 66px;
	border-radius: 12px;
	background: #f7f9fc;
	object-fit: contain;
	display: block;
}

.gl-smart-search__content {
	display: block;
	min-width: 0;
}

.gl-smart-search__title {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 900;
	color: #1f2933;
	margin-bottom: 6px;
}

.gl-smart-search__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	line-height: 1.3;
	color: #7b8794;
}

.gl-smart-search__badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
}

.gl-smart-search__price {
	white-space: nowrap;
	font-size: 14px;
	font-weight: 900;
	color: #015eba;
	text-align: right;
}

.gl-smart-search__all,
.gl-smart-search__empty {
	display: block;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.4;
}

.gl-smart-search__all {
	text-align: center;
	font-weight: 900;
	color: #015eba;
	background: #f8fbff;
	text-decoration: none !important;
}

.gl-smart-search__all:hover {
	background: #eef6ff;
}

.gl-smart-search__empty {
	color: #64748b;
}

@media (max-width: 1200px) {
	.gl-smart-search,
	.ct-header .gl-smart-search {
		width: 620px;
		max-width: 44vw;
		min-width: 440px;
	}

	.gl-smart-search__button {
		flex-basis: 62px;
		width: 62px;
	}

	.gl-smart-search__button-text {
		display: none;
	}
}

@media (max-width: 768px) {
	.gl-smart-search,
	.ct-header .gl-smart-search {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.gl-smart-search__inner {
		height: 50px;
		border-radius: 12px;
	}

	.gl-smart-search__input {
		height: 50px !important;
		font-size: 14px !important;
		line-height: 50px !important;
	}

	.gl-smart-search__button {
		flex-basis: 54px;
		width: 54px;
		border-radius: 0 11px 11px 0;
	}

	.gl-smart-search__item {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.gl-smart-search__image {
		width: 56px;
		height: 56px;
	}

	.gl-smart-search__price {
		grid-column: 2;
		text-align: left;
	}
}
