.popup-pay {
    max-width: 408px;
    padding: 18px;
}

.popup-pay__title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}
#popup-pay__form {
    margin-bottom: 10px;
}
.popup-pay__field {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    margin-bottom: 6px;
}
.popup-pay__inp {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-align-items: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
}
.popup-pay__field label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}
.popup-pay__field input {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 5px;
    border:  1px solid #ccc;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    width: 90%;
}

.popup-pay__clear {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    opacity: 0.8;
    cursor: pointer;    
    -webkit-transition: opacity 0.4s;    
    -o-transition: opacity 0.4s;    
    transition: opacity 0.4s;
}
.popup-pay__clear:hover {
    opacity: 1;
}
.popup-pay__valid {
    width: 100%;
}
.popup-pay__valid span {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
    color: #ff0000;
    opacity: 0;
    -webkit-transition: opacity 0.4s;
    -o-transition: opacity 0.4s;
    transition: opacity 0.4s;
}
.popup-pay__inp.error .popup-pay__valid span {
    opacity: 1;
}
.popup-pay__type {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-align-items: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;    
}
.popup-pay__radio {
    margin-bottom: 15px;
    margin-right: 20px;
}
.popup-pay__radio label {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
    color: #333;
    cursor: pointer;
}
.popup-pay__radio label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;    
}
.popup-pay__radio input:checked+label:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 12px;
    height: 12px;
    background-color: #ef5350;
    border-radius: 50%;   
}
.popup-pay__radio input {
    display: none;
}
.popup-pay__btn {
    text-align: center;
    margin-top: 5px;
}
.popup-pay__btn button {
    display: inline-block;
    vertical-align: top;
    padding: 10px 30px;
    border: 0 none;
    background-color: #ef5350;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-transition: background-color 0.4s;
    -o-transition: background-color 0.4s;
    transition: background-color 0.4s;
}
.popup-pay__btn button:hover {
    background-color: #e04d4a;
}
.popup-pay__dop {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
    text-align: center;
}

@media (min-width: 421px) {
    #popup-pay__form {
        padding: 15px;
        border: 1px solid #ccc;
    }
    .popup-pay__field label {
        width: 110px;
        margin-right: 20px;
    }
}

@media (max-width: 420px) {
    .popup-pay__field label {
        margin-right: 12px;
    }
}