/* ZP_HEADER_SEARCH_UNIFIED_V6 */

/* A külső panel nem képez külön vizuális dobozt. */
.zp_main_header .zp_header_search_panel {
    width: min(430px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.zp_main_header .zp_header_search_panel_inner {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* A kereső egyetlen kompakt vezérlősor. */
.zp_main_header .zp_header_search_panel .zp_product_search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.zp_main_header .zp_header_search_panel .zp_product_search_form,
.zp_main_header .zp_header_search_panel form[role="search"] {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Input: sem narancssárga, sem dupla keret. */
.zp_main_header .zp_header_search_panel .zp_product_search_input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    background: #f5f5f5 !important;
    border: none !important;
    outline: none !important;
    border-radius: 5px 0 0 5px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    color: #222 !important;
}

.zp_main_header .zp_header_search_panel .zp_product_search_input:focus {
    background: #f5f5f5 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Egyetlen KERESÉS gomb. */
.zp_main_header .zp_header_search_panel button[type="submit"] {
    flex: 0 0 auto !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    background: #202020 !important;
    border: none !important;
    border-radius: 0 5px 5px 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.zp_main_header .zp_header_search_panel button[type="submit"]:hover {
    background: #363636 !important;
}

/* Duplikált nagyítóikon a submit gombon. */
.zp_main_header .zp_header_search_panel button[type="submit"] i,
.zp_main_header .zp_header_search_panel button[type="submit"] svg {
    display: none !important;
}

/* Bezárás: külön, keret nélküli vezérlő. */
.zp_main_header .zp_header_search_panel .zp_header_search_close {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 38px !important;
    min-width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    color: #555 !important;
}

.zp_main_header .zp_header_search_panel .zp_header_search_close:hover {
    background: #f1f1f1 !important;
    color: #111 !important;
}

/* Nyitott állapotban nincs második fejléc-nagyító. */
@supports selector(:has(*)) {
    .zp_main_header:has(.zp_header_search_panel.zp_is_open)
    .zp_header_actions > .zp_search_toggle {
        display: none !important;
    }
}

/* A találati dropdown logikáját és pozicionálását nem módosítjuk. */

@media (max-width: 640px) {
    .zp_main_header .zp_header_search_panel {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }

    .zp_main_header .zp_header_search_panel_inner {
        gap: 5px !important;
    }

    .zp_main_header .zp_header_search_panel button[type="submit"] {
        padding: 0 10px !important;
    }
}

/* ZP_SEARCH_CLOSE_COMPACT_V7_START */

/* Keresés és bezárás közötti távolság csökkentése */
.zp_main_header .zp_header_search_panel_inner {
    gap: 4px !important;
}

/* Kompakt, finoman kiemelt bezárógomb */
.zp_main_header .zp_header_search_panel .zp_header_search_close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 38px !important;

    padding: 0 !important;
    margin: 0 !important;

    background: #f1f2f4 !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: none !important;

    color: #404040 !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.zp_main_header .zp_header_search_panel .zp_header_search_close:hover {
    background: #e3e5e8 !important;
    color: #111111 !important;
}

.zp_main_header .zp_header_search_panel .zp_header_search_close:focus-visible {
    outline: 2px solid #555 !important;
    outline-offset: 2px !important;
}

/* Mobilon is egységes távolság */
@media (max-width: 640px) {
    .zp_main_header .zp_header_search_panel_inner {
        gap: 3px !important;
    }

    .zp_main_header .zp_header_search_panel .zp_header_search_close {
        flex-basis: 32px !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 36px !important;
    }
}

/* ZP_SEARCH_CLOSE_COMPACT_V7_END */

/* ZP_SEARCH_FORM_CONTENTS_V8_START */

/* A form nem hoz létre külön flex dobozt. */
.zp_main_header .zp_header_search_panel form[role="search"],
.zp_main_header .zp_header_search_panel .zp_product_search_form {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* A kereső form belső vezérlősora. */
.zp_main_header .zp_header_search_panel .zp_product_search_control {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Input és keresésgomb egységes magassága. */
.zp_main_header .zp_header_search_panel .zp_product_search_input {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    background: #f3f3f3 !important;
    border: 0 !important;
    border-radius: 5px 0 0 5px !important;
    box-shadow: none !important;
}

.zp_main_header .zp_header_search_panel .zp_product_search_submit {
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    background: #202020 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 5px 5px 0 !important;
    box-shadow: none !important;
}

/* X közelebb a Keresés gombhoz. */
.zp_main_header .zp_header_search_panel_inner {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Bezárógomb finom háttérrel. */
.zp_main_header .zp_header_search_panel .zp_header_search_close {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f1f2f4 !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    color: #444 !important;
}

.zp_main_header .zp_header_search_panel .zp_header_search_close:hover {
    background: #e3e5e8 !important;
    color: #111 !important;
}

/* ZP_SEARCH_FORM_CONTENTS_V8_END */
