/* Packversand Kartonfinder 1.2.2: Alle Regeln sind auf das Plugin-Markup bzw. die markierte Hauptnavigation begrenzt. */
.pv-cf-form {
    --pv-cf-blue: #4b5f8e;
    --pv-cf-blue-dark: #3c4d75;
    --pv-cf-border: #7b7b7b;
    --pv-cf-focus: rgba(75, 95, 142, 0.28);
    --pv-cf-control-height: calc(2.5625rem + 2px);
    width: 100%;
    margin: 0;
}

.pv-cf-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 3.5rem;
    align-items: stretch;
    width: 100%;
}

.pv-cf-field {
    min-width: 0;
}

.pv-cf-input {
    width: 100%;
    height: var(--pv-cf-control-height);
    margin: 0;
    padding: 0 0.8rem;
    color: #42462b;
    background: #fff;
    border: 1px solid var(--pv-cf-border);
    border-right: 0;
    border-radius: 0;
    font: inherit;
    line-height: 1.2;
    appearance: textfield;
}

/* Die nativen Zahlpfeile benötigen Platz und würden die schmalen Headerfelder unnötig verkleinern. */
.pv-cf-input::-webkit-inner-spin-button,
.pv-cf-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.pv-cf-input:focus {
    position: relative;
    z-index: 2;
    outline: 0;
    border-color: var(--pv-cf-blue);
    box-shadow: inset 0 0 0 1px var(--pv-cf-blue), 0 0 0 0.2rem var(--pv-cf-focus);
}

.pv-cf-input::placeholder {
    color: #4e4e4e;
    opacity: 1;
}

.pv-cf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    min-width: 3.5rem;
    height: var(--pv-cf-control-height);
    margin: 0;
    padding: 0;
    color: #fff;
    background: var(--pv-cf-blue);
    border: 1px solid var(--pv-cf-blue);
    border-radius: 0;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pv-cf-submit > .fas.fa-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.pv-cf-submit:hover {
    color: #fff;
    background: var(--pv-cf-blue-dark);
    border-color: var(--pv-cf-blue-dark);
}

.pv-cf-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
    box-shadow: 0 0 0 0.2rem var(--pv-cf-focus);
}

/* Der Text ergänzt das Lupensymbol nur dann, wenn die Smartphonebreite eine zweite Zeile erfordert. */
.pv-cf-submit-text {
    display: none;
    margin-left: 0.5rem;
}

.pv-cf-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Der Bootstrap setzt pv-cf-navbar ausschließlich auf die normale Hauptzeile des Headers. */
.pv-cf-navbar > .pv-cf-header {
    position: relative;
    order: 10;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0.75rem 1rem 0.5rem;
}

.pv-cf-navbar > .pv-cf-header .pv-cf-form {
    max-width: 42rem;
    margin: 0 auto;
}

/* Ergebnisse und Fehlermeldungen stehen oberhalb der unveränderten nativen Produktliste. */
.pv-cf-results {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    color: #4e4e4e;
    background: #f7f9fc;
    border: 1px solid #d8deea;
}

.pv-cf-results__title {
    margin: 0;
    color: #4b5f8e;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.25;
}

.pv-cf-results__form {
    max-width: 42rem;
    margin-top: 1rem;
}

.pv-cf-message {
    margin-top: 0.85rem;
    padding: 0.8rem 1rem;
    border-left: 4px solid #4b5f8e;
}

.pv-cf-message--empty {
    color: #3f4d3d;
    background: #eef8ec;
    border-left-color: #83c878;
}

.pv-cf-message--error {
    color: #713a3a;
    background: #fff1f1;
    border-left-color: #b95a5a;
}

/* Auf breiten Desktops teilen sich Finder, Logo, Shopsuche und Symbole eine einzige Headerzeile. */
@media (min-width: 1300px) {
    .pv-cf-navbar {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        column-gap: clamp(0.75rem, 1.5vw, 2rem);
    }

    .pv-cf-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 46px;
    }

    .pv-cf-submit {
        box-sizing: border-box;
        width: 46px;
        min-width: 46px;
        height: 43px;
    }

    .pv-cf-navbar > .pv-cf-header {
        order: 1;
        flex: 0 1 31rem;
        max-width: 31rem;
        min-width: 21rem;
        padding: 0;
    }

    .pv-cf-navbar > .pv-cf-header .pv-cf-form {
        max-width: none;
    }

    .pv-cf-navbar > .nav-logo-wrapper {
        order: 2 !important;
        display: flex;
        flex: 0 1 22rem;
        justify-content: center;
        max-width: 22rem;
        min-width: 12rem;
        margin: 0 !important;
        padding: 0;
    }

    .pv-cf-navbar > .nav-logo-wrapper .navbar-brand {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    .pv-cf-navbar > .nav-logo-wrapper .navbar-brand img {
        width: auto;
        max-width: 100%;
        height: 2.75rem;
        max-height: 2.75rem;
        object-fit: contain;
    }

    .pv-cf-navbar > .main-search-wrapper {
        order: 3 !important;
        flex: 1 1 23rem;
        min-width: 16rem;
        max-width: 31rem;
        margin: 0;
        padding: 0;
    }

    .pv-cf-navbar > .nav-icons-wrapper {
        order: 4 !important;
        flex: 0 0 auto;
        padding-left: 0;
    }
}

/* Bis zum großen Desktop bleibt die originale Headerzeile erhalten; der Finder nutzt eine kompakte zweite Zeile. */
@media (max-width: 1299.98px) {
    .pv-cf-navbar {
        flex-wrap: wrap !important;
    }

    .pv-cf-navbar > .pv-cf-header {
        order: 10 !important;
    }
}

/* Auf kleinen Geräten bleiben alle drei Maße in der fachlich richtigen Reihenfolge und mit Seitenabstand bedienbar. */
@media (max-width: 575.98px) {
    .pv-cf-navbar > .pv-cf-header {
        padding: 0.625rem 0.75rem 0.5rem;
    }

    .pv-cf-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 3rem;
    }

    .pv-cf-input {
        height: var(--pv-cf-control-height);
        padding: 0 0.45rem;
        font-size: 0.75rem;
    }

    .pv-cf-submit {
        width: 3rem;
        min-width: 3rem;
        height: var(--pv-cf-control-height);
    }

    .pv-cf-results {
        margin-right: 0.75rem;
        margin-left: 0.75rem;
        padding: 1rem;
    }
}

/* Sehr schmale Displays erhalten eine zweite, volle Buttonzeile statt abgeschnittener Eingaben. */
@media (max-width: 399.98px) {
    .pv-cf-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 0.5rem;
    }

    .pv-cf-field--height .pv-cf-input {
        border-right: 1px solid var(--pv-cf-border);
    }

    .pv-cf-submit {
        grid-column: 1 / -1;
        width: 100%;
        height: var(--pv-cf-control-height);
    }

    .pv-cf-submit-text {
        display: inline;
    }
}
