:root {
    --checkout-ink: #081b2b;
    --checkout-ink-raised: #102c42;
    --checkout-ink-muted: #b9c9d4;
    --checkout-canvas: #f1f5f3;
    --checkout-surface: #ffffff;
    --checkout-surface-subtle: #e9efec;
    --checkout-line: #d4ded9;
    --checkout-line-strong: #aebdb6;
    --checkout-text: #14251f;
    --checkout-text-muted: #5d6c66;
    --checkout-signal: #79df4b;
    --checkout-signal-deep: #2c7a32;
    --checkout-signal-soft: #e2f7d9;
    --checkout-danger: #a52d38;
    --checkout-danger-soft: #fbeaec;
    --checkout-warning: #7c5508;
    --checkout-warning-soft: #fff3cf;
    --checkout-success: #216b37;
    --checkout-success-soft: #e3f4e8;
    --checkout-focus: #196f9f;
    --checkout-radius-small: 8px;
    --checkout-radius: 12px;
    --checkout-radius-large: 18px;
    --checkout-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--checkout-canvas);
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--checkout-canvas);
    color: var(--checkout-text);
    font-family: "Archivo", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
textarea {
    font: inherit;
}

button,
input,
textarea {
    color: inherit;
}

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

button {
    border: 0;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

[hidden] {
    display: none !important;
}

.requires-js {
    display: none !important;
}

.is-enhanced .requires-js {
    display: inline-flex !important;
}

.checkout-skip-link {
    position: fixed;
    top: 12px;
    left: -10000px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--checkout-radius-small);
    background: var(--checkout-surface);
    color: var(--checkout-ink);
    font-weight: 700;
    text-decoration: none;
    transition: left 0ms linear;
}

.checkout-skip-link:focus,
.checkout-skip-link:focus-visible {
    left: 12px;
}

.checkout-shell {
    display: grid;
    grid-template-columns: clamp(350px, 35vw, 500px) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.checkout-rail {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--checkout-ink);
    color: #f7fbf9;
    scrollbar-width: thin;
    scrollbar-color: #345065 transparent;
}

.checkout-rail::before {
    position: absolute;
    top: 5.5rem;
    right: -8.5rem;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgba(121, 223, 75, 0.2);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.checkout-rail::after {
    position: absolute;
    right: 2.5rem;
    bottom: 7.5rem;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.checkout-rail__track {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: var(--checkout-signal);
}

.checkout-rail__track span {
    position: absolute;
    right: -5px;
    width: 15px;
    height: 15px;
    border: 4px solid var(--checkout-ink);
    border-radius: 50%;
    background: var(--checkout-signal);
}

.checkout-rail__track span:nth-child(1) {
    top: 15%;
}

.checkout-rail__track span:nth-child(2) {
    top: 50%;
}

.checkout-rail__track span:nth-child(3) {
    bottom: 13%;
}

.checkout-rail__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(28px, 4vw, 50px);
}

.checkout-rail__top {
    display: grid;
    gap: clamp(34px, 5vh, 60px);
}

.checkout-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    color: #f7fbf9;
    text-decoration: none;
}

.checkout-brand__mark {
    display: grid;
    width: 66px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: #f9fcfb;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.checkout-brand__mark img {
    width: 49px;
    height: auto;
}

.checkout-brand__copy {
    display: grid;
    gap: 1px;
}

.checkout-brand__copy strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.checkout-brand__copy small {
    color: var(--checkout-ink-muted);
    font-size: 12px;
}

.checkout-brand:focus-visible,
.merchant-lockup__copy a:focus-visible,
.merchant-help a:focus-visible {
    border-radius: 4px;
    outline: 3px solid var(--checkout-signal);
    outline-offset: 4px;
}

.merchant-lockup {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.merchant-lockup__icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: var(--checkout-ink-raised);
}

.merchant-lockup__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-lockup__icon svg {
    width: 25px;
    height: 25px;
    color: var(--checkout-signal);
}

