.CmSelectorOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

#CmMSelectAdd {
    position: relative;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.CmMSelectBlock {
    position: relative;
    /* align-self: flex-end; */
    background: #ffffff;
    border-radius: var(--cm-radius-big);
    width: 350px;
}

.CmMSelectTable {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
}

.CmMSelectTableSeTD {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.CmMselBoxWrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width: 100%;
}

.CmMSelectBox {
    flex-grow: 1;
}

.CmResetSettings {
    fill: #909090;
    cursor: pointer;
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    transition: all 0.3s;
}

.CmSelModelTxt {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.CmSelModelTxt span {
    white-space: nowrap;
}

.CmSelModelTxt span {
    font-size: 15px;
}

.CmSelModSvg {
    width: 11px;
    height: 11px;
}

.CmSelectedModTxt {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    order: 2;
}

a.CmSelModelLink {
    display: flex;
    flex-direction: column;
    color: #505050;
    max-width: 360px;
}

#CmSelModNTxt {
    font-size: 13px;
    line-height: 16px;
    white-space: normal;
}

.CmSelModelLink span {
    font-size: 10px;
}

.CmSelModPic {
    width: 20px;
    height: 20px;
}

/* Vehicle Image block */
.CmMSelectVehicle {
    position: relative;
    padding: 0px;
    width: 180px;
    height: 80px;
    text-align: center;
    background: url("media/mselect.jpg") center center no-repeat;
    background-size: contain;
    mix-blend-mode: multiply;
}

.CmMSelectVehicle .CmMSelectLoading {
    left: 65px;
    top: 45px;
}

.CmSelModelImg {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    align-self: end;
}

.CmSelModelImg a {
    display: flex;
}

.CmAddGarBl {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -12px;
}

.CmAddGarSvg {
    width: 12px;
    height: 12px;
    margin-right: 5px;
}



/* Main buttons */
.CmMSelectBut {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    white-space: nowrap;
    color: #c8c8c8 !important;
    font-size: 12px;
    background: #ffffff;
    height: 40px;
    vertical-align: middle;
    font-family: Verdana;
    padding: 0px 14px 0px 14px;
    border-radius: 2px;
    border-radius: var(--cm-radius-small);
    border: 1px solid var(--cm-border-color);
}

.CmSelTypeNameBl,
.CmSelModNameBl,
.CmSelManufNameBl {
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.CmMSelectBut:hover {
    cursor: pointer;
}

.CmMSelectBut span {
    font-weight: bold;
    color: #505050;
}

.CmMSelectActive {
    border-bottom: none;
    z-index: 778;
}

span.CmTxColorLight {
    color: #5050509f;
}

/* Disabled buttons */
.CmMSelectDisabled {
    color: #d6d6d6 !important;
}

.CmMSelectDisabled:hover {
    cursor: default !important;
}

/* Drop down options menu */


.CmMSelectDown {
    width: 100%;
    color: #929292;
    position: absolute;
    margin-top: 0px;
    background: #ffffff;
    padding: 18px;
    text-align: center;
    display: none;
    z-index: 777;
    border-radius: var(--cm-radius-big);
    box-shadow: var(--cm-box-shadow);
}

.CmMSelectDown table div {
    color: #929292;
    padding: 4px 9px;
    white-space: nowrap;
}

.CmMSelectDown table div b {
    color: #4e4e4e;
    font-family: Verdana;
}

.CmMSelectDown table div:hover {
    color: #ffffff !important;
    cursor: pointer;
}

.CmMSelectDown table div:hover b {
    color: #ffffff !important;
    cursor: pointer;
}

div.CmMSelectDownRight {
    right: unset !important;
}

/* Years */
.CmMSelectYear {
    width: 50px;
    float: left;
    font-weight: bold;
    padding: 6px 0px;
    color: #929292;
}

.CmMSelectYear:hover {
    color: #ffffff !important;
    cursor: pointer;
}

/*.CmMSelectYearCut{clear:both; border-bottom-width:1px; border-bottom-style:solid;}*/
.CmYearGroupInner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom-width: 1px;
    border-bottom-style: solid;
}


