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

.dm-search {
	position: fixed;
	inset: 0;
	z-index: 99999;
	font-family: "Montserrat", sans-serif;
}

.dm-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 10, 12, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.dm-search__panel {
	position: relative;
	background: #ffffff;
	box-shadow: 0 16px 40px rgba(8, 10, 12, 0.18);
	transform: translateY(-100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dm-search.is-open .dm-search__backdrop {
	opacity: 1;
}

.dm-search.is-open .dm-search__panel {
	transform: translateY(0);
}

.dm-search__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 36px 24px 32px;
}

.dm-search__form {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 2px solid #080a0c;
	padding-bottom: 10px;
	margin: 0;
}

.dm-search__form:focus-within {
	border-bottom-color: #23852f;
}

.dm-search__icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: #4b5663;
}

.dm-search input.dm-search__input,
.dm-search input.dm-search__input:focus {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	border: 0 !important;
	border-radius: 0;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 8px 0;
	margin: 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
	color: #080a0c;
	-webkit-appearance: none;
	appearance: none;
}

.dm-search input.dm-search__input::placeholder {
	color: #9aa4af;
}

.dm-search input.dm-search__input::-webkit-search-cancel-button {
	display: none;
}

.dm-search .dm-search__submit {
	flex: 0 0 auto;
	border: 0;
	border-radius: 50px;
	background: #23852f;
	color: #ffffff;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s;
}

.dm-search .dm-search__submit:hover,
.dm-search .dm-search__submit:focus-visible {
	background: #1b6b25;
	color: #ffffff;
}

.dm-search .dm-search__close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #080a0c;
	font-size: 30px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.dm-search .dm-search__close:hover,
.dm-search .dm-search__close:focus-visible {
	background: #eef0f2;
	color: #080a0c;
}

.dm-search__popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.dm-search__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #5b6b7c;
	margin-right: 4px;
}

.dm-search .dm-search__chip {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #e1e5ea;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	color: #080a0c;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.dm-search .dm-search__chip:hover,
.dm-search .dm-search__chip:focus-visible {
	border-color: #23852f;
	color: #23852f;
}

body.dm-search-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.dm-search__inner {
		padding: 20px 16px;
	}

	.dm-search input.dm-search__input {
		font-size: 18px;
	}

	.dm-search .dm-search__submit {
		padding: 10px 16px;
	}

	.dm-search__icon {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dm-search__panel,
	.dm-search__backdrop {
		transition: none;
	}
}
