body.swiftpay-payment-body {
    margin: 0;
    background: #f6f8fb;
    color: #111827;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100dvh !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: static !important;
    -webkit-overflow-scrolling: touch;
}

body.swiftpay-payment-body *,
body.swiftpay-payment-body *::before,
body.swiftpay-payment-body *::after {
    box-sizing: border-box;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.swiftpay-checkout-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.swiftpay-checkout-icons img {
    width: auto;
    max-width: 44px;
    height: 18px;
    object-fit: contain;
    padding: 2px 4px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.swiftpay-payment-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 22px;
    overflow: visible;
    background:
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.18) 1px, transparent 0) 0 0 / 22px 22px,
        linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
}

.swiftpay-payment-modal {
    width: min(880px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    padding: 22px;
    overflow: hidden;
}

.swiftpay-payment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.swiftpay-kicker,
.swiftpay-payment-modal p.swiftpay-kicker {
    margin: 0 0 5px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 720;
}

.swiftpay-subtitle,
.swiftpay-payment-modal p.swiftpay-subtitle {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.swiftpay-payment-modal h1,
.swiftpay-payment-modal h2,
.swiftpay-payment-modal p {
    margin-top: 0;
    letter-spacing: 0;
}

.swiftpay-payment-modal h1 {
    margin-bottom: 0;
    font-size: 21px;
    line-height: 1.18;
    font-weight: 760;
}

.swiftpay-total {
    min-width: 140px;
    text-align: right;
}

.swiftpay-total span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
}

.swiftpay-total strong {
    display: block;
    color: #111827;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 780;
    white-space: nowrap;
}

.swiftpay-stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.swiftpay-stepper span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 720;
}

.swiftpay-stepper span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
}

.swiftpay-stepper span.is-active {
    color: #111827;
}

.swiftpay-stepper span.is-active::before {
    background: #111827;
}

.swiftpay-method-panel {
    max-width: 620px;
    margin: 0 auto;
}

.swiftpay-panel-copy {
    margin-bottom: 12px;
}

.swiftpay-panel-copy h2 {
    margin-bottom: 3px;
    color: #111827;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 760;
}

.swiftpay-panel-copy p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.swiftpay-method-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.swiftpay-method-choice,
.swiftpay-back,
.swiftpay-amount-card button,
.swiftpay-copy-row button,
.swiftpay-proof-form button[type="submit"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    text-decoration: none !important;
    box-shadow: none;
}

.swiftpay-method-choice {
    display: grid !important;
    place-items: center;
    min-height: 76px;
    width: 100%;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111827 !important;
    padding: 12px !important;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.045) !important;
    outline: none;
}

.swiftpay-method-choice:hover,
.swiftpay-method-choice:active {
    background: #fff !important;
    border-color: #dbe2ea !important;
    color: #111827 !important;
}