.merchant-lockup__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.merchant-lockup__copy > span {
    color: var(--checkout-ink-muted);
    font-size: 12px;
    font-weight: 500;
}

.merchant-lockup__copy > strong {
    overflow: hidden;
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.merchant-lockup__copy a {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: #d9e5e0;
    font-size: 12px;
    text-decoration-color: rgba(217, 229, 224, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-lockup__copy a:hover {
    color: #ffffff;
    text-decoration-color: var(--checkout-signal);
}

.merchant-lockup__copy a svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.checkout-progress {
    margin-top: clamp(42px, 7vh, 76px);
}

.checkout-progress ol {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-progress li {
    position: relative;
}

.checkout-progress li + li::before {
    position: absolute;
    top: -18px;
    left: 18px;
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    content: "";
}

.checkout-progress button {
    display: flex;
    width: 100%;
    min-height: 76px;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-radius: var(--checkout-radius-small);
    background: transparent;
    color: var(--checkout-ink-muted);
    text-align: left;
}

.checkout-progress button:not(:disabled) {
    cursor: pointer;
}

.checkout-progress button:focus-visible {
    outline: 3px solid var(--checkout-signal);
    outline-offset: 4px;
}

.checkout-progress button > span:last-child {
    display: grid;
    gap: 2px;
}

.checkout-progress button strong {
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

.checkout-progress button small {
    color: inherit;
    font-size: 12px;
}

.checkout-progress__marker {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    color: #dbe6e1;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.checkout-progress button[aria-current="step"] {
    color: #ffffff;
}

.checkout-progress button[aria-current="step"] .checkout-progress__marker {
    border-color: var(--checkout-signal);
    background: var(--checkout-signal);
    color: var(--checkout-ink);
}

.checkout-progress li.is-complete .checkout-progress__marker {
    border-color: rgba(121, 223, 75, 0.65);
    color: var(--checkout-signal);
}

.checkout-progress li.is-complete + li::before {
    background: rgba(121, 223, 75, 0.62);
}

.checkout-tally {
    margin-top: clamp(42px, 8vh, 82px);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.checkout-tally__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #dce7e2;
    font-size: 12px;
    font-weight: 600;
}

.checkout-tally__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--checkout-signal);
    font-size: 11px;
    font-weight: 600;
}

.checkout-tally__status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.checkout-tally__lines {
    display: grid;
    gap: 0;
    margin: 16px 0 0;
}

.checkout-tally__lines > div {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-tally__lines dt {
    color: var(--checkout-ink-muted);
    font-size: 12px;
}

.checkout-tally__lines dd {
    max-width: 58%;
    margin: 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.numeric {
    font-variant-numeric: tabular-nums;
}

.checkout-tally__total {
    display: grid;
    margin-top: 24px;
    gap: 3px;
}

.checkout-tally__total > span {
    color: var(--checkout-ink-muted);
    font-size: 12px;
    font-weight: 500;
}

.checkout-tally__total strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: clamp(30px, 4.3vw, 52px);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.checkout-tally__total small {
    max-width: 38ch;
    margin-top: 5px;
    color: var(--checkout-ink-muted);
    font-size: 12px;
    line-height: 1.45;
}

.checkout-rail__footer {
    display: grid;
    margin-top: auto;
    padding-top: clamp(42px, 8vh, 76px);
    gap: 14px;
}

.checkout-handoff-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkout-handoff-note > svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--checkout-signal);
}

.checkout-handoff-note p {
    display: grid;
    margin: 0;
    gap: 3px;
}

.checkout-handoff-note strong {
    color: #f7fbf9;
    font-size: 12px;
    font-weight: 600;
}

.checkout-handoff-note span {
    max-width: 37ch;
    color: var(--checkout-ink-muted);
    font-size: 11px;
    line-height: 1.5;
}

.merchant-help {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.merchant-help summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 0;
    color: #dce7e2;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    list-style: none;
}

.merchant-help summary::-webkit-details-marker {
    display: none;
}

.merchant-help summary svg {
    width: 14px;
    height: 14px;
    transition: transform 180ms ease;
}

.merchant-help[open] summary svg {
    transform: rotate(180deg);
}

.merchant-help__panel {
    padding: 12px 0 2px;
}

.merchant-help__panel p {
    margin: 0 0 10px;
    color: var(--checkout-ink-muted);
    font-size: 11px;
}

.merchant-help__links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.merchant-help__links a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #edf4f1;
    font-size: 11px;
    text-decoration: none;
}

.merchant-help__links a:hover {
    border-color: rgba(121, 223, 75, 0.65);
    color: var(--checkout-signal);
}

.checkout-workspace {
    min-width: 0;
    background: var(--checkout-canvas);
}

.checkout-workspace__inner {
    width: min(100%, 940px);
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(34px, 5.5vw, 82px) clamp(24px, 6vw, 86px) 64px;
}

.checkout-workspace form {
    width: 100%;
}

.checkout-workspace__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(36px, 6vh, 64px);
    color: var(--checkout-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.checkout-workspace__meta span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkout-workspace__meta span:first-child::before {
    width: 22px;
    height: 1px;
    background: var(--checkout-signal-deep);
    content: "";
}

.checkout-stage {
    width: 100%;
}

.is-enhanced .checkout-stage:not([hidden]) {
    animation: checkout-stage-in 420ms var(--checkout-ease) both;
}

@keyframes checkout-stage-in {
    from {
        clip-path: inset(0 0 8% 0);
        opacity: 0.35;
        transform: translateY(14px);
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-stage__header {
    max-width: 720px;
    margin-bottom: clamp(34px, 5vw, 54px);
}

.checkout-kicker {
    width: fit-content;
    margin: 0 0 13px;
    color: var(--checkout-signal-deep);
    font-size: 12px;
    font-weight: 700;
}

.checkout-stage__header h1,
.checkout-state h1 {
    max-width: 16ch;
    margin: 0;
    color: var(--checkout-ink);
    font-size: clamp(32px, 4.8vw, 58px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.03;
    text-wrap: balance;
}

.checkout-stage__header h1:focus,
.checkout-state h1:focus {
    outline: 0;
}

.checkout-stage__header > p:last-child,
.checkout-state > p {
    max-width: 64ch;
    margin: 19px 0 0;
    color: var(--checkout-text-muted);
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.65;
}

.method-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.method-group + .method-group {
    margin-top: 36px;
}

.method-group legend {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 13px;
    padding: 0;
}

.method-group legend span {
    color: var(--checkout-ink);
    font-size: 14px;
    font-weight: 700;
}

.method-group legend small {
    color: var(--checkout-text-muted);
    font-size: 11px;
    font-weight: 500;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.method-option > input,
.platform-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.method-option__surface {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    min-height: 116px;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid var(--checkout-line);
    border-radius: var(--checkout-radius);
    background: rgba(255, 255, 255, 0.72);
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.method-option:hover .method-option__surface {
    border-color: var(--checkout-line-strong);
    background: var(--checkout-surface);
    transform: translateY(-1px);
}

.method-option > input:focus-visible + .method-option__surface,
.platform-option > input:focus-visible + .platform-option__surface {
    outline: 3px solid rgba(25, 111, 159, 0.32);
    outline-offset: 3px;
}

.method-option > input:checked + .method-option__surface {
    border-color: var(--checkout-ink);
    background: var(--checkout-surface);
    box-shadow:
        inset 4px 0 0 var(--checkout-signal),
        0 12px 26px rgba(8, 27, 43, 0.09);
}

.method-option__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--checkout-line);
    border-radius: 10px;
    background: #ffffff;
}

.method-option__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.method-option__icon svg {
    width: 24px;
    height: 24px;
    color: var(--checkout-ink);
}

.method-option__icon--manual {
    background: var(--checkout-ink);
}

.method-option__icon--manual svg {
    color: var(--checkout-signal);
}

.method-option__copy {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.method-option__title {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.method-option__title strong {
    min-width: 0;
    overflow: hidden;
    color: var(--checkout-ink);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.method-option__title small {
    flex: 0 0 auto;
    color: var(--checkout-signal-deep);
    font-size: 10px;
    font-weight: 700;
}

.method-option__description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--checkout-text-muted);
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.method-option__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #42524c;
    font-size: 10px;
    font-weight: 600;
}

.method-option__meta i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--checkout-line-strong);
}

.method-option__check {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--checkout-line-strong);
    border-radius: 50%;
    color: transparent;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}

.method-option__check svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
}

.method-option > input:checked + .method-option__surface .method-option__check {
    border-color: var(--checkout-ink);
    background: var(--checkout-ink);
    color: var(--checkout-signal);
}

.checkout-inline-error,
.field-error {
    color: var(--checkout-danger);
    font-size: 12px;
    font-weight: 600;
}

.checkout-inline-error {
    margin: -18px 0 22px;
    padding: 10px 12px;
    border: 1px solid #e7b4b9;
    border-radius: var(--checkout-radius-small);
    background: var(--checkout-danger-soft);
}

.field-error {
    margin: 8px 0 0;
}

.platform-selector {
    min-width: 0;
    margin: 36px 0 0;
    padding: 22px;
    border: 1px solid var(--checkout-line-strong);
    border-radius: var(--checkout-radius);
    background: var(--checkout-surface-subtle);
}

.platform-selector > legend {
    padding: 0 6px;
    color: var(--checkout-ink);
    font-size: 14px;
    font-weight: 700;
}

.platform-selector > p {
    max-width: 62ch;
    margin: 0 0 16px;
    color: var(--checkout-text-muted);
    font-size: 12px;
    line-height: 1.55;
}

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

.platform-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.platform-option__surface {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    min-height: 90px;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--checkout-line);
    border-radius: 10px;
    background: var(--checkout-surface);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.platform-option:hover .platform-option__surface {
    border-color: var(--checkout-line-strong);
}

.platform-option > input:checked + .platform-option__surface {
    border-color: var(--checkout-ink);
    box-shadow: inset 3px 0 0 var(--checkout-signal);
}

.platform-option__logo {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--checkout-line);
    border-radius: var(--checkout-radius-small);
    background: #ffffff;
}

.platform-option__logo img {
    max-width: 30px;
    max-height: 28px;
    object-fit: contain;
}

.platform-option__logo svg {
    width: 21px;
    height: 21px;
}

.platform-option__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.platform-option__copy strong {
    overflow: hidden;
    color: var(--checkout-ink);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-option__copy small {
    color: var(--checkout-signal-deep);
    font-size: 10px;
    font-weight: 600;
}

.platform-option__copy span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--checkout-text-muted);
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.platform-option__check {
    width: 14px;
    height: 14px;
    border: 1px solid var(--checkout-line-strong);
    border-radius: 50%;
}

.platform-option > input:checked + .platform-option__surface .platform-option__check {
    border: 4px solid var(--checkout-ink);
    background: var(--checkout-signal);
}

.checkout-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(36px, 6vw, 58px);
    padding-top: 24px;
    border-top: 1px solid var(--checkout-line);
}

.checkout-actions--forward {
    justify-content: flex-end;
}

.checkout-actions__hint {
    max-width: 38ch;
    color: var(--checkout-text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.checkout-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--checkout-radius-small);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.checkout-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.checkout-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.checkout-button:focus-visible {
    outline: 3px solid rgba(25, 111, 159, 0.34);
    outline-offset: 3px;
}

.checkout-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.checkout-button--primary {
    border: 1px solid var(--checkout-ink);
    background: var(--checkout-ink);
    color: #ffffff;
    box-shadow: 0 9px 18px rgba(8, 27, 43, 0.17);
}

.checkout-button--primary:hover:not(:disabled) {
    border-color: #123a57;
    background: #123a57;
    box-shadow: 0 12px 24px rgba(8, 27, 43, 0.22);
}

.checkout-button--primary svg {
    color: var(--checkout-signal);
}

.checkout-button--secondary {
    border: 1px solid var(--checkout-line-strong);
    background: transparent;
    color: var(--checkout-ink);
}

.checkout-button--secondary:hover:not(:disabled) {
    border-color: var(--checkout-ink);
    background: var(--checkout-surface);
}

.checkout-alert {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid;
    border-radius: var(--checkout-radius);
}

.checkout-alert > svg {
    width: 22px;
    height: 22px;
}

.checkout-alert strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.checkout-alert p {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.checkout-alert ul {
    display: grid;
    margin: 7px 0 0;
    padding-left: 18px;
    gap: 3px;
    font-size: 12px;
}

.checkout-alert--danger {
    border-color: #e2a8ae;
    background: var(--checkout-danger-soft);
    color: #7c1f29;
}

.checkout-alert--success {
    border-color: #a9d2b5;
    background: var(--checkout-success-soft);
    color: #174f2a;
}

.checkout-alert:focus {
    outline: 3px solid rgba(165, 45, 56, 0.25);
    outline-offset: 3px;
}

.checkout-state {
    display: flex;
    min-height: min(580px, 70vh);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 0 70px;
}

.checkout-state__symbol {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 28px;
    place-items: center;
    border: 1px solid var(--checkout-line-strong);
    border-radius: 50%;
    background: var(--checkout-surface);
    color: var(--checkout-ink);
}

.checkout-state__symbol svg {
    width: 29px;
    height: 29px;
}

.checkout-state__symbol--danger {
    border-color: #e2a8ae;
    background: var(--checkout-danger-soft);
    color: var(--checkout-danger);
}

.checkout-state__actions {
    margin-top: 28px;
}

.order-context {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: -12px 0 32px;
    padding: 15px 0;
    border-top: 1px solid var(--checkout-line);
    border-bottom: 1px solid var(--checkout-line);
}

.order-context__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--checkout-signal-soft);
    color: var(--checkout-signal-deep);
}

.order-context__icon svg {
    width: 19px;
    height: 19px;
}

.order-context > div {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.order-context span {
    color: var(--checkout-text-muted);
    font-size: 11px;
}

.order-context strong {
    overflow-wrap: anywhere;
    color: var(--checkout-ink);
    font-size: 13px;
    font-weight: 700;
}

.inventory-adjustment {
    margin: 0 0 32px;
    padding: 20px;
    border: 1px solid #d8bd75;
    border-radius: var(--checkout-radius);
    background: var(--checkout-warning-soft);
    color: #5e4007;
}

.inventory-adjustment__copy {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.inventory-adjustment__icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(124, 85, 8, 0.24);
    border-radius: 50%;
}

.inventory-adjustment__icon svg {
    width: 19px;
    height: 19px;
}

.inventory-adjustment strong {
    font-size: 13px;
}

.inventory-adjustment p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.inventory-adjustment__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px;
}

.inventory-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 12px;
    min-height: 62px;
    padding: 11px 13px;
    border: 1px solid rgba(124, 85, 8, 0.3);
    border-radius: var(--checkout-radius-small);
    background: #fffbef;
    color: #5e4007;
    cursor: pointer;
    text-align: left;
}

