/*
 * Zoekpaneel (blok aj/search) — 1-op-1 met de oude Elementor-popup #1866826 + JetSearch-widget e820b44 + snippet 41 (Zoeklaag).
 * Desktop: witte kaart max. 804 px bovenaan (720 inhoud + 20/64 binnenruimte), mobiel (≤ 767): volle breedte, kruis rechtsboven.
 * Bronmaten: snippet 41 (kaart, veld, knop, lijst), JetSearch-CSS (resultatenvak, spinner, kop/voet 10 px), Elementor-popup-CSS.
 * Placeholder-kleur komt uit snippet 57/30 (sitebreed, blijven aan).
 */

/* Laag + kaart */
.aj-search { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: center; align-items: flex-start; background-color: rgba(20, 30, 60, .55); font-family: "Manrope", Sans-serif; font-size: 16px; line-height: 1.4; color: #4077E3; text-align: left; -webkit-tap-highlight-color: transparent; }
.aj-search[hidden] { display: none; }
body.aj-search-open { overflow: hidden; }
.aj-search *, .aj-search *::before, .aj-search *::after { box-sizing: border-box; }
.aj-search__dialog { position: relative; width: 100%; max-width: 804px; max-height: 100%; overflow: visible; margin: 0; padding: 18px 64px 10px 20px; background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 18px 48px rgba(20, 30, 60, .22); line-height: 24px; }
.aj-search [hidden] { display: none !important; }
.aj-search .aj-search__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Sluitknop (Elementor eicon-close, 20 px in een cirkel van 44 px) */
.aj-search .aj-search__close { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #1F2124 !important; font-size: 20px; line-height: 20px; cursor: pointer; box-shadow: none; }
.aj-search .aj-search__close:hover { background: rgba(64, 119, 227, .08); }
.aj-search .aj-search__close:focus { background: transparent; }
.aj-search .aj-search__close:focus-visible { background: rgba(64, 119, 227, .08); outline: 2px solid #4077E3; outline-offset: 0; }
.aj-search .aj-search__close svg { display: block; width: 20px; height: 20px; fill: #1F2124; }

/* Zoekveld + knop op één rij */
.aj-search .aj-search__form { display: flex; align-items: stretch; width: 100%; margin: 0; }
.aj-search .aj-search__form .aj-search__field,
.aj-search .aj-search__form .aj-search__field:focus { display: block; flex: 1 1 auto; min-width: 0; width: 100%; height: 48px; margin: 0; padding: 0 44px 0 18px; border: 1.5px solid #4077E3; border-radius: 50px; background: #fff; color: #4077E3; font-family: "Manrope", Sans-serif; font-size: 16px; font-weight: 400; line-height: 1.3; box-shadow: none; transition: none; -webkit-appearance: textfield; appearance: textfield; }
/* JetSearch: placeholder mag over de rechter binnenruimte lopen (lange FR/DE-tekst op mobiel). Kleur: snippet 57. */
.aj-search .aj-search__form .aj-search__field::placeholder { overflow: visible; }
.aj-search .aj-search__form .aj-search__submit { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: auto; height: 48px; margin: 0 0 0 10px; padding: 0 20px; border: 0; border-radius: 50px; background: #4077E3; color: #fff !important; font-family: "Manrope", Sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none; transition: none; }
.aj-search .aj-search__form .aj-search__submit:hover,
.aj-search .aj-search__form .aj-search__submit:focus { background: #4077E3; color: #fff !important; }
.aj-search .aj-search__form .aj-search__submit:focus-visible { outline: #fff solid 1px; outline-offset: 0; box-shadow: 0 0 0 3px #1F2124; }
.aj-search .aj-search__submit-icon { display: block; width: 14px; height: 14px; line-height: 14px; font-size: 14px; }
.aj-search .aj-search__submit-icon svg { display: block; width: 14px; height: 14px; fill: #fff; }
.aj-search .aj-search__submit-label { display: block; margin-left: 5px; color: #fff !important; }

/* Resultatenvak (JetSearch: wit, radius 3, schaduw 0 0 10 px; kop/voet 10 px) */
.aj-search .aj-search__results { display: block; width: 100%; margin: 10px 0 0; background: #fff; border-radius: 3px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); }
.aj-search .aj-search__results.is-loading { margin-bottom: 5px; }
.aj-search .aj-search__spinner { display: none; justify-content: center; width: 50px; height: 30px; margin: 0 auto; color: #4268C1; }
.aj-search .aj-search__results.is-loading .aj-search__spinner { display: flex; }
.aj-search .aj-search__spinner span { display: inline-block; width: 6px; height: 100%; margin: 0 1px; background-color: currentColor; animation: aj-search-spin 1.1s infinite cubic-bezier(.645, .045, .355, 1); }
.aj-search .aj-search__spinner span:nth-child(2) { animation-delay: -1s; }
.aj-search .aj-search__spinner span:nth-child(3) { animation-delay: -.9s; }
.aj-search .aj-search__spinner span:nth-child(4) { animation-delay: -.8s; }
.aj-search .aj-search__spinner span:nth-child(5) { animation-delay: -.7s; }
@keyframes aj-search-spin { 0%, 40%, 100% { transform: scaleY(.4); } 20% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .aj-search .aj-search__spinner span { animation: none; } }
.aj-search .aj-search__holder { border-radius: 12px; background: #fff; }
.aj-search .aj-search__list { max-height: min(70vh, 560px); margin: 0; padding: 20px 0 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.aj-search .aj-search__result { margin: 0; padding: 0; list-style: none; }
.aj-search .aj-search__item { display: flex; align-items: center; gap: 14px; padding: 8px 6px; border-radius: 10px; color: #4077E3; font-family: "Manrope", Sans-serif; font-size: 16px; line-height: 24px; text-decoration: none; background: transparent; }
.aj-search .aj-search__item:hover,
.aj-search .aj-search__item:focus { background: rgba(64, 119, 227, .06); color: #4077E3; text-decoration: none; }
.aj-search .aj-search__item:focus-visible { outline: #fff solid 1px; outline-offset: -3px; box-shadow: inset 0 0 0 3px #4077E3; }
.aj-search .aj-search__thumb { display: block; flex: 0 0 56px; width: 56px; height: 56px; margin-right: 10px; overflow: hidden; border-radius: 8px; background: #F3F4F7; }
.aj-search .aj-search__img { display: block; width: 56px; height: 56px; max-width: 56px; margin: 0; object-fit: cover; border-radius: 8px; }
.aj-search .aj-search__body { display: block; flex: 1 1 auto; min-width: 0; }
.aj-search .aj-search__title { display: block; overflow: hidden; color: #4077E3; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.aj-search .aj-search__price { display: block; margin-top: 5px; color: #4077E3; font-size: 16px; font-weight: 400; line-height: 24px; }
.aj-search .aj-search__price .price { display: block; margin: 0; color: inherit; font-size: inherit; }
.aj-search .aj-search__price .amount { color: inherit; }
.aj-search .aj-search__footer { display: flex; padding: 10px; }
.aj-search .aj-search__all { display: block; width: 100%; margin: 6px 0 0; padding: 12px; border: 0; border-top: 1px solid #E6E9EF; border-radius: 0; background: transparent; color: #4077E3; font-family: "Manrope", Sans-serif; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; }
.aj-search .aj-search__all:hover,
.aj-search .aj-search__all:focus { background: rgba(64, 119, 227, .06); color: #4077E3; text-decoration: none; }
.aj-search .aj-search__message { padding: 14px 6px; color: #6B7280; }
.aj-search .aj-search__message p { margin: 0 0 20px; color: #4077E3; font-size: 16px; line-height: 24px; }

/* Tablet (Elementor ≤ 1024): kaart 724 px */
@media (max-width: 1024px) {
	.aj-search__dialog { max-width: 724px; }
}

/* Mobiel (≤ 767): volle breedte, kruis in de bovenband, titel op max. twee regels */
@media (max-width: 767px) {
	.aj-search__dialog { max-width: none; padding: 50px 14px 8px; border-radius: 0 0 14px 14px; }
	.aj-search .aj-search__close { top: 6px; right: 6px; }
	.aj-search .aj-search__form .aj-search__submit { padding: 0 16px; }
	.aj-search .aj-search__list { max-height: calc(100dvh - 150px); }
	.aj-search .aj-search__title { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