.swiftpay-method-choice:focus-visible {
    border-color: #111827 !important;
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.swiftpay-method-choice[aria-pressed="true"] {
    background: rgba(var(--swiftpay-primary-rgb), 0.05) !important;
    border-color: var(--swiftpay-primary) !important;
    box-shadow: 0 8px 22px rgba(var(--swiftpay-primary-rgb), 0.12) !important;
}

.swiftpay-method-choice img {
    display: block;
    width: 92px;
    height: 30px;
    object-fit: contain;
}

.swiftpay-logo-fallback {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
}

.swiftpay-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.swiftpay-detail-nav span {
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.swiftpay-back {
    min-height: 34px;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111827 !important;
    padding: 0 12px !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 720;
}

.swiftpay-back:hover,
.swiftpay-back:active {
    background: #fff !important;
    color: #111827 !important;
    border-color: #dbe2ea !important;
}

.swiftpay-transfer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 244px;
    gap: 12px;
    min-width: 0;
}

.swiftpay-transfer-card,
.swiftpay-proof-card {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.swiftpay-transfer-card {
    padding: 14px;
}

.swiftpay-proof-card {
    padding: 10px;
}

.swiftpay-method-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.swiftpay-method-brand img {
    width: 102px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.swiftpay-method-brand > div {
    justify-self: end;
    text-align: right;
    min-width: 0;
}

.swiftpay-method-brand span {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 720;
}

.swiftpay-method-brand h2 {
    margin: 1px 0 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 780;
}

.swiftpay-amount-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    padding: 13px;
    margin-bottom: 10px;
}

.swiftpay-amount-card span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 3px;
}

.swiftpay-amount-card strong {
    display: block;
    color: #fff;
    font-size: clamp(22px, 3.4vw, 28px);
    line-height: 1.05;
    font-weight: 800;
    white-space: nowrap;
}

.swiftpay-amount-card button,
.swiftpay-copy-row button {
    min-height: 32px;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 740;
}

.swiftpay-amount-card button {
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    padding: 0 11px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.swiftpay-copy-grid {
    display: grid;
    gap: 7px;
    margin: 0 0 10px;
}

.swiftpay-copy-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1.4fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 9px;
    background: #fff;
}

.swiftpay-copy-row span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.swiftpay-copy-row strong {
    min-width: 0;
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.swiftpay-copy-row button {
    border: 1px solid #d1d5db !important;
    background: #fff !important;
    color: #111827 !important;
    padding: 0 10px !important;
}

.swiftpay-copy-row button:hover,
.swiftpay-copy-row button:active {
    background: #fff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

.swiftpay-guidance {
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
}

.swiftpay-guidance p,
.swiftpay-guidance pre {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.swiftpay-guidance p + p,
.swiftpay-guidance p + pre {
    margin-top: 7px;
}

.swiftpay-guidance pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
}

.swiftpay-qr-card {
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
    margin-bottom: 10px;
}

.swiftpay-qr {
    min-height: 138px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
}

.swiftpay-qr svg {
    width: 112px;
    height: 112px;
}

.swiftpay-qr-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

.swiftpay-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    padding: 9px 10px;
    margin-bottom: 10px;
}

.swiftpay-timer span {
    color: #92400e;
    font-size: 11px;
    line-height: 1.35;
}

.swiftpay-timer strong {
    color: #92400e;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.swiftpay-proof-form {
    display: grid;
    gap: 10px;
}

.swiftpay-upload-zone {
    display: grid;
    gap: 5px;
    place-items: center;
    min-height: 76px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    text-align: center;
    cursor: pointer;
}

.swiftpay-upload-zone span {
    color: #111827;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 740;
}

.swiftpay-upload-zone small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.swiftpay-upload-zone input {
    max-width: 100%;
    color: #64748b;
    font-size: 11px;
}

.swiftpay-proof-form button[type="submit"] {
    position: relative;
    overflow: hidden;
    min-height: 40px;
    border: 0 !important;
    border-radius: 8px !important;
    background: #111827 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 780;
    cursor: pointer;
}

.swiftpay-proof-form button[type="submit"] > * {
    position: relative;
    z-index: 1;
}

.swiftpay-proof-form button[type="submit"][data-loading="true"] {
    background: linear-gradient(135deg, color-mix(in srgb, var(--swiftpay-primary) 36%, #111827), #111827) !important;
    color: #fff !important;
}

.swiftpay-proof-form button[type="submit"][data-loading="true"]::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--swiftpay-upload-progress, 0%);
    background:
        radial-gradient(18px 10px at 16px 2px, rgba(255, 255, 255, 0.42) 42%, transparent 46%) 0 0 / 38px 18px repeat-x,
        linear-gradient(135deg, color-mix(in srgb, var(--swiftpay-primary) 92%, #fff), var(--swiftpay-primary));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: width 180ms ease;
    animation: swiftpay-liquid-wave 1.05s linear infinite, swiftpay-liquid-shake 1.9s ease-in-out infinite;
    z-index: 0;
}

.swiftpay-proof-form button[type="submit"][data-loading="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.24) 45%, transparent 72%);
    transform: translateX(-120%);
    animation: swiftpay-liquid-shine 1.5s ease-in-out infinite;
    z-index: 0;
}

.swiftpay-proof-form button[type="submit"]:hover,
.swiftpay-proof-form button[type="submit"]:active {
    background: #111827 !important;
    color: #fff !important;
}

.swiftpay-proof-form button:disabled {
    opacity: 1;
    cursor: wait;
}

.swiftpay-theme-applepay .swiftpay-proof-form button[type="submit"][data-loading="true"] {
    background: #6b7280 !important;
}

@keyframes swiftpay-liquid-wave {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 38px 0, 0 0;
    }
}

@keyframes swiftpay-liquid-shake {
    0%,
    100% {
        filter: saturate(1);
    }

    45% {
        filter: saturate(1.18) brightness(1.04);
    }
}

@keyframes swiftpay-liquid-shine {
    0% {
        transform: translateX(-120%);
    }

    70%,
    100% {
        transform: translateX(120%);
    }
}

.swiftpay-status {
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 13px;
}

.swiftpay-status-error {
    background: #fef2f2;
    color: #991b1b;
}

.swiftpay-success {
    text-align: center;
    padding: 28px 12px;
}

.swiftpay-success-mark {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: rgba(var(--swiftpay-primary-rgb), 0.1);
}

.swiftpay-success-mark svg {
    width: 62px;
    height: 62px;
    overflow: visible;
}

.swiftpay-success-mark circle,
.swiftpay-success-mark path {
    fill: none;
    stroke: var(--swiftpay-primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.swiftpay-success-mark circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: swiftpay-draw 520ms ease forwards;
}

.swiftpay-success-mark path {
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: swiftpay-draw 420ms ease 420ms forwards;
}

@keyframes swiftpay-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.swiftpay-success h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

@media (max-width: 760px) {
    body.swiftpay-payment-body {
        background: #f8fafc;
    }

    .swiftpay-payment-shell {
        display: block;
        min-height: auto;
        padding: 10px;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .swiftpay-payment-modal {
        width: 100%;
        min-height: auto;
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
        overflow: visible;
    }

    .swiftpay-payment-header {
        margin-bottom: 12px;
    }

    .swiftpay-payment-modal h1 {
        font-size: 17px;
    }

    .swiftpay-kicker,
    .swiftpay-payment-modal p.swiftpay-kicker,
    .swiftpay-subtitle,
    .swiftpay-payment-modal p.swiftpay-subtitle {
        font-size: 11px;
    }

    .swiftpay-total strong {
        font-size: 17px;
    }

    .swiftpay-stepper {
        margin-bottom: 12px;
    }

    .swiftpay-transfer-layout {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .swiftpay-proof-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        padding: 9px;
    }

    .swiftpay-qr-card,
    .swiftpay-timer {
        margin-bottom: 0;
    }

    .swiftpay-qr-card {
        display: none;
    }

    .swiftpay-transfer-card {
        padding: 10px;
    }

    .swiftpay-method-brand {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .swiftpay-method-brand::before {
        display: none;
    }

    .swiftpay-method-brand img {
        width: 82px;
        height: 28px;
    }

    .swiftpay-method-brand > div {
        justify-self: end;
        text-align: right;
    }

    .swiftpay-method-brand h2 {
        font-size: 14px;
    }

    .swiftpay-amount-card {
        padding: 10px;
        margin-bottom: 7px;
    }

    .swiftpay-amount-card span,
    .swiftpay-copy-row span,
    .swiftpay-guidance p,
    .swiftpay-guidance pre {
        font-size: 11px;
    }

    .swiftpay-amount-card strong {
        font-size: 22px;
    }

    .swiftpay-copy-row {
        padding: 7px;
        gap: 6px;
    }

    .swiftpay-copy-row strong {
        font-size: 11px;
    }

    .swiftpay-timer {
        padding: 7px 9px;
    }

    .swiftpay-upload-zone {
        min-height: 68px;
        padding: 10px;
    }

    .swiftpay-proof-form button[type="submit"] {
        min-height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .swiftpay-payment-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
    }

    .swiftpay-total {
        min-width: 112px;
        margin-top: 0;
        text-align: right;
    }

    .swiftpay-stepper {
        gap: 4px;
    }

    .swiftpay-stepper span {
        font-size: 11px;
    }

    .swiftpay-method-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .swiftpay-method-choice {
        min-height: 62px;
        padding: 9px !important;
    }

    .swiftpay-method-choice img {
        width: 72px;
        height: 25px;
    }

    .swiftpay-copy-row {
        grid-template-columns: 1fr auto;
    }

    .swiftpay-copy-row span {
        grid-column: 1 / -1;
    }

    .swiftpay-proof-card {
        grid-template-columns: 1fr;
    }

    .swiftpay-amount-card {
        display: flex;
    }

    .swiftpay-amount-card button {
        width: max-content;
    }
}

@media (max-width: 390px) {
    .swiftpay-payment-modal {
        padding: 14px;
    }

    .swiftpay-payment-modal h1 {
        font-size: 17px;
    }

    .swiftpay-payment-header {
        grid-template-columns: 1fr;
    }

    .swiftpay-total {
        text-align: left;
    }

    .swiftpay-amount-card {
        display: grid;
    }
}

/* Dynamic brand color system. */
.swiftpay-payment-modal {
    --swiftpay-primary: #2563eb;
    --swiftpay-primary-rgb: 37, 99, 235;
}

.swiftpay-total strong {
    color: var(--swiftpay-primary);
}

.swiftpay-stepper {
    position: relative;
}

.swiftpay-stepper::before,
.swiftpay-stepper::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 9px;
    height: 2px;
    border-radius: 999px;
    background: rgba(var(--swiftpay-primary-rgb), 0.13);
}

.swiftpay-stepper::after {
    right: auto;
    width: 0;
    background: linear-gradient(90deg, rgba(var(--swiftpay-primary-rgb), 0.45), var(--swiftpay-primary));
    transition: width 160ms ease;
}

.swiftpay-payment-modal.swiftpay-step-send .swiftpay-stepper::after {
    width: 40%;
}

.swiftpay-payment-modal.swiftpay-step-proof .swiftpay-stepper::after {
    width: 80%;
}

.swiftpay-stepper span {
    z-index: 1;
}

.swiftpay-stepper span::before {
    background: rgba(var(--swiftpay-primary-rgb), 0.16);
}

.swiftpay-stepper span.is-active {
    color: var(--swiftpay-primary);
}

.swiftpay-stepper span.is-active::before {
    background: var(--swiftpay-primary);
    box-shadow: 0 0 0 5px rgba(var(--swiftpay-primary-rgb), 0.13);
}

.swiftpay-back {
    color: var(--swiftpay-primary) !important;
}

.swiftpay-order-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    background: rgba(var(--swiftpay-primary-rgb), 0.09);
    color: var(--swiftpay-primary) !important;
}

.swiftpay-method-brand::before {
    display: none;
}

.swiftpay-amount-card {
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--swiftpay-primary) 72%, #111827), color-mix(in srgb, var(--swiftpay-primary) 48%, #050816));
}

.swiftpay-copy-row {
    grid-template-columns: 42px minmax(92px, 0.72fr) minmax(0, 1.4fr) auto;
}

.swiftpay-row-icon,
.swiftpay-guidance-icon,
.swiftpay-upload-icon {
    display: inline-grid;
    place-items: center;
    color: var(--swiftpay-primary);
    background: rgba(var(--swiftpay-primary-rgb), 0.09);
}

.swiftpay-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.swiftpay-row-icon svg,
.swiftpay-guidance-icon svg,
.swiftpay-upload-icon svg,
.swiftpay-mini-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.swiftpay-mini-icon {
    display: inline-grid;
    place-items: center;
    margin-right: 6px;
    vertical-align: middle;
    flex: 0 0 auto;
}

.swiftpay-mini-icon svg {
    width: 16px;
    height: 16px;
}

.swiftpay-copy-row button {
    border-color: rgba(var(--swiftpay-primary-rgb), 0.24) !important;
    color: var(--swiftpay-primary) !important;
}

.swiftpay-guidance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(var(--swiftpay-primary-rgb), 0.08), rgba(var(--swiftpay-primary-rgb), 0.035));
}

.swiftpay-guidance-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 8px;
}