.inventory-option:hover {
    border-color: #7c5508;
    background: #ffffff;
}

.inventory-option:focus-visible {
    outline: 3px solid rgba(124, 85, 8, 0.25);
    outline-offset: 3px;
}

.inventory-option span {
    font-size: 10px;
}

.inventory-option strong {
    font-size: 12px;
}

.inventory-option svg {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 17px;
    height: 17px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
}

.checkout-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 9px;
}

.checkout-field--full,
.checkout-field--amount {
    grid-column: 1 / -1;
}

.checkout-field > label,
.checkout-field__label-row label {
    color: var(--checkout-ink);
    font-size: 12px;
    font-weight: 700;
}

.checkout-field > label span {
    color: var(--checkout-text-muted);
    font-size: 10px;
    font-weight: 500;
}

.checkout-field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.checkout-field__label-row > span {
    color: var(--checkout-text-muted);
    font-size: 10px;
    text-align: right;
}

.checkout-field input,
.checkout-field textarea,
.amount-control {
    width: 100%;
    border: 1px solid var(--checkout-line-strong);
    border-radius: var(--checkout-radius-small);
    background: var(--checkout-surface);
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.checkout-field input,
.checkout-field textarea {
    padding: 13px 14px;
    outline: 0;
    color: var(--checkout-ink);
    font-size: 16px;
}

.checkout-field input {
    min-height: 50px;
}

.checkout-field textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.55;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
    color: #6d7a75;
    opacity: 1;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.amount-control:focus-within {
    border-color: var(--checkout-focus);
    box-shadow: 0 0 0 3px rgba(25, 111, 159, 0.17);
}

.checkout-field input[aria-invalid="true"],
.checkout-field textarea[aria-invalid="true"] {
    border-color: var(--checkout-danger);
}

.checkout-field__help {
    margin: 0;
    color: var(--checkout-text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.amount-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    overflow: hidden;
}

.amount-control input {
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    font-size: clamp(24px, 4vw, 38px);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.amount-control > span {
    display: flex;
    min-width: 72px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-left: 1px solid var(--checkout-line);
    background: var(--checkout-surface-subtle);
    color: var(--checkout-ink);
    font-size: 12px;
    font-weight: 700;
}

.offline-details {
    margin-top: 42px;
    padding-top: 38px;
    border-top: 1px solid var(--checkout-line-strong);
}

.offline-details > header {
    max-width: 680px;
}

.offline-details h2 {
    max-width: 23ch;
    margin: 0;
    color: var(--checkout-ink);
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.offline-details > header > p:last-child {
    margin: 11px 0 0;
    color: var(--checkout-text-muted);
    font-size: 13px;
}

.offline-instructions {
    margin: 25px 0 28px;
    border: 1px solid var(--checkout-line-strong);
    border-radius: var(--checkout-radius);
    background: var(--checkout-surface);
}

.offline-instructions__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 17px;
    border-bottom: 1px solid var(--checkout-line);
}

.offline-instructions__heading span {
    color: var(--checkout-ink);
    font-size: 12px;
    font-weight: 700;
}

.offline-instructions__heading small {
    color: var(--checkout-text-muted);
    font-size: 10px;
}

.offline-instructions__content {
    max-width: 100%;
    padding: 18px;
    overflow-wrap: anywhere;
    color: #374943;
    font-size: 13px;
    line-height: 1.65;
}

.offline-instructions__content > :first-child {
    margin-top: 0;
}

.offline-instructions__content > :last-child {
    margin-bottom: 0;
}

.offline-instructions__content h1,
.offline-instructions__content h2,
.offline-instructions__content h3 {
    margin: 1.4em 0 0.45em;
    color: var(--checkout-ink);
    font-weight: 700;
    line-height: 1.25;
}

.offline-instructions__content h1 {
    font-size: 19px;
}

.offline-instructions__content h2 {
    font-size: 16px;
}

.offline-instructions__content h3 {
    font-size: 14px;
}

.offline-instructions__content a {
    color: #116792;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.offline-instructions__content code {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--checkout-surface-subtle);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.9em;
}

.offline-instructions__content pre {
    max-width: 100%;
    padding: 13px;
    overflow-x: auto;
    border-radius: var(--checkout-radius-small);
    background: var(--checkout-ink);
    color: #eef5f1;
}

.offline-instructions__content blockquote {
    margin-left: 0;
    padding-left: 13px;
    border-left: 1px solid var(--checkout-line-strong);
    color: var(--checkout-text-muted);
}

.offline-instructions__content ul,
.offline-instructions__content ol {
    padding-left: 21px;
}

.handoff-preview {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding: 17px 18px 17px 22px;
    overflow: hidden;
    border: 1px solid var(--checkout-line);
    border-radius: var(--checkout-radius);
    background: var(--checkout-surface);
}

.handoff-preview__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--checkout-signal);
}

.handoff-preview__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--checkout-ink);
    color: var(--checkout-signal);
}

