﻿/******** Taskbar main buttons ********/
.disabled {
    pointer-events: none;
    opacity: 0.5;
    background-color: #eee;
}

.no-scroll {
    overflow: hidden;
}

.mobile-taskbar-container {
    position: fixed;
    bottom: 0;
    z-index: 1020;
    width: 100%;
    background-color: #333;
    padding: 10px 0 0 10px;
    border-radius: 5px 5px 0 0;
}

    .mobile-taskbar-container a:hover,
    .filter-container a:hover {
        text-decoration: none;
        outline: none;
        outline-offset: unset;
    }

    .mobile-taskbar-container a {
        display: block;
        font-size: 18px;
        padding: 8px 0;
        border-radius: 3px;
        margin-right: 10px;
        margin-bottom: 10px;
        box-shadow: -2px 2px 0 black;
    }

        .mobile-taskbar-container a .mobile-taskbar-btn-text {
            font-size: 1.6rem;
        }

    .mobile-taskbar-container > div {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

        .mobile-taskbar-container > div > a {
            flex: 1;
            padding: 8px 0;
            min-width: 159px;
            border-radius: 3px;
            box-sizing: border-box;
            margin-right: 10px;
            margin-bottom: 10px;
            box-shadow: -2px 2px 0 black;
        }


/******** Taskbar menu open backdrop ********/
.mobile-taskbar-backdrop {
    display: none;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1010;
}

/******** Taskbar menu  ********/
.mobile-taskbar-header {
    padding: 1.5rem;
    background-color: #ddd;
    overflow: hidden;
    height: 70px;
    border-radius: 5px 5px 0 0;
}

.mobile-taskbar-menu-container {
    display: none;
    height: 80vh;
    width: 100%;
    position: fixed;
    bottom: -100%;
    left: 0;
    z-index: 1020;
    background-color: white;
    border-radius: 5px 5px 0 0;
}

/******** Viewed parts menu ********/
.viewed-parts-header {
    text-align: right;
}

.viewed-parts-content {
    height: calc(100% - 70px);
    overflow: auto;
}

    .viewed-parts-content > #recently-viewed-parts-mobile {
        overflow: auto;
        transition: all 200ms ease-in-out;
        padding: 1rem;
    }

        .viewed-parts-content > #recently-viewed-parts-mobile .panel {
            border: none;
        }

        .viewed-parts-content > #recently-viewed-parts-mobile .panel-heading {
            border-color: black;
            border: 1px solid #eee;
            border-radius: 5px;
        }

            .viewed-parts-content > #recently-viewed-parts-mobile .panel-heading .photo-holder {
                text-align: center;
            }

.no-parts-viewed {
    height: calc(100% - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .no-parts-viewed > div {
        font-size: 1.6rem;
        text-align: center;
        flex-basis: 70%;
    }

@media(min-width: 383px) {
    .viewed-parts-content > #recently-viewed-parts-mobile .panel-heading {
        display: flex;
        align-items: center;
    }

        .viewed-parts-content > #recently-viewed-parts-mobile .panel-heading > div {
            flex: 1;
        }
}

/******** MyTrucks menu ********/
.mytrucks-header {
    text-align: right;
}

.mytrucks-content {
    height: calc(100% - 70px);
    overflow: auto;
    font-size: 1.6rem;
}

    /* new ui */
    .mytrucks-content > div > div {
        margin: 1rem;
        padding: 1.6rem 1.6rem 1rem 1.6rem;
        border: 1px solid #eee;
        border-radius: 5px;
        background-color: #f7f7f7;
    }

        .mytrucks-content > div > div > div:first-child {
            overflow: hidden;
            overflow-wrap: break-word;
        }

        .mytrucks-content > div > div > div:last-child > a {
            min-width: 124px;
        }

.mytrucks-no-login,
.mytrucks-no-trucks {
    height: calc(100% - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mytrucks-no-login > div,
    .mytrucks-no-trucks > div {
        font-size: 1.6rem;
        text-align: center;
        flex-basis: 70%;
    }

/* new ui */
.mytrucks-note {
    border: 1px solid #eee;
    border-radius: 3px;
    background-color: #fff;
    height: 7rem;
    word-wrap: break-word;
    overflow: auto;
    overflow-wrap: break-word;
    white-space: normal;
    padding: 5px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 1.4rem;
}

    .mytrucks-note > .no-note-text {
        font-style: italic;
        color: #999;
        background-color: #f5f5f5;
    }

.mytrucks-item-btns > a {
    margin-top: 10px;
    display: block;
    padding: 8px 1rem;
    border-radius: 3px;
}

    .mytrucks-item-btns > a > span {
        font-size: 18px;
    }

@media(min-width: 307px) {
    .mytrucks-item-btns > a {
        display: inline-block;
    }
}

/******** filters menu ********/
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .filter-header form {
        flex-grow: 2;
    }

        .filter-header form > input {
            padding-left: 22px;
            padding-right: 22px;
        }

        .filter-header form .fa-search {
            position: absolute;
            left: 22px;
            top: 27px;
        }

        .filter-header form .mobile-taskbar-keyword-reset-btn {
            position: absolute;
            right: 74px;
            top: 24px;
            background: none;
            border: none;
        }

    .filter-header .mobile-taskbar-close,
    .filter-header .mobile-taskbar-open {
        padding-left: 3rem;
    }

.mobile-taskbar-back,
.mobile-taskbar-back-make-menu {
    padding-right: 2rem;
}

.filter-searchbar,
#mobile-listings-search-bar {
    display: inline-block;
    border-radius: 3px;
}

.filter-searchbar {
    margin-left: 2rem;
    padding-right: 22px;
}

.filter-searchbar-reset-btn {
    position: absolute;
    right: 22px;
    top: 24px;
    background: none;
    border: none;
}

.filter-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.filter-footer {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    background-color: #ddd;
    padding: 1rem;
    z-index: 10;
}

.mobile-footer-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 1.6rem;
    border-radius: 3px;
    box-shadow: -2px 2px 0 #aaa;
}