.swiftpay-upload-zone {
    border-color: rgba(var(--swiftpay-primary-rgb), 0.34);
}

.swiftpay-upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
}

.swiftpay-file-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #64748b;
    font-size: 12px;
}

.swiftpay-file-button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--swiftpay-primary), color-mix(in srgb, var(--swiftpay-primary) 72%, #111827));
    color: #fff !important;
    font-weight: 760;
}

.swiftpay-upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.swiftpay-proof-form button[type="submit"],
.swiftpay-proof-form button[type="submit"]:hover,
.swiftpay-proof-form button[type="submit"]:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--swiftpay-primary), color-mix(in srgb, var(--swiftpay-primary) 70%, #111827)) !important;
}

.swiftpay-theme-applepay .swiftpay-amount-card,
.swiftpay-theme-applepay .swiftpay-proof-form button[type="submit"],
.swiftpay-theme-applepay .swiftpay-proof-form button[type="submit"]:hover,
.swiftpay-theme-applepay .swiftpay-proof-form button[type="submit"]:active,
.swiftpay-theme-applepay .swiftpay-file-button {
    background: #111 !important;
}

@media (max-width: 560px) {
    .swiftpay-copy-row {
        grid-template-columns: 34px 1fr auto;
    }

    .swiftpay-copy-row > span:not(.swiftpay-row-icon) {
        grid-column: 2 / -1;
    }

    .swiftpay-row-icon {
        width: 32px;
        height: 32px;
        grid-row: span 2;
    }
}

