/* v3.7.4 Suggest overlap fix */

/*
Cíl:
- Na desktopu i mobilu nebude našeptávač překrývat widget častých dotazů ani footer.
- Našeptávač se chová jako normální blok pod vyhledáváním.
*/

.suggest-wrap {
    position: static !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 12px auto 0 !important;
}

.suggestions {
    position: static !important;
    display: none;
    width: 100% !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .12) !important;
    z-index: auto !important;
    text-align: left !important;
}

.suggestions.is-open {
    display: block !important;
}

.suggestion-item {
    padding: 13px 16px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f3f4f6 !important;
    line-height: 1.35 !important;
}

.suggestion-item:last-child {
    border-bottom: 0 !important;
}

.suggestion-item:hover {
    background: #f3f4f6 !important;
}

.hero-card,
.search-panel,
.hero-search,
.frontend-main {
    overflow: visible !important;
}

.popular-widget {
    margin-top: 26px !important;
}

/* Desktop jemné odsazení, aby widget nepůsobil nalepeně */
@media (min-width: 901px) {
    .hero-card .suggest-wrap {
        margin-top: 14px !important;
    }

    .popular-widget {
        margin-top: 30px !important;
    }
}

/* Mobil zůstává bezpečný */
@media (max-width: 600px) {
    .suggest-wrap {
        max-width: 100% !important;
        margin-top: 10px !important;
    }

    .suggestions {
        max-height: 260px !important;
        border-radius: 16px !important;
    }

    .suggestion-item {
        padding: 13px 14px !important;
        font-size: 15px !important;
    }

    .popular-widget {
        margin-top: 18px !important;
    }
}
