.checkboxes {
    line-height: 1.8;
    margin-bottom: 18px;
}

.more_payments_pending {
    border: 1px solid var(--border);
    padding: 18px;
    font-size: 16px;
    line-height: 1.8;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,251,254,0.96));
    box-shadow: var(--shadow-md);
}

strong {
    font-weight: 800;
    color: var(--success);
}

p {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 10px;
}

.payment-page-shell {
    padding-top: 28px;
}

.payment-stage-card {
    max-width: 1120px;
}

.payment-stage-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 129, 197, 0.08);
}

.payment-stage-hero__content {
    min-width: 0;
}

.payment-stage-hero__logo {
    position: relative;
}

.payment-stage-hero__logo::before {
    content: "";
    position: absolute;
    inset: 12% -10% -12% -10%;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(154, 202, 60, 0.12), transparent 72%);
    filter: blur(12px);
    pointer-events: none;
}

.payment-stage-hero__logo img {
    position: relative;
    z-index: 1;
    display: block;
    height: 92px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 129, 197, 0.10));
}

.payment-stage-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.payment-stage-subtitle {
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 700;
    color: var(--text-soft);
}

.payment-stage-description {
    margin: 12px 0 0;
    max-width: 680px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-soft);
}

.summary-card {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,251,254,0.98) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 129, 197, 0.12), transparent);
}

.summary-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.summary-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(0, 129, 197, 0.10);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.summary-card__title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.summary-card__amount {
    min-width: 190px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #2aa0dc 0%, #0081C5 58%, #003E7E 100%);
    color: #fff;
    box-shadow: 0 18px 34px rgba(0, 129, 197, 0.24);
    text-align: center;
}

.summary-card__amount-label {
    display: block;
    font-size: 0.86rem;
    opacity: 0.9;
    margin-bottom: 6px;
    font-weight: 700;
}

.summary-card__amount strong {
    display: block;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.summary-item {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0, 129, 197, 0.08);
    box-shadow: var(--shadow-sm);
}

.summary-item__label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-soft);
    font-weight: 700;
}

.summary-item__value {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    font-weight: 800;
    word-break: break-word;
}

.summary-item__value--status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
}

.summary-item__value--status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(154, 202, 60, 0.16);
    flex: 0 0 auto;
}

.payment-alert {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 18px 0 22px;
    padding: 18px;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.payment-alert--warning {
    background: linear-gradient(180deg, rgba(255,252,242,0.98), rgba(255,250,245,0.98));
    border: 1px dashed rgba(215, 38, 61, 0.30);
}

.payment-alert__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(215, 38, 61, 0.10);
    color: var(--danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}

.payment-alert__content {
    color: #7a1e29;
    font-size: 0.98rem;
    line-height: 1.75;
    font-weight: 700;
}

.payment-stage-main {
    position: relative;
    z-index: 1;
}

.payment-frame-card,
.multi-payment-card,
.payment-locked-state,
.payment-error-state {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,251,254,0.98) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.payment-frame-card {
    overflow: hidden;
}

.payment-frame-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(0, 129, 197, 0.08);
    background:
        radial-gradient(circle at top left, rgba(0, 129, 197, 0.05), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,254,0.96));
}

.payment-frame-card__title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.payment-frame-card__secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(0, 129, 197, 0.10);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.payment-frame-card__body {
    padding: 22px;
}

.payment-iframe-wrap {
    width: 100%;
    min-height: 760px;
    height: 920px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(242,249,254,0.92), rgba(255,255,255,0.98));
    border: 1px solid rgba(0, 129, 197, 0.10);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.65),
        0 12px 28px rgba(0, 129, 197, 0.08);
}

iframe.payment_iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.multi-payment-card {
    padding: 24px;
}

.multi-payment-card__header {
    margin-bottom: 18px;
}

.multi-payment-card__header h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.multi-payment-card__header p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-soft);
}

.multi-payment-list {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.select-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0, 129, 197, 0.10);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.select-row:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 129, 197, 0.16);
}

.select-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.select-row__box {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(23, 130, 94, 0.34);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: all var(--transition);
}

.select-row__box::before {
    content: "\f00c";
    font-family: FontAwesome;
    font-size: 12px;
    color: transparent;
    transition: color var(--transition);
}

.select-row__text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 700;
}

.select-row input:checked + .select-row__box,
.select-row--selected .select-row__box {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 0 6px rgba(23, 130, 94, 0.10);
}

.select-row input:checked + .select-row__box::before,
.select-row--selected .select-row__box::before {
    color: #fff;
}