.handoff-preview__icon svg {
    width: 21px;
    height: 21px;
}

.handoff-preview > div:last-child {
    display: grid;
    gap: 3px;
}

.handoff-preview > div:last-child > span {
    color: var(--checkout-ink);
    font-size: 12px;
    font-weight: 700;
}

.handoff-preview p {
    margin: 0;
    color: var(--checkout-text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.checkout-actions__submit {
    display: grid;
    justify-items: end;
    gap: 9px;
}

.checkout-actions__submit p {
    max-width: 42ch;
    margin: 0;
    color: var(--checkout-text-muted);
    font-size: 10px;
    line-height: 1.45;
    text-align: right;
}

.checkout-button--submit {
    min-width: 190px;
}

.checkout-button__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--checkout-signal);
    border-radius: 50%;
    animation: checkout-spin 650ms linear infinite;
}

.is-submitting .checkout-button__spinner {
    display: block;
}

.is-submitting .checkout-button--submit > svg {
    display: none;
}

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

@media (max-width: 1220px) {
    .checkout-shell {
        grid-template-columns: 350px minmax(0, 1fr);
    }

    .checkout-rail__inner {
        padding: 30px;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .checkout-shell {
        display: block;
    }

    .checkout-rail {
        position: relative;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .checkout-rail::before {
        top: -9rem;
        right: 12%;
    }

    .checkout-rail::after {
        display: none;
    }

    .checkout-rail__track {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: 4px;
    }

    .checkout-rail__track span {
        top: -5px !important;
        right: auto;
        bottom: auto !important;
    }

    .checkout-rail__track span:nth-child(1) {
        left: 12%;
    }

    .checkout-rail__track span:nth-child(2) {
        left: 50%;
    }

    .checkout-rail__track span:nth-child(3) {
        right: 12%;
        left: auto;
    }

    .checkout-rail__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(290px, 0.8fr);
        min-height: auto;
        gap: 28px 48px;
        padding: 28px clamp(24px, 6vw, 64px) 32px;
    }

    .checkout-rail__top {
        gap: 28px;
    }

    .checkout-progress {
        grid-column: 1;
        margin-top: 0;
    }

    .checkout-progress ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .checkout-progress li + li::before {
        top: 38px;
        left: -13px;
        width: 26px;
        height: 1px;
    }

    .checkout-progress button {
        min-height: 64px;
        padding: 10px 0;
    }

    .checkout-tally {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: stretch;
        margin-top: 0;
        padding: 20px 22px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--checkout-radius);
        background: rgba(255, 255, 255, 0.04);
    }

    .checkout-tally__total strong {
        font-size: clamp(28px, 5vw, 42px);
    }

    .checkout-rail__footer {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
        align-items: start;
        margin-top: 0;
        padding-top: 2px;
        gap: 28px;
    }

    .merchant-help {
        border-top: 0;
    }

    .merchant-help summary {
        padding-top: 0;
    }

    .checkout-workspace__inner {
        width: min(100%, 880px);
        padding-top: 48px;
    }

    .checkout-workspace__meta {
        margin-bottom: 46px;
    }
}

