Shopify Cart Drawer Custom CSS: Fixes & Code (2026)

Shopify cart drawer custom CSS design

Cart drawer looks off and you just want it fixed? You’re in the right place. Below are working CSS snippets for the exact problems people get stuck on β€” ugly borders, that underline under “Remove,” too much spacing, a checkout button nobody can see.

Copy, paste, save. Each fix tells you where it goes and why it works.

One thing to read first, because it saves you an hour of frustration: πŸ‘‡

Why Your Cart Drawer CSS Isn’t Working

If you’ve already tried adding CSS and nothing changed β€” this section is your fix.

Shopify themes and cart apps load their own CSS after yours. So your rule gets overridden. The browser sees both, and the last one wins.

Two fixes:

  • Add !important to force your rule to win:

css

  cart-drawer .cart-item { border: none !important; }
  • Use a more specific selector. cart-drawer .cart-item beats a plain .cart-item.

The other big mistake: using a selector that’s too broad. If you write .cart { background: black; }, you might recolor your checkout page too. Always start your selector with cart-drawer so it only touches the drawer.

Pro tip: Right-click the drawer β†’ Inspect. The highlighted tag shows you the exact class name to target. This one habit fixes 90% of “my CSS does nothing” problems.

A quick note on themes: the selectors below are written for Dawn and the many themes built on it. Newer themes like Horizon, or premium themes like Impulse and Prestige, may use slightly different class names. The fix is always the same β€” Inspect the element and swap in the class you see.

Where to Paste Your CSS (Pick One)

MethodBest forRisk
App CSS editor (e.g. Oxify)Most stores β€” safe, survives theme updatesNone
Theme β†’ Custom CSS boxTiny one-off tweaksApplies store-wide
Edit Code β†’ stylesheetDevs onlyCan break storefront

If you use a cart drawer app like Oxify Cart Drawer Cart Upsell, it has a built-in Custom HTML & CSS panel β€” a CSS editor box right in the dashboard. Paste, save, done. No theme files touched, and it doesn’t get wiped when Shopify updates your theme. More on that at the end.

Now the fixes.

Fix 1: Remove Borders and Lines

Default cart drawers have hard lines between items and around the header/footer. They make the cart look dated.

Remove the line between cart items:

css

cart-drawer .cart-item {
  border-bottom: none !important;
}

Remove the header and footer border:

css

cart-drawer .drawer__header,
cart-drawer .cart-drawer__footer {
  border: none !important;
}

Want a soft divider instead of a harsh one? Don’t remove it β€” soften it:

css

cart-drawer .cart-item {
  border-bottom: 1px solid #f0f0f0 !important;
}

Fix 2: Kill the Underline Under “Remove”

This is one of the most-asked questions in the Shopify Community. The “Remove” link is underlined by default and looks messy.

css

cart-drawer .cart-item__remove-text {
  text-decoration: none !important;
}

Want it subtle and grey instead of loud?

css

cart-drawer .cart-item__remove-text {
  text-decoration: none !important;
  color: #888 !important;
  font-size: 13px;
}

Fix 3: Tighten or Loosen the Spacing

Cart items too far apart? Too cramped? This is pure spacing control.

Reduce the gap between items:

css

