/* Folkit Member Area - Stitch reference checkout UI. EDD remains the checkout engine. */

.fma-checkout-page {
    background: #f3f4f6;
}

.fma-checkout-page .site,
.fma-checkout-page main,
.fma-checkout-page .site-main,
.fma-checkout-page .entry-content {
    background: #f3f4f6;
}

.fma-checkout-page .entry-content > * {
    max-width: none;
}

.fma-checkout {
    --fma-co-bg: #f3f4f6;
    --fma-co-surface: #ffffff;
    --fma-co-text: #0b1c30;
    --fma-co-muted: #4b5563;
    --fma-co-soft: #76777d;
    --fma-co-border: #e2e8f0;
    --fma-co-border-soft: #edf2f7;
    --fma-co-focus: rgba(0, 0, 0, 0.06);
    --fma-co-danger: #ba1a1a;
    --fma-co-danger-bg: #fff1f0;
    --fma-co-success: #13795b;
    --fma-co-success-bg: #eefaf4;
    --fma-checkout-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fma-co-font: var(--fma-checkout-font);
    --fma-co-label-font: var(--fma-checkout-font);
    width: min(calc(100% - 48px), 1120px);
    max-width: 1120px;
    margin-inline: auto;
    padding: 60px 0 64px;
    color: var(--fma-co-text);
    font-family: var(--fma-co-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    box-sizing: border-box;
    clear: both;
    float: none;
}

.fma-checkout,
.fma-checkout input,
.fma-checkout button,
.fma-checkout select,
.fma-checkout textarea {
    font-family: var(--fma-checkout-font) !important;
}

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

.fma-checkout-shell,
.fma-checkout #edd_checkout_form_wrap,
.fma-checkout .edd_form,
.fma-checkout #edd_purchase_form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    clear: none;
    float: none;
}

.fma-checkout-progress {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin: 0 0 48px;
    color: var(--fma-co-soft);
    font-family: var(--fma-co-label-font);
}

.fma-progress-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fma-co-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.fma-progress-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--fma-co-border);
    border-radius: 999px;
    background: #fff;
    color: var(--fma-co-muted);
    font-size: 12px;
    font-weight: 700;
}

.fma-progress-step.is-active {
    color: #000;
}

.fma-progress-step.is-active .fma-progress-number {
    border-color: #000;
    background: #000;
    color: #fff;
}

.fma-progress-line {
    width: 48px;
    height: 1px;
    background: var(--fma-co-border);
}

.fma-checkout-account {
    margin: 0 0 24px;
}

.fma-checkout .fma-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
    gap: 40px;
    align-items: start;
    width: 100%;
}

.fma-checkout .fma-checkout-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: start;
}

.fma-checkout .fma-checkout-summary {
    position: sticky;
    top: 48px;
    min-width: 0;
    width: 100%;
    max-width: none;
    clear: none;
    float: none;
}

.fma-customer-card,
.fma-payment-card,
.fma-summary-card,
.fma-co-summary-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--fma-co-border);
    border-radius: 16px;
    background: var(--fma-co-surface);
    padding: 28px 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.fma-checkout #edd_checkout_user_info,
.fma-checkout .edd-blocks-form,
.fma-checkout .edd-blocks-form__group,
.fma-checkout .edd-blocks-form__fieldset,
.fma-checkout .edd-payment-icons,
.fma-checkout .edd-payment-mode-wrap,
.fma-checkout #edd-payment-mode-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.fma-co-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
}

.fma-co-section-icon,
.fma-support-link svg,
.fma-trust-row svg {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #000;
}

.fma-co-section-title,
.fma-co-summary-title {
    margin: 0;
    color: #000;
    font-family: var(--fma-co-font);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.fma-co-login-line {
    margin: 0;
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    line-height: 20px;
}

.fma-co-login-line a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.fma-co-login-line a:hover,
.fma-co-login-line a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fma-co-fields,
.fma-co-gateway-fields {
    width: 100%;
    margin: 0;
    padding: 0;
}

.fma-checkout .fma-co-name-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 18px;
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: stretch;
    align-items: start;
}

