:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    --ink: #101630;
    --ink-soft: #626881;
    --line: #e6e8f0;
    --surface: #ffffff;
    --canvas: #eef1f8;
    --blue: #2946d3;
    --blue-dark: #14205c;
    --pink: #ff267f;
    --orange: #ffb614;
    --yellow: #fff200;
    --success: #27a65a;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 32px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 14%, rgba(255, 38, 127, 0.11), transparent 24%),
        radial-gradient(circle at 94% 86%, rgba(41, 70, 211, 0.14), transparent 25%),
        var(--canvas);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

.payment-shell {
    width: min(1080px, 100%);
    min-height: 690px;
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(16, 22, 48, 0.06);
    border-radius: 32px;
    box-shadow: 0 28px 90px rgba(24, 34, 78, 0.17);
}

.brand-panel {
    position: relative;
    min-height: 690px;
    padding: 42px 38px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(circle at 76% 27%, rgba(77, 99, 238, 0.95), transparent 32%),
        radial-gradient(circle at 15% 90%, rgba(255, 38, 127, 0.31), transparent 33%),
        linear-gradient(155deg, #101735 5%, #15245f 61%, #182967 100%);
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-panel::before {
    width: 440px;
    height: 440px;
    left: -250px;
    bottom: -120px;
}

.brand-panel::after {
    width: 210px;
    height: 210px;
    top: 125px;
    right: -145px;
}

.brand-logo {
    width: 190px;
    height: auto;
    position: relative;
    z-index: 2;
}

.brand-visual {
    position: relative;
    width: 228px;
    height: 228px;
    margin: 25px auto 19px;
    display: grid;
    place-items: center;
}

.brand-visual img {
    width: 146px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 22px 24px rgba(4, 8, 30, 0.34));
}

.orbit,
.brand-glow {
    position: absolute;
    border-radius: 50%;
}

.orbit {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.orbit::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 8px rgba(255, 242, 0, 0.08);
}

.orbit-large {
    inset: 5px;
    transform: rotate(18deg);
}

.orbit-large::after {
    top: 31px;
    right: 33px;
}

.orbit-small {
    inset: 38px;
    transform: rotate(-26deg);
}

.orbit-small::after {
    left: 9px;
    bottom: 55px;
    width: 7px;
    height: 7px;
    background: #ff92bb;
}

.brand-glow {
    inset: 70px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(25px);
}

.brand-message {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.brand-kicker,
.checkout-kicker {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.brand-message h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.brand-message > p:last-child {
    max-width: 270px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.55;
}

.brand-quote {
    margin: 0;
}

.brand-quote p {
    margin: 0;
    color: #fff;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.025em;
    text-align: left;
    text-transform: uppercase;
}

.brand-quote p span {
    display: block;
}

.brand-quote cite {
    margin-top: 16px;
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
}

.checkout-panel {
    padding: 34px 50px 28px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-header,
.checkout-title-row,
.amount-block,
.checkout-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.back-link svg,
.secure-label svg,
.pay-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-link svg {
    width: 19px;
    height: 19px;
}

.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7c8297;
    font-size: 12px;
    font-weight: 650;
}

.secure-label svg {
    width: 16px;
    height: 16px;
}

.checkout-title-row {
    margin-top: 32px;
}

.checkout-kicker {
    margin-bottom: 8px;
    color: #9a9fb1;
    font-size: 10px;
}

.checkout-title-row h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.amount-block {
    gap: 24px;
    margin-top: 26px;
    padding: 20px 22px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 91% 10%, rgba(255, 38, 127, 0.42), transparent 31%),
        linear-gradient(120deg, var(--blue-dark), #263ba6);
}

.amount-block p {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 650;
}

.amount-block strong {
    white-space: nowrap;
    font-size: 31px;
    line-height: 1;
    letter-spacing: -0.035em;
}

.order-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

.order-summary span {
    font-size: 13px;
    font-weight: 700;
}

.order-summary small {
    color: rgba(255, 255, 255, 0.57);
    font-size: 11px;
}

.payment-method {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin-top: 25px;
}

.qr-column {
    text-align: center;
}

.qr-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    padding: 14px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(25, 33, 66, 0.08);
}

.qr-frame > svg {
    width: 100%;
    height: 100%;
}

.qr-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--pink);
    border-style: solid;
}

