Skip to content

Payment Services styles

Customize the Payment Services drop-in using CSS classes and design tokens. This page covers the Payment Services-specific container classes and customization examples. For comprehensive information about design tokens, responsive breakpoints, and styling best practices, see Styling Drop-In Components.

Version: 1.0.2

Customization example

Add this to the CSS file of the specific commerce block where you’re using the Payment Services drop-in.

For a complete list of available design tokens (colors, spacing, typography, etc.), see the Design tokens reference.

.credit-card-error {
color: var(--color-alert-800);
border: var(--shape-border-width-1) solid var(--color-alert-800);
padding: var(--spacing-small);
color: var(--color-alert-800);
border: var(--shape-border-width-1) solid var(--color-alert-800);
padding: var(--spacing-medium);
}

Container classes

The Payment Services drop-in uses BEM-style class naming. Use the browser DevTools to inspect elements and find specific class names.

/* CheckoutPaymentMethods */
.payment-services-checkout-payment-methods {}
/* CreditCardForm */
.credit-card-error {}
.credit-card-error__icon {}
/* CreditCardForm */
.credit-card-field {}
.credit-card-field__container {}
.credit-card-field__container--error {}
.credit-card-field__error {}
.credit-card-field__label {}
/* CreditCardForm */
.hidden {}
.payment-services-credit-card-form {}
.payment-services-credit-card-form__card-number {}
.payment-services-credit-card-form__eligible-cards {}
.payment-services-credit-card-form__eligible-cards-icon {}
.payment-services-credit-card-form__eligible-cards-selected {}
.payment-services-credit-card-form__eligible-cards-unselected {}
.payment-services-credit-card-form__loading {}