.fma-checkout .fma-co-name-grid > * {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.fma-checkout .fma-co-name-grid input {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

.fma-co-fields p,
.fma-co-gateway-fields p,
.fma-checkout .edd-blocks-form__group {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 18px;
}

.fma-co-fields p:last-child,
.fma-co-gateway-fields p:last-child {
    margin-bottom: 0;
}

.fma-checkout label,
.fma-checkout .edd-label {
    display: block;
    margin: 0 0 7px;
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.fma-checkout #edd_checkout_form_wrap label.edd-label {
    font-weight: 600;
}

.fma-checkout .edd-description,
.fma-co-note,
.fma-co-gateway-desc,
.fma-co-item-meta {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-family: var(--fma-co-label-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.fma-checkout input[type="text"],
.fma-checkout input[type="email"],
.fma-checkout input[type="tel"],
.fma-checkout input[type="password"],
.fma-checkout input[type="number"],
.fma-checkout select,
.fma-checkout textarea,
.fma-checkout .edd-input {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    border: 1px solid #dfe5eb;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--fma-co-text);
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    box-shadow: none;
    appearance: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

/*
 * Hotfix — Data Pembeli full-width.
 *
 * Root cause: EDD frontend edd.min.css ships
 *   #edd_checkout_form_wrap input.edd-input { display:block; width:70% }
 * (specificity 1-1-1) which overrides plugin class rules such as
 * .fma-checkout input[type="text"] (0-2-1) and .fma-co-name-grid input (0-3-1).
 * That is why Email, WhatsApp, and both name inputs render at 70% width.
 *
 * Fix: use ID-scoped selectors under .fma-customer-card (specificity 1-2-0+)
 * which beat the EDD ID rule without resorting to !important.
 * Scope is limited to the Data Pembeli card; gateway, coupon, summary,
 * add-on, and submit areas are intentionally untouched.
 */
.fma-checkout .fma-customer-card .fma-co-fields {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.fma-checkout .fma-customer-card .fma-co-fields > p,
.fma-checkout .fma-customer-card .fma-co-fields > .edd-blocks-form__group {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
    box-sizing: border-box;
}

.fma-checkout .fma-customer-card .fma-co-name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 18px;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
}

.fma-checkout .fma-customer-card .fma-co-name-grid > p,
.fma-checkout .fma-customer-card .fma-co-name-grid > .edd-blocks-form__group {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding-inline: 0;
    box-sizing: border-box;
}

.fma-checkout .fma-customer-card .fma-co-name-grid input {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

/* ID-scoped overrides (1-2-0) beat EDD #edd_checkout_form_wrap input.edd-input (1-1-1) */
.fma-checkout .fma-customer-card #edd-first,
.fma-checkout .fma-customer-card #edd-last,
.fma-checkout .fma-customer-card #edd-email,
.fma-checkout .fma-customer-card #edd-phone {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

.fma-checkout textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
}

.fma-checkout input::placeholder,
.fma-checkout textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.fma-checkout input:focus,
.fma-checkout select:focus,
.fma-checkout textarea:focus {
    outline: 3px solid rgba(148, 163, 184, 0.15);
    outline-offset: 0;
    border-color: #94a3b8;
    box-shadow: none;
}

.fma-checkout input[type="checkbox"],
.fma-checkout input[type="radio"] {
    accent-color: #000;
}

.fma-checkout .edd-required-indicator {
    color: var(--fma-co-danger);
}

.fma-payment-card #edd-payment-mode-wrap,
.fma-co-payment-select,
.fma-co-payment-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.fma-checkout .edd-gateway-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--fma-co-border);
    border-radius: 12px;
    background: #fff;
    color: var(--fma-co-text);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fma-checkout .edd-gateway-option:hover,
.fma-checkout .edd-gateway-option-selected {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.fma-checkout input[type="radio"].edd-gateway {
    width: 20px;
    height: 20px;
    margin: 0;
}

.fma-co-gateway-name {
    display: block;
    color: #000;
    font-family: var(--fma-co-label-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.fma-co-gateway-fields {
    margin-top: 18px;
}

.fma-co-gateway-fields:empty {
    margin-top: 0;
}

.fma-duitku-channels {
    display: grid;
    gap: 10px;
}

.fma-checkout .fma-duitku-channel {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--fma-co-border);
    border-radius: 11px;
    background: #f8fafc;
    cursor: pointer;
}

.fma-checkout .fma-duitku-channel:hover,
.fma-checkout .fma-duitku-channel:has(input:checked) {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
    background: #fff;
}

.fma-checkout .fma-duitku-channel input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.fma-duitku-channel-name {
    display: block;
    color: #000;
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
}

.fma-checkout .fma-embedded-channel-gateway {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fma-checkout .fma-backend-gateway-options {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fma-checkout .fma-payment-channel-selector {
    position: relative;
    width: 100%;
}

.fma-checkout #edd_checkout_form_wrap fieldset.fma-payment-channel-selector {
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.fma-checkout #edd_checkout_form_wrap fieldset.fma-payment-channel-selector > legend {
    display: none;
}

.fma-checkout .fma-payment-channel-selector[hidden] {
    display: none;
}

.fma-checkout .fma-payment-channel-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--fma-co-border);
    border-radius: 12px;
    background: #fff;
    color: var(--fma-co-text);
    font: inherit;
    text-align: left;
    white-space: normal;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.fma-checkout .fma-payment-channel-trigger:hover,
.fma-checkout .fma-payment-channel-selector.is-open .fma-payment-channel-trigger {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.fma-checkout .fma-payment-channel-trigger:focus-visible {
    outline: 3px solid rgba(15, 23, 42, 0.22);
    outline-offset: 3px;
    border-color: #000;
}

.fma-checkout .fma-payment-channel-selector.has-error .fma-payment-channel-trigger {
    border-color: var(--fma-co-danger);
    box-shadow: 0 0 0 1px var(--fma-co-danger);
}

.fma-checkout .fma-payment-channel-error {
    margin: 8px 2px 0;
    color: var(--fma-co-danger);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.fma-checkout .fma-payment-channel-error[hidden] {
    display: none;
}

.fma-checkout .fma-payment-channel-summary {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    overflow: hidden;
    white-space: normal;
}

.fma-checkout .fma-payment-channel-placeholder {
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 14px;
    font-weight: 600;
}

.fma-checkout .fma-payment-channel-trigger-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.fma-checkout .fma-payment-channel-chevron {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    transition: transform 160ms ease;
}

.fma-checkout .fma-payment-channel-selector.is-open .fma-payment-channel-chevron {
    transform: rotate(180deg);
}

.fma-checkout .fma-payment-channel-options {
    display: grid;
    gap: 8px;
    max-height: 370px;
    margin-top: 10px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--fma-co-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    animation: fma-payment-channel-open 160ms ease-out;
    scrollbar-width: thin;
}

.fma-checkout .fma-payment-channel-options[hidden] {
    display: none;
}

@keyframes fma-payment-channel-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fma-checkout .fma-payment-channel-option {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.fma-checkout #edd_checkout_form_wrap .fma-payment-channel-option {
    display: grid;
}

.fma-checkout .fma-payment-channel-option:hover {
    border-color: var(--fma-co-border);
    background: #fff;
}

.fma-checkout .fma-payment-channel-option.is-manual {
    margin-top: 4px;
    border-top-color: var(--fma-co-border);
}

.fma-checkout .fma-payment-channel-option.is-manual::before {
    position: absolute;
    top: -7px;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--fma-co-border);
    content: "";
}

.fma-checkout .fma-payment-channel-option.is-selected,
.fma-checkout .fma-payment-channel-option:has(.fma-payment-channel-radio:checked) {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
    background: #fff;
}

.fma-checkout .fma-payment-channel-option:has(.fma-payment-channel-radio:focus-visible) {
    outline: 3px solid rgba(15, 23, 42, 0.22);
    outline-offset: 2px;
}

.fma-checkout .fma-payment-channel-radio {
    position: absolute;
    inset: 50% auto auto 16px;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0.01;
    pointer-events: none;
}

.fma-checkout .fma-payment-channel-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 42px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.fma-checkout .fma-payment-channel-logo img,
.fma-checkout .fma-payment-channel-summary-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fma-checkout .fma-payment-channel-copy,
.fma-checkout .fma-payment-channel-summary-copy {
    display: block;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.fma-checkout .fma-payment-channel-name,
.fma-checkout .fma-payment-channel-summary-name {
    display: block;
    color: #000;
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.fma-checkout .fma-payment-channel-type,
.fma-checkout .fma-payment-channel-summary-type {
    display: block;
    margin-top: 1px;
    color: #334155;
    font-family: var(--fma-co-label-font);
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
}

.fma-checkout .fma-payment-channel-description,
.fma-checkout .fma-payment-channel-summary-description {
    display: block;
    margin-top: 2px;
    color: var(--fma-co-muted);
    font-size: 12px;
    line-height: 17px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fma-checkout .fma-payment-channel-badge {
    align-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-family: var(--fma-co-label-font);
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    white-space: nowrap;
}

.fma-checkout .fma-payment-channel-summary-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 36px;
    flex: 0 0 50px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
}

@media (max-width: 767px) {
    .fma-checkout .fma-payment-channel-trigger {
        min-height: 64px;
        padding: 11px 12px;
    }

    .fma-checkout .fma-payment-channel-trigger-meta [data-fma-change-label] {
        display: none;
    }

    .fma-checkout .fma-payment-channel-options {
        max-height: min(360px, 58vh);
        padding: 5px;
    }

    .fma-checkout .fma-payment-channel-option {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px;
        min-height: 68px;
        padding: 10px;
    }

    .fma-checkout .fma-payment-channel-logo {
        width: 50px;
        height: 38px;
    }

    .fma-checkout .fma-payment-channel-badge {
        grid-column: 2;
        justify-self: start;
        margin-top: -4px;
    }

    .fma-checkout .fma-payment-channel-summary-logo {
        width: 46px;
        height: 34px;
        flex-basis: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fma-checkout .fma-payment-channel-options {
        animation: none;
    }

    .fma-checkout .fma-payment-channel-chevron {
        transition: none;
    }
}

.fma-bank-instructions,
.fma-duitku-details {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid var(--fma-co-border);
    border-radius: 14px;
    background: #fff;
}

.fma-bank-instructions dl,
.fma-duitku-details dl {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
    gap: 8px 14px;
    margin: 12px 0;
}

.fma-bank-instructions dt,
.fma-duitku-details dt {
    color: var(--fma-co-muted);
    font-weight: 700;
}

.fma-bank-instructions dd,
.fma-duitku-details dd {
    margin: 0;
    color: var(--fma-co-text);
}

.fma-co-gateway-fields fieldset,
.fma-checkout #edd_terms_agreement,
.fma-checkout #edd-privacy-policy-agreement {
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.fma-co-gateway-fields legend,
.fma-checkout #edd_terms_agreement legend,
.fma-checkout #edd-privacy-policy-agreement legend {
    display: none;
}

.fma-checkout #edd_terms_agreement,
.fma-checkout #edd-privacy-policy-agreement,
.fma-checkout .edd-terms-agreement,
.fma-checkout .edd-privacy-policy-agreement {
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    line-height: 20px;
}

.fma-checkout #edd_terms_agreement input[type="checkbox"],
.fma-checkout #edd-privacy-policy-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.fma-trust-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin: 0;
    padding: 0 6px;
    position: static;
    box-sizing: border-box;
    color: rgba(75, 85, 99, 0.8);
    font-family: var(--fma-co-label-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.fma-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fma-trust-row svg {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.fma-co-summary-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fma-co-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fma-co-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--fma-co-border);
}

.fma-co-item + .fma-co-item {
    padding-top: 24px;
}

.fma-co-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 1px solid var(--fma-co-border);
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--fma-co-muted);
    font-size: 22px;
    font-weight: 700;
}

.fma-co-thumb img {
    width: 100%;
    height: 100%;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
}

.fma-co-item-name {
    display: block;
    overflow-wrap: anywhere;
    color: #000;
    font-family: var(--fma-co-label-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.fma-co-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.fma-co-item-price {
    color: #000;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
}

.fma-co-remove,
.fma-co-remove:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--fma-co-muted);
    font-size: 0;
    text-decoration: none;
}

.fma-co-remove::before {
    content: "\00d7";
    font-size: 20px;
    line-height: 1;
}

.fma-co-remove:hover,
.fma-co-remove:focus {
    color: var(--fma-co-danger);
    background: var(--fma-co-danger-bg);
}

.fma-co-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 12px;
}

.fma-co-qty input[type="number"] {
    width: 44px;
    height: 32px;
    min-height: 32px;
    padding: 4px 6px;
    text-align: center;
}

.fma-addons {
    padding-top: 0;
}

.fma-addons-title,
.fma-co-mini-title {
    margin: 0 0 10px;
    color: #000;
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
}

.fma-addons-title {
    font-size: 14px;
}

.fma-addons-desc {
    display: none;
}

.fma-addons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.fma-addon-label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--fma-co-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.fma-addon-label:hover,
.fma-addon-label.is-selected {
    border-color: #000;
}

.fma-addon-toggle {
    width: 18px;
    height: 18px;
    margin: 0;
}

.fma-addon-name {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #000;
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.fma-addon-price {
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}

.fma-co-coupon {
    padding: 16px;
    border: 1px solid var(--fma-co-border);
    border-radius: 12px;
    background: rgba(243, 244, 246, 0.55);
}

.fma-checkout #edd-discount-code-wrap {
    display: block !important;
    margin: 0;
}

.edd-discount-code-field-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.edd-discount-code-field-wrap .edd-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    font-family: var(--fma-co-label-font);
    font-size: 14px;
}

.fma-checkout .edd-apply-discount,
.fma-checkout .edd-apply-discount.edd-submit {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    border: 0;
    border-bottom: 2px solid #000;
    border-radius: 0;
    background: transparent;
    color: #000;
    padding: 0 2px;
    font-family: var(--fma-co-label-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    box-shadow: none;
}

.fma-checkout .edd_cart_discount_row {
    margin: 0 0 10px;
}

.fma-checkout .edd_cart_discount:empty {
    display: none;
}

.fma-checkout .edd_discount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--fma-co-success);
    font-family: var(--fma-co-label-font);
    font-size: 12px;
    line-height: 16px;
}

.fma-checkout .edd_discount_remove {
    color: var(--fma-co-danger);
    font-weight: 700;
    text-decoration: none;
}

.fma-co-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fma-co-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--fma-co-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.fma-co-total-row span:last-child {
    color: #000;
    font-family: var(--fma-co-label-font);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.fma-co-discount span:last-child {
    color: var(--fma-co-danger);
}

.fma-co-grand-total {
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--fma-co-border);
    color: #000;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.fma-co-grand-total span:last-child {
    font-family: var(--fma-co-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.fma-co-submit {
    padding-top: 0;
}

.fma-checkout #edd-purchase-button,
.fma-checkout #edd_purchase_submit #edd-purchase-button,
.fma-checkout input[type="submit"]#edd-purchase-button.edd-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    padding: 14px 18px;
    font-family: var(--fma-co-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.fma-checkout #edd-purchase-button:hover,
.fma-checkout #edd-purchase-button:focus {
    opacity: 0.9;
    transform: translateY(-1px);
}

.fma-checkout #edd-purchase-button:disabled,
.fma-checkout #edd-purchase-button.is-loading {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.fma-support-link {
    margin-top: 24px;
    text-align: center;
}

.fma-support-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.fma-support-link a:hover,
.fma-support-link a:focus {
    color: #000;
}

.fma-support-link svg {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.fma-checkout .edd_errors,
.fma-checkout .edd-alert-error,
.fma-checkout #edd_checkout_error_wrap {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(186, 26, 26, 0.25);
    border-radius: 10px;
    background: var(--fma-co-danger-bg);
    color: var(--fma-co-danger);
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    line-height: 18px;
}

.fma-co-admin-notice {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #efb8b1;
    border-radius: 9px;
    background: #fff7f6;
    color: var(--fma-co-danger);
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    line-height: 1.5;
}

.fma-checkout .edd-alert-success {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(19, 121, 91, 0.25);
    border-radius: 10px;
    background: var(--fma-co-success-bg);
    color: var(--fma-co-success);
    font-family: var(--fma-co-label-font);
    font-size: 13px;
    line-height: 18px;
}

.fma-checkout .edd-loading {
    color: var(--fma-co-muted);
    font-family: var(--fma-co-label-font);
    font-size: 12px;
}

@media (max-width: 1023px) {
    .fma-checkout {
        width: min(calc(100% - 48px), 1120px);
        padding: 44px 0 52px;
    }

    .fma-checkout .fma-checkout-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .fma-checkout .fma-checkout-summary {
        position: static;
    }

    .fma-checkout .fma-checkout-main {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .fma-checkout {
        width: 100%;
        padding: 24px 16px 36px;
    }

    .fma-checkout-progress {
        gap: 10px;
        margin-bottom: 32px;
    }

    .fma-progress-line {
        width: 32px;
    }

    .fma-customer-card,
    .fma-payment-card,
    .fma-summary-card,
    .fma-co-summary-card {
        padding: 20px;
        border-radius: 14px;
    }

    .fma-checkout .fma-checkout-main {
        gap: 20px;
    }

    .fma-checkout .fma-checkout-summary {
        position: static;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-top: 4px;
    }

    .fma-checkout-account {
        margin-bottom: 20px;
    }

    .fma-co-section-head {
        margin-bottom: 20px;
    }

    .fma-co-section-title,
    .fma-co-summary-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .fma-checkout .fma-customer-card .fma-co-name-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 18px;
        width: 100%;
        margin-bottom: 18px;
    }

    .fma-checkout .fma-customer-card .fma-co-name-grid > * {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .fma-checkout .fma-customer-card .fma-co-name-grid input {
        display: block;
        width: 100%;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
    }

    .fma-co-fields p,
    .fma-co-gateway-fields p,
    .fma-checkout .edd-blocks-form__group {
        margin-bottom: 18px;
    }

    .fma-checkout .fma-trust-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        padding-inline: 8px;
        margin: 0;
        font-size: 11px;
    }

    .fma-checkout .fma-trust-row > * {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        min-width: 0;
    }

    .fma-co-item {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .fma-co-thumb,
    .fma-co-thumb img {
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
    }

    .edd-discount-code-field-wrap {
        flex-wrap: wrap;
    }

    .edd-discount-code-field-wrap .edd-input {
        flex: 1 1 100%;
    }
}

@media (max-width: 430px) {
    .fma-checkout #edd-purchase-button,
    .fma-checkout #edd_purchase_submit #edd-purchase-button,
    .fma-checkout input[type="submit"]#edd-purchase-button.edd-submit {
        font-size: 16px;
    }

    .fma-co-item {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .fma-co-thumb,
    .fma-co-thumb img {
        width: 60px;
        height: 60px;
        max-width: 60px;
        max-height: 60px;
    }

    .fma-co-item-side {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .fma-addon-label {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .fma-addon-price {
        grid-column: 2;
    }
}
/* ==========================================================================
   RECEIPT / PURCHASE CONFIRMATION
   Matches checkout UI exactly - same design tokens, same visual language
   ========================================================================== */

.fma-receipt {
    min-height: 100vh;
    background: var(--fma-co-bg, #f3f4f6);
    font-family: var(--fma-checkout-font, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif);
    color: var(--fma-co-text, #0b1c30);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Topbar - matches checkout header exactly */
.fma-receipt-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--fma-co-border, #e2e8f0);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}
.fma-receipt-topbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

/* Body wrapper - matches checkout padding */
.fma-receipt-body {
    padding: 76px 24px 64px;
}
.fma-receipt-container {
    width: min(calc(100% - 48px), 800px);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer - compact, inline heart */
.fma-receipt-footer {
    border-top: 1px solid var(--fma-co-border, #e2e8f0);
    background: #fff;
    padding: 20px 24px;
}
.fma-footer-inner {
    text-align: center;
    font-size: 13px;
    color: var(--fma-co-muted, #4b5563);
    font-weight: 500;
}
.fma-footer-sep {
    margin: 0 8px;
    color: var(--fma-co-border, #e2e8f0);
}
.fma-footer-heart {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 2px;
    color: #dc2626;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ------------------------------------------------------------------
   HERO SECTION - matches checkout card style
   ------------------------------------------------------------------ */
.fma-receipt-hero {
    background: #fff;
    border: 1px solid var(--fma-co-border, #e2e8f0);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fma-receipt-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.fma-receipt-hero-icon svg {
    width: 24px;
    height: 24px;
}
.fma-receipt-hero-icon--success {
    background: var(--fma-co-success-bg, #eefaf4);
    color: var(--fma-co-success, #13795b);
}
.fma-receipt-hero-icon--pending {
    background: #fef9ec;
    color: #b45309;
}
.fma-receipt-hero-icon--expired {
    background: var(--fma-co-danger-bg, #fff1f0);
    color: var(--fma-co-danger, #ba1a1a);
}

.fma-receipt-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fma-co-muted, #4b5563);
    margin: 0;
}

.fma-receipt-headline {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--fma-co-text, #0b1c30);
    margin: 0;
}

.fma-receipt-sub {
    font-size: 14px;
    color: var(--fma-co-muted, #4b5563);
    margin: 0;
    max-width: 400px;
    line-height: 1.5;
}

/* Badge - matches checkout status style */
.fma-receipt-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 4px;
}
.fma-receipt-badge--success {
    background: var(--fma-co-success-bg, #eefaf4);
    color: var(--fma-co-success, #13795b);
}
.fma-receipt-badge--pending {
    background: #fef9ec;
    color: #92400e;
}
.fma-receipt-badge--expired {
    background: var(--fma-co-danger-bg, #fff1f0);
    color: var(--fma-co-danger, #ba1a1a);
}

/* ------------------------------------------------------------------
   CARDS - matches checkout card classes exactly
   ------------------------------------------------------------------ */
.fma-receipt-card {
    background: #fff;
    border: 1px solid var(--fma-co-border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
}
.fma-receipt-card--action {
    border-color: var(--fma-co-border-soft, #edf2f7);
    background: #fafbfc;
}

.fma-receipt-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--fma-co-border-soft, #edf2f7);
    background: var(--fma-co-bg, #f3f4f6);
}
.fma-receipt-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fma-co-text, #0b1c30);
}
.fma-receipt-card-icon {
    display: flex;
    align-items: center;
    color: var(--fma-co-muted, #4b5563);
}
.fma-receipt-card-icon svg {
    width: 18px;
    height: 18px;
}
.fma-receipt-card-icon--bank {
    color: #1d4ed8;
}

.fma-receipt-card-body {
    padding: 20px;
}
.fma-receipt-card-body--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
}

/* ------------------------------------------------------------------
   ORDER SUMMARY DL - matches checkout summary style
   ------------------------------------------------------------------ */
.fma-receipt-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}
.fma-receipt-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fma-co-border-soft, #edf2f7);
}
.fma-receipt-summary-row:last-child {
    border-bottom: 0;
}
.fma-receipt-summary-row dt {
    font-size: 14px;
    color: var(--fma-co-muted, #4b5563);
    font-weight: 500;
    flex-shrink: 0;
}
.fma-receipt-summary-row dd {
    font-size: 14px;
    color: var(--fma-co-text, #0b1c30);
    margin: 0;
    text-align: right;
    word-break: break-word;
    font-weight: 500;
}
.fma-receipt-summary-row--total {
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid var(--fma-co-border, #e2e8f0);
    border-bottom: 0;
}
.fma-receipt-summary-row--total dt,
.fma-receipt-summary-row--total dd {
    font-weight: 700;
    font-size: 16px;
    color: var(--fma-co-text, #0b1c30);
}

/* ------------------------------------------------------------------
   PRODUCT + DOWNLOAD - matches checkout item style
   ------------------------------------------------------------------ */
.fma-receipt-product {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--fma-co-border, #e2e8f0);
}
.fma-receipt-product:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.fma-receipt-product:first-child {
    padding-top: 0;
}

.fma-receipt-product-thumb {
    flex-shrink: 0;
}
.fma-receipt-product-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--fma-co-border, #e2e8f0);
    display: block;
    background: var(--fma-co-bg, #f3f4f6);
}

.fma-receipt-product-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fma-receipt-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 20px;
}
.fma-receipt-product-variant {
    font-size: 13px;
    font-weight: 500;
    color: var(--fma-co-muted, #4b5563);
}

.fma-receipt-product-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--fma-co-muted, #4b5563);
    flex-wrap: wrap;
}
.fma-receipt-product-sep {
    color: var(--fma-co-border, #e2e8f0);
}
.fma-receipt-product-access {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--fma-co-success, #13795b);
    font-weight: 600;
}

/* Files - matches checkout item row style */
.fma-receipt-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.fma-receipt-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--fma-co-bg, #f3f4f6);
    border: 1px solid var(--fma-co-border-soft, #edf2f7);
    border-radius: 10px;
    padding: 12px 14px;
}
.fma-receipt-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.fma-receipt-file-icon {
    color: var(--fma-co-muted, #4b5563);
    flex-shrink: 0;
    display: flex;
}
.fma-receipt-file-icon svg {
    width: 18px;
    height: 18px;
}
.fma-receipt-file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--fma-co-text, #0b1c30);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.fma-receipt-file-limit {
    font-size: 11px;
    color: var(--fma-co-soft, #76777d);
    white-space: nowrap;
    flex-shrink: 0;
}
.fma-receipt-no-files {
    font-size: 13px;
    color: var(--fma-co-muted, #4b5563);
    margin: 4px 0 0;
}

/* Download button - matches checkout button style */
.fma-receipt-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 160ms ease;
}
.fma-receipt-file-btn:hover,
.fma-receipt-file-btn:focus {
    opacity: 0.85;
    color: #fff !important;
    text-decoration: none !important;
}
.fma-receipt-file-btn svg {
    width: 16px;
    height: 16px;
}

/* ------------------------------------------------------------------
   ACTION BUTTONS - matches checkout #edd-purchase-button exactly
   ------------------------------------------------------------------ */
.fma-receipt-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
.fma-receipt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    line-height: 1.4;
}
.fma-receipt-btn svg {
    width: 18px;
    height: 18px;
}
.fma-receipt-btn--primary {
    background: #000;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.fma-receipt-btn--primary:hover,
.fma-receipt-btn--primary:focus {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}
.fma-receipt-btn--secondary {
    background: #fff;
    color: var(--fma-co-text, #0b1c30) !important;
    border: 1px solid var(--fma-co-border, #e2e8f0);
}
.fma-receipt-btn--secondary:hover,
.fma-receipt-btn--secondary:focus {
    border-color: #000;
    color: var(--fma-co-text, #0b1c30) !important;
    text-decoration: none !important;
}

/* Action card note */
.fma-receipt-action-note {
    font-size: 14px;
    color: var(--fma-co-muted, #4b5563);
    margin: 0;
    max-width: 360px;
    line-height: 1.5;
}

/* ------------------------------------------------------------------
   SUPPORT NOTE
   ------------------------------------------------------------------ */
.fma-receipt-support {
    text-align: center;
    font-size: 13px;
    color: var(--fma-co-soft, #76777d);
    padding: 0 16px;
    line-height: 1.5;
}
.fma-receipt-support-link {
    color: var(--fma-co-text, #0b1c30);
    font-weight: 600;
    text-decoration: underline;
}
.fma-receipt-support-link:hover {
    color: #000;
}

/* ------------------------------------------------------------------
   BANK MANUAL EXTRAS
   ------------------------------------------------------------------ */
.fma-receipt-bank-note {
    font-size: 14px;
    color: var(--fma-co-muted, #4b5563);
    background: #fef9ec;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 0 16px;
    line-height: 1.5;
}
.fma-receipt-bank-account {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 16px;
    font-weight: 700;
    background: var(--fma-co-bg, #f3f4f6);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.08em;
    color: var(--fma-co-text, #0b1c30);
}
.fma-receipt-bank-due {
    color: #b45309;
    font-weight: 600;
}
.fma-receipt-bank-instructions {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--fma-co-border-soft, #edf2f7);
    font-size: 14px;
    color: var(--fma-co-muted, #4b5563);
    line-height: 1.6;
}

/* Error state */
.fma-receipt-error {
    margin: 60px auto;
    max-width: 480px;
    padding: 20px 24px;
    background: var(--fma-co-danger-bg, #fff1f0);
    border: 1px solid var(--fma-co-danger, #ba1a1a);
    border-radius: 10px;
    color: var(--fma-co-danger, #ba1a1a);
    font-size: 14px;
    text-align: center;
}

/* ------------------------------------------------------------------
   RESPONSIVE - matches checkout breakpoints
   ------------------------------------------------------------------ */
@media (max-width: 600px) {
    .fma-receipt-topbar {
        height: 56px;
    }
    .fma-receipt-body {
        padding: 76px 0 48px;
    }
    .fma-receipt-container {
        width: 100%;
        gap: 16px;
    }
    .fma-receipt-hero {
        padding: 28px 20px 24px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .fma-receipt-hero-icon {
        width: 44px;
        height: 44px;
    }
    .fma-receipt-hero-icon svg {
        width: 22px;
        height: 22px;
    }
    .fma-receipt-headline {
        font-size: 22px;
    }
    .fma-receipt-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .fma-receipt-card-header {
        padding: 14px 16px;
    }
    .fma-receipt-card-body {
        padding: 16px;
    }
    .fma-receipt-summary-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
        align-items: flex-start;
    }
    .fma-receipt-summary-row dt {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-weight: 600;
    }
    .fma-receipt-summary-row dd {
        text-align: left;
        font-size: 15px;
    }
    .fma-receipt-product {
        flex-direction: column;
        gap: 12px;
    }
    .fma-receipt-product-thumb img {
        width: 64px;
        height: 64px;
    }
    .fma-receipt-file-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .fma-receipt-file-info {
        flex-direction: row;
    }
    .fma-receipt-file-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
    .fma-receipt-file-name {
        max-width: calc(100vw - 100px);
    }
    .fma-receipt-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 10px;
    }
    .fma-receipt-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }
    .fma-receipt-support {
        padding: 0 16px;
    }
    .fma-receipt-footer {
        padding: 16px 20px;
    }
    .fma-footer-inner {
        font-size: 12px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .fma-receipt-container {
        max-width: 640px;
    }
    .fma-receipt-headline {
        font-size: 22px;
    }
}
