html {
    background-image: var(--background-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: #F5F5F6;
}

@media (max-width: 1023px) and (-webkit-min-device-pixel-ratio: 1.5),
(max-width: 1023px) and (min-resolution: 144dpi), (max-width: 1023px) and (min-resolution: 1.5dppx) {
    html {
        background-image: var(--background-image-retina);
    }
}

.form {
    width: 100%;
    z-index: 2;
}
.step-first {
    max-width: 878px;
    padding: 64px;
    padding-bottom: 52px;
}

.gift-title {
    width: 100%;
}

#cardDate-error {
    bottom: -26px;
}

.step-second {
    max-width: 974px;
    padding: 68px 70px 48px 112px;
    padding-bottom: 52px;
}

.step-third {
    max-width: 512px;
    padding: 64px 80px 54px 80px;
}

@media (max-width: 679px) {
    .step-first {
        padding: 32px;
        overflow: hidden;
    }

    .step-third {
        display: flex;
        flex-direction: column;
        padding-top: 56px !important;
    }

    .payment-button-giftcard {
        margin-top: auto;
    }

    .amount__text {
        font-size: 11px;
    }

}

::-webkit-scrollbar {
    display: none;
}

@media (max-width: 880px) {
    .step-second .header {
        margin-top: 48px;
    }
}

.title {
    font-size: 16px;
    line-height: 19px;
    color: #000;
    font-weight: 600;
}

.caption-wrapper {
    display: flex;
    flex-direction: column;
}

.caption {
    font-size: 32px;
    line-height: 37.5px;
    color: #000;
    font-weight: bold;
}

@media (max-width: 500px) {
    .caption {
        font-size: 24px;
        line-height: 28px;
    }
}

.caption-image {
    margin-left: 20px;
}

@media (max-width: 500px) {
    .caption-image {
        margin: 0;
        margin-bottom: 32px;
    }

    .caption-image img {
        transform: translateX(-10px);
    }
}

