.pay-page {
    min-height: 100vh;
    background: #F4F6FA;
    color: #101C40;
}

.pay-page header {
    position: static;
}

.pay-page main {
    min-height: 650px;
}

.payment-stage {
    min-height: 650px;
    padding: 92px 0 90px;
    display: grid;
    place-items: center;
}

.payment-card {
    width: min(calc(100% - 32px), 390px);
    border-radius: 28px;
    overflow: hidden;
    background: #101C40;
    border: 1px solid rgba(16, 28, 64, 0.08);
    box-shadow: 0 18px 46px rgba(16, 28, 64, 0.08);
}

.payment-support {
    min-height: 142px;
    padding: 38px 56px 42px;
    background: #101C40;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 14px;
}

.support-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #A5DE07;
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.support-icon::before {
    content: "\260E";
    color: #101C40;
    font-size: 30px;
    line-height: 1;
    transform: rotate(-15deg);
}

.payment-support span {
    display: block;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.12;
}

.payment-support a {
    display: inline-block;
    color: #A5DE07;
    font-size: 23px;
    font-weight: 900;
    margin-top: 4px;
}

.payment-body {
    padding: 34px 32px 32px;
    border-radius: 28px;
    background: #FFFFFF;
    margin-top: -22px;
}

.payment-body h1,
.payment-body h2 {
    margin: 0 0 16px;
    max-width: none;
    text-align: left;
    color: #303848;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #303848;
}

.payment-body p {
    margin: 0 0 26px;
    color: #505866;
    font-size: 16px;
    line-height: 1.45;
}

.payment-form {
    display: grid;
    gap: 24px;
}

.payment-input,
.payment-select,
.payment-copy-field {
    width: 100%;
    min-height: 48px;
    border: 1px solid #D6DCE6;
    border-radius: 5px;
    background: #FFFFFF;
    padding: 12px 16px;
    color: #303848;
    font-size: 16px;
    outline: none;
}

.payment-input:focus,
.payment-select:focus {
    border-color: #03D9FF;
    box-shadow: 0 0 0 3px rgba(3, 217, 255, 0.14);
}

.payment-input[readonly] {
    background: #FAFBFD;
    color: #555F70;
}

.payment-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #101C40;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.payment-button.gradient {
    border-radius: 4px;
    background: linear-gradient(145.92deg, #03D9FF 9.35%, #A5DE07 81.45%);
    color: #101C40;
}

.payment-button.secondary {
    background: #EEF2F6;
    color: #101C40;
    border: 1px solid #D6DCE6;
}

.payment-button.is-waiting,
.payment-button:disabled {
    cursor: default;
}

.payment-button.is-waiting {
    opacity: 1;
}

.payment-choice {
    min-height: 48px;
    border: 1px solid #C9D0DB;
    border-radius: 7px;
    background: #FFFFFF;
    color: #4A5260;
    padding: 9px 14px;
    font-size: 16px;
    line-height: 1.25;
    cursor: pointer;
}

.payment-choice.is-selected {
    border-color: #101C40;
    background: #F3F6FA;
    color: #101C40;
    font-weight: 800;
}

.payment-message {
    min-height: 18px;
    margin: 0;
    color: #A12A1E;
    font-size: 13px;
    line-height: 1.35;
}

.payment-message.success {
    color: #157347;
}

.payment-step {
    display: none;
}

.payment-step.is-active {
    display: block;
}

.payment-actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.payment-methods {
    display: grid;
    gap: 24px;
    margin: 28px 0 24px;
}

.masked-data {
    display: grid;
    gap: 24px;
}

.receipt-card {
    width: min(calc(100% - 32px), 372px);
    padding: 36px 52px 52px;
    border-radius: 14px;
    background: #101C40;
    color: #FFFFFF;
    box-shadow: 0 18px 46px rgba(16, 28, 64, 0.12);
}

.receipt-card h1 {
    margin: 0 0 20px;
    color: #FFFFFF;
    font-size: 29px;
    line-height: 1.25;
    text-align: center;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #FFFFFF;
}

