* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
.non-active-link {
    pointer-events: none;
    opacity: 0.3;
    display: none!important;
}
.timer-container-result {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 16px;
    margin-left: -11px;
    margin-right: -11px;
}

.timer-container-result > * {
    margin-left: 11px;
    margin-right: 11px;
}
.alert {
    position: fixed;
    top: 8px;
    left: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    min-width: 296px;
    padding: 16px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    background-color: #009e69;
    color: #fff;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.32px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    z-index: 9999;
}

.alert > * {
    margin-left: 8px;
    margin-right: 8px;
}

.alert > *:first-child {
    margin-left: 0;
}

.alert > *:last-child {
    margin-right: 0;
}

.alert-error {
    background-color: #f53838;
    border-left: 4px solid #ff0000;
}
.alert__icon,
.alert svg {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.alert--visible {
    opacity: 1;
    visibility: visible;
}
body {
    background: #E6E9EE;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 610px;
    width: 100%;
    padding: 0 10px;
}

.card {
    background: #fff;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    padding: 20px;
    text-align: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: relative;
}

/* Safe-area поддержка с fallback */
@supports (padding: max(0px)) {
    .card {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

.logo {
    width: 100px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #343A40;
    text-align: left;
}

.hidden-section {
    display: none!important;
}

.timer {
    position: absolute;
    right: 10px;
    top: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 8px 0;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    background: #F8F9FB;
    min-width: 97px;
    width: 100px;
    margin: 0;
}

.timer > * {
    margin-left: 3px;
    margin-right: 3px;
}

.timer > *:first-child {
    margin-left: 0;
}

.timer > *:last-child {
    margin-right: 0;
}

.timer .icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-container-result .timer {
    position: static !important;
    margin: 10px auto;
}
.amount {
    display: block;
    background: transparent;
    max-width: 100%;
    text-align: left;
    width: 100%;
    border: 1px solid #C2C2C2;
    height: 56px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    padding: 16px 15px;
    font-size: 16px;
    font-weight: 500;
    color: black;
    letter-spacing: 0;
    margin-bottom: 20px;
}

.input-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    text-align: left;
    font-size: 14px;
    color: #1D2433;
}

.input {
    width: 100%;
    border: 1px solid #C2C2C2;
    height: 56px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    padding: 16px 15px;
    font-size: 16px;
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
}

.transfer-section {
    background: #E6E9EE;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.bank-icon {
    width: 127px;
    height: 56px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    -webkit-border-radius: 8px;
}

/* object-fit fallback для старых браузеров */
@supports (object-fit: cover) {
    .bank-icon {
        object-fit: cover;
    }
}

.how-title {
    text-align: center;
    margin: 25px 0 20px;
}

.instructions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 600;
    margin: 0;
    text-align: center;
    color: #1D2433;
}

.instructions > * {
    margin-top: 5px;
    margin-bottom: 5px;
}

.instructions > *:first-child {
    margin-top: 0;
}

.instructions > *:last-child {
    margin-bottom: 0;
}

.instructions span {
    line-height: 140%;
}


.cvu-section {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #E8EBF1;
}

.cvu-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.cvu-number {
    font-weight: bold;
    font-size: 16px;
}

.copy-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #BBD33B;
    border: none;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    color: black !important;
    font-size: 16px;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
    height: 56px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.submit-btn.disabled {
    background: #f3f9d4;
}

.submit-btn:hover {
    background: #aacc29;
}

.submit-btn.disabled:hover {
    background: #f3f9d4;
}

.customer-step-info-description-container {
    background: #FFFFFF;
    padding: 12px 8px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 30px;
    margin-bottom: 0;
}

.customer-step-info-description-container > * {
    margin-left: 4px;
    margin-right: 4px;
}

.customer-step-info-description-container > *:first-child {
    margin-left: 0;
}

.customer-step-info-description-container > *:last-child {
    margin-right: 0;
}

.customer-step-info-description {
    font-size: 14px;
    color: #1D2433;
    font-weight: 500;
    line-height: 1.5;
}

.customer-step-info-description strong {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.important-items {
    margin: 0;
    padding: 0;
}

.important-item {
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
    font-size: 14px;
    color: #1D2433;
    font-weight: 500;
}

.important-item:before {
    content: "-";
    position: absolute;
    left: 0;
    color: #1D2433;
}

.important-item:last-child {
    margin-bottom: 0;
}

.important-item-bold {
    font-weight: 600;
}

.copy-label {
    font-size: 16px;
    font-weight: 400;
    color: #1D2433;
}

.cvu-copy-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-right: 35px;
}

.copy-container {
    position: absolute;
    right: 0;
    display: flex;
}

.copy-done {
    display: none;
}

@media only screen and (min-width: 375px) {
    .card {
        padding: 25px;
    }
}

@media only screen and (min-width: 768px) {
    body {
        padding: 20px 0;
    }
    
    .container {
        max-width: 610px;
        padding: 0;
    }
    
    .card {
        padding: 50px;
    }
}

@media only screen and (max-width: 767px) {
    body {
        padding: 0;
    }

    .card {
        padding: 20px;
    }

    .cvu-copy-container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .cvu-copy-container > * {
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .cvu-copy-container > *:first-child {
        margin-top: 0;
    }
    
    .cvu-copy-container > *:last-child {
        margin-bottom: 0;
    }

    .customer-step-info-description-container {
        margin-top: 20px;
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 320px) {
    .card {
        padding: 15px;
    }
    
    .submit-btn {
        font-size: 14px;
        padding: 12px;
    }
}

@media only screen and (max-width: 767px) and (orientation: landscape) {
    .card {
        padding: 15px;
    }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.customer-step-info {
    margin-bottom: 20px;
}

.error-message {
    text-align: left;
    font-size: 12px;
    margin-top: 2px;
    color: red;
    display:none;
}

.customer-step-info.error .error-message {
    display:block;
}

.popup {
    max-width: 380px;
    margin: 50px auto 0;
    padding: 24px 16px;
    background-color: white;
    text-align: center;
    font-family: sans-serif;
    border-radius: 16px;
    -webkit-border-radius: 16px;
}

.popup-title {
    font-weight: bold;
    font-size: 18px;
    color: #000;
    margin-bottom: 16px;
}

.popup-text {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 16px;
}

.popup-link {
    color: #b2b500;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.popup-cancel {
    display: block;
    width: 100%;
    background-color: #f0f2ff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 44px;
}

#card-result {
    display:none;
    max-width: 90%;
    margin: 0 auto;
    margin-top: 50px;
    position: relative;
}

#card-main {
    display: block;
    position: relative;
}

#card-main.hidden {
    display: none;
}

#deeplinks {
    display: none;
}
@media only screen and (max-width: 372px) {
    #customer-number {
        font-size: 12px;
    }
}