.corner-top-left {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
    border-radius: 10px 0 0;
}

.corner-top-right {
    top: -2px;
    right: -2px;
    border-width: 3px 3px 0 0;
    border-radius: 0 10px 0 0;
}

.corner-bottom-left {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 10px;
}

.corner-bottom-right {
    right: -2px;
    bottom: -2px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 10px;
}

.qr-column > p {
    margin: 11px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.45;
}

.action-column h3 {
    margin: 0 0 17px;
    font-size: 17px;
    letter-spacing: -0.015em;
}

.action-column ol {
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.action-column li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 12px;
}

.action-column li span {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: #eef1ff;
    font-size: 10px;
    font-weight: 800;
}

.pay-button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 13px 28px rgba(41, 70, 211, 0.23);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pay-button:hover {
    transform: translateY(-1px);
    background: #203bc2;
    box-shadow: 0 15px 32px rgba(41, 70, 211, 0.29);
}

.pay-button:focus-visible,
.back-link:focus-visible {
    outline: 3px solid rgba(255, 38, 127, 0.35);
    outline-offset: 3px;
}

.pay-button svg {
    width: 20px;
    height: 20px;
}

.mobile-hint {
    margin: 8px 0 0;
    color: #969bad;
    font-size: 10px;
    line-height: 1.4;
}

.status-line {
    margin-top: 23px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #e8eaf1;
    border-radius: 13px;
    color: #70768c;
    background: #fafbfe;
    font-size: 11px;
    font-weight: 650;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(39, 166, 90, 0.1);
}

.checkout-footer {
    gap: 24px;
    margin-top: auto;
    padding-top: 20px;
    color: #a0a4b2;
    font-size: 10px;
}

.bank-mark {
    white-space: nowrap;
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}