.receipt-box {
    min-height: 193px;
    padding: 20px 19px;
    border-radius: 12px;
    background: linear-gradient(145.92deg, #03D9FF 9.35%, #A5DE07 81.45%);
    color: #101C40;
    position: relative;
}

.receipt-timer {
    text-align: right;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 28px;
}

.receipt-line {
    display: grid;
    gap: 10px;
    margin-top: 13px;
}

.receipt-line span {
    font-size: 13px;
}

.receipt-line strong {
    font-size: 16px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.receipt-amount-stack {
    display: grid;
    gap: 3px;
    align-items: start;
}

.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
}

.crypto-wallet-row {
    grid-template-columns: minmax(0, 1fr);
}

.copy-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(16, 28, 64, 0.14);
    border-radius: 10px;
    background: rgba(16, 28, 64, 0.10);
    color: #101C40;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0;
    position: relative;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.copy-button::before,
.copy-button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.copy-button::before {
    transform: translate(-30%, -65%);
    background: transparent;
}

.copy-button::after {
    transform: translate(-70%, -35%);
    background: rgba(165, 222, 7, 0.22);
}

.copy-button:hover,
.copy-button:focus-visible {
    background: rgba(16, 28, 64, 0.18);
    box-shadow: 0 8px 18px rgba(16, 28, 64, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.receipt-box .copy-row {
    display: block;
}

.receipt-box .copy-button {
    position: absolute;
    width: 24px;
    height: 27px;
    border: 0;
    border-radius: 0;
    background: transparent url("/data/img/receipt-copy-icon.png") center / contain no-repeat;
    box-shadow: none;
    color: #101C40;
    transform: none;
    padding: 0;
}

.receipt-box .receipt-line:nth-child(2) .copy-button {
    left: 187px;
    top: 80px;
}

.receipt-box .receipt-line:nth-child(3) .copy-button {
    left: 129px;
    top: 132px;
}

.receipt-box .copy-button::before,
.receipt-box .copy-button::after {
    display: none;
}

.receipt-box .copy-button:hover,
.receipt-box .copy-button:focus-visible {
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

.receipt-card .payment-actions {
    gap: 16px;
    margin-top: 47px;
}

.receipt-card .payment-button.gradient {
    min-height: 50px;
    border-radius: 4px;
}

.receipt-card .payment-button.secondary {
    display: none;
}

.pay-page.payment-receipt-mode header .header-wrapper {
    justify-content: center;
}

.pay-page.payment-receipt-mode header nav,
.pay-page.payment-receipt-mode header .btns-wrapper,
.pay-page.payment-receipt-mode footer,
.pay-page.payment-receipt-mode .admin-shortcut {
    display: none;
}

.pay-page.payment-receipt-mode main {
    min-height: calc(100vh - 70px);
}

.pay-page.payment-receipt-mode .payment-stage {
    min-height: calc(100vh - 70px);
    padding: 85px 0 90px;
    place-items: start center;
}

.crypto-address {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-shortcut {
    position: fixed;
    right: 18px;
    bottom: 18px;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #FFFFFF;
    border: 1px solid #D9E0E9;
    color: #101C40;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(16, 28, 64, 0.08);
}

@media (max-width: 1024px) {
    .pay-page header nav,
    .pay-page header .btns-wrapper {
        display: none;
    }

    .pay-page .media-1024 {
        display: block !important;
    }

    .payment-stage {
        min-height: 650px;
        padding: 72px 0;
    }
}

@media (max-width: 640px) {
    .payment-stage {
        min-height: 560px;
        padding: 44px 0 56px;
    }

    .payment-card,
    .receipt-card {
        width: min(calc(100% - 28px), 372px);
    }

    .payment-support {
        min-height: 118px;
        padding: 28px 28px 36px;
    }

    .support-icon {
        width: 46px;
        height: 46px;
    }

    .payment-support span,
    .payment-support a {
        font-size: 20px;
    }

    .payment-body {
        padding: 30px 26px 28px;
    }

    .payment-body h1,
    .payment-body h2 {
        font-size: 23px;
    }

    .payment-body p {
        font-size: 15px;
    }

    .payment-input,
    .payment-select,
    .payment-copy-field,
    .payment-button,
    .payment-choice {
        font-size: 15px;
    }

    .receipt-card {
        padding: 30px clamp(28px, 8vw, 52px) 44px;
    }

    .admin-shortcut {
        display: none;
    }
}
