select.fancified {
    position: absolute !important;
    width: 100% !important;
    height: 0 !important;
    border: none !important;
    opacity: 0 !important;
}
select.fancified.error + div.trigger {
    color: #e0605c;
}
select.fancified.error + div.trigger:after {
    /*  background-position: -1408px 0;*/
}
div.fancy-select {
    position: relative;
    color: #555;
}
div.fancy-select div.trigger {
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    margin: 0 auto;
}
div.fancy-select div.trigger,
div.fancy-select ul.options li {
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
div.fancy-select div.trigger:after {
    content: '';
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    /*right: 0.5em;*/
    right: 0em;
    background-position: -1056px 0;
    display: block;
}
div.fancy-select {
    position: absolute;
    margin: 0;
    width: 100%;
    visibility: hidden;
    z-index: 2;
}
div.fancy-select ul.options {
    list-style: none;
    border: 1px solid #ccc;
    padding: 0;
    /* display: inline-block;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);*/
    overflow: auto;
    visibility: hidden;
    border-radius: 2px;
    background-color: #f4f4f4;
}
div.fancy-select ul.options.open {
    visibility: visible;
}
div.fancy-select ul li.country_hide { display: none; }
div.fancy-select ul.options li.not-available,
div.fancy-select ul.options li.not-available > span {
    color: #aaa;
    background: #f1f1f1;
}
div.fancy-select ul.options li.selected,
div.fancy-select ul.options li.selected > span {
    color: #fff;
    background: #00cdc2;
}
ul.open li span {
    position: relative;
    /*top: 0.48rem;*/
    font-size: 1rem;
    font-weight: 400;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #3e4754;
}
/*start**/
div.phone-input {
}

div.phone-input div.fancy-select {
    width: 100%;
}
/**end new**/
div.fancy-select.disabled div.trigger {
    color: #b1b1b1 !important;
}
div.fancy-select.disabled div.trigger:after {
    background-position: -1760px 0 !important;
}
div.fancy-select.disabled * {
    cursor: default !important;
}

/***/

div.fancy-select div.trigger > .flag_icon,
div.fancy-select ul.options li > .flag_icon {
    margin-left: 0.5rem;
    margin-top: 4px;
    margin-right: 0.5rem;
}
div.fancy-select div.trigger > *,
div.fancy-select ul.options li > * {
    vertical-align: tet-top;
    position: relative;
    /* top: 0.2em; */
}
div.phone-input div.fancy-select div.trigger, div.phone-input div.fancy-select ul.options li {
    height: 2.5rem!important;
}
/***/

div.phone-input {
    position: relative;
}
div.phone-input > input {
    opacity: 0;
    margin: 0;
}
div.phone-input > input.error ~ div.phone-input-table div.phone-locked > span,
div.phone-input > input.error ~ div.phone-input-table div.phone-editable > input {
    color: #e0605c;
}
div.phone-input > input[disabled] ~ div.phone-input-table div.phone-locked > span,
div.phone-input > input[disabled] ~ div.phone-input-table div.phone-editable > input {
    color: #b1b1b1;
}
div.phone-input > input[disabled] ~ div.phone-input-table div.phone-trigger,
div.phone-input > input.keep-code ~ div.phone-input-table div.phone-trigger {
    cursor: default;
}
div.phone-input > input[disabled] ~ div.phone-input-table div.arrow,
div.phone-input > input.keep-code ~ div.phone-input-table div.arrow {
    background-position: -1760px 0;
}
div.phone-input > input.error ~ div.phone-input-table div.arrow {
    background-position: -1408px 0;
}
div.phone-input > input[disabled] ~ div.phone-input-overlay,
div.phone-input div.phone-input-border {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

div.phone-input input.mobile_country_code { opacity: 0; margin: 0; }
div.phone-input div.phone-input-border {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
}
div.phone-input div.phone-input-table {
    width: 100%;
    position: absolute;
    top: 0;
    border: 1px solid #bbbfc6;
}
div.phone-input div.phone-input-row {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    align-self: center;
}
div.phone-input div.phone-input-row > div {
    display: flex;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    align-self: normal;
    /*height: 40px;*/
}
div.phone-input div.block-input-number {
    flex-grow: 2;
    padding-left: 5px;
}
div.phone-input div.phone-trigger {
    cursor: pointer;
}
div.phone-input div.phone-flag {
    width: 43px;
    height: auto;
    padding-left: 11px;
    margin-top: 0;
    padding-top: 0;
}
.phone-input-row input[name="phone_code"] {
    border: none;
    padding: 0;
    width: 0;
}
div.phone-input-row div.phone-editable-code {
    margin-left: 0;
    /*width: 54px;*/
}
div.phone-input div.phone-arrow {
    height: 100%;
    border-right: 1px solid #cccccc;
    width: 34px;
}
div.phone-input div.phone-locked {
    width: 24px;
    padding-left: 7px;
}
div.phone-input div.phone-locked > span {
  /*  color: #0089ff;*/
    margin-right: 0.3rem;
}

div.phone-input div.phone-editable > input {
    padding: 0;
    border: none;
    width: 100%;
    margin-bottom: 0;
    margin-top: 0;
}

div.phone-input li > b {
    width: 1em;
    position: relative;
}
div.phone-input li > b:before {
    content: '+';
}


div.fancy-select div.trigger,
div.fancy-select ul.options li {
    height: 2.5rem;
    font-weight: 400;
    font-size: 1.125rem;
    color: #3e4754;
    /* padding-left: 1rem;*/
}
div.phone-input div.fancy-select ul.options {
    max-height: 169px;
}
div.fancy-select ul.options {
    max-height: 202px;
}
div.fancy-select div.trigger {
    font-weight: 400;
    font-size: 1.125rem;
    color: #3e4754;
    padding-right: 1rem;
    background-color: #fff;
    padding-left: 1rem;
    border: 1px solid #bbbfc6;
    border-radius: 2px;
    box-sizing: border-box;
}
div.fancy-select div.trigger span {
    position: relative;
    top: 25%;
    font-weight: 400;
    font-size: 1.125rem;
    color: #3e4754;;
}
div.fancy-select div.open {
    border: 1px solid #00cdc2;
    border-radius: 2px;
}
div.fancy-select div.trigger:after {
    width: 32px;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path fill='%232EA20F' d='M20.965,4.708l2.987,3.045L12,19.649L0.049,7.753L3.038,4.71L12,13.678L20.965,4.708z'/></svg>");
    background-repeat: no-repeat;
    background-size: 1rem auto;
    background-position: center right 0.5rem;
    background-color: #fff;
}
div.fancy-select div.trigger span {
    display: block;
    padding-top: .125rem;
}

div.fancy-select div.open:after {
    transform: rotate(180deg);
    background-position: center right 0.5rem;
}
.arrow_up {
    transform: rotate(180deg)!important;
    background-position: center  0.5rem!important;
}
div.fancy-select ul.options {
    /* font-size: 14px;*/
}
div.fancy-select ul.options.opens-up {
    bottom: 40px;
}
div.fancy-select ul.options.opens-up.open {
    bottom: 100%;
    border: 1px solid #bbbfc6;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}
div.fancy-select ul.options.opens-down {
    top: 100%;
    border-top: 0;
    border: 1px solid #bbbfc6;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 4;
}
div.fancy-select ul.options.opens-down.open {
    top: 100%;
    border-top: 0;
}

.wrapper_select_big div.fancy-select div.trigger{
    height: 2.5em;
    font-size: 1.25rem;
}

.wrapper_select_small div.fancy-select div.trigger{
    /* height: 2em;*/
    font-size: 1rem;
}


div.phone-input div.phone-locked > span {
    font-size: 1.5rem;
    line-height: .5rem;
}

.default_code {
   /* background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24'…7,3.045L12,19.649L0.049,7.753L3.038,4.71L12,13.678L20.965,4.708z'/></svg>")!important;;*/
    background-image: url("../../images/earth_medium.svg")!important;
    background-repeat: no-repeat;
    background-size: 1.7rem;
    background-position: center;
    background-color: #fff;
}
.error ~ * .default_code {
    background-image: url("../../images/earth_error_medium.svg") !important;
    margin-top: initial;
    background-repeat: no-repeat;
    background-size: 1.7rem;
    background-position: center;
    background-color: #fff;
}
li.selected > .default_code {
    background-image: url("../../images/earth_medium.svg") !important;
}
.country_arrow {
    width: 32px;
    height: 20px;
    background-image: url("../../images/arrow_grey_select_box.svg") !important;
    margin-top: 7px;
    background-repeat: no-repeat;
    background-size: 1rem;
    background-position: center 0.5rem;
    transform: rotate(360deg);
    background-color: #fff;
}
.flag_icon {
    margin-top: -2px;
    background-image: url("/images/32x32.png");
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 2rem;
    height: 2rem;
}
div.phone-input div.fancy-select input.search {
    margin-top: 40px;
    background-image: url(/images/magn.svg);
    background-position: 15px center;
    background-repeat: no-repeat;
    padding-left: 52px;
    background-size: 26px;
}
div.phone-input div.fancy-select input.search.open {
    visibility: visible;
}
div.phone-input div.fancy-select ul.options {
    box-sizing: inherit;

}
div.phone-input div.fancy-select ul.options li.selected span{
    line-height: 0;
}
