.donate-pay-table {
    table-layout: fixed;
}

.donate-pay-cell {
    text-align: center;
}

.donate-service-alert {
    width: 1160px;
    max-width: 98%;
    margin: 0 auto 20px;
    padding: 16px 20px;
    border: 2px solid #e7c78f;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff8ec 0%, #ffefd6 100%);
    color: #6f4311;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.45;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    box-shadow: 0 12px 26px rgba(86, 63, 19, 0.12);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.donate-service-alert__badge {
    display: inline-flex;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #f3dec0;
    color: #7a4a12;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(122, 74, 18, 0.12);
    flex: 0 0 auto;
}

.donate-service-alert__badge:before {
    content: '...';
}

.donate-service-alert__text {
    min-width: 0;
    flex: 1 1 auto;
}

.donate-service-alert--success {
    border-color: #8fc7a0;
    background: linear-gradient(180deg, #f3fff6 0%, #ddf5e3 100%);
    color: #174f28;
}

.donate-service-alert--success .donate-service-alert__badge {
    background: #2f8f4e;
    color: #ffffff;
    box-shadow: none;
}

.donate-service-alert--success .donate-service-alert__badge:before {
    content: 'OK';
}

.donate-service-alert--wait,
.donate-service-alert--manual {
    border-color: #e7c78f;
    background: linear-gradient(180deg, #fff8ec 0%, #ffefd6 100%);
    color: #6f4311;
}

.donate-service-alert--wait .donate-service-alert__badge {
    background: #f1dcbb;
    color: #7a4a12;
}

.donate-service-alert--manual {
    border-color: #e1bb7e;
    background: linear-gradient(180deg, #fff4e5 0%, #ffe8c9 100%);
    color: #7b4308;
}

.donate-service-alert--manual .donate-service-alert__badge {
    background: #d38b2d;
    color: #ffffff;
    box-shadow: none;
}

.donate-service-alert--manual .donate-service-alert__badge:before {
    content: '!';
}

.donate-service-alert--fail {
    border-color: #e2a4a0;
    background: linear-gradient(180deg, #fff4f3 0%, #ffe2df 100%);
    color: #842721;
}

.donate-service-alert--fail .donate-service-alert__badge {
    background: #b84c44;
    color: #ffffff;
    box-shadow: none;
}

.donate-service-alert--fail .donate-service-alert__badge:before {
    content: '!';
}

.donate-showcase {
    display: grid;
    width: 1160px;
    max-width: 98%;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.donate-pay-card {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 22px 20px 18px;
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(39, 63, 94, 0.12);
    text-align: left;
}

.donate-showcase-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
}

.donate-pay-title {
    margin: 0 0 10px;
    min-height: 29px;
    font-size: 24px;
    line-height: 1.2;
    color: #243447;
    text-align: center;
}

.donate-pay-text {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #52606d;
    text-align: center;
}

.donate-pay-form {
    display: flex;
    min-height: 0;
    margin: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.donate-pay-row {
    margin: 0 0 14px;
}

.donate-pay-row--methods {
    margin-top: auto;
}

.donate-pay-row--submit {
    margin-bottom: 0;
}

.donate-pay-label {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.4;
    color: #6b7785;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.donate-pay-input,
.donate-pay-select {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #cfd9e5;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2933;
    font-size: 15px;
    line-height: 44px;
    font-family: inherit;
    box-sizing: border-box;
}

.donate-pay-select {
    padding-right: 34px;
}

.donate-pay-input[readonly] {
    background: #f5f8fb;
    color: #243447;
    font-weight: bold;
}

.donate-pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.donate-pay-methods--products {
    align-items: stretch;
}

.donate-pay-method {
    display: block;
    position: relative;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.donate-pay-method--wide {
    grid-column: 1 / -1;
}

.donate-pay-method-input {
    position: absolute;
    opacity: 0;
}

.donate-pay-method-label {
    display: flex;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd9e5;
    border-radius: 8px;
    background: #f8fafc;
    color: #243447;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
}

.donate-pay-method-label--product {
    min-height: 58px;
}

.donate-pay-method-title {
    display: block;
}

.donate-pay-method-title--icon {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.donate-pay-method-icon {
    display: block;
    width: 30px;
    max-height: 30px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.donate-pay-method-note {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.35;
    color: #5f6c7b;
}

.donate-pay-method-input:checked + .donate-pay-method-label {
    border-color: #2c7be5;
    background: #eaf3ff;
    color: #174ea6;
}

.donate-pay-method-input:checked + .donate-pay-method-label .donate-pay-method-note {
    color: #174ea6;
}

.donate-pay-method-input:focus + .donate-pay-method-label,
.donate-pay-input:focus,
.donate-pay-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.18);
}

.donate-pay-button {
    display: block;
    width: 100%;
    height: 46px;
    margin: 6px 0 0;
    border: 1px solid #2c7be5;
    border-radius: 8px;
    background: #2c7be5;
    background-image: none;
    appearance: none;
    -webkit-appearance: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(44, 123, 229, 0.24);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.donate-pay-button:hover {
    background: #1d6fd8;
    border-color: #1d6fd8;
    box-shadow: 0 12px 26px rgba(29, 111, 216, 0.28);
}

.donate-pay-button:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(29, 111, 216, 0.22);
}

.donate-pay-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.2), 0 10px 24px rgba(44, 123, 229, 0.24);
}

.donate-pay-note {
    margin: 14px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #7b8794;
    text-align: center;
}

.donate-pay-note--global {
    width: 1160px;
    max-width: 98%;
    margin: 8px auto 0;
    font-size: 14px;
    line-height: 1.65;
}

.donate-pay-note--support {
    width: 1160px;
    max-width: 98%;
    margin: 0 auto 18px;
    padding: 12px 16px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #52606d;
    font-size: 14px;
    line-height: 1.55;
}

.donate-pay-link {
    color: #1d5fbf;
    font-weight: bold;
    text-decoration: none;
}

.donate-pay-link:hover,
.donate-pay-link:focus {
    text-decoration: underline;
}

.donate-product-list {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: #243447;
    font-size: 14px;
    line-height: 1.45;
}

.donate-product-list li {
    margin: 0 0 8px;
    padding: 9px 11px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f8fafc;
}

.donate-product-list li:last-child {
    margin-bottom: 0;
}

.donate-service-login-note {
    margin: auto 0 0;
    padding: 12px;
    border-radius: 8px;
    background: #f5f8fb;
}

.donate-guest-state {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
}

.donate-guest-state__text {
    margin-bottom: 0;
    font-size: 15px;
    color: #243447;
}

@media screen and (max-width: 1100px) {
    .donate-showcase {
        width: 760px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donate-card-noads {
        grid-column: 1 / -1;
        max-width: 369px;
        justify-self: center;
    }
}

@media screen and (max-width: 760px) {
    .donate-service-alert {
        width: auto;
        max-width: 94%;
        padding: 14px 16px;
        font-size: 15px;
        gap: 10px;
    }

    .donate-service-alert__badge {
        width: 30px;
        min-width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .donate-showcase {
        display: block;
        width: auto;
        max-width: 94%;
    }

    .donate-pay-note--global {
        width: auto;
        max-width: 94%;
        margin-top: 18px;
        font-size: 13px;
    }

    .donate-pay-note--support {
        width: auto;
        max-width: 94%;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .donate-showcase-card,
    .donate-card-noads {
        max-width: none;
        min-height: 0;
        margin: 0 auto 16px;
    }

    .donate-pay-methods {
        grid-template-columns: 1fr;
    }

    .donate-pay-method--wide {
        grid-column: auto;
    }
}
