.vk-payment-form,
.vk-payment-form *,
.vk-payment-form *:before,
.vk-payment-form *:after {
    box-sizing: border-box;
}

.vk-payment-form {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19.5px;
    padding: 30px 32px 32px;
    background: #F8FBFF;
}

.vk-payment-form p {
    margin: 0;
}

.vk-payment-form__container {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.vk-payment-form .logo {
    display: block;
    margin: 0 auto;
    width: 114px;
    height: auto;
}

.vk-payment-form .title {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    line-height: 29.26px;
    max-width: 376px;
    margin: 24px auto 0;
}

.vk-payment-form .main {
    margin-top: 40px;
    margin-bottom: 24px;
}

.vk-payment-form .radio {
    display: grid;
    gap: 16px;
}

.vk-payment-form .radio__item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 17px;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    background: #FFF;
    cursor: pointer;
}

.vk-payment-form .radio__item input[name="payment-option"] {
    display: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

input.radio__item-value {
    width: 100%;
    color: #282828;
    font-weight: 200;
    font-size: 16px;
    border: 1px solid #F0F0F0;
    border-radius: 3px;
    padding: 5px;
    text-align: center;
}




.radio__price-input {
    display: flex;
    max-width: 130px;
}

.vk-payment-form .radio__item:has(input:checked) .radio__price-input {

    color: #15427c;
    font-weight: 600;
}

.vk-payment-form .radio__item:has(input:checked) .radio__price-input input {
    border: 1px solid #273081;
}

.vk-payment-form .radio__item:has(input:checked) {
    border-color: transparent;
    box-shadow:
        0 0 0 0 #005676,
        0 0 0 1px #273081;
}

.vk-payment-form .radio__icon {
    min-width: 16px;
    min-height: 16px;
    border: 1px solid #282828;
    border-radius: 50%;
    position: absolute;
}

.vk-payment-form .radio__item:has(input:checked) .radio__icon {
    background: linear-gradient(135deg, #005676 0%, #273081 100%);
}

.vk-payment-form .radio__item:has(input:checked) .radio__icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #FFF;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.vk-payment-form .radio__texts {
    text-align: left;
    margin-left: 28px;
    width: 100%;
}

.vk-payment-form .radio__price {
    margin-top: 24px;
    color: #282828;
    font-weight: 100;
    flex-basis: 50%;
    font-size: 16px;
}

.vk-payment-form .checkbox {
    margin: 24px 17px;
    width: 100%;
    font-weight: 100;
    text-align: left;
    cursor: pointer;
}

.vk-payment-form .checkbox label {
    display: flex;
    align-items: center;
}

.vk-payment-form .checkbox input {
    display: none;
}

.vk-payment-form .checkbox__icon {
    position: relative;
    border: 1px solid transparent;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    box-shadow:
        0 0 0 0 #005676,
        0 0 0 1px #273081;
}

.vk-payment-form .checkbox input:checked+.checkbox__icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 10px;
    background-image: url("../images/checkmark.svg");
}

.vk-payment-form .checkbox__text {
    margin-left: 24px;
}

.vk-payment-form .inputs {
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
}

.vk-payment-form .input {
    padding: 0 12px;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    max-height: 35px;
    min-height: 35px;
    width: 100%;
}

.vk-payment-form .input::placeholder {
    font-weight: 100;
    color: #282828;
}

.vk-payment-form .input:disabled {
    background: #F0F0F0;
    cursor: not-allowed;
}

.vk-payment-form .input,
.vk-payment-form .input::placeholder {
    font-size: 16px;
    line-height: 19.5px;
}

.vk-payment-form .inputs__error {
    display: none;
    font-size: 14px;
    text-align: left;
    color: #D32F2F;
    margin-top: 4px;
    margin-left: 12px;
}

.vk-payment-form .buttons {
    display: grid;
    gap: 12px;
}

.vk-payment-form .buttons__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #005676 0%, #273081 100%);
    color: #FFF;
    border-radius: 10px;
    padding: 20px 11px;
    border: none;
    cursor: pointer;
}

.vk-payment-form .buttons__item--sbp {
    background: #0F0738;
}

.vk-payment-form .buttons__item img {
    display: block;
    margin-left: 12px;
    max-height: 20px;
}

.vk-payment-form .footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vk-payment-form .footer__text {
    color: #DBDBDB;
}

.vk-payment-form .footer__logo {
    display: block;
    width: 48px;
    height: 25px;
    margin-left: 12px;
    margin-right: 8px;
}

@media (min-width: 834px) {
    .vk-payment-form {
        padding-top: 86px;
        padding-bottom: 52px;
        font-size: 24px;
        line-height: 29.26px;
    }

    .vk-payment-form .radio__texts {
        padding-right: 30px;
    }

    .vk-payment-form__container {
        max-width: 516px;
    }

    .vk-payment-form .logo {
        width: 156px;
        height: auto;
    }

    .vk-payment-form .title {
        margin: 28px auto 0;
        max-width: none;
    }

    .vk-payment-form .main {
        margin-top: 56px;
        margin-bottom: 32px;
    }

    .vk-payment-form .radio__icon {
        min-width: 20px;
        min-height: 20px;
    }

    .vk-payment-form .radio__item:has(input:checked) .radio__icon::before {
        width: 8px;
        height: 8px;
    }


    .vk-payment-form .radio__price {
        font-size: 16px;
        line-height: 24.38px;
    }

    .vk-payment-form .checkbox__icon {
        width: 20px;
        height: 20px;
    }

    .vk-payment-form .checkbox input:checked+.checkbox__icon::before {
        width: 10px;
        height: 7px;
    }

    .vk-payment-form .checkbox__text {
        font-size: 16px;
        line-height: 19.5px;
        margin-left: 16px;
    }

    .vk-payment-form .inputs {
        gap: 16px;
        margin-bottom: 56px;
    }

    .vk-payment-form .input {
        font-size: 20px;
        line-height: 24.38px;
        text-align: left;
        max-height: 48px;
        min-height: 48px;
    }

    .vk-payment-form .input::placeholder {
        font-size: 20px;
        line-height: 24.38px;
    }

    .vk-payment-form .inputs__error {
        font-size: 16px;
        margin-top: 8px;
    }

    .vk-payment-form .buttons__item {
        font-size: 20px;
        line-height: 24.38px;
        padding: 17px 22px;
    }

    .vk-payment-form .buttons__item img {
        max-height: 28px;
    }

    .vk-payment-form .footer__logo {
        margin-left: 10px;
        margin-right: 6px;
    }
}

.price__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.radio__price-input {
    gap: 4px;
    align-items: center;
}

.radio__price-input:last-child {
    justify-content: flex-end;
}

.incbtn {
    border: none;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F0F0F0;
    color: #fff;
    border-radius: 3px;
}

.incbtn.active {
    background-color: #15427c;
    cursor: pointer;
}