.controls-container {
    flex-direction: row;
    gap: 16px;
}

.invisible {
    display: none !important;
}

.toolbox-right {
    width: auto;
    margin: 0 16px 16px auto;
}

.fixed .toolbox-right {
    margin: 0;
}

.filter-row {
    justify-content: flex-start;
}

.toolbox-horizontal aside.filter-section {
    max-width: 100%;
}

nav .filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    justify-content: center;
    gap: 10px;
    padding: 16px;
    width: 100%;
}

nav .onscreen {
    width: 100%;
}

nav .filters-row label,
nav .filters-row select {
    margin: 0;
    width: 100% !important;
}

nav label input {
    width: 100% !important ;
}

nav.fixed .toolbox-right {
    width: 100%;
}

nav.fixed .dealer-logo {
    display: block;
}

.price-label {
    display: block;
    height: 39.2px;
    margin-bottom: 1rem;
    padding: 0;
}

.sidebar-content label {
    width: 154px;
}

.price-label::after {
    top: 10px;
    right: 10px;
    left: auto;
}

.toolbox-sort.select-menu select {
    min-width: unset;
}

.fixed .toolbox-sort.select-menu select {
    width: 50px;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* For consistency, if you want to remove the arrows on all browsers */
input[type="number"] {
    appearance: textfield;
}

@media (max-width: 991px) {
    .filter-section {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .cars-details {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .toolbox select {
        flex: 1;
        margin: 0 0 1rem 0;
    }
    .filter-row {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;

        label {
            width: 24%;
            border: none;
            margin-right: unset;

            input {
                width: 100%;
                border: 1px solid #d7d7d7;
            }
        }
    }
    .toolbox-sort {
        align-items: start;
        width: 100%;
    }
    .price-label::after {
        top: 9px !important;
    }
}

@media (max-width: 767px) {
    .nav-wrapper {
        height: 487px;
    }

    .controls-container {
        flex-direction: column;
        flex-wrap: nowrap;
        max-width: 400px;
        margin: 0 auto;
    }
    nav .filters-row {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .toolbox-right {
        margin: 0 0 16px auto;
    }
}

@media (max-width: 600px) {
    .cars-details {
        flex-direction: row;
    }
    .filter-row {
        flex-direction: column;
        width: 50%;

        label {
            width: 100%;
            border: none;
            margin-right: unset;
        }
    }
    .filter-section {
        flex-direction: row;
    }
    .price-label::after {
        top: 10px !important;
    }
}

@media (min-width: 991px) {
    .controls-container {
        flex-direction: row;
    }

    aside form .filters-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .cars-details {
        flex: 1;
    }
}
