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

.kkaws-search {
	--kkaws-floating-shift: 0px;
	--kkaws-floating-alignment-shift: 0%;
	--kkaws-floating-offset-x: 0px;
	--kkaws-floating-offset-y: 8px;
	display: inline-flex;
	position: relative;
}

.kkaws-search [hidden] {
	display: none !important;
}

.kkaws-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;
}

.kkaws-search__trigger,
.kkaws-search__close {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	color: currentColor;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 10px;
}

.kkaws-search__trigger:hover,
.kkaws-search__close:hover {
	background: rgb(0 0 0 / 5%);
}

.kkaws-search__trigger:focus-visible {
	background: rgb(0 0 0 / 10%);
	filter: brightness(0.85);
}

.kkaws-search__close:focus-visible,
.kkaws-search__result-link:focus-visible,
.kkaws-search__show-all:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.kkaws-search__trigger:focus,
.kkaws-search__input:focus {
	outline: none;
}

.kkaws-search__input:focus-visible {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.kkaws-search__icon {
	display: block;
	fill: none;
	flex: 0 0 auto;
	height: 24px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 24px;
}

.kkaws-search__icon--elementor {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	stroke: none;
}

.kkaws-search__icon--elementor > i,
.kkaws-search__icon--elementor > svg {
	display: block;
	height: 100%;
	width: 100%;
}

.kkaws-search__icon--elementor > svg {
	fill: currentColor;
}

.kkaws-search__interface {
	color: #1e1e1e;
}

.kkaws-search--floating .kkaws-search__interface {
	inset-inline-start: 0;
	position: absolute;
	top: calc(100% + var(--kkaws-floating-offset-y));
	transform: translateX(calc(var(--kkaws-floating-alignment-shift) + var(--kkaws-floating-offset-x) + var(--kkaws-floating-shift)));
	width: min(420px, calc(100vw - 24px));
	z-index: 9999;
}

.kkaws-search--floating .kkaws-search__dialog {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgb(0 0 0 / 16%);
	padding: 16px;
	position: relative;
}

.kkaws-search--popup .kkaws-search__interface {
	align-items: flex-start;
	background: transparent;
	display: flex;
	height: 100vh;
	inset: 0;
	isolation: isolate;
	justify-content: center;
	overflow-y: auto;
	padding: clamp(48px, 10vh, 120px) 20px 40px;
	position: fixed;
	width: 100%;
	z-index: 100000;
}

.kkaws-search--popup .kkaws-search__interface::before {
	background: #000;
	content: "";
	inset: 0;
	opacity: 0.7;
	pointer-events: none;
	position: fixed;
	z-index: 0;
}

.admin-bar .kkaws-search--popup .kkaws-search__interface::before {
	top: 32px;
}

@supports (height: 100dvh) {
	.kkaws-search--popup .kkaws-search__interface {
		height: 100dvh;
	}
}

.admin-bar .kkaws-search--popup .kkaws-search__interface {
	top: 32px;
	height: calc(100vh - 32px);
}

@supports (height: 100dvh) {
	.admin-bar .kkaws-search--popup .kkaws-search__interface {
		height: calc(100dvh - 32px);
	}
}

.kkaws-search--popup .kkaws-search__dialog {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 60px rgb(0 0 0 / 24%);
	max-width: 760px;
	min-height: 180px;
	padding: 56px 28px 28px;
	position: relative;
	width: 100%;
	z-index: 1;
}

.kkaws-search__close {
	position: absolute;
	right: 8px;
	top: 8px;
}

.kkaws-search__form {
	display: block;
	margin: 0;
}

.kkaws-search__input {
	appearance: none;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	color: #1e1e1e;
	font: inherit;
	line-height: 1.5;
	margin: 0;
	min-height: 48px;
	padding: 10px 14px;
	width: 100%;
}

.kkaws-search__input::placeholder {
	color: #646970;
	opacity: 1;
}

.kkaws-search__status {
	color: #50575e;
	font-size: 14px;
	line-height: 1.5;
	margin-top: 12px;
}

.kkaws-search__status:empty {
	margin-top: 0;
}

.kkaws-search__status.is-error {
	color: #b32d2e;
}

.kkaws-search__results {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.kkaws-search__results:empty {
	margin-top: 0;
}

.kkaws-search__result {
	background: #fff;
	border-bottom: 1px solid #dcdcde;
}

.kkaws-search__result-link {
	align-items: center;
	color: inherit;
	display: flex;
	gap: 12px;
	padding: 10px 4px;
	text-decoration: none;
}

.kkaws-search__result-link:hover {
	background: #f6f7f7;
	color: inherit;
}

.kkaws-search__result-image {
	aspect-ratio: 1;
	border-radius: 4px;
	flex: 0 0 auto;
	height: 64px;
	object-fit: cover;
	width: 64px;
}

.kkaws-search__result-content {
	align-items: flex-start;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.kkaws-search__result-title {
	color: #1d2327;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.kkaws-search__result-link:hover .kkaws-search__result-title {
	color: #135e96;
}

.kkaws-search__result-type {
	background: #f0f0f1;
	border-radius: 999px;
	color: #50575e;
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	padding: 3px 8px;
}

.kkaws-search__show-all {
	align-items: center;
	background: #2271b1;
	border: 1px solid #2271b1;
	border-radius: 4px;
	color: #fff;
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	margin-top: 16px;
	min-height: 44px;
	padding: 8px 16px;
	text-decoration: none;
}

.kkaws-search__show-all:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.kkaws-search--popup.is-opening .kkaws-search__interface {
	animation: var(--kkaws-overlay-animation, kkaws-fade-in) 180ms ease-out both;
}

.kkaws-search--popup.is-opening .kkaws-search__dialog {
	animation: var(--kkaws-dialog-animation, kkaws-scale-in) 180ms ease-out both;
}

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

@keyframes kkaws-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes kkaws-scale-in {
	from {
		opacity: 0;
		transform: scale(0.98);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 782px) {
	.admin-bar .kkaws-search--popup .kkaws-search__interface::before {
		top: 46px;
	}

	.admin-bar .kkaws-search--popup .kkaws-search__interface {
		top: 46px;
		height: calc(100vh - 46px);
	}

	@supports (height: 100dvh) {
		.admin-bar .kkaws-search--popup .kkaws-search__interface {
			height: calc(100dvh - 46px);
		}
	}
}

@media (max-width: 480px) {
	.kkaws-search--popup .kkaws-search__interface {
		padding-inline: 12px;
	}

	.kkaws-search--popup .kkaws-search__dialog {
		padding-inline: 18px;
	}

	.kkaws-search__result-image {
		flex-basis: 52px;
		height: 52px;
		width: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kkaws-search--popup.is-opening .kkaws-search__interface,
	.kkaws-search--popup.is-opening .kkaws-search__dialog {
		animation: none;
	}

	.kkaws-search *,
	.kkaws-search *::before,
	.kkaws-search *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