/* Manufacturer Groups */
.CmMSelectGroups {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    margin-bottom: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.CmMSelectMfTab {
    overflow: auto;
    max-height: 400px;
}

.CmManufInner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.CmMSelectYearInner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.CmMSelectGrTab {
    color: #737272;
    font-size: 14px;
    padding: 8px 20px;
    transition: all 0.2s;
}

.CmMSelectGrTab:hover {
    cursor: pointer;
    padding-top: 5px;
    padding-bottom: 11px;
}

.CmMSelectGrActive {
    font-weight: bold;
}

.CmMSelectManuf {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    margin: 0px 1px 1px 0px;
    padding: 6px 8px;
    text-align: left !important;
    color: #737272;
    cursor: pointer;
    border-radius: var(--cm-radius-smallest);
}

.CmMSelectManuf:hover {
    color: #ffffff !important;
}

div.CmMSelectDownManuf {
    width: unset !important;
}


/* Models/Types */
.CmModelSelWrap {
    max-height: 400px;
    max-width: 350px;
    min-width: 180px;
    flex-direction: column;
    align-items: flex-start;
}

.CmSelModBlock {
    overflow: auto;
    max-height: 400px;
    width: 100%;
}

.CmMSelectList {
    font-size: 12px;
    color: #737272;
    border-bottom: 1px solid #e1e1e1;
    padding: 5px 6px;
    text-align: left !important;
}

.CmMSelectList:hover {
    color: #ffffff !important;
    cursor: pointer;
}

.CmMSelectList b {
    color: #4e4e4e;
}

.CmMSelectList:hover b {
    color: #ffffff !important;
}

/* .CmMSelectRowsTab td{border-left-width:1px; border-left-style:solid;}
.CmMSelectRowsTab tr td:first-child{border-left-width:0px!important;}*/
/*Filter Model by Leter*/
.CmSelModSearch {
    padding: 0px 0px 0px 8px !important;
    margin-bottom: 10px;
    border-radius: var(--cm-radius-smallest);
    text-transform: uppercase;
    border: 1px solid var(--cm-border-color);
    height: 32px;

}

.CmSelModSearch::-webkit-input-placeholder {
    text-transform: none;
    color: #464646;
    font-weight: normal;
}

.CmSelModSearch::-moz-placeholder {
    text-transform: none;
    color: #464646;
    font-weight: normal;
}

.CmSelModSearch:-moz-placeholder {
    text-transform: none;
    color: #464646;
    font-weight: normal;
}

.CmSelModSearch::-ms-input-placeholder {
    text-transform: none;
    color: #464646;
    font-weight: normal;
}

.CmSelModSearch:focus::-webkit-input-placeholder {
    color: #d1d1d1;
}

.CmSelModSearch:focus::-moz-placeholder {
    color: #d1d1d1;
}

.CmSelModSearch:focus:-moz-placeholder {
    color: #d1d1d1;
}

.CmSelModSearch:focus::-ms-input-placeholder {
    color: #d1d1d1;
}

.CmSelTypeKwHp {
    font-size: 10px;
}

.CmFilterWrapBl {
    position: relative;
}

.CmSelClearBut {
    display: none;
    width: 18px;
    height: 15px;
    position: absolute;
    top: 1px;
    right: -10px;
    padding: 5px;
    border-radius: 0px 3px 3px 0px;
    transition: all 0.3s;
}

.CmSelClearBut:hover {
    fill: #ffffff;
}

/*Engine Select*/
.CmEngineSelWrap {
    overflow: auto;
    max-height: 400px;
}


/* Left block position */
.CmMSelectDownLeft {
    right: 0px !important;
}

.CmMSelectPositionLeft {
    float: left !important;
    margin: 0px 10px 0px -20px;
}

/* Right block position */
/*.CmMSelectDownRight{right:0px!important;}*/
/*.CmMSelectPositionRight{float:right!important; */
/*	margin:0px 0px 10px 0px;*/
/*}*/

.CmRangeYear {
    position: absolute;
    top: 18px;
    right: 18px;
    height: 24px;
    padding: 0px 0px 0px 8px !important;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* LOADING */
.CmMSelectLoading {
    top: 10px;
    left: 8px;
    display: none;
    position: absolute;
    width: 64px;
}

.CmMSelectLoading div {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.CmMSelectLoading div:nth-child(1) {
    left: 6px;
    animation: CmMSelectLoading1 0.6s infinite;
}

.CmMSelectLoading div:nth-child(2) {
    left: 6px;
    animation: CmMSelectLoading2 0.6s infinite;
}

.CmMSelectLoading div:nth-child(3) {
    left: 26px;
    animation: CmMSelectLoading2 0.6s infinite;
}

.CmMSelectLoading div:nth-child(4) {
    left: 45px;
    animation: CmMSelectLoading3 0.6s infinite;
}

@keyframes CmMSelectLoading1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes CmMSelectLoading3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes CmMSelectLoading2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(19px, 0);
    }
}

/*GARAGE*/
.CmSelModNameGarButWrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.CmModGarageWrap {
    width: 100%;
}

.CmGarageBlock,
.CmMobGarlock {
    position: relative;
    align-self: end;
}

.CmMobGarlock {
    display: none;
}

.CmSelMyGarOpen,
.CmSelGarOpen {
    cursor: pointer;
}

.CmSelMyGarOpen {
    border-width: 1px;
    border-style: solid;
}

.CmSelMyGarOpen,
.CmSelAddGarage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
}

