/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Relevanssi live search: plain white dropdown + book thumbnail at left */
.relevanssi-live-search-results {
	background: #fff !important;
	border: 1px solid #e7e7e7;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.relevanssi-live-search-result {
	border-bottom: 1px solid #f0f0f0;
}

.relevanssi-live-search-result:last-of-type {
	border-bottom: 0;
}

.relevanssi-live-search-result p {
	padding: 0;
	margin: 0;
	border-bottom: 0;
}

.nem-live-search-link {
	display: grid !important;
	grid-template-columns: 52px 1fr;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	min-height: 56px;
	text-decoration: none;
	color: #111;
}

.nem-live-search-thumb-wrap {
	width: 52px;
	height: 52px;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #efefef;
	display: block;
}

.nem-live-search-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nem-live-search-title {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 500;
	color: #111;
	white-space: normal;
}

.relevanssi-live-search-result--focused {
	background: #fafafa;
}

.relevanssi-live-search-result--focused .nem-live-search-link {
	color: #111;
}

/* Mobile dropdown behavior + touch-safe sizing */
@media (max-width: 768px) {
	.relevanssi-live-search-results {
		position: absolute !important;
		left: 0 !important;
		right: auto !important;
		bottom: auto !important;
		top: calc(100% + 8px) !important;
		width: min(100%, 520px) !important;
		max-width: 100% !important;
		max-height: 60vh !important;
		border-radius: 10px !important;
		z-index: 10000 !important;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.relevanssi-live-search-results::-webkit-scrollbar {
		display: none;
	}

	.nem-live-search-link {
		grid-template-columns: 56px 1fr;
		min-height: 64px;
		padding: 12px;
	}

	.nem-live-search-thumb-wrap {
		width: 56px;
		height: 56px;
	}

	.nem-live-search-title {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.relevanssi-live-search-results {
		max-height: 56vh !important;
	}

	.nem-live-search-link {
		padding: 12px 10px;
		gap: 10px;
	}
}
