/* Local-only fallback for the approved Elementor search popup family. */

#gato-local-header .elementor-element-18108d5.gato-local-search-enabled {
	display: block !important;
}

#gato-local-header .gato-local-search-trigger {
	display: inline-flex;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	box-shadow: none;
	color: #1a1a1a;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#gato-local-header .gato-local-search-trigger:hover {
	background: rgba( 0, 145, 219, 0.08 );
	color: #0091db;
}

#gato-local-header .gato-local-search-trigger:focus-visible {
	outline: 3px solid rgba( 0, 145, 219, 0.35 );
	outline-offset: 2px;
}

#gato-local-header .gato-local-search-trigger .gato-local-search-icon,
.gato-local-search-form__submit .gato-local-search-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

body.gato-local-search-open {
	overflow: hidden;
}

body.gato-local-search-open .wa__btn_popup,
body.gato-local-search-open .wa__popup_chat_box,
body.gato-local-search-open .elementor-element.elementor-element-de468f1.elementor-fixed {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.gato-local-search-popup[hidden] {
	display: none !important;
}

.gato-local-search-popup {
	position: fixed;
	z-index: 10020;
	inset: 0;
}

.gato-local-search-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 7, 20, 38, 0.54 );
	backdrop-filter: blur( 2px );
}

.gato-local-search-popup__dialog {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	width: min( 500px, calc( 100vw - 40px ) );
	height: calc( 100vh - 40px );
	height: calc( 100dvh - 40px );
	box-sizing: border-box;
	flex-direction: column;
	padding: 80px 40px 36px;
	background: #fff;
	box-shadow: 0 24px 64px rgba( 7, 20, 38, 0.24 );
	overflow: hidden;
}

.gato-local-search-popup__close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #1a1a1a;
	font-size: 34px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.gato-local-search-popup__close:hover {
	background: rgba( 0, 145, 219, 0.08 );
	color: #0091db;
}

.gato-local-search-popup__close:focus-visible,
.gato-local-search-form__submit:focus-visible,
.gato-local-search-pagination__button:focus-visible,
.gato-local-search-result:focus-visible {
	outline: 3px solid rgba( 0, 145, 219, 0.35 );
	outline-offset: 2px;
}

.gato-local-search-form {
	flex: 0 0 auto;
}

.gato-local-search-popup__title {
	margin: 0 0 24px;
	color: #172b3a;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}

.gato-local-search-guidance[hidden] {
	display: none !important;
}

.gato-local-search-guidance {
	flex: 0 0 auto;
	padding: 4px 0 24px;
}

.gato-local-search-guidance p {
	margin: 0 0 12px;
	color: #5f6670;
	font-size: 14px;
}

.gato-local-search-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gato-local-search-suggestions button,
.gato-local-search-browse {
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid #d8e3ec;
	border-radius: 6px;
	background: #f6f9fb;
	color: #172b3a;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.gato-local-search-browse {
	margin-top: 18px;
	border-color: #0091db;
	background: #fff;
	color: #0074a9;
}

.gato-local-search-guidance button:hover {
	border-color: #0091db;
	background: #edf7fc;
}

.gato-local-search-guidance button:focus-visible {
	outline: 3px solid rgba( 0, 145, 219, 0.35 );
	outline-offset: 2px;
}

.gato-local-search-form__field {
	display: flex;
	align-items: center;
	border-bottom: 2px solid #333;
}

.gato-local-search-form__field:focus-within {
	border-bottom-color: #0091db;
	box-shadow: 0 2px 0 rgba( 0, 145, 219, 0.16 );
}

.gato-local-search-form__input {
	width: 100%;
	min-width: 0;
	padding: 0 0 15px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #1a1a1a;
	font-family: inherit;
	font-size: 16px;
	line-height: 30px;
}

.gato-local-search-form__input::placeholder {
	color: #5f6670;
	opacity: 1;
}

.gato-local-search-form__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.gato-local-search-form__submit {
	display: inline-flex;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	padding: 0 0 10px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #1a1a1a;
	cursor: pointer;
}

.gato-local-search-form__submit:hover {
	color: #0091db;
}

.gato-local-search-popup__status {
	min-height: 24px;
	margin: 22px 0 18px;
	color: #5f6670;
	font-size: 14px;
	line-height: 1.6;
}

.gato-local-search-popup__status.is-error {
	color: #b42318;
}

.gato-local-search-results {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 2px 4px 6px 0;
	scrollbar-gutter: stable;
}

.gato-local-search-result {
	display: flex;
	min-height: 80px;
	align-items: center;
	gap: 20px;
	border-radius: 10px;
	color: #1a1a1a;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gato-local-search-result:hover {
	background: rgba( 0, 145, 219, 0.06 );
	color: #0091db;
}

.gato-local-search-result__media {
	display: flex;
	width: 80px;
	height: 80px;
	flex: 0 0 80px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8fafc;
	overflow: hidden;
}

.gato-local-search-result__media.is-empty::before {
	content: "";
	width: 26px;
	height: 26px;
	border: 2px solid #a9b3bf;
	border-radius: 50%;
	box-shadow: 12px 12px 0 -8px #a9b3bf;
}

.gato-local-search-result__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gato-local-search-result__title {
	display: -webkit-box;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
	text-overflow: ellipsis;
}

.gato-local-search-result__copy {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 5px;
}

.gato-local-search-result__description {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #5f6670;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.gato-local-search-pagination__page {
	color: #5f6670;
	font-size: 12px;
	text-align: center;
}

.gato-local-search-pagination {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
}

.gato-local-search-pagination[hidden] {
	display: none !important;
}

.gato-local-search-pagination__button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border: 1px solid #0091db;
	border-radius: 22px;
	background: #fff;
	box-shadow: none;
	color: #007fbe;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.gato-local-search-pagination__button:hover {
	background: #0091db;
	color: #fff;
}

.gato-local-search-pagination__button:disabled {
	border-color: #d0d5dd;
	background: #f5f7fa;
	color: #98a2b3;
	cursor: not-allowed;
}

@media (max-width: 767px) {
	#gato-local-header .gato-local-search-trigger .gato-local-search-icon {
		width: 20px;
		height: 20px;
		flex-basis: 20px;
	}

	.gato-local-search-popup__dialog {
		top: 0;
		right: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		padding: 70px 20px 22px;
	}

	.gato-local-search-popup__close {
		top: 10px;
		right: 10px;
	}

	.gato-local-search-form__input {
		padding-bottom: 10px;
		font-size: 14px;
	}

	.gato-local-search-popup__status {
		margin: 18px 0 14px;
	}

	.gato-local-search-results {
		gap: 16px;
	}

	.gato-local-search-result {
		min-height: 70px;
		gap: 15px;
	}

	.gato-local-search-result__media {
		width: 70px;
		height: 70px;
		flex-basis: 70px;
	}

	.gato-local-search-result__title {
		font-size: 14px;
		line-height: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#gato-local-header .gato-local-search-trigger,
	.gato-local-search-result {
		transition: none;
	}
}
