/* --------------------------------------------------------------------------
   Machine zoeken en filteren
   -------------------------------------------------------------------------- */

.machine-zoek {
    margin-bottom: var(--smallmedium, 30px);
}

.machine-zoek__balk {
    display: flex;
}

.machine-zoek__veld {
    position: relative;
    flex: 1 1 auto;
    max-width: 620px;
    min-width: 0;
}

.machine-zoek__veld input[type="search"] {
    width: 100%;
    height: 60px;
    border: 1px solid rgba(0, 57, 77, 0.15);
    border-radius: 100px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B7BE' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 20px 20px;
    padding: 0 108px 0 52px;
    font-size: 17px;
    color: #00394D;
    box-shadow: 0 2px 10px rgba(0, 57, 77, 0.05);
    transition: border-color .25s, box-shadow .25s;
    -webkit-appearance: none;
    appearance: none;
}

.machine-zoek__veld input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.machine-zoek__veld input[type="search"]::placeholder {
    color: #849CA6;
    text-overflow: ellipsis;
}

.machine-zoek__veld input[type="search"]:focus {
    outline: 0;
    border-color: #00B7BE;
    box-shadow: 0 0 0 4px rgba(0, 183, 190, 0.15);
}

.machine-zoek__leeg {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #F1F2F4;
    color: #00394D;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.machine-zoek.heeft-tekst .machine-zoek__leeg {
    display: flex;
}

.machine-zoek__start {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #00B7BE;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s;
}

.machine-zoek__start:hover {
    background: #00394D;
}

.machine-zoek__start span {
    width: 20px;
    height: 20px;
    display: block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Snelrij: filterknop en veelgezochte merken --------------------------- */

.machine-zoek__snel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 15px;
}

.machine-zoek__sneltitel {
    color: #849CA6;
}

.machine-zoek__snel button {
    border: 1px solid rgba(0, 57, 77, 0.15);
    background: #ffffff;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 14px;
    color: #00394D;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}

.machine-zoek__snel button:hover,
.machine-zoek__snel button.is-actief {
    background: #00394D;
    border-color: #00394D;
    color: #ffffff;
}

.machine-zoek__filterknop {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.machine-zoek__filterknop span:not(:empty) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 100px;
    background: #00B7BE;
    color: #ffffff;
    font-size: 12px;
    padding: 0 6px;
}
/* Suggesties ------------------------------------------------------------- */

.machine-zoek__suggesties {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid rgba(0, 57, 77, 0.1);
    box-shadow: 0 12px 30px rgba(0, 57, 77, 0.12);
    overflow: hidden;
    max-height: 60vh;
    overflow-y: auto;
}

.machine-zoek__suggesties[hidden] {
    display: none;
}

.machine-zoek__kop {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #849CA6;
    padding: 14px 20px 6px;
    margin: 0;
}

.machine-zoek__suggestie {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    color: #00394D;
    text-decoration: none;
    transition: background .15s;
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

.machine-zoek__suggestie:hover,
.machine-zoek__suggestie.is-actief {
    background: #F1F2F4;
    color: #00394D;
}

.machine-zoek__suggestie img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
    background: #F1F2F4;
}

.machine-zoek__suggestie b {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.machine-zoek__suggestie small {
    color: #849CA6;
}

.machine-zoek__leegmelding {
    padding: 18px 20px;
    color: #849CA6;
    margin: 0;
}

/* Merkfilter ------------------------------------------------------------- */

.machine-merk-zoek {
    width: 100%;
    height: 36px;
    border: 1px solid rgba(0, 57, 77, 0.15);
    border-radius: 100px;
    background: #ffffff;
    padding: 0 14px;
    font-size: 14px;
    margin-top: 12px;
}

.machine-merk-zoek:focus {
    outline: 0;
    border-color: #00B7BE;
}

section.products .products-sidebar .products-filter--merk ul {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}

section.products .products-sidebar .products-filter li.is-leeg {
    opacity: .4;
}

section.products .products-sidebar .products-filter li[hidden] {
    display: none;
}

/* Actieve filters -------------------------------------------------------- */

.products-active[hidden] {
    display: none;
}

.machine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7.5px;
    margin-top: 10px;
}

.machine-chips button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid rgba(0, 57, 77, 0.15);
    border-radius: 100px;
    padding: 5px 12px;
    font-size: 14px;
    color: #00394D;
    cursor: pointer;
    line-height: 1.25;
}