.CmGarageBlock .CmSelMyGarOpen:hover>span,
.CmMobGarlock .CmSelMyGarOpen:hover>span {
    color: #ffffff !important;
}

.CmGarageBlock .CmSelMyGarOpen:hover>svg,
.CmMobGarlock .CmSelMyGarOpen:hover>svg {
    fill: #ffffff !important;
}

.CmSelAddGarBlock {
    justify-content: space-between;
    align-self: center;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--cm-radius-small);
}

.CmSelAddGarage {
    background: #ffffff;
    border-radius: 6px 0px 0px 6px;
    cursor: pointer;
    white-space: nowrap;
}

.CmSelAddGarage:hover {
    color: #ffffff !important;
}

.CmSelAddGarage:active {
    background-color: #51b50f;
    color: #ffffff;
}

.CmSelGarSvgBlock {
    border-radius: 0px 6px 6px 0px;
    display: flex;
}

.CmSelGarSvgBlock:hover {
    background-color: #ffffff !important;
}

.CmSelGarEmpty {
    background-color: #adadad !important;
    border-radius: 0px 3px 3px 0px;
    display: flex;
    border-width: 1px;
    border-style: solid;
    border-left: none;
}

.CmSelMyGarOpen,
.CmSelAddGarBlock {
    display: none;
}

div#CmModSelector svg.CmSelGarageFull,
div#CmModSelector svg.CmGarageSvg {
    width: 25px;
    height: 20px;
    fill: #ffffff;
    margin: auto;
    padding: 5px;
    display: none;
}

.CmGarEmptySvg {
    width: 26px;
    height: 26px;
    fill: #505050;
    padding: 10px;
    margin-right: 5px;
}

span.CmSelEmptyTxt {
    color: #505050;
    margin-right: 0px;
}

.CmGarageFull {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    margin: auto;
}

.CmMyGarage {
    margin-right: 5px;
    white-space: nowrap;
}

.CmGarDropDown {
    z-index: 999999;
    display: none;
    min-width: 250px;
    max-width: 500px;
    position: absolute;
    right: -1px;
    top: -1px;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

div.CmGarDropDown a.CmSelModelLink {
    text-decoration: none !important;
}

.CmSelGarTitle,
.CmSelFavVehTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 8px;
    border-radius: 8px 8px 0px 0px;
}

.CmSelTitleTxt {
    color: #ffffff;
    font-size: 15px;
}

svg.CmSelSvgImBlock {
    display: none !important;
}

span.CmSelFavBut {
    display: none;
    margin-right: 5px !important;
    margin-top: 5px;
    align-self: flex-start;
}

.CmSelFavItemWrap {
    width: 100%;
    border-bottom-style: solid;
    border-bottom-width: 2px;
}

.CmSelFavSvg {
    width: 16px;
    height: 16px;
    fill: #808080;
}

.CmSelFavorVehicle {
    display: none;
}

.CmModInGarItem {
    overflow: auto;
}

.CmSelGarItemWrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #cdcdcd;
    padding: 8px;
}

.CmSelGarItemWrap:last-child {
    border-bottom: none;
}

.CmModInGarItem {
    display: flex;
    overflow: auto;
    max-height: 250px;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
}

.CmModInGarItem span {
    margin-right: 10px;
}

#CmDelSelMod {
    width: 18px;
    height: 18px;
    fill: #000000;
    margin-left: 5px;
    flex-shrink: 0;
    cursor: pointer;
    align-self: flex-start;
}