/* Final compact payment-sheet corrections. */
.swiftpay-copy-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
}

.swiftpay-copy-row .swiftpay-row-icon {
    grid-column: 1;
    grid-row: 1 / 3;
}

.swiftpay-copy-row > span:not(.swiftpay-row-icon) {
    grid-column: 2;
    grid-row: 1;
}

.swiftpay-copy-row strong {
    grid-column: 2;
    grid-row: 2;
}

.swiftpay-copy-row button {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.swiftpay-stepper span {
    width: max-content;
    max-width: 100%;
    padding-right: 6px;
    background: rgba(255, 255, 255, 0.98);
}

.swiftpay-stepper span:nth-child(2) {
    justify-self: center;
    padding-left: 6px;
}

.swiftpay-stepper span:nth-child(3) {
    justify-self: end;
    padding-left: 6px;
    padding-right: 0;
}

.swiftpay-stepper::before,
.swiftpay-stepper::after {
    top: 10px;
    z-index: 0;
}

.swiftpay-amount-card,
.swiftpay-guidance,
.swiftpay-upload-zone,
.swiftpay-proof-form button[type="submit"] {
    border-radius: 8px;
}

@media (max-width: 760px) {
    .swiftpay-payment-modal {
        max-width: 430px;
        margin: 0 auto;
    }

    .swiftpay-copy-row {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        min-height: 62px;
    }

    .swiftpay-copy-row .swiftpay-row-icon {
        width: 34px;
        height: 34px;
    }

    .swiftpay-copy-row button {
        min-height: 34px;
        padding: 0 12px !important;
    }

    .swiftpay-guidance {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 10px;
    }

    .swiftpay-upload-zone {
        min-height: 82px;
        padding: 10px 12px;
    }

    .swiftpay-file-control {
        gap: 8px;
    }

    .swiftpay-upload-icon {
        width: 36px;
        height: 36px;
    }

    .swiftpay-upload-zone span {
        font-size: 11px;
    }

    .swiftpay-file-button {
        min-height: 26px;
        padding: 0 10px;
        font-size: 11px;
    }

    .swiftpay-file-control {
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .swiftpay-copy-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .swiftpay-copy-row button {
        padding: 0 10px !important;
    }
}

.swiftpay-payment-modal .swiftpay-method-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
}

.swiftpay-payment-modal .swiftpay-method-choice {
    width: 100% !important;
    max-width: none !important;
}

body.swiftpay-payment-body > :not(.swiftpay-payment-shell):not(script):not(style):not(link):not(meta):not(noscript) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.swiftpay-payment-body iframe:not(.swiftpay-payment-shell iframe),
body.swiftpay-payment-body [style*="position: fixed"]:not(.swiftpay-payment-shell *),
body.swiftpay-payment-body [style*="position:fixed"]:not(.swiftpay-payment-shell *) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Checkout (Cart/Checkout block) payment-method label */
.swiftpay-mmp-block-label {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.swiftpay-mmp-block-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.swiftpay-mmp-block-icon-img {
    width: auto;
    max-width: 48px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.swiftpay-mmp-block-description {
    margin: 6px 0 0;
}
