.uoc-payment-hub,
.uoc-payment-hub * {
    box-sizing: border-box;
}

.uoc-payment-hub {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid rgba(15, 157, 88, 0.16);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(240, 253, 244, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
    color: #10231a;
}

.uoc-payment-hub a,
.uoc-payment-hub button,
.uoc-payment-hub input {
    font: inherit;
}

.uoc-payment-hub__head,
.uoc-payment-hub__body,
.uoc-payment-hub__inputs,
.uoc-payment-hub__actions,
.uoc-payment-hub__summary {
    display: grid;
    gap: 16px;
}

.uoc-payment-hub__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    margin-bottom: 18px;
}

.uoc-payment-hub__eyebrow {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 157, 88, 0.12);
    color: #0b6a3a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.uoc-payment-hub__head h2 {
    margin: 10px 0 8px;
}

.uoc-payment-hub__head p {
    margin: 0;
    opacity: 0.84;
}

.uoc-payment-hub__status,
.uoc-payment-chip,
.uoc-payment-app,
.uoc-payment-hub__qr,
.uoc-payment-hub__instructions,
.uoc-payment-field input,
.uoc-payment-field input[type="file"],
.uoc-payment-hub__note {
    border-radius: 20px;
}

.uoc-payment-hub__status,
.uoc-payment-chip,
.uoc-payment-hub__qr,
.uoc-payment-hub__instructions,
.uoc-payment-hub__note {
    padding: 16px;
    background: rgba(255, 255, 255, 0.85);
}

.uoc-payment-hub__status {
    min-width: 140px;
}

.uoc-payment-hub__status span,
.uoc-payment-chip span,
.uoc-payment-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.uoc-payment-copy-upi {
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(15, 157, 88, 0.28);
    border-radius: 999px;
    background: rgba(15, 157, 88, 0.08);
    color: #0b6a3a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.uoc-payment-hub__summary,
.uoc-payment-hub__inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uoc-payment-hub__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 16px;
}

.uoc-payment-step-pill {
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #0f172a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.uoc-payment-step-pill.is-active {
    border-color: var(--uoc-accent, #0f9d58);
    background: rgba(15, 157, 88, 0.12);
    color: #0b6a3a;
}

.uoc-payment-step-panels.is-hidden,
.uoc-payment-hub__steps.is-hidden,
.uoc-payment-hub__post-submit.is-hidden {
    display: none;
}

.uoc-payment-step-panel {
    display: none;
    gap: 18px;
}

.uoc-payment-step-panel.is-active {
    display: grid;
}

.uoc-payment-hub__cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.uoc-payment-cta,
.uoc-payment-mark {
    width: 100%;
    justify-content: center;
}

.uoc-payment-hub__cta-row > :only-child {
    grid-column: 1 / -1;
}

.uoc-payment-hub__subnote {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.uoc-payment-hub__body {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    margin: 20px 0;
}

.uoc-payment-app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.uoc-payment-app,
.uoc-payment-app--generic {
    display: grid;
    gap: 8px;
    justify-items: center;
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.88);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.uoc-payment-app:hover,
.uoc-payment-app--generic:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.uoc-payment-app.is-recommended {
    border-color: var(--uoc-accent, #0f9d58);
    box-shadow: 0 10px 24px rgba(15, 157, 88, 0.16);
}

.uoc-payment-app__icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
}

.uoc-payment-app__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.uoc-payment-app__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.uoc-payment-app__copy strong {
    font-size: 12px;
    line-height: 1.25;
}

.uoc-payment-app__copy span {
    font-size: 11px;
    line-height: 1.25;
    opacity: 0.72;
}

.uoc-payment-app--generic {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    border-color: var(--uoc-accent, #0f9d58);
}

.uoc-payment-hub__qr {
    display: grid;
    gap: 12px;
    align-content: start;
    text-align: center;
}

.uoc-payment-hub__qr img {
    width: min(240px, 100%);
    height: auto;
    margin: 0 auto;
    padding: 12px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.uoc-payment-hub__qr-placeholder {
    display: grid;
    min-height: 180px;
    align-items: center;
    justify-items: center;
    padding: 24px;
    border: 1px dashed rgba(15, 157, 88, 0.35);
    border-radius: 22px;
    color: #0b6a3a;
    font-weight: 700;
}

.uoc-payment-download-qr {
    justify-self: center;
}

.uoc-payment-hub__instructions {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.65;
}

.uoc-payment-hub__instructions p {
    margin: 0;
}

.uoc-payment-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.uoc-payment-field--file {
    display: grid;
    gap: 8px;
}

.uoc-payment-field input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

.uoc-payment-field a {
    color: var(--uoc-accent, #0f9d58);
    font-size: 13px;
    font-weight: 700;
}

.uoc-payment-hub__actions {
    grid-template-columns: repeat(3, minmax(0, auto));
    align-items: center;
    margin: 18px 0 12px;
}

.uoc-payment-mark.button.button-primary {
    background: var(--uoc-accent, #0f9d58);
    border-color: var(--uoc-accent, #0f9d58);
}

.uoc-payment-hub__note {
    font-weight: 600;
}

.uoc-payment-hub__note--intro,
.uoc-payment-hub__note--service {
    color: #1e293b;
}

.uoc-payment-hub__actions.is-hidden {
    display: none;
}

.uoc-checkout-inline-fields {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(15, 157, 88, 0.18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(240, 253, 244, 0.88) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.uoc-checkout-inline-fields p {
    margin: 0;
}

.uoc-checkout-inline-head {
    display: grid;
    gap: 4px;
}

.uoc-checkout-inline-head strong {
    color: #0b6a3a;
    font-size: 15px;
}

.uoc-checkout-inline-head span {
    color: #475569;
    font-size: 13px;
}

.uoc-checkout-upi-split__row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.7fr);
    gap: 10px;
}

.payment_method_upiocc_upi label img {
    max-height: 24px;
}

@media (max-width: 980px) {
    .uoc-payment-hub__head,
    .uoc-payment-hub__steps,
    .uoc-payment-hub__summary,
    .uoc-payment-hub__body,
    .uoc-payment-hub__inputs,
    .uoc-payment-hub__actions,
    .uoc-payment-hub__cta-row,
    .uoc-checkout-upi-split__row {
        grid-template-columns: 1fr;
    }

    .uoc-payment-app-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .uoc-payment-hub {
        padding: 18px;
        border-radius: 22px;
    }
}