@media (max-width: 878px) {
    .caption-image {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

    .caption-image img {
        transform: none;
        width: 133px;
        height: 75px;
    }

    .gift-title {
        max-height: 133px;
    }
}


.header {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 500px) {
    .header {
        flex-direction: column-reverse;
    }
}

.header-notation {
    font-size: 14px;
    line-height: 17px;
    max-width: 476px;
    margin-top: 16px;
    font-weight: normal;
}

@media (max-width: 679px) {
    .header-notation {
        margin-top: 16px;
    }
}

.notation {
    margin-right: 24px;
    font-size: 14px;
    line-height: 17px;
    color: #354052;
}

@media (max-width: 679px) {
    .notation {
        margin-right: 0;
    }
}

.info-input {
    margin-top: 32px;
}

@media (max-width: 550px) {
    .info-input {
        margin-top: 0;
    }
}

.info-input-wrapper {
    margin-top: 8px;

}

.flex-wrapper {
    display: flex;
    flex-wrap: wrap;
}

@media (min-width: 714px) {
    .info-input-wrapper {
        margin-top: 8px;
    }
}

.info-input-wrapper > div {
    margin-top: 24px;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    margin-bottom: 24px;
}

@media (min-width: 868px) {
    .input-group {
        width: 100%;
        max-width: 312px;
        margin-right: 48px;
    }
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group-last-step2:last-child {
    margin-bottom: 24px;
}

.rules-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.action {
    display: flex;
    justify-content: space-between;
    margin-top: 47px;
    align-items: center;
}

@media (max-width: 550px) {
    .action {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 31px;
    }

    .rules-wrapper {
        margin-bottom: 30px;
    }
}

.agree {
    display: inline-block;
    vertical-align: middle;
    white-space: normal;
    font-size: 12px;
    line-height: 12px;
    color: #354052;
    max-width: calc(100vw - 95px);
}

.agree a {
    font-size: 12px;
    color: #0264b2;
    text-decoration: underline;
}

.info-action {
    display: flex;
    align-items: baseline;
    margin: 0 -12px;
    margin-top: 32px;
}

@media (max-width: 550px) {
    .info-action {
        margin: 0;
        margin-top: 24px;
        justify-content: space-between;
    }
}

.info-action > div {
    margin: 0 12px;
}

@media (max-width: 550px) {
    .info-action > div {
        margin: 0;
    }
}

.link {
    color: var(--color-accent);
    text-decoration-line: none;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    cursor: pointer;
}

.amount {
    margin-top: 40px;
}

.info-output-wrapper {
    display: flex;
    margin-top: 33px;
}

@media (max-width: 500px) {
    .info-output-wrapper {
        flex-direction: column;
        margin-top: 28px;
    }

    .amount {
        width: calc(100% + 30px);
    }
}

.info-card-wrapper {
    width: 100%;
    margin-bottom: 24px;
}

.info-inner {
    width: 100%;
}

@media (min-width: 501px) and (max-width: 713px) {
    .info-card-wrapper {
        margin-right: 20px;
        min-width: 50%;
    }
}

@media (min-width: 714px) {
    .info-card-wrapper {
        flex-basis: 33%;
        min-width: 33%;
        margin-right: 32px;
    }

    .info-inner {
        max-width: 70%;
    }
}

.info-yourself {
    margin-top: 24px;
}

.info-yourself__wrap {
    display: flex;
    flex-wrap: wrap;
}

.info-yourself .title {
    margin-bottom: 32px;
}

@media (max-width: 500px) {
    .info-yourself {
        margin-top: 8px;
    }
}

.info-yourself .row > div {
    margin-top: 41px;
}

@media (max-width: 500px) {
    .info-yourself .row > div {
        margin-top: 32px;
    }
}

.paymnent-action {
    margin-top: 8px;
}

@media (max-width: 500px) {
    .paymnent-action {
        margin-top: 32px;
    }
}

@media (max-width: 550px) {
    .paymnent-action .title {
        align-self: center;
    }
}

.payment-group {
    display: flex;
    align-items: flex-start;
    margin: -8px;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

@media (max-width: 550px) {
    .payment-group {
        align-items: center;
        flex-direction: column;
    }
}

.paymnent-action {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-group > * {
    margin: 8px !important;
}

@media (max-width: 550px) {
    .payment-group > * {
        width: 100%;
    }
}

@media (min-width: 501px) {
    .caption-wrapper.caption-payment {
        width: 100%;
        align-items: center;
    }
}

.caption-image-payment {
    display: none;
}

@media (max-width: 500px) {
    .caption-image-payment {
        display: block;
    }
}

.payment {
    display: flex;
    justify-content: space-around;
    margin-top: 48px;
}

@media (max-width: 550px) {
    .payment {
        flex-direction: column;
        margin-top: 0;
    }
}

.payment-info {
    padding-top: 26px;
    width: 40%;
}

@media (max-width: 550px) {
    .payment-info {
        width: 100%;
    }
}

.card-info {
    width: 60%;
}

.card-info.custom {
    width: 100%;
}

@media (max-width: 550px) {
    .card-info {
        margin: 0;
        width: 100%;
    }
}

.payment-info > div {
    margin-bottom: 8px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 32px;
    position: relative;
}

.form-actions.custom {
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

@media (max-width: 550px) {
    .sender-form {
        margin-left: -32px;
        margin-right: -32px;
        width: 100vw !important;
    }
}

[data-name="amountControl"]:after {
    content: ' ₽';

}

.input-value--amount:after {
    content: ' ₽';
    font-size: 30px;
}
.payment-button-giftcard {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.payment-agree {
    align-self: center;
    padding-right: 20px;
    text-align: left;
    cursor: default;
}

.payment-agree.custom {
    max-width: 232px;
    text-align: center;
    font-weight: normal;
    font-size: 12px;
    line-height: 16px;
    padding: 0;
    margin: 0;
}
@media (max-width: 550px) {
    .payment-button-giftcard {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }
    .payment-agree {
        text-align: center;
        padding: 0;
    }
    .payment-button-giftcard .form-actions {
        width: 100%;
        justify-content: center;
    }
}

.payment.custom {
    margin-top: 20px;
}

.table {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.table__cell {
    flex: 0 1 auto;
}

.table__cell--todate {
    display: none;
    margin-left: 51px;
    flex: 0 0 auto;
}

@media (min-width: 501px) and (max-width: 713px) {
    .table {
        flex-direction: column;
    }

    .table__cell--todate {
        margin-left: 0;
    }
}

@media (max-width: 500px) {
    .table__cell--todate {
        margin-left: 47px;
    }
}

.table__cell--todate.is-visible {
    display: block;
}

.personal-data {
    padding-top: 20px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.personal-data__info {
    position: relative;
    margin-bottom: 16px;
    padding: 12px 24px 4px 46px;
    font-weight: normal;
    font-size: 14px;
    line-height: 19px;
    background: #F5F5F5;
    border-radius: 16px;
}

.personal-data__info::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 16px;
    width: 18px;
    height: 18px;
    background-image: url('/static/custom/3204/new/img/info-icon.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 680px) {

    .personal-data {
        padding-top: 0;
    }
    .personal-data__info {
        margin-top: 0;
    }
}

