@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes slideDown {
    0% {
        transform: translate(0, -25%);
    }
    100% {
        transform: translate(0, 0);
    }
}
@keyframes slideUp {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(0, -25%);
    }
}
.cf-city *,
.cf-modal * {
    box-sizing: border-box;
}
.cf-city {
    position: relative;
    box-sizing: border-box;
}
.cf-city .cf-confirm {
    display: none;
    position: absolute;
    top: 100%;
    width: 270px;
    padding: 15px;
   
    background: #fff;
    z-index: 1000;
    opacity: 0;
}

.cf-city-current {
    color: #000;
    font-size: 15px;
}

.cf-city .cf-confirm.cf-show {
    display: block;
    margin-top: 15px;
    opacity: 1;
    animation: fadeIn .15s linear;
}

.cf-city .cf-confirm.cf-hide {
    opacity: 0;
    animation: fadeOut .15s linear;
}
.cf-city .cf-btn-group {
    margin-top: 10px;
}

.cf-city .cf-btn-group a {
    margin-right: 5px;
    text-decoration: underline;
}

.cf-city .cf-btn-group a:last-child {
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    
}

.cf-city .cf-city-header {position: relative;}

.cf-city .cf-city-header::before {
    content: '';
    position: absolute;
    top: -22px;
    left: -15px;
    width: 0;
	height: 0;
	border-width: 0 10px 15px 10px;
	border-color: transparent transparent #FFF transparent;
	border-style: solid;
}

.cf-city .cf-btn-default,
.cf-city .cf-btn-primary {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
        touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    background-image: none;
    border: 1px solid transparent;
}
.cf-city .cf-btn-default:hover,
.cf-city .cf-btn-default:focus,
.cf-city .cf-btn-primary:hover,
.cf-city .cf-btn-primary:focus {
    color: #333;
    text-decoration: none;
}
.cf-city .cf-btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}
.cf-city .cf-btn-default:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}
.cf-city .cf-btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}
.cf-city .cf-btn-primary:hover {
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}

/* Модальное окно */

.cf-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.5);
    z-index: 1050;
    display: none;
    /*opacity: none;*/
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    box-sizing: border-box;
}

.cf-modal.cf-show {
    display: block;
    opacity: 1;
    animation: fadeIn .15s linear;
}
.cf-modal.cf-hide {
    opacity: 0;
    animation: fadeOut .15s linear;
}
.cf-modal .cf-modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
    -webkit-transform: translate(0, -25%);
        -ms-transform: translate(0, -25%);
         -o-transform: translate(0, -25%);
            transform: translate(0, -25%);
}
.cf-modal.cf-show .cf-modal-dialog {
    -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
         -o-transform: translate(0, 0);
            transform: translate(0, 0);
    animation: slideDown .3s ease-out;
}
.cf-modal.cf-hide .cf-modal-dialog {
    animation: slideUp .3s ease-out;
}


.cf-modal .cf-modal-content {
    position: relative;
    background-color: #fff;
}

.cf-modal .cf-modal-header {
    position: relative;
    padding: 20px;
}

.cf-modal .cf-modal-header .cf-btn-close {
    cursor: pointer;
    border: none;
    background-color: transparent;
    outline: none;
    display: flex;
    align-items: center;
    padding-right: 0;
}

.cf-modal .cf-modal-header .cf-btn-close:focus {
    outline: none;
}


.cf-modal .cf-modal-title {
    margin: 0;
    line-height: 1.42857143;
}
.cf-modal .cf-modal-body {
    position: relative;
    padding: 20px;
}

.cf-modal .cf-modal-input {
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}
.cf-modal .cf-modal-input input {
    font-size: 18px;
    line-height: 24px;
    color: #000;
    
    padding-bottom: 25px !important;
    padding-top: 10px !important;
    border-bottom:1px solid #E5E5E5 !important;
    
    padding-right: 30px;
}

.cf-modal-input i {
    position: absolute;
    right: 20px;
    top: 2px;
}

.cf-modal .cf-modal-input input::placeholder {
  color: #000;
  opacity: 1;
}

.cf-modal .cf-modal-input input::-ms-input-placeholder {
  color: #000;
  opacity: 1;
}

.cf-modal .cf-modal-input input:-ms-input-placeholder {
  color: #000;
  opacity: 1;
}

.cf-modal .cf-form-search .cf-form-input:focus {
    border-color: #66afe9;
    outline: 0;
}
.cf-modal .cf-form-search .cf-form-input::-moz-placeholder {
    color: #999;
    opacity: 1;
}
.cf-modal .cf-form-search .cf-form-input:-ms-input-placeholder {
    color: #999;
}
.cf-modal .cf-form-search .cf-form-input::-webkit-input-placeholder {
    color: #999;
}
.cf-modal .cf-form-search .cf-form-input::-ms-expand {
    background-color: transparent;
    border: 0;
}
.cf-cities {
    display: none;
    padding-left: 0;
    list-style: none;
    margin-top: 0;
    margin-bottom: 10px;
}
.cf-cities.cf-show {
    display: block;
}
.cf-cities li {
    margin-bottom: 7px;
    font-size: 15px;
}

.cf-cities li a.selected {
    font-weight: 700;
}

.cf-cities li a:hover {
    text-decoration: underline;
}


.cf-error {
    display: none;
    margin-bottom: 10px;
}
.cf-error.cf-show {
    display: block;
}

/* Окно темы */

.popup-city {
    width: 270px !important;
    max-width: 100%;
    background-color: #fff;
}

.popup-city__input {
    position: relative;
}
.popup-city__input input {
    font-size: 18px;
    line-height: 24px;
    color: #000 !important;
    
    padding-bottom: 25px !important;
    padding-top: 10px !important;
    border-bottom:1px solid #E5E5E5 !important;
    
    padding-right: 30px !important;
}

.popup-city__input i {
    position: absolute;
    right: 0;
    top: 2px;
}

.popup-city__input input::placeholder {
  color: #000 !important;
  opacity: 1;
}

.popup-city__input input::-ms-input-placeholder {
  color: #000 !important;
  opacity: 1;
}

.popup-city__input input:-ms-input-placeholder {
  color: #000 !important;
  opacity: 1;
}



@media (min-width: 1024px) {
    
    .popup-city {
        width: 600px !important;
    }
    
    .cf-modal .cf-modal-dialog {
        width: 600px;
        margin: 30px auto;
    }

   .cf-modal .cf-modal-body {
        padding: 30px;
    }
    .cf-modal .cf-modal-header,
    .cf-modal .cf-modal-input {
        padding-left: 30px;
        padding-right: 30px;
    }

   .cf-modal .cf-modal-input input {
        font-size: 24px;
        line-height: 31px;
    }
    
    .cf-modal-input i {
        right: 30px;
    }
   
    .cf-cities {
        columns: 3;
        -webkit-columns: 3;
        -moz-columns: 3;
    }
    
    .popup-city__input input {
        font-size: 24px;
        line-height: 31px;
    }

}
