body.city-popup-open {
    /*overflow: hidden;*/
}

.popup-overlay.popup-overlay--locations {
    width: 740px;
    max-height: calc(100vh - 20px);
    margin-left: -370px;
    height: auto;
    margin-top: -200px;
    overflow: visible;
}
.popup-top-list-container {
    margin: 20px 0 0 0;
}
ul.popup-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: flex-start;
    height: 252px;
}

.popup-top-list > .popup-top-list__item {
    padding: 0;
    margin: 0;
    /*flex-basis: 14.28571428571429%;*/
    width: 25%;
    display: flex;
    position: relative;
    font: 14px/20px 'Corpid', sans-serif;
    color: #333;
}
.popup-top-list__item input {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
}
.popup-top-list__item label {
    margin: 0;
    font-weight: normal;
    padding: 7px 14px 6px 14px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
}
.popup-top-list__item label:hover,
.popup-top-list__item input:checked ~ label {
    background-color: #f2f2f2;
    color: #ff0032;
    text-decoration: underline;
}
.popup-top-list__item.popup-top-list__item--bold label {
    font-weight: bold;
}

.popup-overlay--locations input.citySearch {
    font-family: 'Corpid', sans-serif;
    font-size: 22px;
    font-weight: 300;
    padding-left: 39px;
    box-sizing: border-box;
}

.popup-overlay--locations .header-block h3 {
    font-size: 18px;
    font-weight: normal;
}
.popup-overlay--locations .contents {
    height: auto;
    overflow: visible;
    width: auto;
}
.popup-overlay.popup-overlay--locations .wrap-contents {
    padding: 0 50px 30px 50px;
    position: relative;
}
.popup-overlay.popup-overlay--locations .popup-contents {
    padding: 0;
}

.popup-city-search-form {
    display: flex;
    max-height: calc(100vh - 140px);
    flex-flow: column nowrap;
    position: relative;
}

.popup-city-search-form-preloader {
    position: absolute;
    left: 11px;
    top: 13px;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    display: none;
    background-image: url(../../assets/images/preloader-red-20x20.gif);
}

.popup-list-container {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    height: 245px;
    margin: 0;
    z-index: 1;
    background-color: #fff;
    overflow: auto;
}

ul.popup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.popup-list > .popup-list__item {
    font-size: 16px;
    margin: 0;
    padding: 0;
    position: relative;
}

.popup-list__item label {
    margin: 0;
    padding: 6px 14px;
    font-weight: normal;
    cursor: pointer;
    display: block;
}
.popup-list__item label mark {
    background-color: transparent;
    color: #ff0032;
}
.popup-list__item label:hover,
.popup-list__item input:checked ~ label {
    background-color: #f2f2f2;
    text-decoration: underline;
}

.popup-list__item input {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
}

.citySearch ~ .search-cancel-button {
    position: absolute;
    right: 15px;
    top: 13px;
    background-color: #ddd;
    border: none;
    color: #fff;
    border-radius: 50%;
    font-size: 17px;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    display: none;
    outline-offset: 3px;
    outline-color: #ddd;
}
.citySearch ~ .search-cancel-button:hover {
    background-color: #ff0032;
}

