.js-dropdown {
    position: relative;
  }
  
  .js-dropdown__current {
    position: relative;
    cursor: pointer;
  }
  
  .js-dropdown__current:after {
    content: '';
    display: inline-block;
    border-top: 5px solid #656565;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
  }
  
  .js-dropdown--active .js-dropdown__current:after {
    border-top: 0px solid transparent;
    border-bottom: 5px solid #656565;
  }
  
  .js-dropdown__list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: auto;
    background: #fff;
    box-shadow: 0 0 4px #ccc;
    padding: 5px 0px;
    z-index: 1;
    display: none;
  }
  
  .js-dropdown--active .js-dropdown__list {
    display: block;
  }
  
  .js-dropdown__item {
    cursor: pointer;
    padding: 3px 5px;
  }
  
  .js-dropdown__item--selected {
    display: none;
  }
  

.auth-phone {
    color: #5d5d5d;
}

.auth-phone__back-btn {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.auth-phone__back-btn svg {
    width: 16px;
    margin-right: 8px;
    transform: rotate(180deg);
}

.fancybox-content .auth-phone__back-btn {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
}

.fancybox-content .auth-phone__back-btn span {
    display: none;
}

.auth-phone input, .auth-phone select {
    /*font-family: 'Montserrat';
    font-family: 'Ubuntu', sans-serif;*/
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    color: #B1B1B1;
    background: #f5f5f5;
    border-radius: 5px;

    border: 0;
    padding: 15px;
    padding: 16px 15px 12px; 
    width: 100%;
    outline: 0;
    border: 1px solid transparent;
}

.auth-phone input:focus, .auth-phone select:focus {
    border: 1px solid #FF5000;
}

.auth-phone .field.field-checkbox input {
    width: auto;
}


.auth-phone .field-checkbox input {
    display: none;
}

.auth-phone .field-checkbox input + label {
    position: relative;
    padding: 0 0 0 2rem;
    display: flex;
    align-self: center;
    cursor: pointer;
}

.auth-phone .field-checkbox input + label:before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translate(0,-50%);
    left: 0;
    width: 1.175rem;
    height: 1.175rem;
    background: #fff no-repeat center;
    border: 1px solid #dadada;
    border-radius: 4px;
}

.auth-phone .field-checkbox input:checked + label:before {
    background-image: url(./img/check.svg);
    background-size: 13px 9px;
}

.auth-phone .field {
    position: relative;
    margin-bottom: 15px;
}

.auth-phone .field-phone {
    display: flex;
    gap: 2%;
}

.auth-phone .phone-code {
    /*font-family: 'Montserrat';*/
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    color: #B1B1B1;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 15px;
    
    width: 90px;
    text-align: center;

    padding: 16px 15px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-phone .phone-code:after {
    /*content: '';
    display: inline-block;
    border-top: 4px solid #656565;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    margin-left: 5px;*/
}

.auth-phone p:last-child {
    margin-bottom: 15px;
}

/*.auth-phone .field input:not(:empty) + label,
.auth-phone .field select:not(:empty) + label,
.auth-phone .field select + label {
    top: 1px;
    font-weight: 400;
    font-size: 10px;
}*/

.auth-phone .field .floating-label {
    position: absolute;
    top: 15px;
    left: 15px;
}

.auth-phone .field .floating-label--pined {
    top: 1.5px;
    color: #B1B1B1;
    font-size: 10px;
    font-weight: 400;

    top: 3px;
    font-size: 9.5px;
}

.auth-phone__phone {
    max-width: 340px;
}

.auth-phone__register {
    max-width: 700px;
}

.auth-phone__register .group-field {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 2%;
}

@media (max-width:560px) {
    .auth-phone__register .group-field {
        flex-direction: column;
    }
}

.auth-phone__register .field {
    flex: 1 1 48%;
}

.auth-phone__verify {
    max-width: 340px;
}

.auth-phone__verify-timeout + .auth-phone__verify-resend {
    display: none;
}

.auth-phone__verify-resend {
    cursor: pointer;
}

.auth-phone__note {
    border-left: 2px solid #FF5000;
    padding-left: 15px;
    max-width: 360px;
}

.auth-phone__title {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 900;
    font-size: 28px;
    line-height: 33px;
    color: #000000;
    margin-bottom: 15px;
}

.auth-phone .auth-phone__submit {
    background: #727272;
    max-width: 340px;

    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
}

.auth-phone.fancybox-content {
    background: #f5f5f5;
    padding: 3%;
}

.auth-phone.fancybox-content input, 
.auth-phone.fancybox-content select,
.auth-phone.fancybox-content .phone-code,
.auth-phone.fancybox-content .js-dropdown-country .js-dropdown__head {
    background: #fff;
}

.auth-phone.fancybox-content .auth-phone__submit {
    max-width: 100%;
    background: #727272;
    color: #fff;
}

.auth-phone .auth-phone__submit--active,
.auth-phone.fancybox-content .auth-phone__submit--active {
    color: #fff;
    background: #FF5000;
    cursor: pointer;
}

.ic {
    background-repeat: no-repeat;
    background-size: 100%;
    display: inline-block;
    vertical-align: bottom;
    padding: 10px;
}

.ic + span {
    margin-left: 6px;
}

.ic-flag-ru {
    background-image: url('./img/flag-ru.svg');
}

.ic-flag-kz {
    background-image: url('./img/flag-kz.svg');
}

.ic-flag-by {
    background-image: url('./img/flag-by.svg');
}

.auth-phone .js-dropdown-country .ic + span {
  margin-left: 24px;
}

.auth-phone .js-dropdown-country .js-dropdown__current:after {
  position: absolute;
  top: 8px;
  left: 28px;
}

.auth-phone .js-dropdown-country .js-dropdown__head {
  background: #f5f5f5;
  border: 0;
  border-radius: 5px;
  width: 100%;
  padding: 15px;
}

.auth-phone .js-dropdown-country .js-dropdown__list {
  border-radius: 5px;
  left: 0;
  right: 0;
  width: 100%;
}


.auth-phone .js-dropdown-country .js-dropdown__item {
  padding: 8px 15px 8px;
  background: #fff;
}


.auth-phone__error {
    color: #ff4545;
    margin-bottom: 10px;
}

.auth-phone .field--error input {
    border: 1px solid #ffaeae;
}

.auth-phone .field__error {
    color: #ff4545;
    font-size: 12px;
    padding-top: 3px;
}