> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/digital-river-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/configuring-prebuilt-checkout/defining-experience.md).

# Defining experience

Gain a better understanding of how to use the experience object to style a Prebuilt Checkout

In [`options.style`](https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/configuring-prebuilt-checkout.md#stylize-the-modal), you can use `experience` to assign values to the properties of the [CSS selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors) that control [Prebuilt Checkout's](https://docs.digitalriver.com/digital-river-api/integration-options/low-code-checkouts/drop-in-checkout.md#drop-in-checkout-modal-window) appearance and visual behavior.

{% hint style="success" %}
When defining a [create checkout-session request](https://docs.digitalriver.com/digital-river-api-reference/2021-12-13/drop-in-checkout-sessions#drop-in-checkout-sessions), you can also assign the [`experience`](#the-complete-experience) object to `style` .
{% endhint %}

On this page, you'll find:

* [A description of the primary parts of `experience`](#primary-parts-of-experience)
* [Express payment method styling options](#styling-express-payment-methods)
* [The rules that govern `experience`](#the-rules-of-experience)
* [The complete `experience`](#the-complete-experience)
* [Deprecated style objects](#deprecated-style-objects)

{% hint style="info" %}
For details on how to perform even more granular styling of the [payment collection stage](https://docs.digitalriver.com/digital-river-api/integration-options/low-code-checkouts/drop-in-checkout.md#payment), refer to [Define the payment experience](https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/configuring-prebuilt-checkout.md#define-the-payment-experience) on the [Configuring Prebuilt Checkout](https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/configuring-prebuilt-checkout.md).
{% endhint %}

## Primary parts of `experience`

* At the [`experience`](#the-complete-experience) level are styles, which control Prebuilt Checkout's general, overall appearance, such as its `backgroundColor` and fonts, as well as the color and roundness of its border. At this level, you can also define a `logo`.\
  \
  At the next level down in `experience` are `elements` and `sections`.
* `elements` are the various parts of the `experience`, such as `progressBars`, `headings`, `text`, `tables`, `separators`, `links`, `textFields`, `checkboxes`, `radioButtons`, and `buttons`.
* `sections` are the various stages that users might pass through while checking out, along with the `header` and `footer` they see during each stage. With the exception of `header`, all `sections` have `elements`.
* The keys in the JSON correspond to a CSS property. The following are some common keys in the `experience` object and the CSS property that their value defines:

| JSON key          | CSS property                                                                          |
| ----------------- | ------------------------------------------------------------------------------------- |
| `borderRadius`    | [border-radius](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius)       |
| `backgroundColor` | [background-color](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color) |
| `borderColor`     | [border-color](https://developer.mozilla.org/en-US/docs/Web/CSS/border-color)         |
| `textDecoration`  | [text-decoration](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)   |
| `fontStyle`       | [font-style](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style)             |
| `fontFamily`      | [font-family](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family)           |
| `letterSpacing`   | [letter-spacing](https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing)     |
| `color`           | [color](https://developer.mozilla.org/en-US/docs/Web/CSS/color)                       |
| `fontSize`        | [font-size](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)               |
| `fontWeight`      | [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)           |
| `boxShadow`       | [box-shadow](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)             |

* You can add [pseudo-class keywords](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes) to change how something is styled based on its state or condition, such as when a user clicks a checkbox, hovers over a button, or selects a payment method or when a value is determined to be invalid. In most cases, you define these keywords in `elements`.

```json
"textFields": {
   ...
   ":hover": {
      "borderColor": "black"
   },
   ":focus": {
      "borderColor": "#00a7e1"
   },
   ":invalid": {
      "borderColor": "rgb(211, 47, 47)",
      "errorMessageColor": "rgb(211, 47, 47)"
   }
}
```

The following table captures examples of various styles you can control:

<table data-header-hidden><thead><tr><th width="414"></th><th></th></tr></thead><tbody><tr><td><code>experience.logo</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FFkSQsWYba22QkJz7PglU%2Fimage.png?alt=media&amp;token=878f61b4-797b-4ed1-a78b-ef84a62ff0d6" alt="" data-size="original"></td></tr><tr><td><code>elements.progressBars.previous</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FrD0g4TtqfrZUTnBrLgi5%2Fimage.png?alt=media&amp;token=326f5fab-8d39-48f5-94ee-f34ab1fe5c54" alt="" data-size="original"></td></tr><tr><td><code>elements.progressBars.current</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2F1hvaEowLc1pZjL7nbxud%2Fimage.png?alt=media&amp;token=353add25-94c4-4661-a597-5ec26c0c2615" alt="" data-size="original"></td></tr><tr><td><code>elements.progressBars.future</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FcYE43ntl0fdH0uYZ6Ulb%2Fimage.png?alt=media&amp;token=b00e5654-4235-4021-ba6e-e4c8bee1166e" alt="" data-size="original"></td></tr><tr><td><code>elements.headings</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FwJEHgWBpp74HqqZVCVQh%2Fimage.png?alt=media&amp;token=dfd63501-5bfb-4ba7-96d4-e839b3b061a3" alt="" data-size="original"></td></tr><tr><td><code>elements.text</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FromoUbZesFCJaydIiTIj%2Fimage.png?alt=media&amp;token=02770744-f3f3-4d2c-8fc0-7465405b8f7e" alt="" data-size="original"></td></tr><tr><td><code>elements.separators</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2Fj4ullXZL7JpZuoeBdPst%2Fimage.png?alt=media&amp;token=cb5bed44-e2ef-4d7c-8f69-e56af8c3d2c0" alt="" data-size="original"></td></tr><tr><td><code>elements.links</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FBnQbtzaDV4ClM49a3uru%2Fimage.png?alt=media&amp;token=6643d4be-cf7d-4769-be38-5a44c40ddb51" alt="" data-size="original"></td></tr><tr><td><code>elements.textFields</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FuWyEpdtGrnt99gZE9OGd%2Fimage.png?alt=media&amp;token=2e4f3a55-c041-4fa7-96ce-c5f30dbb0f0d" alt="" data-size="original"></td></tr><tr><td><code>elements.textFields.label</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2F6UpcGWmICB7CmdHQ4Wd5%2Fimage.png?alt=media&amp;token=b9006f11-4bbe-4622-b437-90198f794f27" alt="" data-size="original"></td></tr><tr><td><code>elements.checkboxes</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FwIClXVO4j69q6hpA2YW3%2Fimage.png?alt=media&amp;token=a07f952d-eaa2-4604-aa9d-93b66ed319e3" alt="" data-size="original"></td></tr><tr><td><code>elements.checkboxes.label</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2Fdhz9U6m0M2ORkRPDkUPC%2Fimage.png?alt=media&amp;token=fbbc693e-0173-46a7-b789-2606cb387156" alt="" data-size="original"></td></tr><tr><td><code>elements.radioButtons</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FKwNuyA1bwVfi3IjWXTsd%2Fimage.png?alt=media&amp;token=bb3c399c-ef08-47de-b5cc-b21dda68588e" alt="" data-size="original"></td></tr><tr><td><code>elements.radioButtons.label</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FNYYDj8xVw9O1Xe5mXr9J%2Fimage.png?alt=media&amp;token=c89809e7-0d39-4909-8f9c-05372d8455e1" alt="" data-size="original"></td></tr><tr><td><code>elements.buttons.forward</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2Fbc4xhfXwlB6QVYxmUT2s%2Fimage.png?alt=media&amp;token=265fd147-912f-4cdd-b129-ba40548d9007" alt="" data-size="original"></td></tr><tr><td><code>elements.buttons.back</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2F8aZCsu21OOip6Ix9Wx3X%2Fimage.png?alt=media&amp;token=9a62b05e-8298-48be-8c3e-76631b5b2112" alt="" data-size="original"></td></tr><tr><td><code>elements.buttons.edit</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FNxkSlX24XLXY1STlKpLu%2Fimage.png?alt=media&amp;token=7744f39d-c5bc-4620-850f-140ecbbffdc2" alt="" data-size="original"></td></tr><tr><td><code>sections.header</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FHa3TeMof290JEOdlIEeU%2Fimage.png?alt=media&amp;token=6a2ae897-35f5-4f6e-85e3-6dec5ca19a07" alt="" data-size="original"></td></tr><tr><td><code>sections.footer</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FHC6HMtOfNy3oVFN0HOfY%2Fimage.png?alt=media&amp;token=e9592b9a-1cc1-4272-b993-3e6dba4c28b1" alt="" data-size="original"></td></tr><tr><td><code>sections.orderSummary</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FNTunn7S2vcrb3Yv3kc5n%2Fimage.png?alt=media&amp;token=e8077079-0449-478e-b11b-6d13bb74d74c" alt="" data-size="original"></td></tr><tr><td><code>sections.expressCheckout</code><br><br>For details, refer to <a href="#styling-express-payment-methods">Styling express payment methods</a>.</td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FcxErENfEroPXCjf4ASZD%2Fimage.png?alt=media&amp;token=2e1eb8f1-2707-49e2-a5d0-3423b37ed51e" alt="" data-size="original"></td></tr><tr><td><code>sections.addressInformation</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FtSY4fCuzUfzUxrRhGB4t%2Fimage.png?alt=media&amp;token=c45b4fa6-b5db-4d3c-b242-24fafb633b1f" alt="" data-size="original"></td></tr><tr><td><code>sections.shippingChoice</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FL9fZSHlTALsNOCOZvae4%2Fimage.png?alt=media&amp;token=3dc45921-7c4b-4bab-b3b4-6edca737f438" alt="" data-size="original"></td></tr><tr><td><code>sections.taxIdentifiers</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2F05ZnuySE1PPAYCxSm7K2%2Fimage.png?alt=media&amp;token=11b4cd5b-6348-4916-ae9c-71961a504f8d" alt="" data-size="original"></td></tr><tr><td><code>sections.payment</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FcbghC0RBcNmzZvmRhbFi%2Fimage.png?alt=media&amp;token=f9be9d43-28e1-4724-9610-09fdb30c4e47" alt="" data-size="original"></td></tr><tr><td><code>sections.payment.paymentMethodName</code></td><td><img src="https://334437993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqH4RJfLVLuHPXuJyTZ%2Fuploads%2FPk0YhfvhTbZitr9npxN4%2Fimage.png?alt=media&amp;token=709aeb44-41cb-4fa9-9760-e804b289d2d9" alt="" data-size="original"></td></tr></tbody></table>

## Styling express payment methods

You can use `expressCheckout` to style the various payment method buttons which display in that section.

### `payPal`

<table data-full-width="false"><thead><tr><th width="152">Key</th><th>Description</th><th>Supported values</th></tr></thead><tbody><tr><td><code>label</code></td><td>Customizes the button's label</td><td><code>paypal</code> (default), <code>pay</code>, <code>checkout</code>, <code>buynow</code></td></tr><tr><td><code>size</code></td><td>Sets the size of the button</td><td><code>responsive</code> (default), <code>small</code>, <code>medium</code>, <code>large</code></td></tr><tr><td><code>color</code></td><td>Sets the color of the button</td><td><code>gold</code> (default), <code>silver</code>, <code>black</code>, <code>white</code>, <code>blue</code></td></tr><tr><td><code>shape</code></td><td>Determines whether the button is pill or rectangular shaped</td><td><code>pill</code> (default), <code>rect</code></td></tr></tbody></table>

### `googlePay`

<table data-full-width="false"><thead><tr><th>Key</th><th>Description</th><th>Supported values</th></tr></thead><tbody><tr><td><code>buttonType</code></td><td>Defines the button's label and type</td><td><code>plain</code> (default), <code>long</code></td></tr><tr><td><code>buttonColor</code></td><td>Defines the button's background color</td><td><code>dark</code> (default), <code>light</code></td></tr></tbody></table>

### `applePay`

<table data-full-width="false"><thead><tr><th>Key</th><th>Description</th><th>Supported values</th></tr></thead><tbody><tr><td><code>buttonType</code></td><td>Defines the button's label and type</td><td><code>plain</code>, <code>buy</code></td></tr><tr><td><code>buttonColor</code></td><td>Defines the button's background color</td><td><code>light</code>, <code>light-outline</code>, <code>dark</code></td></tr></tbody></table>

### `amazonPay`

<table data-full-width="false"><thead><tr><th>Key</th><th>Description</th><th>Supported values</th></tr></thead><tbody><tr><td><code>buttonColor</code></td><td>Defines the button's background color</td><td><code>Gold</code> (default), <code>LightGray</code>, <code>DarkGray</code></td></tr></tbody></table>

## The rules of `experience`

The structure of [`experience`](#the-complete-experience) determines which styles take precedence in the CSS. Generally, styles at a lower level in the JSON hierarchy take precedence over styles at a higher level:

* A style in `elements` overrides that style in `experience`

```json
"experience": {
   ...
   "color": "#eb34de",
   ...
   "elements": {
       ...
      "text": {
          "color": "rgba(0, 0, 0, 0.87)",
	   ...
       }
       ...
  }
```

* A [pseudo-class selector](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes) style in `elements` overrides that style in the same `elements`

```json
{
  "experience": {
    ...
    "elements": {
      ...
      "checkboxes": {
        "color": "rgba(0, 0, 0, 0.6)",
        ":checked": {
          "color": "#003058"
        },
        ...
      },
      ...
    },
    ...
    }
  }
}
```

* A style in `sections` overrides that style in `experience`

```json
{
  "experience": {
    ...
    "borderRadius": "30px",
    ...
    "sections": {
      ...
      "addressInformation": {
        "elements": {
          ...
          "textFields": {
            "borderRadius": "4px",
            ...
          },
          ...
        }
      },
      ...
    }
  }
}
```

* A style in an `elements` of `sections` overrides that style in the corresponding `elements`

```json
{
  "experience": {
    ...
    "elements": {
      ...
      "textFields": {
        ...
        "borderColor": "rgba(19, 0, 5, 0.23)",
        ...
      },
      ...
    },
    "sections": {
     ...
      "addressInformation": {
        "elements": {
          ...
          "textFields": {
            ...
            "borderColor": "rgba(0, 0, 0, 0.23)",
	     ...
          },
          ...
        }
      },
      ...
    }
  }
}
```

* A [pseudo-class selector](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes) style in an `elements` of `sections` overrides that pseudo-class selector style in the corresponding `elements`

```json
{
  "experience": {
    ...
    "elements": {
      ...
      "textFields": {
        ...
        ":hover": {
          "borderColor": "black"
        },
        ...
      },
      ...
    },
    "sections": {
     ...
      "addressInformation": {
        "elements": {
          ...
          "textFields": {
            ...
            ":hover": {
              "borderColor": "blue"
            },
            ...
          },
          ...
        }
      },
      ...
    }
  }
}
```

## The complete `experience`

The following is an example of the full `experience` object.

{% code lineNumbers="true" %}

```json
{
  "experience": {
    "logo": "https://www.digitalriver.com/wp-content/themes/digital-river-2022/assets/images/digital-river-logo-black-blue.svg",
    "backgroundColor": "#f0f4fa",
    "borderRadius": "30px",
    "borderColor": "rgba(0, 0, 0, 0.23)",
    "color": "#212121",
    "secondaryColor": "#757575",
    "fontFamily": "Kumbh Sans, Roboto,Arial, sans-serif",
    "fontStyle": "normal",
    "letterSpacing": "0",
    "elements": {
      "progressBars": {
        "previous": {
          "fill": "#003058",
          "color": "#003058"
        },
        "current": {
          "fill": "#003058",
          "color": "#003058"
        },
        "future": {
          "fill": "rgba(0, 0, 0, 0.38)",
          "color": "rgba(0, 0, 0, 0.6)"
        }
      },
      "headings": {
        "color": "#212121"
      },
      "text": {
        "color": "rgba(0, 0, 0, 0.87)",
        "fontSize": "0.875rem",
        "fontStyle": "normal",
        "label": {
          "fontWeight": 600
        }
      },
      "separators": {
        "color": "rgba(0, 0, 0, 0.12)"
      },
      "links": {
        "color": "#00a7e1",
        "textDecoration": "underline rgba(0, 0, 0, 0)",
        "footer": {
          "color": "#fff",
          "textDecoration": "underline rgba(0, 0, 0, 0)"
        }
      },
      "textFields": {
        "borderRadius": "4px",
        "borderColor": "rgba(0, 0, 0, 0.23)",
        "backgroundColor": "transparent",
        "color": "black",
        ":hover": {
          "borderColor": "black"
        },
        ":focus": {
          "borderColor": "#00a7e1"
        },
        ":invalid": {
          "borderColor": "rgb(211, 47, 47)",
          "errorMessageColor": "rgb(211, 47, 47)"
        },
        "label": {
          "color": "rgba(0, 0, 0, 0.87)",
          "fontSize": "0.875rem",
          "fontStyle": "normal"
        }
      },
      "checkboxes": {
        "color": "rgba(0, 0, 0, 0.6)",
        ":checked": {
          "color": "#003058"
        },
        "label": {
          "color": "rgb(33, 33, 33)"
        }
      },
      "radioButtons": {
        "color": "rgba(0, 0, 0, 0.6)",
        ":checked": {
          "color": "#003058"
        },
        ":focus": {
          "legend": {
            "color": "#00a7e1"
          }
        },
        "label": {
          "color": "rgb(33, 33, 33)",
          "fontStyle": "normal"
        },
        "legend": {
          "color": "rgba(0, 0, 0, 0.6)",
          "fontStyle": "normal"
        }
      },
      "buttons": {
        "forward": {
          "color": "#fff",
          "backgroundColor": "rgb(0, 48, 88)",
          ":hover": {
            "backgroundColor": "rgb(0, 167, 225)",
            "textColor": "#aed9f2",
            "boxShadow": "rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px, rgba(0, 0, 0, 0.12) 0px 1px 10px 0px"
          },
          ":active": {
            "boxShadow": "rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px"
          }
        },
        "back": {
          "color": "#212121",
          "backgroundColor": "transparent",
          ":hover": {
            "backgroundColor": "rgba(25, 118, 210, 0.04)"
          }
        },
        "edit": {
          "color": "#212121"
        }
      }
    },
    "sections": {
      "header": {
        "backgroundColor": "transparent",
        "showLogo": true
      },
      "footer": {
        "backgroundColor": "#001c33",
        "color": "#fff",
        "elements": {
          "links": {
            "textDecoration": "underline rgba(0, 0, 0, 0)",
            "color": "#fff"
          }
        }
      },
      "orderSummary": {
        "backgroundColor": "rgb(245, 247, 249)",
        "color": "black",
        "secondaryColor": "#757575",
        "elements": {
          "headings": {
            "fontWeight": 600,
            "color": "black"
          },
          "tables": {
            "productName": {
              "fontWeight": 600
            },
            "total": {
              "fontWeight": 600
            }
          }
        }
      },
      "expressCheckout": {
        "elements": {
          "headings": {
            "color": "black"
          }
        },
        "payPal": {
          "label": "checkout",
          "size": "responsive",
          "color": "gold",
          "shape": "pill"
        },
        "applePay": {
          "buttonType": "plain",
          "buttonColor": "dark"
        },
        "googlePay": {
          "buttonType": "plain",
          "buttonColor": "dark"
        },
        "amazonPay": {
          "buttonColor": "Gold"
        }
      },
      "addressInformation": {
        "elements": {
          "headings": {
            "color": "rgb(33, 33, 33)"
          },
          "textFields": {
            "borderRadius": "4px",
            "borderColor": "rgba(0, 0, 0, 0.23)",
            "backgroundColor": "transparent",
            "color": "black",
            ":hover": {
              "borderColor": "black"
            },
            ":focus": {
              "borderColor": "#00a7e1"
            },
            ":invalid": {
              "borderColor": "rgb(211, 47, 47)",
              "errorMessageColor": "rgb(211, 47, 47)"
            }
          },
          "checkboxes": {
            "color": "rgba(0, 0, 0, 0.6)",
            ":checked": {
              "color": "#003058"
            },
            "label": {
              "color": "rgb(33, 33, 33)"
            }
          }
        }
      },
      "shippingChoice": {
        "borderRadius": "4px",
        "elements": {
          "text": {
            "color": "rgb(33, 33, 33)",
            "fontSize": "0.875rem",
            "fontStyle": "normal",
            "label": {
              "fontWeight": 600
            }
          },
          "radioButtons": {
            "color": "rgba(0, 0, 0, 0.6)",
            ":checked": {
              "color": "#003058"
            },
            "label": {
              "color": "rgb(33, 33, 33)"
            }
          }
        }
      },
      "taxIdentifiers": {
        "elements": {
          "text": {
            "color": "rgb(33, 33, 33)",
            "fontSize": "0.875rem",
            "fontStyle": "normal",
            "label": {
              "fontWeight": 600
            },
            "appliedTaxIdentifier": {
              "color": "rgb(33, 33, 33)",
              "fontSize": "1.2rem",
              "fontStyle": "normal",
              "fontWeight": 400,
              "label": {
                "color": "rgba(0, 0, 0, 0.6)",
                "fontSize": "1rem",
                "fontStyle": "normal",
                "fontWeight": 400
              }
            }
          },
          "textFields": {
            "borderRadius": "4px",
            "borderColor": "rgba(0, 0, 0, 0.26)",
            "color": "rgb(33, 33, 33)",
            "label": {
              "color": "rgb(33, 33, 33)",
              "fontSize": "1rem",
              "fontStyle": "normal"
            }
          },
          "links": {
            "color": "#00a7e1",
            "textDecoration": "underline rgba(0, 0, 0, 0)"
          },
          "checkboxes": {
            "color": "rgba(0, 0, 0, 0.6)",
            ":checked": {
              "color": "#003058"
            },
            "label": {
              "color": "rgb(33, 33, 33)"
            }
          },
          "headings": {
            "color": "rgb(33, 33, 33)"
          },
          "radioButtons": {
            "color": "rgba(0, 0, 0, 0.6)",
            ":checked": {
              "color": "#003058"
            },
            ":focus": {
              "legend": {
                "color": "#00a7e1"
              }
            },
            "label": {
              "color": "rgb(33, 33, 33)",
              "fontStyle": "normal"
            },
            "legend": {
              "color": "rgba(0, 0, 0, 0.6)",
              "fontStyle": "normal"
            }
          }
        }
      },
      "payment": {
        "borderRadius": "4px",
        "paymentMethodName": {
          "color": "rgba(0, 0, 0, 0.75)",
          "fontSize": "1rem",
          "fontWeight": 400,
          "fontStyle": "normal",
          ":selected": {
            "color": "rgb(0, 167, 225)",
            "fontWeight": "bold",
            "fontStyle": "normal"
          }
        },
        "elements": {
          "text": {
            "color": "rgb(33, 33, 33)",
            "fontSize": "0.875rem",
            "fontStyle": "normal",
            "label": {
              "fontWeight": 600
            }
          },
          "textFields": {
            "borderRadius": "4px",
            "borderColor": "rgba(0, 0, 0, 0.26)",
            "color": "rgb(33, 33, 33)",
            "label": {
              "color": "rgba(0, 0, 0, 0.87)",
              "fontSize": "0.875rem",
              "fontStyle": "normal"
            }
          },
          "links": {
            "color": "#0000ee",
            "textDecoration": "underline",
            "footer": {
              "color": "rgba(0, 0, 0, 0.87)",
              "textDecoration": "none",
              ":hover": {
                "color": "#0000ee",
                "textDecoration": "underline"
              }
            }
          },
          "checkboxes": {
            ":checked": {
              "color": "#003058"
            },
            "label": {
              "color": "rgba(0, 0, 0, 0.87)"
            }
          }
        }
      }
    }
  }
}
```

{% endcode %}

## Deprecated style objects

The [`experience`](#the-complete-experience) object is our recommended styling solution. However, in [`options.style`](https://docs.digitalriver.com/digital-river-api/developer-resources/digitalrivercheckout.js-reference/digitalrivercheckout-object/configuring-prebuilt-checkout.md#stylize-the-modal), you can alternatively define `modal` and `textField`.

```javascript
const options = {
  style: {
    modal: {
      logo: 'https://www.mysite.com/logo.png',
      themeColor: {
        primary: '#00a7e1',
        highlight: '#b6e8fb',
        background: {
          header: '#b6e8fb',
          mainContent: '#fff',
          orderSummary: '#e4edf7',
          footer: '#001c33'
        },
        text: {
          link: '#003058',
          footerLink: '#0befc5',
          sectionHeading: '#083bf1',
          button: '#ffc439',
          textButton: '#0befc5'
        }
      },
      borderRadius: '3px',
      fontFamily: 'Arial, Helvetica, sans-serif',
      fontStyle: 'italic',
      fontVariant: 'normal',
      letterSpacing: '3px'
    },
    textField: {
      base: {
        color: '#00a7e1',
        fontFamily: 'Arial, Helvetica, sans-serif',
        fontSize: '20px',
        fontStyle: 'italic',
        fontVariant: 'normal',
        letterSpacing: '3px'
      },
      borderRadius: '4px'
    }
  }
};
```
