.model-modal{
    top: 0;
    z-index: 999;
}

.btn-model{
    width: 100%;
    border: 1px solid #868487;
    background-color: #FFFFFF;
    color: black;
    min-height: 55px;
    position: relative;
    padding-top: 12px;
    max-height: 55px;
    padding-left: 20px;
    display: flex;
    margin-top: 18px;
    cursor:pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
    display: flex; 
    vertical-align: middle;
    height: 55px;
    white-space: nowrap;
    width: 100%;
    min-width: 100%;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    word-wrap: break-word; 
    background: url(../images/chev_right.svg) no-repeat right 0.75em center/14px 14px;
}

#models-list{
    vertical-align: middle;
    display: flex;
    width: 100%;
}

#models-list p{
    display: flex;
    align-items: center;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
}

.models-refinement{
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 12px;
    padding-right: 12px;
}

#modelModal{
    position: absolute;
    width: auto;
    z-index: 998;
    margin-top: -1px;
    margin-left: calc(100% + 12px);
    filter: drop-shadow(2px 4px 4px rgba(17, 17, 17, 0.10));
}

#modelModal ul{
    margin: 0;
}

#modelModal li{
    margin-bottom: 30px;
}

#modelModal .modal-dialog{
    margin: 0;
    width: 838px;
    max-width: 60vw;
    cursor:auto;
}
#modelModal .modal-body{
    cursor:auto;
}

.refinement-bar{
    overflow: visible;
}

@media (max-width: 769px){
    #modelModal{
        position: fixed;
        top: 0;
        margin-left: 0;
        width: 100vw;
        height: 100dvh;
        overflow-y: scroll;
        left: 105%;
    }

    #modelModal.slide{
        left: 0;
    }

    #modelModal .modal-dialog{
        width: 100%;
        max-width: 100%;
        height: 100%;
    }

    #modelModal .modal-content{
        padding-bottom: 56px;
    }

    .refinement-bar{
        overflow: auto;
    }

    .model-mobile-header{
        padding-left: 0;
        padding-right: 0;
    }

    .model-mobile-header button{
        background-color: transparent;
        border: none;
        display: flex;
        vertical-align: middle;
        text-transform: uppercase;
        font-size: 18px;
        line-height: 22px;
        font-weight: bold;
        margin-bottom: 40px;
    }

    .model-mobile-header button img{
        margin-right: 22px;
    }

    .models-title{
        width: 100%;
        font-size: 16px;
        margin-bottom: 24px;
        color: #868487;
        font-weight: normal;
        margin-right: 0;
        margin-left: 0;
    }

    .models-title .col-6{
        padding: 0;
    }

    .models-title h5{
        font-weight: normal;
        margin-bottom: 0;
    }

    #modelModal ul{
        padding: 0;
    }

    #modelModal ul li{
        margin-bottom: 28px;
    }

    .model-mobile-header .models-clear-all button{
        padding: 0;
        font-size: 14px;
        color: black;
        margin-bottom: 0;
        text-align: right;
        display: block;
    }
}

#modelModal .modal-body .out-of-stock {
    margin: 0;
    padding: 0;
    margin-top: 36px;
}

#modelModal .modal-body .out-of-stock h3, #modelModal .modal-body .out-of-stock p {
    white-space: wrap;
    
}

#modelModal .modal-body .out-of-stock p {
    margin-bottom: 24px;
}

#modelModal .modal-body .out-of-stock ul {
    gap: 0;
}

#modelModal .modal-body .out-of-stock ul li {
    white-space: normal;
}

#modelModal .modal-body .models-clear-all button {
    text-align: left;
    margin-left: -4px;
    padding-top: 0;
    margin-top: -12px;
    padding-bottom: 48px;
}

#modelModal .modal-body .stock-text {
    display: inline-block;
    margin-bottom: 12px;
}

#modelModal .modal-body .stock-text, #modelModal .modal-body .out-of-stock {
    margin-left: 8px;
}

@media (max-width: 769px) {
    #modelModal .modal-body .models-clear-all button {
        padding-bottom: 0;
    }
}