cart-drawer .cart-items .cart-item {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

Add breathing room inside the drawer:

css

cart-drawer .drawer__inner {
  padding: 20px !important;
}

Small spacing changes do more for “premium feel” than any color change. Cramped carts feel cheap.

Fix 4: Make the Checkout Button Impossible to Miss

The #1 silent conversion killer: a checkout button that blends into the drawer background. If a shopper has to hunt for it, some of them leave.

css

cart-drawer .cart__checkout-button {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border-radius: 30px;
  font-weight: 600;
  padding: 16px !important;
}

Rule: the checkout button should be the boldest, highest-contrast thing in the drawer. Always.

Fix 5: Resize Product Images

Tiny thumbnails make products hard to recognize. Bigger images = clearer cart.

css

cart-drawer .cart-item__image {
  width: 90px !important;
  height: 90px !important;
  border-radius: 8px;
}

Fix 6: Make the Drawer Wider (Without Breaking Mobile)

css

cart-drawer .drawer__inner {
  width: 420px !important;
  max-width: 90vw !important;
}

The 90vw is non-negotiable. Without it, a wide drawer overflows on phones β€” and most of your shoppers are on phones.

Fix 7: Hide an Element You Don’t Want

Sometimes the fastest fix is to just remove something β€” a label, an icon, a note field.

css

cart-drawer .cart-item__price-wrapper .unit-price {
  display: none !important;
}

Swap the selector for whatever element you want gone (find it with Inspect). Use this carefully β€” hide clutter, not anything shoppers need.

Fix 8: Add a Smooth Slide-In Animation

A jumpy drawer reads as “broken.” A smooth one reads as “premium.” One line:

css

cart-drawer .drawer__inner {
  transition: transform 0.3s ease-in-out !important;
}

Quick Troubleshooting Table

ProblemCauseFix
CSS does nothingTheme CSS overrides yoursAdd !important
Whole store restyledSelector too broadPrefix with cart-drawer
Drawer overflows phoneFixed width, no capAdd max-width: 90vw
Styles vanished after updateCSS lived in theme filesMove to an app’s CSS editor
Can’t find the class nameGuessingRight-click β†’ Inspect

The 5-Step Order to Style Your Drawer

Don’t paste everything at once. Work in this order so you can see what each change does:

  1. Fix the broken stuff first β€” borders, underlines, spacing.
  2. Match your brand colors β€” pull exact hex codes from your logo.
  3. Resize images for clarity.
  4. Style the checkout button last β€” make it the loudest element.
  5. Test on a real phone, then save a backup of your final CSS.

The Honest Limit of Custom CSS

CSS can make your cart drawer look great. It cannot make it do more.

CSS can’t add a free shipping bar, upsells, BOGO offers, volume discounts, or a countdown timer. Those need real functionality β€” either custom JavaScript and Liquid (developer territory) or an app.

And theme-based CSS has a real weakness: it breaks. Every theme update can overwrite it. Switch themes and all your work is gone.

This is where a cart drawer app earns its place. Oxify Cart Drawer & Upsells keeps your Custom HTML & CSS in a dashboard panel β€” outside your theme files, so it survives every update. You get a CSS editor and a Custom HTML box with a location picker, so you can both style the drawer and drop in your own elements.

You also get everything CSS can’t do:

  • Free shipping progress bar and tiered reward bar
  • In-cart upsells, cross-sells and “frequently bought together”
  • Volume discounts, BOGO, and free gifts with purchase
  • Countdown timers, trust badges and a sticky cart

It holds a 5.0β˜… rating and carries the Built for Shopify badge β€” Shopify’s mark for apps that meet its highest standards for performance, design, and integration. Pricing starts at $19.99/month with a 14-day free trial.

Oxify Cart Drawer custom HTML and CSS editor panel in Shopify

Bottom Line

Most cart drawer CSS problems come down to two things: the wrong selector, and forgetting !important. Fix those, work through the snippets above one at a time, and test on your phone.

Want to skip the code and theme-file risk entirely? Install Oxify Cart Drawer & Upsells β€” use the built-in CSS editor to design your cart in minutes, and unlock upsells and free shipping bars while you’re at it.

FAQ

Why is my Shopify cart drawer CSS not working?

Almost always one of two reasons: your theme or cart app loads its CSS after yours and overrides it (fix: add !important), or your selector is wrong (fix: right-click the drawer, choose Inspect, and copy the exact class name).

How do I customize my cart drawer without code?

Use a cart drawer app with a visual editor. Apps like Oxify Cart Drawer & Upsells include both a visual editor and a Custom CSS panel, so you can change colors, spacing, and layout without editing theme files.

What CSS selector controls the Shopify cart drawer?

In Dawn and most modern themes it’s the cart-drawer element. Inside it you’ll find classes like .drawer__inner, .cart-item, .cart-item__image, and .cart-drawer__footer. Other themes may differ β€” use Inspect to confirm.

Does custom CSS slow down my store?

Not if it’s clean. A few dozen lines of CSS won’t affect your Core Web Vitals. Bloated, copy-everything stylesheets can.

Can I add a free shipping bar with CSS?

No. CSS only styles what already exists. A free shipping bar, upsells, and timers need real functionality β€” either custom code or a cart drawer app.

Increase Your AOV” Shopify Playbook

Sign up to get weekly conversion tips, upsell strategies, and proven tactics used by top Shopify brands to grow revenue faster.

Ask AI about Oxify App