/* ~~~~ garage css */

.garage {
    display: flex;
    align-items: center;
    box-shadow: 0px 15px 14px rgba(0,0,0,.2);
    background-color: #38ab40;
    border: solid #38ab40 1px;
    border-radius: 3px;
    white-space: nowrap;
}

.garage-tytle {
    color: #baf3be;
    padding: 0 20px;
    font-size: 18px;
    text-shadow: 1px 1px 2px #004a05;
}

.garage-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #8bdd91;
    border-left: solid #fff 1px;
    padding: 8px;
    line-height: 1.2;
}

.garage-car {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #016508;
    padding: 0 8px;
    font-size: 24px;
    text-transform: capitalize;
    text-shadow: 1px 1px 1px #bbe7be;
}

.garage-btns {
    display: flex;
    min-width: 122px;
    min-height: 38px;
    padding-right: 27px;
}

.btns-hide .garage-btns {
    overflow: hidden;
    transition: all .35s linear;
    width: 0;
    max-width: 0;
    min-width: 0;
    min-height: 0;
    padding-right: 0;
}

.garage-btn {
    background-color: #41c44b;
    border: solid #38ab40 1px;
    border-radius: 3px;
    color: #fff;
    margin-left: 8px;
    padding: 0 19px;
    /* font-family: Myriad Pro; */
    letter-spacing: 1px;
    line-height: 36px;
    text-transform: lowercase;
    text-shadow: 1px 1px 5px #008c0b;
}

.garage-btn.garage-clear {
    position: absolute;
    right: 8px; bottom: 100%;
    margin-bottom: -27px;
    padding: 0 2px 1px;
    cursor: pointer;
}

.garage-btn:hover { background-color: #38ab40; }

.garage-btn.state-hide { display: none; }

.garage-btn[disabled] {
    filter: grayscale(0.5);
    opacity: 0.5;
}

.garage-btn i.fa {
    display: flex;
    font-size: 16px;
    text-shadow: none;
}

@media (max-width: 991px) {
    .garage-body { display: block; }
    .garage-car { padding: 8px; }
    .garage-btn { margin-top: 7px; }
    .btns-hide .garage-btns {
        height: 0;
        max-height: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .garage-tytle { padding-bottom: 45px; }
    .btns-hide .garage-tytle { padding-bottom: 0; }
}

@media (max-width: 767px) {
    #filter-inner .garage { display: block; }
    .garage-tytle { line-height: 1.7; }
    .garage-car { font-size: 18px; }
}


/* ~~~ Animation for change filter */

@keyframes loadingGarage {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#filter-inner {
    animation: loadingGarage .5s ease-in-out;
    -webkit-animation: loadingGarage .5s ease-in-out;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform .5s, min-height .5s;
    -webkit-transition: transform .5s, min-height .5s;
    transform: rotatex(0deg);
    -webkit-transform: rotatex(0deg);
    min-height: 0;
    z-index: 100;
}

#filter-inner.show-filter,
#filter-inner.show-garage { min-height: 80px; }

#home #filter-inner { min-height: 60px; }

#filter-inner .garage,
#filter-inner #catalog_filter  {
    position: absolute;
    width: 100%;
    -webkit-perspective: 0;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    visibility:visible;
    backface-visibility: hidden;
}

#filter-inner #catalog_filter {
    transform: rotateX(0deg);
    -webkit-transform: rotateX(0deg);
    top: 0;
}

#filter-inner .garage {
    transform: rotateX(180deg);
    -webkit-transform: rotateX(180deg);
    bottom: 0;
}

#home #filter-inner .garage { margin-bottom: 15px; }

#filter-inner.show-garage {
    transform: rotateX(180deg);
    -webkit-transform: rotateX(180deg);
}

@media (max-width: 991px) {
    #filter-inner.show-filter,
    #filter-inner.show-garage { min-height: 145px; }
    #home #filter-inner { min-height: 130px; }
    #home #filter-inner .garage { margin-bottom: 25px; }
    #filter-inner.show-garage.btns-hide { min-height: 95px; }
}

@media (max-width: 767px) {
    #filter-inner.show-filter { min-height: 325px; }
    #filter-inner.show-garage { min-height: 155px; }
    #home #filter-inner { min-height: 310px; }
    #home #filter-inner.show-garage { min-height: 205px; }
    #home #filter-inner .garage { margin-bottom: 85px; }
    #filter-inner.show-garage.btns-hide { min-height: 120px; }
}

/* fix for animation in other browsers */

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .container #filter-inner.show-garage { transform: rotateY(0deg); }
    .container #filter-inner.show-garage #catalog_filter { transform: rotateY( 180deg ); }
    .container #filter-inner.show-garage .garage { transform: rotateY(0deg); }
}