.filter-search-types {
    position: relative;
    left: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-taskbar-menu-sizing {
    position: absolute;
    width: 100%;
    left: 0;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-menu-content,
.by-truck-menu-content {
    padding-bottom: 200px;
}

.filter-facet-content,
.content-list-container {
    padding-bottom: 133px;
}

    .filter-search-types ul,
    .filter-menu-content > ul,
    .filter-facet-content ul,
    .by-truck-content ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

        .filter-menu-content > ul > li {
            background-color: #f7f7f7;
        }

.filter-menu-option {
    border: 1px solid #eee;
    min-height: 109.7px;
}

    .filter-menu-option:not(.disabled) {
        background-color: #f7f7f7;
    }

.mobile-facet-item:not(.parent-pt),
.filter-menu-option,
.filter-facet-content ul > li > a {
    font-size: 18px;
    font-size: 1.6rem;
    display: block;
    color: black;
    background-color: #f7f7f7;
    padding: 2rem;
}

.mobile-facet-item:not(.parent-pt),
.filter-facet-content ul > li > a {
    border: 1px solid #eee;
}

.facet-item-count {
    padding-top: 5px;
    padding-bottom: 5px;
    min-width: 34px;
}

.filter-menu-option > a {
    color: black;
    display: block;
}

    .filter-menu-option > a:not(.edit-saved-truck-option) {
        height: 6.7rem;
    }

    .filter-menu-option > a:focus,
    .filter-menu-option > a:hover,
    .filter-menu-option > a:active,
    .filter-menu-option > a:visited {
        text-decoration: none;
        outline: none;
        outline-offset: unset;
    }

    .mobile-facet-item:not(.parent-pt) > div,
    .filter-menu-option > a > div,
    .filter-facet-content ul > li > a > div {
        display: flex;
        justify-content: space-between;
    }

.filter-menu-option input {
    border: 1px solid #ccc;
}

/******** filter menu search type toggle ********/
.search-types {
    border: 1px solid #eee;
    background-color: #eee;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    text-align: center;
}

.search-types-toggle {
    position: relative;
    display: inline-block;
    width: 75%;
    height: 50px;
}

    .search-types-toggle .search-types-input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.search-types-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    -webkit-transition: .3s;
    transition: .3s;
    border-radius: 2px;
}

    .search-types-toggle-slider:before {
        position: absolute;
        content: "";
        width: 50%;
        height: 50px;
        left: 0;
        bottom: 0;
        background-color: #2196f399;
        -webkit-transition: .3s;
        transition: .3s;
        border-radius: 2%;
        box-shadow: 1px 1px #888888;
    }

.search-types-input:checked + .search-types-toggle-slider:before {
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
}

.search-types-labels {
    font-size: 1.5rem;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

    .search-types-labels span {
        width: 121px;
    }


/******** filter menu content ********/
.menu-item-pill {
    margin-right: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
}

/* filter facet menu */
.filter-facet-content a {
    color: black;
}

    .filter-facet-content a:hover {
        text-decoration: none;
        outline: none;
        outline-offset: unset;
    }

/* Part Type Menu */
.parent-pt-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eee;
    font-size: 1.6rem;
    border: 1px solid #eee;
    color: black;
}

    .parent-pt-container a {
        color: black;
    }

    .parent-pt-container > a {
        padding: 2rem;
        flex-grow: 1;
    }

    .parent-pt-container > div > a {
        padding: 2rem 3rem;
    }

.part-type-content .child-pt,
.by-truck-part-type-content .child-pt {
    padding-left: 6rem;
}

.rendered-facet-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* filter search menu */
.mobile-truck-year-filter,
.mobile-price-filter {
    width: 65%;
}

/******** by truck my saved truck content ********/
.my-saved-truck-content {
    font-size: 1.6rem;
}

.saved-trucks-list > .filter-menu-option {
    display: flex;
    align-items: center;
    height: unset;
}

    .saved-trucks-list > .filter-menu-option > a:first-child {
        flex-grow: 1;
    }

    .saved-trucks-list > .filter-menu-option > .btn-primary {
        border-radius: 5px;
        color: #fff;
        margin-left: 1rem;
    }

.filter-menu-option .saved-truck-option {
    display: flex;
    align-items: center;
}

    .filter-menu-option .saved-truck-option > div {
        display: block;
        justify-content: unset;
        margin-right: 2rem;
    }

        .filter-menu-option .saved-truck-option > div img {
            max-width: 75px;
            max-height: 60px;
        }

    .filter-menu-option .saved-truck-option .saved-truck-name {
        height: 100%;
        display: flex;
        align-items: center;
    }

        .filter-menu-option .saved-truck-option .saved-truck-name span {
            flex-grow: 1;
        }