@media (max-width: 860px) {
    body {
        padding: 20px;
    }

    .payment-shell {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .brand-panel {
        padding: 34px 28px;
    }

    .brand-logo {
        width: 170px;
    }

    .brand-visual {
        width: 230px;
        height: 230px;
    }

    .checkout-panel {
        padding-right: 34px;
        padding-left: 34px;
    }

    .payment-method {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 24px;
    }

    .qr-frame {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 720px) {
    body {
        display: block;
        padding: 0;
        background: var(--surface);
    }

    .payment-shell {
        width: 100%;
        min-height: 100vh;
        display: block;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .brand-panel {
        min-height: 152px;
        height: 152px;
        padding: 22px 24px;
        display: block;
        background:
            radial-gradient(circle at 89% 32%, rgba(255, 38, 127, 0.5), transparent 26%),
            linear-gradient(120deg, #111938, #213a9c);
    }

    .brand-logo {
        width: 142px;
    }

    .brand-visual {
        width: 150px;
        height: 150px;
        position: absolute;
        top: -8px;
        right: -40px;
        margin: 0;
        opacity: 0.22;
    }

    .brand-visual img {
        width: 90px;
    }

    .brand-message {
        display: none;
    }

    .checkout-panel {
        min-height: calc(100vh - 152px);
        padding: 22px 22px 24px;
    }

    .secure-label span {
        display: none;
    }

    .checkout-title-row {
        margin-top: 27px;
    }

    .checkout-title-row h2 {
        font-size: 26px;
    }

    .amount-block {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-top: 22px;
        padding: 19px 20px;
    }

    .order-summary {
        align-items: flex-start;
        text-align: left;
    }

    .payment-method {
        display: block;
        margin-top: 24px;
    }

    .qr-column {
        display: none;
    }

    .action-column h3 {
        font-size: 16px;
    }

    .action-column ol {
        margin-bottom: 22px;
    }

    .action-column li {
        font-size: 13px;
    }

    .pay-button {
        min-height: 58px;
        border-radius: 16px;
        font-size: 14px;
    }

    .status-line {
        margin-top: 18px;
    }

    .checkout-footer {
        margin-top: 24px;
        padding-top: 18px;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 390px) {
    .checkout-panel {
        padding-right: 18px;
        padding-left: 18px;
    }

    .amount-block strong {
        font-size: 28px;
    }

    .checkout-footer {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================================
   Complete payment-flow design set
   =================================================== */

.gallery-body {
    display: block;
    padding: 32px;
    background:
        radial-gradient(circle at 5% 8%, rgba(255, 38, 127, 0.19), transparent 23%),
        radial-gradient(circle at 96% 92%, rgba(41, 70, 211, 0.28), transparent 27%),
        #101735;
}

.gallery-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.gallery-header {
    min-height: 190px;
    padding: 30px 34px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 34px;
    overflow: hidden;
    position: relative;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 87% 26%, rgba(255, 38, 127, 0.45), transparent 31%),
        linear-gradient(120deg, #17215a, #263fb2);
    box-shadow: 0 24px 70px rgba(1, 5, 26, 0.3);
}

.gallery-brand-logo {
    width: 180px;
    height: auto;
}

.gallery-title p {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.gallery-title h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.gallery-title span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
}

.gallery-hearts {
    width: 106px;
    filter: drop-shadow(0 14px 20px rgba(6, 10, 39, 0.27));
}

.screen-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.screen-link {
    min-height: 218px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(1, 5, 26, 0.16);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.screen-link::after {
    content: "";
    width: 140px;
    height: 140px;
    position: absolute;
    right: -70px;
    bottom: -76px;
    border-radius: 50%;
    background: rgba(41, 70, 211, 0.07);
}

.screen-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 19px 44px rgba(1, 5, 26, 0.23);
}

.screen-number {
    position: absolute;
    top: 22px;
    right: 22px;
    color: #acb0bf;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.screen-icon {
    width: 43px;
    height: 43px;
    margin-bottom: 28px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--blue);
    font-size: 21px;
    font-weight: 850;
}

.screen-link strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.screen-link small {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.45;
}

.screen-arrow {
    margin-top: auto;
    padding-top: 17px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.screen-link-success .screen-icon {
    background: var(--success);
}

.screen-link-fail .screen-icon {
    background: #e75465;
}

.gallery-note {
    padding: 22px 4px 4px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    font-size: 11px;
}

.form-screen-panel {
    justify-content: flex-start;
}

.form-screen-content {
    width: min(450px, 100%);
    margin: auto;
    padding: 34px 0 22px;
}

.step-chip {
    width: max-content;
    margin-bottom: 18px;
    padding: 6px 10px 6px 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    color: #697087;
    background: #f1f3f9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.step-chip span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 9px;
}

.form-screen-content h2,
.selection-title h2,
.result-content h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.lead-text {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.email-form {
    margin-top: 31px;
}

.email-form label {
    display: block;
    margin-bottom: 8px;
    color: #3f455d;
    font-size: 12px;
    font-weight: 750;
}

.email-input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.email-input-wrap svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: #858a9e;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.email-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 48px;
    border: 1px solid #dfe2eb;
    border-radius: 14px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.email-input-wrap input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(41, 70, 211, 0.1);
}

.info-note {
    margin-top: 20px;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 13px;
    color: #747a90;
    background: #f7f8fb;
    font-size: 11px;
    line-height: 1.45;
}

.info-note > span {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: #e8ebfa;
    font-weight: 850;
}

.info-note p {
    margin: 1px 0 0;
}

.payment-shell-wide {
    width: min(1160px, 100%);
    min-height: 742px;
    grid-template-columns: 340px minmax(0, 1fr);
}

.payment-shell-wide .brand-panel,
.payment-shell-wide .checkout-panel {
    min-height: 742px;
}

.selection-panel {
    padding-right: 44px;
    padding-left: 44px;
}

.selection-title {
    margin-top: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.selection-count {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--blue);
    background: #eef1ff;
    font-size: 11px;
    font-weight: 800;
}

.selection-lead {
    margin: 9px 0 20px;
    color: var(--ink-soft);
    font-size: 12px;
}

.invoice-choice-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.invoice-choice {
    min-height: 363px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e6ed;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(25, 33, 66, 0.06);
}

.invoice-choice-monthly {
    border-top: 4px solid var(--success);
}

.invoice-choice-event {
    border-top: 4px solid var(--pink);
}

.invoice-choice-top,
.invoice-choice-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.invoice-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #697087;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.invoice-type i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.invoice-choice-event .invoice-type i {
    background: var(--pink);
}

.invoice-id {
    color: #999eae;
    font-size: 9px;
    font-weight: 700;
}

.invoice-choice h3 {
    margin: 30px 0 9px;
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.invoice-choice > p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.55;
}

.invoice-choice-bottom {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #eef0f5;
}

.invoice-choice-bottom strong {
    white-space: nowrap;
    font-size: 22px;
    letter-spacing: -0.025em;
}

.choice-button {
    padding: 11px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 11px;
    color: #fff;
    background: var(--blue);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.checkout-confirm-content {
    padding-top: 24px;
}

.confirmation-card {
    margin: 23px 0 15px;
    padding: 20px;
    border: 1px solid #e3e6ee;
    border-radius: 18px;
    background: #fafbfe;
}

.confirmation-amount {
    padding: 3px 2px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e3e6ee;
}

.confirmation-amount span {
    color: var(--ink-soft);
    font-size: 12px;
}

.confirmation-amount strong {
    font-size: 28px;
    letter-spacing: -0.04em;
}

.confirmation-card dl,
.result-receipt dl {
    margin: 15px 0 0;
}

.confirmation-card dl > div,
.result-receipt dl > div {
    padding: 7px 2px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 11px;
}

.confirmation-card dt,
.result-receipt dt {
    color: #8a8fa1;
}

.confirmation-card dd,
.result-receipt dd {
    margin: 0;
    max-width: 68%;
    text-align: right;
    color: #30364c;
    font-weight: 750;
}

.mini-method-mark {
    padding: 3px 7px;
    border-radius: 6px;
    color: #fff;
    background: var(--blue);
    font-size: 9px;
}

.purpose-box {
    margin-top: 15px;
    padding: 13px 14px;
    border-left: 3px solid var(--pink);
    border-radius: 9px;
    background: #fff;
}

.purpose-box span {
    color: #969bad;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.purpose-box p {
    margin: 5px 0 0;
    color: #484e64;
    font-size: 11px;
    line-height: 1.45;
}

.text-action {
    margin-top: 13px;
    display: block;
    color: #747a8f;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.result-shell {
    min-height: 650px;
}

.result-brand,
.result-panel {
    min-height: 650px;
}

.result-brand-success {
    background:
        radial-gradient(circle at 74% 30%, rgba(52, 194, 118, 0.47), transparent 29%),
        radial-gradient(circle at 10% 95%, rgba(255, 38, 127, 0.31), transparent 32%),
        linear-gradient(150deg, #101735, #17386b);
}

.result-brand-fail {
    background:
        radial-gradient(circle at 74% 30%, rgba(255, 85, 110, 0.41), transparent 29%),
        radial-gradient(circle at 10% 95%, rgba(41, 70, 211, 0.37), transparent 32%),
        linear-gradient(150deg, #101735, #34205c);
}

.result-brand-symbol {
    width: 230px;
    height: 230px;
    margin: 35px auto 20px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.result-brand-symbol::after {
    content: "";
    position: absolute;
    inset: 25px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.result-brand-symbol img {
    width: 135px;
    opacity: 0.72;
}

.result-brand-symbol span {
    width: 50px;
    height: 50px;
    position: absolute;
    right: 16px;
    bottom: 25px;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 5px solid #17386b;
    border-radius: 50%;
    color: #fff;
    background: var(--success);
    font-size: 25px;
    font-weight: 850;
}

.result-brand-fail .result-brand-symbol span {
    border-color: #34205c;
    background: #e75465;
}

.result-panel {
    justify-content: flex-start;
}

.result-content {
    width: min(430px, 100%);
    margin: auto;
    padding: 22px 0 16px;
    text-align: center;
}

.result-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 21px;
    display: grid;
    place-items: center;
    border-radius: 20px;
}

.result-icon svg {
    width: 37px;
    height: 37px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.result-icon-success {
    color: #239a55;
    background: #e5f7ec;
}

.result-icon-fail {
    color: #dc4d60;
    background: #fdebee;
}

.result-content .checkout-kicker {
    margin-bottom: 8px;
}

.result-content .lead-text {
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
}

.result-receipt {
    margin: 23px 0 15px;
    padding: 17px 18px;
    border: 1px solid #e5e7ee;
    border-radius: 17px;
    text-align: left;
    background: #fafbfe;
}

.result-receipt > div {
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7ee;
}

.result-receipt > div span {
    color: var(--ink-soft);
    font-size: 11px;
}

.result-receipt > div strong {
    font-size: 24px;
    letter-spacing: -0.035em;
}

.success-text {
    color: var(--success) !important;
}

.fail-note {
    margin: 23px 0 15px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #f0d9de;
    border-radius: 15px;
    color: #6f4a52;
    text-align: left;
    background: #fff7f8;
}

.fail-note strong {
    color: #b53f50;
    font-size: 12px;
}

.fail-note span {
    font-size: 11px;
    line-height: 1.45;
}

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

    .invoice-choice-list {
        grid-template-columns: 1fr;
    }

    .invoice-choice {
        min-height: 270px;
    }

    .payment-shell-wide,
    .payment-shell-wide .brand-panel,
    .payment-shell-wide .checkout-panel {
        min-height: 850px;
    }
}

@media (max-width: 720px) {
    .gallery-body {
        padding: 18px;
        background: #101735;
    }

    .gallery-header {
        min-height: auto;
        padding: 24px;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 20px;
        border-radius: 22px;
    }

    .gallery-brand-logo {
        width: 110px;
    }

    .gallery-hearts {
        display: none;
    }

    .gallery-title h1 {
        font-size: 25px;
    }

    .gallery-title span {
        font-size: 11px;
    }

    .screen-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .screen-link {
        min-height: 170px;
    }

    .screen-icon {
        margin-bottom: 18px;
    }

    .form-screen-content,
    .result-content {
        padding-top: 30px;
    }

    .form-screen-content h2,
    .selection-title h2,
    .result-content h2 {
        font-size: 27px;
    }

    .payment-shell-wide,
    .payment-shell-wide .brand-panel,
    .payment-shell-wide .checkout-panel,
    .result-shell,
    .result-brand,
    .result-panel {
        min-height: 0;
    }

    .selection-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .invoice-choice-list {
        grid-template-columns: 1fr;
    }

    .invoice-choice {
        min-height: 260px;
    }

    .invoice-choice h3 {
        margin-top: 22px;
    }

    .result-brand-symbol {
        display: none;
    }

    .confirmation-amount {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 420px) {
    .gallery-header {
        grid-template-columns: 1fr;
    }

    .gallery-brand-logo {
        width: 125px;
    }

    .invoice-choice-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .choice-button {
        width: 100%;
        justify-content: space-between;
    }

    .confirmation-card,
    .result-receipt {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Production template states and dynamic content */
.form-alert {
    margin-top: 20px;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #f0d9de;
    border-radius: 13px;
    color: #8e3847;
    background: #fff7f8;
    font-size: 11px;
    line-height: 1.45;
}

.form-alert > span {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #d84c60;
    font-size: 10px;
    font-weight: 850;
}

.form-alert p {
    margin: 1px 0 0;
}

.payer-email {
    max-width: 55%;
    overflow-wrap: anywhere;
    color: #7c8297;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
}

.invoice-item-form {
    margin: 0;
}

button.choice-button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
}

.single-invoice-list {
    grid-template-columns: minmax(0, 1fr);
}

.single-invoice-list .invoice-choice {
    min-height: 310px;
}

.qr-frame > svg,
.qr-frame > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-summary span,
.order-summary small,
.invoice-choice h3,
.invoice-choice > p,
.confirmation-card dd,
.result-receipt dd {
    overflow-wrap: anywhere;
}

#checkoutForm {
    width: 100%;
}

@media (max-width: 720px) {
    .payer-email {
        max-width: 50%;
        font-size: 11px;
    }

    .single-invoice-list .invoice-choice {
        min-height: 260px;
    }
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