.select-row input:checked ~ .select-row__text,
.select-row--selected .select-row__text {
    color: var(--success);
}

.multi-payment-submit {
    min-width: 240px;
}

.payment-locked-state,
.payment-error-state {
    padding: 28px 22px;
    text-align: center;
}

.payment-locked-state {
    border: 1px solid rgba(185, 137, 0, 0.22);
    background: linear-gradient(180deg, rgba(255,252,242,0.98), rgba(255,249,235,0.98));
}

.payment-error-state {
    border: 1px solid rgba(215, 38, 61, 0.18);
    background: linear-gradient(180deg, rgba(255,250,250,0.98), rgba(255,245,245,0.98));
}

.payment-locked-state__icon,
.payment-error-state__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.payment-locked-state__icon {
    background: rgba(185, 137, 0, 0.12);
    color: #c28e00;
}

.payment-error-state__icon {
    background: rgba(215, 38, 61, 0.10);
    color: var(--danger);
}

.payment-locked-state__text,
.payment-error-state__text {
    max-width: 520px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 800;
    color: var(--text);
}

.payment-error-state__text a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.payment-contact-box {
    margin-top: 24px;
}

.knas-details .r {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    line-height: 1.3;
}

.knas-details .r + .r {
    border-top: 1px solid #ddd;
    padding: 6px 0;
}

.knas-details .r .val {
    font-weight: 800;
}

.knas-details .r .key {
    font-weight: 500;
}

.cb {
    margin: 0 0 10px;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.cb input {
    display: none;
}

.cb input + label {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-inline-end: 10px;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px #368336;
}

.cb input:checked ~ label {
    color: #368336;
    font-weight: 700;
}

.cb input:checked + label {
    background: #368336;
}

.cb input + label:before {
    content: '\f00c';
    font-family: fontAwesome;
    color: white;
    line-height: 20px;
    width: 20px;
    height: 20px;
    display: table;
    text-align: center;
    font-size: 12px;
}

.butts {
    display: flex;
    justify-content: space-between;
}

.butts > button {
    margin: 0;
}

button.button.submit.red {
    color: #640000;
    background: transparent;
    font-weight: 400;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .summary-card__header,
    .payment-frame-card__header,
    .payment-stage-hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .summary-card__amount {
        min-width: 0;
        width: 100%;
    }

    .payment-frame-card__header {
        display: grid;
    }

    .payment-frame-card__secure {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .payment-page-shell {
        padding-top: 16px;
    }

    .payment-stage-card {
        border-radius: 22px;
    }

    .payment-stage-hero {
        gap: 14px;
        margin-bottom: 16px;
        padding-bottom: 18px;
    }

    .payment-stage-hero__logo img {
        height: 60px;
        max-width: 180px;
    }

    .payment-stage-title {
        font-size: 1.72rem;
    }

    .payment-stage-subtitle,
    .payment-stage-description {
        font-size: 0.95rem;
    }

    .summary-card {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .summary-card__title {
        font-size: 1.14rem;
    }

    .summary-card__amount {
        padding: 14px 16px;
        border-radius: 18px;
    }

    .summary-card__amount strong {
        font-size: 1.6rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-item {
        padding: 14px;
        border-radius: 16px;
    }

    .payment-alert {
        gap: 10px;
        padding: 14px;
        border-radius: 18px;
    }

    .payment-alert__icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .payment-alert__content {
        font-size: 0.93rem;
    }

    .payment-frame-card,
    .multi-payment-card,
    .payment-locked-state,
    .payment-error-state {
        border-radius: 20px;
    }

    .payment-frame-card__header,
    .payment-frame-card__body,
    .multi-payment-card {
        padding: 16px 14px;
    }

    .payment-frame-card__title,
    .multi-payment-card__header h3 {
        font-size: 1.08rem;
    }

    .payment-frame-card__secure {
        width: 100%;
        justify-content: center;
    }

    .payment-iframe-wrap {
        min-height: 540px;
        height: 640px;
        border-radius: 18px;
    }

    .select-row {
        min-height: 60px;
        padding: 14px;
        border-radius: 14px;
        gap: 12px;
    }

    .select-row__text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .multi-payment-submit {
        width: 100%;
        min-width: 0;
    }

    .payment-locked-state,
    .payment-error-state {
        padding: 22px 16px;
    }

    .payment-locked-state__icon,
    .payment-error-state__icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .payment-locked-state__text,
    .payment-error-state__text {
        font-size: 0.96rem;
    }
}