.machine-chips button:after {
    content: '\00d7';
    font-size: 16px;
    line-height: 1;
    color: #00B7BE;
}

.machine-chips button.machine-chips__wis {
    background: transparent;
    border-color: transparent;
    color: #849CA6;
    text-decoration: underline;
}

.machine-chips button.machine-chips__wis:after {
    content: '';
}

.products-active__titel {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 0;
}
/* Resultaatbalk ---------------------------------------------------------- */

.machine-resultaat {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: var(--small, 15px);
}

.machine-resultaat__aantal {
    margin: 0;
    color: #849CA6;
    white-space: nowrap;
}

.machine-resultaat__aantal strong {
    color: #00394D;
}

.machine-resultaat__sorteer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 400;
    min-width: 0;
}

.machine-resultaat__sorteer span {
    color: #849CA6;
    white-space: nowrap;
}

.machine-resultaat__sorteer select {
    height: 42px;
    max-width: 100%;
    border: 1px solid rgba(0, 57, 77, 0.15);
    border-radius: 100px;
    background-color: #ffffff;
    padding: 0 36px 0 16px;
    color: #00394D;
    font-size: 15px;
    cursor: pointer;
    text-overflow: ellipsis;
    -webkit-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #00B7BE 50%), linear-gradient(135deg, #00B7BE 50%, transparent 50%);
    background-position: calc(100% - 20px) 18px, calc(100% - 15px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.machine-resultaat__sorteer select:focus {
    outline: 0;
    border-color: #00B7BE;
}

/* Geen resultaten -------------------------------------------------------- */

.machine-leeg {
    background: #F1F2F4;
    border-radius: 15px;
    padding: var(--smallmedium, 30px);
    text-align: center;
}

.machine-leeg p {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.machine-leeg .btn {
    margin-top: 15px;
    border: 0;
    cursor: pointer;
}

/* Laadstatus ------------------------------------------------------------- */

.products--zoek #response {
    transition: opacity .2s;
}

.products--zoek.is-laden #response {
    opacity: .45;
    pointer-events: none;
}

/* Mobiel ----------------------------------------------------------------- */

@media (max-width: 991px) {

    .machine-zoek {
        margin-bottom: var(--small, 15px);
    }

    .machine-zoek__veld {
        max-width: none;
    }

    .machine-zoek__veld input[type="search"] {
        height: 54px;
        font-size: 16px;
        padding-right: 96px;
    }

    .machine-zoek__start {
        width: 42px;
        height: 42px;
        top: 5px;
        right: 5px;
    }

    .machine-zoek__leeg {
        right: 56px;
    }

    /* Filterknop en merken op een regel die horizontaal scrollt. */
    .machine-zoek__snel {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-left: calc(var(--small, 15px) * -1);
        margin-right: calc(var(--small, 15px) * -1);
        padding: 2px var(--small, 15px);
    }

    .machine-zoek__snel::-webkit-scrollbar {
        display: none;
    }

    .machine-zoek__snel button {
        flex: 0 0 auto;
    }

    .machine-zoek__sneltitel {
        display: none;
    }

    .machine-zoek__filterknop {
        display: inline-flex;
    }

    section.products--zoek .products-sidebar {
        display: none;
    }

    section.products--zoek.filters-open .products-sidebar {
        display: flex;
    }

    .machine-resultaat__sorteer span {
        display: none;
    }

    .machine-resultaat__sorteer select {
        height: 38px;
        font-size: 14px;
        padding: 0 32px 0 14px;
        background-position: calc(100% - 18px) 16px, calc(100% - 13px) 16px;
    }
}
/* Zoekveld in het megamenu ----------------------------------------------- */

.mega-panel__zoek {
    position: relative;
    display: flex;
    margin-bottom: 15px;
}

.mega-panel__zoek input[type="search"] {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(0, 57, 77, 0.15);
    border-radius: 100px;
    background: #ffffff;
    padding: 0 48px 0 18px;
    font-size: 15px;
    color: #00394D;
    -webkit-appearance: none;
    appearance: none;
}

.mega-panel__zoek input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.mega-panel__zoek input[type="search"]::placeholder {
    color: #849CA6;
}

.mega-panel__zoek input[type="search"]:focus {
    outline: 0;
    border-color: #00B7BE;
}

.mega-panel__zoek button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #00B7BE;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mega-panel__zoek button span {
    width: 16px;
    height: 16px;
    display: block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat center / contain;
}