.CmSelImgNameBl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.CmSeModImg {
    width: 120px;
    display: flex;
}

.CmSeModImg img {
    margin: auto;
    width: 100%;
}

.CmSelCloseGar {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    position: absolute;
    top: 7px;
    right: 7px;
    cursor: pointer;
}

#CmSelAddInfo {
    color: #909090;
}

.CmSelGarEmpMess {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 40px;
}

.CmRYearBox {
    position: absolute;
    right: 36px;
    top: 18px;
}

.CmRYear {
    padding: 5px 10px;
    border-radius: var(--cm-radius-smallest);
    cursor: pointer;
    min-width: 60px;
    border: 1px solid var(--cm-border-color);
}

.CmSelRYearBox {
    display: none;
    max-height: 353px;
    overflow: auto;
    box-shadow: var(--cm-box-shadow);
    border-radius: 3px;
    padding: 10px 0;
    background: #ffffff;
    border: 1px solid var(--cm-border-color);
}

.CmRYearArrow {
    margin-left: 6px;
}

.CmSelRYear {
    padding: 3px 15px;
    cursor: pointer;
    border-bottom: 1px solid white;
}

.CmSelRYear:hover {
    background: white;
    border-bottom: 1px solid #e3e3e3;
}

.CmHideYears {
    display: none;
}

.CmHideStr {
    display: none;
}



/* Adaptivity */
@media screen and (max-width:960px) {

    .CmMSelectPositionLeft {
        border-radius: 0px;
    }

    .CmFloatLeft {
        margin-bottom: 10px;
    }
}

@media screen and (max-width:768px) {
    #CmMS_DdManuf {
        left: 0px;
    }

    .CmManufInner {
        grid-template-columns: repeat(2, 1fr);
    }

    #CmMSelectAdd {
        padding: 0px 20px;
    }

    .CmMSelectDownRight {
        left: 0px !important;
    }

    .CmMSelectTableSeTD {
        align-self: unset;
        width: 100%;
        flex-direction: column;
    }

    a.CmSelModelLink {
        white-space: normal;
        max-width: unset;
    }

    .CmGarageBlock {
        position: unset;
    }

    .CmGarDropDown {
        right: unset;
        top: unset;
        left: 0;
    }

    .CmSelModelImg {
        flex-direction: row;
        justify-content: flex-end;
        width: 100%;
    }

    .CmSelGarItemWrap {
        flex-direction: column;
        padding-top: 8px;
    }

    .CmSelImgNameBl {
        width: 95%;
    }

    .CmTitleBradWrap {
        align-self: flex-start;
    }

    .CmMselBoxWrap {
        width: 100%;
    }
}

@media screen and (max-width:480px) {
    .CmMSelectBlock{
        width: 100%;
    }
    #CmMS_DdManuf {
        top: 30%;
        left: 0px;
    }

    #CmMS_DdModel {
        top: 66%;
        left: 0px;
    }

    #CmMS_DdType {
        top: 101%;
        left: 0px;
    }

    .CmMselBoxWrap {
        width: 100%;
        flex-direction: column;
    }

    .CmMSelectBox {
        width: 100%;
    }

    .CmMSelectBut {
        line-height: 45px;
    }

    .CmMyGarage {
        font-size: 14px;
    }

    .CmMSelectManuf {
        width: auto;
    }

    .CmMSelectLoading {
        top: 7px;
    }

    .CmMSelectMfTab {
        float: none;
        display: flex;
        flex-direction: column;
    }

    .CmYearGroupInner {
        grid-template-columns: repeat(4, 1fr);
    }

    .CmMSelectManuf {
        font-size: 11px;
        padding: 9px;
    }

    .CmMSelectGrTab {
        font-size: 12px;
    }

    .CmManufInner {
        grid-template-columns: repeat(2, 1fr);
    }

    .CmMSelectGrTab {
        padding: 8px 10px;
    }

    .CmMSelectList {
        padding: 9px;
    }

    .CmMSelectYear {
        padding: 8px;
        border-bottom: 1px solid #cdcdcd;
        border-right: 1px solid #cdcdcd;
    }

    .CmMSelectActive {
        margin-bottom: 0px !important;
    }

    .CmSelectedModTxt {
        flex-direction: column;
        align-items: center;
    }

    .CmGarageBlock {
        position: unset;
        align-self: flex-end;
    }

    .CmSelModNameGarButWrap {
        align-self: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}