@font-face {
    font-family: 'FSElliotPro';
    src: url('fonts/FSElliot/FSElliotPro-Bold.eot');
    src: url('fonts/FSElliot/FSElliotPro-Bold.eot?#iefix') format('embedded-opentype'),
         url('fonts/FSElliot/FSElliotPro-Bold.woff') format('woff'),
         url('fonts/FSElliot/FSElliotPro-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

.sberpay_button {
    min-width: 350px !important;
    height: 45px !important;
    border-radius: 4px;
    background-color: #21A038;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.sberpay-button_text {
    font-family: 'Roboto', sans-serif;
}

.sberpay-button_logo {
    background-image: url("../img/SberPayLogo.svg");
    width: 60px;
    display: block;
    height: 28px;
    background-repeat: no-repeat;
    background-size: cover;
}

.sberpay-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
    
@keyframes spin {
    to { transform: rotate(360deg); }
}

.sberpay_modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFF;
    overflow: scroll;
    z-index: 999;
}

.sberpay_modal {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    padding: 20px;
    background: #fff;
    transform: translate(-50%, -50%);
    max-width: 450px;
    min-width: 450px;
    z-index: 999;
    font-family: 'FSElliotPro', Verdana, Arial;
}

.overflow-hidden {
    overflow-y: hidden;
}

.sberpay-payment__submit {
    background: linear-gradient(90.24deg, #B6E348 0.14%, #6ED740 28.97%, #6ADA6D 53.53%, #73DFA7 70.08%, #6DD4C2 102.64%);
    border-radius: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 20px 0;
    margin-top: 16px;
    font-weight: 700;
    color: #FFF;
    cursor: pointer;
}

.sberpay-payment__text {
    font-size: 35px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin: 0 0 10px;
}

.sberpay-payment__tip,
.sberpay-payment__error {
    text-align: center;
    font-size: 14px;
    margin: 20px 0;
}

.sberpay-payment__error {
    display: none;
}

.sberpay-payment__lic {
    color: #8f8f8f;
    text-align: center;
    margin: 80px auto 0;
    width: 300px;
}

.sberpay-payment-submit {
    margin-top: 12px;
    padding: 16px 0 24px;
    background-color: #ffffff;
}

.sberpay-wrapp {
    margin-top: 40px;
    display: flex;
}

.sberPayMessage {
    font-size: 18px;
    display: block;
    margin-top: 15px;
    text-align: center;
}

.sberpay-payment__error.unavailable,
.sberpay-payment__error.registered {
    color: red;
}

.sberPayMessageSuccess {
    color: green;
}

.iti__flag-container {
    font-size: 16px;
    line-height: 24px;
    color: #002D73;
}

.payment-card-sberpay__title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    color: #002D73;
}

.payment-card-sberpay__text {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
    color: #002D73;
}

.payment-card-sberpay__text span {
    display: block;
}

.payment-card-sberpay-bottom {
    margin-top: 40px;
}

.payment-card-sberpay__link {
    display: inline-block;
    text-decoration: underline;
    color: #14A0E6;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
}

.sberpay__span {
    display: block;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.02em;
    color: #6681AB;
    margin-bottom: 8px;
    font-weight: 600;
}

.sberpay__input {
    width: 304px;
    padding: 16px 24px;
    height: 64px;
    border: none !important;
    font-size: 16px;
    line-height: 24px;
    color: #002D73 !important;
    background: #F2F4F7 !important;
    border-radius: 16px !important;
    margin-bottom: 4px;
    outline: none;
}

.sberpay-label label.error {
    display: inline;
    left: 0;
    right: 0;
    color: tomato;
    font-size: 12px;
    top: 70px;
    float: none;
    visibility: visible;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
}

input.error {
    background-color: #F2F4F7;
}

.sberpay__input::placeholder {
    color: #002D73 !important;
}

.sberpay_btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 50%;
    border: 1px solid #002D73;
    background-color: transparent;
    padding: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.sberpay_btn-close svg {
    width: 15px;
    height: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-53%, -50%);
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag, .iti--separate-dial-code .iti__selected-flag {
    border-radius: 16px 0 0 16px;
}

@media (max-width: 800px) {
    .sberpay_button {
        min-width: 99% !important;
        max-width: 99% !important;
        margin: 20px auto;
    }
}

@media screen and (max-width: 450px) {
    .sberpay_modal {
        min-width: 100%;
        width: 100%;
    }

    .sberpay__input {
        width: calc(100vw - 57px);
    }
}