@layer components {
/* Payment method row: a source's brand mark (or fallback icon) + display label,
   with an optional trailing amount. Mirrors the receipt page's __method hooks. */

.psw-payment-method {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    min-width: 0;
}

.psw-payment-method__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--color-gray-600);
}

/* .psw-icon ships with `color: var(--theme-primary, …)`; force currentColor so
   the fallback icon takes the gray above (the brand <img> is unaffected). */
.psw-payment-method__icon .psw-icon {
    color: currentColor;
}

.psw-payment-method__icon .psw-payment-icon {
    display: block;
    height: 24px;
    width: auto;
}

.psw-payment-method__label {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-sans);
    font-size: var(--text-paragraph-md);
    line-height: var(--text-paragraph-md--line-height);
    font-weight: var(--font-weight-bold);
    color: var(--color-content-high);
    overflow-wrap: anywhere;
}

.psw-payment-method__amount {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    font-family: var(--font-sans);
    font-size: var(--text-paragraph-md);
    line-height: var(--text-paragraph-md--line-height);
    color: var(--color-content-high);
}
}
