.filter-box 
{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsl(0deg 0.22% 10%);
    z-index: 10;
    -webkit-user-select: none;
    user-select: none;
    padding: 25px;
    padding-bottom: 50px;
    padding-top: 70px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    transform: scale(0%);
    overflow-x: hidden;
    overflow-y: scroll;
    transition: .5s;
    transform-origin: bottom;
    box-shadow: 0 0 10px black;
}
.filter-box-fullscreen
{
    transform: scale(100%);
}
.filter-row 
{
    display: flex;
    color: hsl(210deg 4% 49%);
    padding: 0 20px;
    align-items: center;
    height: 40px;
    font-size: 0.9rem;
    margin: 2px 0;
    cursor: pointer;
}
.filter-row:hover:not(.filter-row-title)
{
    background: hsl(0, 0%, 14%);
    border-radius: 5px;
}
.filter-row-title
{
    cursor: default;
    font-size: 15px;
    color: aliceblue;
}
.filter-row-tgl
{
    cursor: default;
}
.filter-row-name,
input.filter-row-nvalue, 
input.filter-row-tvalue
{
    pointer-events: none;
}
input.filter-row-nvalue,
input.filter-row-tvalue
{
    background: var(--sub-base-color);
    border-radius: 5px;
    margin-left: auto;
    height: 70%;
    width: 30px;
    color: aliceblue;
    padding: 0 10px;
}
input:is(.filter-row-nvalue, .filter-row-tvalue):not(:placeholder-shown)
{
    background: var(--main-color);
}
input:is(.filter-row-nvalue, .filter-row-tvalue):not(:placeholder-shown) + .filter-row-reset
{
    transform: scale(1);
    max-width: 60px;
    margin-left: 10px;
}
input.filter-row-tvalue
{
    min-width: 80px;
}
.filter-row-reset
{
    border-radius: 5px;
    font-weight: bolder;
    transform: scale(0);
    max-width: 0;
    transition: .5s;
    font-size: 1.2em;
    aspect-ratio: 1 / 1;
    height: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-row-options
{
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    font-size: .8rem;
    max-height: 0;
    transform: scaleY(0);
    opacity: 0;
    transform-origin: bottom;
}
.filter-row-options-active
{
    max-height: none;
    transform: scaleY(1);
    opacity: 1;
}
.filter-row-option
{
    border: 1px solid hsl(0deg 0% 22%);
    border-radius: 5px;
    margin: 7px 5px;
    color: white;
    text-align: center;
    line-height: 23px;
    padding: 5px 10px;
    cursor: pointer;
    flex: 1 0;
    white-space: nowrap;
}
.filter-row-option:hover
{
    background: hsl(0, 0%, 22%);
}
.filter-row-toggle
{
    margin: 10px 0 10px auto;
    height: 20px;
    width: 45px;
    border-radius: 30px;
    border: 1px solid hsl(0deg 0% 22.05%);
    position: relative;
    transition: 1s;
    cursor: pointer;
}
.filter-row-toggle::after
{
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    background: hsl(0deg 0% 22.05%);
    border-radius: 100%;
    top: 2px;
    transition: .5s;
    left: 2px;
}
.filter-cap 
{
    position: absolute;
    left: 0;
    top: 0;
    filter: invert(0.9);
    height: 100%;
    width: 100%;
    background: hsl(0, 0%, 100%);
    z-index: 12;
    align-items: center;
    display: flex;
    justify-content: center;
}
.filter-block-tires
{
    max-height: none;
    overflow: hidden;
    transition: .7s;
    transform-origin: bottom;
}
.filter-block-tires-hidden
{
    max-height: 0vh;
}

@media screen and (min-width: 767px)
{
    .filter-box
    {
        position: relative;
        transform: none;
        grid-area: filter;
        width: 315px;
        margin: 0 10px;
        border-radius: 10px;
        padding: 10px;
        padding-top: 20px;
    }
    .filter-box::-webkit-scrollbar
    {
        display: none;
    }
    .filter-cap
    {
        display: none;
    }
    .filter-row:not(.filter-row-title)
    {
        font-size: 13px;
        height: 38px;
    }
    .filter-row-option
    {
        font-size: 11px;
        padding: 3px 9px;
        margin: 5px;
    }
    
}