.header-search {
	cursor: pointer;
}

.custom-search-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.custom-search-modal.is-active {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.custom-search-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(255 255 255 / 71%);
}

.custom-search-modal__content {
	position: relative;
	z-index: 2;
	width: min(900px, calc(100% - 40px));
	padding: 40px 20px;
}

.custom-search-modal__inner {
	text-align: center;
	    background: #fff;
    padding: 25px;
    border-radius: 25px;
    border: 1px solid #000;
}

.custom-search-modal__title {
	margin: 0 0 24px;
	color: #000000;
	font-size: 26px;
	line-height: 1.1;
	font-weight: 600;
}

.custom-search-form {
	width: 100%;
	margin: 0;
}

.custom-search-form input[type="search"] {
	width: 100%;
	height: 72px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	color: #000000;
	font-size: 22px;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid #000;
}

#custom-search-input::placeholder {
  color: #fff;
  opacity: 1;
}

#custom-search-input::-webkit-input-placeholder {
  color: #fff;
}

#custom-search-input::-moz-placeholder {
  color: #fff;
  opacity: 1;
}

#custom-search-input:-ms-input-placeholder {
  color: #fff;
}

#custom-search-input::-ms-input-placeholder {
  color: #fff;
}

.custom-search-form input[type="search"]::placeholder {
	color: #666;
}

.custom-search-modal__close {
	position: absolute;
	top: 0;
	right: 8px;
	width: 54px;
	height: 54px;
	border: 0;
	background: transparent;
	color: #000000;
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

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

@media (max-width: 767px) {
	.custom-search-modal {
		align-items: flex-start;
		padding-top: 32px;
	}

	.custom-search-modal__content {
		width: calc(100% - 24px);
		padding: 0;
	}

	.custom-search-modal__inner {
		text-align: center;
	}

	.custom-search-form {
		margin: 0 auto;
	}

	.custom-search-form input[type="search"] {
		height: 60px;
		font-size: 18px;
		padding: 0 18px;
	}

	.custom-search-modal__close {
        top: -40px;
        right: -20px;
	}
}

.custom-search-form {
	position: relative;
}

.custom-search-suggestions {
	margin-top: 12px;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,.18);
	display: none;
	text-align: left;
}

.custom-search-suggestions.is-active {
	display: block;
}

.custom-search-suggestion {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	text-decoration: none;
	color: #111;
	border-bottom: 1px solid #eee;
}

.custom-search-suggestion:last-child {
	border-bottom: 0;
}

.custom-search-suggestion:hover {
	background: #f6f6f6;
}

.custom-search-suggestion__image {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border-radius: 8px;
	object-fit: cover;
	background: #f3f3f3;
}

.custom-search-suggestion__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.custom-search-suggestion__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #111;
}

.custom-search-suggestion__meta {
	font-size: 13px;
	color: #666;
	line-height: 1.3;
}

.custom-search-suggestion--view-all {
	font-weight: 600;
	justify-content: center;
}

