.zoek-intent-row {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.zoek-intent-row .zoek-intent-cell {
    display: table-cell;
    padding-right: 10px;
    vertical-align: top;
}

.zoek-intent-row .zoek-intent-cell:last-child {
    padding-right: 0;
}

.zoek-intent .zoek-btn {
    font-weight: bold;
    text-decoration: none;
}

.zoek-intent .zoek-btn:not(.active) {
    color: #333 !important;
    background-color: #b0b0b0 !important;
    background-image: -webkit-linear-gradient(top, #e0e0e0, #a0a0a0) !important;
    background-image: -moz-linear-gradient(top, #e0e0e0, #a0a0a0) !important;
    background-image: -ms-linear-gradient(top, #e0e0e0, #a0a0a0) !important;
    background-image: -o-linear-gradient(top, #e0e0e0, #a0a0a0) !important;
    background-image: linear-gradient(to bottom, #e0e0e0, #a0a0a0) !important;
    border-color: #999 #999 #777 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.zoek-intent .zoek-btn:not(.active):hover {
    background-color: #a0a0a0 !important;
    background-image: linear-gradient(to bottom, #d0d0d0, #909090) !important;
}

.zoek-intent .zoek-btn.active {
    color: #ffffff !important;
    background-color: #5bb75b !important;
    background-image: -webkit-linear-gradient(top, #62c462, #51a351) !important;
    background-image: -moz-linear-gradient(top, #62c462, #51a351) !important;
    background-image: -ms-linear-gradient(top, #62c462, #51a351) !important;
    background-image: -o-linear-gradient(top, #62c462, #51a351) !important;
    background-image: linear-gradient(to bottom, #62c462, #51a351) !important;
    border-color: #51a351 #51a351 #387038 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
}

.zoek-intent .zoek-btn.active:hover {
    background-color: #51a351 !important;
    background-image: linear-gradient(to bottom, #5ab85a, #4a9a4a) !important;
}

.snippet .zoek-intent.menu-widget {
    padding-left: 0;
    padding-right: 0;
}

#textsearchform .textsearch-q {
    width: 250px;
}

@media (max-width: 767px) {
    #adsearchform .control-group {
        float: none !important;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5em;
    }

    #adsearchform .controls select.form-control {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .zoek-intent-row {
        display: flex;
        align-items: stretch;
    }

    .zoek-intent-row .zoek-intent-cell {
        display: flex;
        flex: 1;
        min-width: 0;
    }

    .zoek-intent-row .zoek-intent-cell .zoek-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 0;
    }
}

@media (min-width: 979px) {
    #adsearchform .zoek-form-grid {
        display: table;
        width: 100%;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
    }

    #adsearchform .zoek-form-grid .zoek-form-col {
        display: table-cell;
        vertical-align: top;
        width: 33.33%;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }

    #adsearchform .zoek-form-grid .zoek-form-col:first-child {
        padding-left: 0;
    }

    #adsearchform .zoek-form-grid .zoek-form-col:last-child {
        padding-right: 0;
    }

    #adsearchform .zoek-form-grid .zoek-form-col--instrument .control-group {
        float: none;
        margin-right: 0;
    }

    #adsearchform .zoek-form-grid .zoek-form-col .controls select.form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 978px) {
    #adsearchform .zoek-form-grid .zoek-form-col--instrument {
        overflow: hidden;
    }

    #adsearchform .zoek-form-grid .zoek-form-col--instrument .control-group {
        float: left;
        margin-right: 1em;
        margin-top: 0;
    }
}
