Customize with CSS
Shows where to add Custom CSS to a popup and gives examples for styling beyond the built-in editor options.
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.
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 is in the Layout & Styles tab, and anything you put there applies across the whole popup.
On top of that, most individual elements and containers have their own Custom CSS box — click into a text block, input field, button, link, logo or container on any step and you'll find one in its 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 general Custom CSS field is one shared field for the whole popup, so you only need to add your CSS once.
To access it:
Go to Opt-in Tools → Popups
Open the popup you want to customize
In the left sidebar, select Layout & Styles
In the right-hand settings panel, find the Custom CSS field
Once you click on it you'll see all your available options
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. Containers have their own Custom CSS box too, which styles the container and the layout of what's inside it. See Layout and Containers.
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:
→ makes the image wider
→ 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.

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:
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.

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:
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 is a free, beginner-friendly resource with examples for every CSS property.
If you have any questions, do not hesitate to contact the Recart Support team. We'd be happy to help!
Last updated
Was this helpful?