.popup-top-list-container:empty {
    height: 252px;
    background-repeat: no-repeat;
    background-image:
        linear-gradient(#eee 8px, transparent 0),
        linear-gradient(#eee 8px, transparent 0),
        linear-gradient(#eee 8px, transparent 0);
    background-size:
        80px 8px,
        80px 8px,
        80px 8px;
    background-position:
        15px 34px,
        15px 67px,
        15px 100px;
}

.popup-overlay--locations .header-block {
    display: flex;
    align-items: baseline;
    padding: 50px 50px 20px 50px;
    flex-wrap: wrap;
}
.popup-overlay--locations .header-block-labels {
    font-size: 12px;
    display: flex;
    margin-left: auto;
}
.header-block-labels__text {
    color: #C6C6C6;
}
.header-block-labels__divider {
    color: #ddd;
    padding-left: 1em;
    padding-right: 1em;
}

.citySearch-warning {
    margin-top: 20px;
    padding: 10px 30px 25px 96px;
    border: 1px solid #fd8027;
    position: relative;
}
.citySearch-warning p {
    color: #333333;
    font: 14px/20px 'Corpid', sans-serif;
    padding: 0;
    margin: 14px 0;
}
.citySearch-warning:before {
    display: block;
    position: absolute;
    content: "";
    left: 30px;
    top: 45px;
    background: url(../../assets/images/sprite-icons.png) -353px -190px no-repeat;
    width: 33px;
    height: 30px;
    margin-top: -15px;
}
.citySearch-warning__phone,
.citySearch-warning__phone:hover {
    font-size: 24px;
    color: #000;
    font-family: 'Corpid', sans-serif;
    text-decoration: none;
    line-height: 17px;
}
.fader {
    position: absolute;
    display: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Corpid, sans-serif;
    font-size: 24px;
    font-weight: 300;
    padding-bottom: 50px;
    z-index: 5;
}
@media only screen and (max-width: 999px) and (min-width: 640px) {
    .popup-overlay.popup-overlay--locations {
        width: 640px;
        margin-left: -320px;
        margin-top: -200px;
    }
}
@media (max-height: 650px) {
    .popup-overlay.popup-overlay--locations {
        margin-top: 0;
        top: 10px !important;
        margin-left: 0;
        left: 15px;
        right: 15px;
        display: none;
    }
}
@media only screen and (max-width: 639px), (max-height: 425px) {
    .popup-overlay.popup-overlay--locations {
        width: auto;
        margin-top: 0;
        top: 10px !important;
        margin-left: 0;
        left: 15px;
        right: 15px;
        display: none;
    }
    .popup-top-list-container {
        overflow-y: scroll;
        overflow-x: hidden;
    }
    .popup-overlay--locations .header-block {
        padding: 50px 25px 10px 25px;
    }
    .popup-overlay--locations .header-block h3 {
        margin-bottom: 1em;
    }
    .popup-overlay.popup-overlay--locations .wrap-contents {
        padding: 0 25px 25px 25px;
    }
    ul.popup-top-list {
        height: 504px;
    }

    .popup-top-list > .popup-top-list__item {
        width: 50%;
        flex-basis: 7.142857142857145%;
    }
    .popup-list-container {
        border: 1px solid #aaa;
        top: 45px;
    }

    .popup-overlay.popup-overlay--locations.top-locations-empty {
        height: 415px;
    }

    .popup-overlay.popup-overlay--locations.top-locations-empty .popup-contents {
        height: 290px;
    }

    .popup-overlay.popup-overlay--locations.top-locations-empty ul.popup-top-list {
        height: auto;
    }
}

/* asking block under the header menu */
#ask-current-city {
    background-color: #F9F2E0;
    border: 1px solid #e6e6e6;
    font-family: Corpid, sans-serif;
    text-align: center;
    line-height: 50px;
    height: 50px;
    max-width: 960px;
    margin: 10px auto;
}

#ask-current-city div {
    margin: 0 auto;
}
#ask-current-city .btns {
    display: inline;
    margin: 0;
}

@media only screen and (max-width: 639px) {
    #ask-current-city {
        width: 100%;
        height: 100px;
    }
    #ask-current-city .btns {
        display: block;
    }
}

#ask-current-city div button {
    height: 30px;
    line-height: 14px;
    margin: 0 5px;
}

#reject-ask-city{
    color: #ffffff;
    background-color: #9B9C9E;
}



@media only screen and (max-width: 530px) {
    .popup-overlay.popup-overlay--locations.top-locations-empty {
        height: 430px;
        overflow: hidden;
    }
}

@media only screen and (max-width: 530px) and (min-aspect-ratio: 13/9) {
    .popup-overlay.popup-overlay--locations.top-locations-empty {
        max-height: calc(100% - 25px);
    }
}

@media only screen and (max-width: 390px) {
    .popup-overlay.popup-overlay--locations.top-locations-empty {
        height: 445px;
    }

    .citySearch-warning__phone {
        font-size: 20px;
    }
}

@media only screen and (max-width: 350px) {
    .citySearch-warning {
        padding: 50px 25px 25px 25px;
    }

    .citySearch-warning:before {
        top: 35px;
        left: 25px;
    }
}
