Skip to main content

CSS Styling

Customize Share Cart's appearance using CSS. All elements are namespaced under .mmc-share-cart to avoid conflicts with your theme.

How to Add Custom CSS

The easiest way is to use the Custom CSS field in the Appearance section of the app. CSS entered there is applied directly to the share button area and takes precedence over the app's default styles.

Alternatively, you can add CSS to your theme's stylesheet via Online Store → Themes → Edit code → assets/theme.css.


CSS Class Reference

Namespace

ClassDescription
.mmc-share-cartTop-level namespace class present on all app elements. Do not target this class directly — use it as a prefix only.

Share Button

ClassDescription
.mmc-share-cart__wrapContainer div that wraps the share button. Controls alignment (flex layout).
.mmc-share-cart .mmc-share-linkThe share button element itself (icon + label).
.mmc-share-cart .mmc-share-link aThe anchor/text label inside the button.
.mmc-share-cart .mmc-share-link__iconThe SVG upload icon inside the button.

Example — custom share button styles:

/* Change button color and add padding */
.mmc-share-cart .mmc-share-link {
color: #e63946;
padding: 12px 20px;
}

/* Style the label text */
.mmc-share-cart .mmc-share-link a {
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
}

/* Size the icon */
.mmc-share-cart .mmc-share-link__icon {
width: 20px;
height: 20px;
}

Example — outlined button style:

.mmc-share-cart .mmc-share-link {
border: 2px solid currentColor;
border-radius: 4px;
}

Example — pill button style:

.mmc-share-cart .mmc-share-link {
border: 2px solid currentColor;
border-radius: 100px;
padding: 10px 20px;
}

Share Dialog

ClassDescription
.mmc-share-cart.mmc-modalThe native <dialog> element. Controls max-width, positioning, etc.
.mmc-share-cart.mmc-modal::backdropSemi-transparent overlay behind the dialog.
.mmc-share-cart .mmc-modal-bodyThe white content box inside the dialog. Controls background color, padding, border-radius.
.mmc-share-cart .mmc-modal-titleThe title text at the top of the dialog.
.mmc-share-cart .mmc-modal-closeThe × close button in the top-right corner.

Example — rounded dialog with custom background:

.mmc-share-cart .mmc-modal-body {
border-radius: 16px;
background-color: #1a1a2e;
color: #ffffff;
}

.mmc-share-cart .mmc-modal-title {
font-size: 22px;
font-weight: 700;
}

.mmc-share-cart.mmc-modal::backdrop {
background: rgba(0, 0, 0, 0.6);
}

ClassDescription
.mmc-share-cart .mmc-input-groupFlex container holding the URL input and copy button.
.mmc-share-cart .mmc-inputThe read-only URL input field.
.mmc-share-cart .mmc-input.mmc-input-centeredApplied when "Code Only" display format is selected — centers the text.
.mmc-share-cart .mmc-buttonThe copy-to-clipboard button.

Example:

.mmc-share-cart .mmc-input {
border-radius: 4px;
border-color: #ccc;
font-size: 13px;
}

.mmc-share-cart .mmc-button {
border-radius: 4px;
}

Social Sharing Icons

ClassDescription
.mmc-share-cart .mmc-dividerHorizontal rule separating sections in the dialog.
.mmc-share-cart .mmc-social-linksContainer for the social sharing icons (Facebook, WhatsApp, etc.).

Example:

.mmc-share-cart .mmc-social-links {
justify-content: center;
gap: 16px;
}

.mmc-share-cart .mmc-social-links svg {
width: 28px;
height: 28px;
opacity: 0.8;
}

.mmc-share-cart .mmc-social-links svg:hover {
opacity: 1;
}

Note Fields

ClassDescription
.mmc-share-cart .mmc-share-cart-note-tableTable wrapping the note input row(s).
.mmc-share-cart .mmc-share-cart-note-table-label-tdTable cell containing the note label.
.mmc-share-cart .mmc-share-cart-note-table-text-tdTable cell containing the note input.
.mmc-share-cart .mmc-share-cart-note-inputThe note text input field.

Restore Cart Dialog

Shown when a visitor opens a shared cart link and already has items in their cart.

ClassDescription
.mmc-share-cart.mmc-restore-dialogThe restore cart <dialog> element.
.mmc-share-cart .mmc-restore-dialog-headerHeader area with title and message.
.mmc-share-cart .mmc-restore-dialog-contentScrollable content area with the options.
.mmc-share-cart .mmc-restore-dialog-optionsContainer for the restore option cards.
.mmc-share-cart .mmc-restore-dialog-optionIndividual option card (Replace / Merge / Add Missing).
.mmc-share-cart .mmc-restore-dialog-option-contentText content inside an option card.
.mmc-share-cart .mmc-restore-dialog-footerFooter with Cancel and Proceed buttons.
.mmc-share-cart .mmc-restore-dialog-cancelThe Cancel button.
.mmc-share-cart .mmc-restore-dialog-proceedThe Proceed button.

Restore Cart Spinner

Shown while the cart is being restored.

ClassDescription
.mmc-share-cart.mmc-restore-spinnerThe spinner <dialog> element.
.mmc-share-cart .mmc-restore-spinner-contentContent wrapper with spinner, title, and message.
.mmc-share-cart .mmc-spinnerThe animated circular spinner.

Tips

  • Always prefix your selectors with the relevant .mmc-share-cart .mmc-* pattern to keep specificity consistent.
  • The Appearance page in the app sets base styles (color, font size, position). Custom CSS entered there is injected after those base styles, so it will override them.
  • Test on both mobile and desktop — the dialog uses width: 90% with a max-width cap.