@media (max-width: 680px) {
    .checkout-rail__inner {
        display: flex;
        gap: 0;
        padding: 20px 18px;
    }

    .checkout-brand__mark {
        width: 56px;
        height: 38px;
    }

    .checkout-brand__mark img {
        width: 42px;
    }

    .merchant-lockup {
        margin-top: 16px;
    }

    .merchant-lockup__icon {
        width: 50px;
        height: 50px;
    }

    .merchant-lockup__copy > strong {
        font-size: 18px;
    }

    .checkout-progress {
        width: 100%;
        margin-top: 16px;
    }

    .checkout-progress button {
        align-items: flex-start;
        gap: 9px;
    }

    .checkout-progress button small {
        display: none;
    }

    .checkout-progress__marker {
        width: 30px;
        height: 30px;
    }

    .checkout-progress li + li::before {
        top: 25px;
        left: -10px;
        width: 20px;
    }

    .checkout-tally {
        width: 100%;
        margin-top: 22px;
        padding: 18px;
    }

    .is-enhanced[data-active-step="1"] .checkout-tally {
        display: none;
    }

    .checkout-tally__lines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .checkout-tally__lines > div {
        display: grid;
        justify-content: start;
        gap: 2px;
    }

    .checkout-tally__lines dd {
        max-width: 100%;
        text-align: left;
    }

    .checkout-tally__total {
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }

    .checkout-tally__total strong {
        font-size: 32px;
    }

    .checkout-rail__footer {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 14px;
        gap: 12px;
    }

    .checkout-rail__footer:not(:has(.merchant-help)) {
        display: none;
    }

    .checkout-handoff-note {
        display: none;
    }

    .merchant-help {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .checkout-workspace__inner {
        padding: 30px 18px 90px;
    }

    .checkout-workspace__meta {
        margin-bottom: 34px;
    }

    .checkout-stage__header {
        margin-bottom: 34px;
    }

    .checkout-stage__header h1,
    .checkout-state h1 {
        max-width: 18ch;
        font-size: clamp(31px, 10vw, 42px);
    }

    .method-group + .method-group {
        margin-top: 30px;
    }

    .method-grid,
    .platform-grid,
    .field-grid,
    .inventory-adjustment__options {
        grid-template-columns: 1fr;
    }

    .method-option__surface {
        grid-template-columns: 44px minmax(0, 1fr) 20px;
        min-height: 104px;
        padding: 14px;
    }

    .method-option__icon {
        width: 44px;
        height: 44px;
    }

    .platform-selector {
        padding: 17px;
    }

    .checkout-field--full,
    .checkout-field--amount {
        grid-column: auto;
    }

    .checkout-field__label-row {
        align-items: flex-start;
    }

    .amount-control input {
        font-size: 28px;
    }

    .amount-control > span {
        min-width: 62px;
        padding: 0 12px;
    }

    .offline-instructions__heading {
        display: grid;
        gap: 2px;
    }

    .handoff-preview {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 15px 15px 15px 19px;
    }

    .handoff-preview__icon {
        width: 38px;
        height: 38px;
    }

    .checkout-actions {
        flex-wrap: wrap;
        align-items: center;
        margin: 40px 0 0;
        padding: 20px 0 0;
    }

    .checkout-actions--forward {
        display: block;
    }

    .checkout-actions__hint {
        display: none;
    }

    .checkout-actions--forward .checkout-button {
        width: 100%;
    }

    .checkout-actions__submit {
        flex: 1;
        justify-items: stretch;
    }

    .checkout-actions__submit p {
        display: none;
    }

    .checkout-button--submit {
        width: 100%;
        min-width: 0;
    }

    .checkout-button--secondary {
        min-width: 48px;
        padding: 12px;
        font-size: 0;
    }

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

    .checkout-state {
        min-height: 480px;
    }
}

@media (max-width: 420px) {
    .checkout-brand__copy small {
        display: none;
    }

    .checkout-tally__lines {
        display: grid;
        grid-template-columns: 1fr;
    }

    .checkout-tally__lines > div {
        display: flex;
        justify-content: space-between;
    }

    .checkout-tally__lines dd {
        text-align: right;
    }

    .method-option__description {
        -webkit-line-clamp: 1;
    }

    .method-option__meta {
        display: grid;
        grid-template-columns: auto;
        gap: 1px;
    }

    .method-option__meta i {
        display: none;
    }
}

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

@media print {
    .checkout-shell {
        display: block;
    }

    .checkout-rail {
        position: static;
        min-height: auto;
        max-height: none;
        color: var(--checkout-text);
        background: #ffffff;
    }

    .checkout-rail__track,
    .checkout-progress,
    .checkout-actions,
    .merchant-help {
        display: none !important;
    }

    .checkout-tally__total strong,
    .checkout-tally__lines dd,
    .checkout-brand,
    .merchant-lockup__copy > strong {
        color: var(--checkout-text);
    }
}
