/* =============================================================
   Andor AJAX Search — Shortcode Styles
   ============================================================= */

/* ── Trigger button ───────────────────────────────────────── */
.andor-search {
	display: inline-flex;
	align-items: center;
	position: static; /* dropdown escapes via fixed positioning */
}

.andor-search__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	color: inherit;
}

.andor-search__trigger svg {
	width: 30px;
    position: relative;
    top: 2px;
    height: 30px;
    fill: currentColor;
    display: block;
}



/* ── Full-width dropdown ──────────────────────────────────── */
.andor-search__dropdown {
	position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--e-global-color-1378e8b);
    box-shadow: 0px 16px 24px rgb(0 0 0 / 2%);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.andor-search__dropdown.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* ── Search bar row ──────────────────────────────────────── */
.andor-search__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 5px 24px 10px 24px;
}

.andor-search__input {
	flex: 1;
	/* Mirror the theme's Elementor form field style */
	background: transparent;
	border: none !important;
    border-bottom: 2px dotted var(--e-global-color-secondary) !important;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	padding: 6px 0;
	color: inherit;
	min-width: 0;
	font-family: var(--e-global-typography-a0455b9-font-family), Sans-serif;
	font-size: 26px;
	font-weight: 800;
	-webkit-appearance: none;
	appearance: none;
}

.andor-search__input::placeholder {
	color: var(--e-global-color-secondary);
	font-style: italic;
	opacity: 1;
}

.andor-search__input:focus {
	box-shadow: none;
	outline: none;
}

/* hide browser default clear button */
.andor-search__input::-webkit-search-cancel-button,
.andor-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.andor-search__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 4px;
	color: inherit;
	flex-shrink: 0;
	/* Reset any inherited button/link styles */
	background: none;
	border: none;
	text-decoration: none;
	line-height: 1;
	user-select: none;
}

.andor-search__close svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	display: block;
	transition: opacity 0.2s ease;
}

.andor-search__close:hover svg,
.andor-search__close:focus-visible svg {
	opacity: 0.6;
}

.andor-search__bar, .andor-search__results{
	max-width: 1350px;
    margin: 0 auto;
}
/* ── Results list ────────────────────────────────────────── */
.andor-search__results {
	overflow-y: auto;
	padding: 8px 0;
}

.andor-search__status {
	padding: 12px 24px;
	color: #777;
	font-size: 0.9rem;
}

.andor-search__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 24px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
	cursor: pointer;
}

.andor-search__item:hover,
.andor-search__item:focus-visible,
.andor-search__item[aria-selected="true"] {
	background: #f5f5f5;
	outline: none;
}

.andor-search__item-title {
	font-size: 1rem;
	font-weight: 500;
}

.andor-search__item-type {
	font-size: 0.75rem;
	color: #999;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
	.andor-search__dropdown {
		top: 90px;
	}
}

@media (max-width: 768px) {
	.andor-search__dropdown {
		top: 80px;
	}
}