> For the complete documentation index, see [llms.txt](https://help.recart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.recart.com/list-growth/customizing-your-popup-with-css.md).

# Customizing Your Popup with CSS

Go beyond the built-in popup styling options. See where to find the Custom CSS field, what you can change, and three examples you can copy and paste.

#### Table of Contents

* [Overview](#overview)
* [Where to Find Custom CSS](#where-to-find)
  * [General Custom CSS](#general-css)
  * [Element-level Custom CSS](#element-CSS)
* [What You Can Customize](#what-you-can-customize)
* [Common Use Cases](#common-usecases)
* [Learning More About CSS](#learn-more)

### Overview

Recart's popup editor gives you a wide range of styling options built in. If you want to go further — adjusting spacing, fonts, colors, borders, animations, or layout in ways the visual editor doesn't cover — you can do this using the **Custom CSS** field inside the popup builder.

This article explains what's possible, which popup elements you can target, and where to learn more.

### Where to Find the Custom CSS Field

There are two places you can add CSS to a popup. The **general Custom CSS** field sits at the bottom of the right-hand settings panel, and anything you put there applies across the whole popup.

On top of that, most **individual elements** have their own Custom CSS box — click into a text block, input field, button, link, or logo on any step and you'll find one in that element's settings. Those styles affect only that element, and they won't appear in the general field.

#### General Custom CSS — applies to the whole popup

The Custom CSS field appears on every step of your popup flow, but it's one shared field. Whatever you paste in on one step applies to all of them, so you only need to add it once.

To access it:

1. Go to [**Opt-in Tools**](https://app.recart.com/optin-tools) → **Popups**
2. Open the popup you want to customize
3. In the **right-hand settings panel**, scroll down to find the **Custom CSS** field

![CustomCSS\_Position](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FPycBd0lxNphYUVVFcBGT%2Fcustomizing-your-popup-with-css-1.png?alt=media)

4. Once you click on it you'll see all your **available options**

![CustomCSS\_Open](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FQjwEA2iraouRMnNf4Dy6%2Fcustomizing-your-popup-with-css-2.png?alt=media)

5. Paste your CSS into the field — it will be applied on top of the popup's default styles

#### Element-level Custom CSS — applies to one element

Click any element on a step and its settings panel will include a Custom CSS box. Paste the properties straight in — you don't need a selector, just the properties themselves.

This works across most of the popup: a headline or body text block, the email or phone input field, the submit button, the button on your Success step, links and more.

Styling an element this way affects only that element, so it's the right place for one-off tweaks that shouldn't carry across the rest of the popup.

**Note:** The **Logo** section under **Layout & Styles** is slightly different: it has two boxes, **Container custom CSS** (the position and spacing of the logo block) and **Image custom CSS** (the image itself).

### What You Can Customize

Here are the main things you can control using Custom CSS:

* **Fonts** — font family, size, weight, style, and text alignment
* **Colors & backgrounds** — text color, background color, opacity, and gradient backgrounds
* **Spacing** — margin (space outside an element) and padding (space inside an element)
* **Size** — fixed or percentage-based width and height
* **Borders** — thickness, color, style (solid, dashed, dotted), and rounded corners
* **Shadows** — drop shadows on elements
* **Animations** — effects like hover color changes or blinking text
* **Positioning** — adjusting element placement within the popup layout

### Common Use Cases

#### Example 1 — Resize or reposition the additional image (desktop)

\*\*\*What it does:\*\*\*Adjusts the size, position, and opacity of the additional image on your popup.

\*\*\*When to use it:\*\*\*When the built-in Left / Right / Top placement gets the image close but not quite right — for example the image sits too high, needs to be wider, or should sit further back behind the text.

Add an additional image first under **Layout & Styles → Popup appearance → Additional image** (recommended size: at least 750x1080px), then target it in the **Custom CSS** field:

```
.additional-image {   width: 900px; }
```

→ makes the image wider

```
.additional-image {   height: 50%;   opacity: 0.5;

margin-top: 130px; }
```

→ adjusts the height, lowers the opacity, and shifts the image down

Use `margin`, `width`, `height`, and `opacity` to fine-tune, in pixels (px) or percentages (%), until the image looks balanced.

![CSS\_Image\_After](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FUUavQeratusz5XTnwy0o%2Fcustomizing-your-popup-with-css-3.png?alt=media)

***

#### Example 2 — Keep the logo in a fixed position across all steps

***What it does:*** Pins the logo to an exact position instead of letting it move with the rest of the content.

***When to use it:*** When the logo shifts between steps because each step has a different amount of content, and you want it to stay in one place throughout the flow.

This one goes in a different field: open **Layout & Styles → Logo** and paste into **Container custom CSS**. You don't need a selector here — just the properties:

```
position: absolute; top: 80px; left: 50%;
transform: translateX(-50%); transform-origin: left;
```

Adjust `top` to move the logo up or down.

**Note:** To remove this later, always click **Remove custom CSS**. Deleting the text by hand will stop the popup from saving.

![CSS\_Logo\_After](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FFKsNJAyuoBmR63WX0m55%2Fcustomizing-your-popup-with-css-4.png?alt=media)

***

#### Example 3 — Change where the popup sits relative to your theme (z-index)

***What it does:*** Controls whether the popup appears above or below other elements on your store, like a sticky header, navigation menu, or cart drawer.

***When to use it:*** When your popup and a theme element overlap — either the theme element covers part of the popup, or the popup covers something that should stay on top.

By default the popup sits above everything else on your store. If you need it to sit *behind* a particular element, lower its z-index:

```
.overlay { z-index: 400; }
 .wrapper { z-index: 400; }
```

To find the right value, right-click the overlapping element in your store, choose **Inspect**, and check its `z-index`. Start low (around 3) and work upwards until the overlap clears — on most stores the workable range is 1–100.

### Learning More About CSS

If you're new to CSS or want to explore more properties and options, [W3Schools](https://www.w3schools.com/css/) is a free, beginner-friendly resource with examples for every CSS property.

If you have any questions or need support setting up Custom CSS for your popup, feel free to reach out to us at <support@recart.com> — we're happy to help.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.recart.com/list-growth/customizing-your-popup-with-css.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
