.rm-storefront { max-width: 900px; margin: 0 auto; font-size: 15px; }
.rm-storefront * { box-sizing: border-box; }

.rm-error { color: #b32d2e; }

/* Menu grid */
.rm-menu-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 70px; }
@media ( min-width: 640px ) {
	.rm-menu-grid { grid-template-columns: 1fr 1fr; }
}

.rm-menu-item { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #e2e2e2; border-radius: 8px; padding: 10px; background: #fff; }
.rm-menu-item-body { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.rm-variant-body { display: flex; flex-direction: column; }
.rm-item-name { margin: 0 0 4px; }
.rm-item-category { text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; color: #888; margin: 0 0 4px; }
.rm-desc { color: #666; font-size: 13px; margin: 0 0 6px; }

/* Media: stacked slides (only the active one shown), optional thumbnail
   strip / arrows / sale badge. Width lives on .rm-media; every image fills
   it at a fixed aspect ratio, so one width setting sizes everything. */
.rm-media { flex-shrink: 0; width: 84px; max-width: 100%; }
.rm-media:empty { display: none; }
.rm-media-main { position: relative; overflow: hidden; border-radius: 6px; background: #f0f0f0; }
.rm-slide { display: none; }
.rm-slide-active { display: block; }
.rm-main-image, .rm-no-image { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s ease; }

.rm-gallery-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rm-gallery-thumb-btn { width: 24px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; line-height: 0; opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.rm-gallery-thumb-btn:hover, .rm-gallery-thumb-btn.rm-thumb-active { opacity: 1; }
.rm-gallery-thumb-btn.rm-thumb-active { border-color: #1e1e1e; }
.rm-gallery-thumb { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; background: #f0f0f0; }

.rm-slide-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY( -50% ); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba( 255, 255, 255, 0.85 ); color: #1e1e1e; font-size: 20px; line-height: 1; cursor: pointer; }
.rm-slide-prev { left: 6px; }
.rm-slide-next { right: 6px; }

/* "Change image on hover": the second image sits over the first and fades
   (or zooms / slides) in. Only on devices that really hover, and off once
   the visitor has picked another gallery image themselves. */
.rm-hover-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease; }
.rm-hover-effect-zoom .rm-hover-image { transform: scale( 1.12 ); }
.rm-hover-effect-slide .rm-hover-image { opacity: 1; transform: translateX( 100% ); }
.rm-slide-changed .rm-hover-image { display: none; }
@media ( hover: hover ) {
	.rm-media-main:hover .rm-hover-image,
	.rm-hover-trigger-card .rm-menu-item:hover .rm-hover-image { opacity: 1; transform: none; }
}

.rm-sale-flash { position: absolute; top: 6px; left: 6px; z-index: 2; padding: 3px 8px; border-radius: 3px; background: #b32d2e; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; }

/* Layouts - chosen per Elementor widget (a "rm-layout-*" class on the
   widget wrapper). A plain [rm_menu] has no class and keeps image-left. */
.rm-layout-image-right .rm-menu-item { flex-direction: row-reverse; }
.rm-layout-image-top .rm-menu-item { flex-direction: column; align-items: stretch; }
.rm-layout-image-top .rm-media { width: 100%; }
.rm-layout-image-top .rm-main-image, .rm-layout-image-top .rm-no-image { aspect-ratio: 4 / 3; }

/* "Menu list": classic printed-menu rows - no image, name .......... price. */
.rm-layout-list .rm-media { display: none; }
.rm-layout-list .rm-menu-item { border: 0; border-radius: 0; padding: 0; background: none; }
.rm-layout-list .rm-variant-body { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.rm-layout-list .rm-variant-body > * { flex-basis: 100%; order: 3; }
.rm-layout-list .rm-item-category { order: 0; }
.rm-layout-list .rm-item-name { flex: 1 1 0; min-width: 0; order: 1; display: flex; align-items: baseline; }
.rm-layout-list .rm-item-name::after { content: ''; flex: 1; min-width: 16px; margin: 0 8px; border-bottom: 2px dotted currentColor; opacity: 0.35; }
.rm-layout-list .rm-price { flex: 0 0 auto; order: 2; margin: 0; }

/* Stack image above content on phones (image-left / image-right). */
@media ( max-width: 767px ) {
	.rm-stack-mobile-yes .rm-menu-item { flex-direction: column; align-items: stretch; }
	.rm-stack-mobile-yes .rm-media { width: 100%; }
}

/* Push the add-to-cart row to the bottom so buttons line up across a row. */
.rm-button-bottom-yes .rm-variant-body { flex: 1; }
.rm-button-bottom-yes .rm-qty-row { margin-top: auto; }

.rm-no-mini-cart .rm-menu-grid { padding-bottom: 0; }
.rm-price { font-weight: 600; margin: 0 0 8px; }
.rm-price del { color: #999; font-weight: 400; margin-right: 6px; }
.rm-price ins { text-decoration: none; color: #b32d2e; }
.rm-out-of-stock { color: #b32d2e; font-weight: 600; font-size: 13px; margin: 0 0 8px; }
.rm-bulk-badge { color: #1a7a2e; font-weight: 600; font-size: 12px; margin: 0 0 8px; }
.rm-sku { color: #888; font-size: 11px; margin: 0 0 6px; }

/* Quantity-discount tier prices ("Buy 10+ Kulfi: $3.00 each"). */
.rm-price-tiers { margin: 0 0 8px; font-size: 12px; }
.rm-price-tiers ul { margin: 0; padding: 0; list-style: none; }
.rm-price-tier { margin: 0 0 2px; color: #1a7a2e; font-weight: 600; }
.rm-price-tier::before { content: '✓ '; }
.rm-price-tiers-heading { margin: 0 0 3px; font-weight: 700; color: #333; }
.rm-price-tiers-note { margin: 3px 0 0; color: #888; font-size: 11px; }
.rm-price-tiers-chips ul { display: flex; flex-wrap: wrap; gap: 4px; }
.rm-price-tiers-chips .rm-price-tier { margin: 0; padding: 3px 8px; border-radius: 12px; background: #e8f7ec; }
.rm-price-tiers-chips .rm-price-tier::before { content: none; }
.rm-layout-list .rm-price-tiers { order: 4; }

.rm-group-label { text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; color: #888; margin: 0 0 4px; }
.rm-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.rm-swatch { position: relative; border: 1px solid #ccc; background: #fafafa; border-radius: 14px; padding: 5px 10px; font-size: 12px; cursor: pointer; line-height: 1; }
.rm-swatch[style*="background-color"] { width: 22px; height: 22px; padding: 0; border-radius: 50%; }
.rm-swatch[style*="background-color"] .rm-swatch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rm-swatch-selected { border-color: #1e1e1e; box-shadow: 0 0 0 1px #1e1e1e; }
.rm-swatch-disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.rm-qty-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rm-qty-controls { display: flex; align-items: center; gap: 6px; }
.rm-qty-minus, .rm-qty-plus { width: 30px; height: 30px; border: 1px solid #ccc; background: #fafafa; border-radius: 4px; cursor: pointer; }
.rm-qty-minus[disabled] { opacity: 0.4; cursor: not-allowed; }
.rm-add-to-cart[disabled] { opacity: 0.5; cursor: not-allowed; }
.rm-qty-input { width: 48px; text-align: center; padding: 5px; border: 1px solid #ccc; border-radius: 4px; }

/* Clean card look. Selectors are one class deeper than the theme's
   button/input/heading rules (so theme padding, heights and colours don't
   leak in) but still shallower than Elementor's {{WRAPPER}} selectors, so
   every Style-tab control keeps overriding these defaults. */
.rm-storefront .rm-menu-item .rm-item-name { font-size: 17px; line-height: 1.3; font-weight: 600; color: #0f1111; margin: 0 0 4px; }
.rm-storefront .rm-menu-item .rm-desc { font-size: 13px; line-height: 1.4; color: #565959; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rm-storefront .rm-menu-item .rm-price { font-size: 20px; line-height: 1.2; font-weight: 700; color: #0f1111; margin: 2px 0 6px; }
.rm-storefront .rm-menu-item .rm-price del { font-size: 13px; }
.rm-storefront .rm-menu-item .rm-bulk-badge { margin: 0 0 10px; line-height: 1.35; }

/* Quantity: one joined [ − | 1 | + ] pill instead of three loose boxes. */
.rm-storefront .rm-qty-row { gap: 8px; }
.rm-storefront .rm-qty-controls { gap: 0; border: 1px solid #d5d9d9; border-radius: 999px; overflow: hidden; background: #fff; }
.rm-storefront .rm-qty-row .rm-qty-minus,
.rm-storefront .rm-qty-row .rm-qty-plus { width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #f7f8f8; color: #0f1111; font-size: 18px; line-height: 1; box-shadow: none; }
.rm-storefront .rm-qty-row .rm-qty-minus:hover:not([disabled]),
.rm-storefront .rm-qty-row .rm-qty-plus:hover { background: #e9ecec; }
.rm-storefront .rm-qty-row .rm-qty-input { width: 40px; height: 34px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #0f1111; font-size: 14px; line-height: 1; text-align: center; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.rm-storefront .rm-qty-input::-webkit-outer-spin-button,
.rm-storefront .rm-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Add to cart: rounded pill, theme button styles reset. */
.rm-storefront .rm-qty-row .rm-add-to-cart { min-height: 0; margin: 0; padding: 9px 18px; border: 1px solid #fcd200; border-radius: 999px; background: #ffd814; color: #0f1111; font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: none; letter-spacing: normal; box-shadow: none; cursor: pointer; transition: background-color 0.15s ease; }
.rm-storefront .rm-qty-row .rm-add-to-cart:hover:not([disabled]) { background: #f7ca00; border-color: #f2c200; color: #0f1111; }

/* Image Top (Card): full-bleed image, padded body, full-width button. */
.rm-layout-image-top .rm-menu-item { padding: 0; gap: 0; overflow: hidden; border-color: #e3e6e6; transition: box-shadow 0.2s ease; }
.rm-layout-image-top .rm-menu-item:hover { box-shadow: 0 4px 14px rgba( 15, 17, 17, 0.08 ); }
.rm-layout-image-top .rm-media-main { border-radius: 0; background: #f7f7f7; }
.rm-layout-image-top .rm-gallery-strip { padding: 0 14px; }
.rm-layout-image-top .rm-menu-item-body { padding: 12px 14px 14px; }
.rm-layout-image-top .rm-variant-body { flex: 1; }
.rm-layout-image-top .rm-qty-row { margin-top: auto; }
.rm-layout-image-top .rm-qty-row .rm-add-to-cart { flex: 1 1 100%; text-align: center; }
.rm-layout-image-top .rm-skeleton-card { flex-direction: column; }
.rm-layout-image-top .rm-skeleton-card .rm-skeleton-block:first-child { width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* "Cart" widget. Button reset one class deeper than theme button rules,
   still below Elementor's {{WRAPPER}} Style-tab selectors. */
.rm-cart-widget.rm-storefront { max-width: none; margin: 0; }
.rm-cart-widget .rm-cart-widget-button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 0; margin: 0; padding: 8px 14px; border: 1px solid #d5d9d9; border-radius: 999px; background: #fff; color: #0f1111; font-size: 15px; font-weight: 500; line-height: 1.2; text-transform: none; letter-spacing: normal; box-shadow: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.rm-cart-widget .rm-cart-widget-button:hover { background: #f7f8f8; border-color: #c4c9c9; color: #0f1111; }
.rm-cart-widget-icon { position: relative; display: inline-flex; font-size: 20px; line-height: 1; }
.rm-cart-widget-icon svg { width: 20px; height: 20px; fill: currentColor; }
.rm-cart-widget-badge { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #b32d2e; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.rm-cart-widget-badge-inline { position: static; }
.rm-cart-widget-hide-empty.rm-cart-widget-empty .rm-cart-widget-badge { display: none; }
.rm-cart-widget-total { font-weight: 700; }
.rm-cart-widget-text + .rm-cart-widget-total::before { content: '·'; margin-right: 8px; font-weight: 400; opacity: 0.5; }
.rm-cart-bump .rm-cart-widget-icon { animation: rm-cart-bump 0.4s ease; }
@keyframes rm-cart-bump {
	0%, 100% { transform: scale( 1 ); }
	40% { transform: scale( 1.3 ); }
}
.rm-cart-widget .rm-cart-drawer { text-align: left; }

.rm-cart-widget-inline { padding: 16px; border: 1px solid #e3e6e6; border-radius: 10px; background: #fff; }
.rm-cart-widget-inline > .rm-cart-title { margin: 0 0 12px; }
.rm-cart-widget-inline .rm-cart-empty { margin: 0; color: #565959; }
@media ( min-width: 1025px ) {
	.elementor-element.rm-cart-sticky-yes { position: sticky; top: 20px; align-self: flex-start; }
	.rm-cart-sticky-yes .rm-cart-widget-inline { max-height: calc( 100vh - 40px ); overflow-y: auto; }
}

/* A Cart widget on the page takes over from the Food Items cart bar. */
.rm-has-cart-widget .rm-menu-app .rm-mini-cart { display: none; }
.rm-has-cart-widget .rm-menu-app .rm-menu-grid { padding-bottom: 0; }

/* Mini cart / drawer */
.rm-mini-cart { position: sticky; bottom: 0; left: 0; right: 0; background: #fff; padding: 10px 0; border-top: 1px solid #e2e2e2; z-index: 10; }
.rm-mini-cart button { width: 100%; padding: 12px; font-size: 16px; }

/* Floating View Cart button / icon (Restaurant Management > Storefront, the
   Food Items "Cart Button Style", or the Cart widget's "Placement").
   Pinned to a screen corner; offsets are custom properties so the
   widgets' Style/Content settings can move it. */
.rm-mini-cart-floating,
.rm-cart-widget-floating { position: fixed; top: auto; bottom: var( --rm-float-y, 20px ); left: auto; right: var( --rm-float-x, 20px ); z-index: 99; }
.rm-mini-cart-floating.rm-float-bottom-left,
.rm-cart-widget-floating.rm-float-bottom-left { left: var( --rm-float-x, 20px ); right: auto; }
.rm-mini-cart-floating { padding: 0; border: 0; background: none; }
.rm-mini-cart-floating.rm-mini-cart-duplicate { display: none; }
.rm-mini-cart-floating .rm-view-cart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.2 ); }
.rm-cart-widget .rm-cart-widget-floating .rm-cart-widget-button { box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.2 ); }
.rm-mini-cart .rm-cart-icon { display: block; width: 22px; height: 22px; flex-shrink: 0; }

.rm-mini-cart-pill .rm-view-cart { padding: 12px 20px; border-radius: 999px; }

.rm-mini-cart-icon .rm-view-cart { position: relative; width: 60px; height: 60px; padding: 0; border-radius: 50%; }
.rm-mini-cart-icon .rm-cart-icon { width: 28px; height: 28px; }
.rm-cart-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #b32d2e; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.rm-cart-is-empty .rm-cart-badge { display: none; }

.rm-has-floating-cart .rm-menu-grid { padding-bottom: 90px; }

/* Cart & checkout palette - every rule below reads these, so a theme can
   retune the whole checkout by overriding them on .rm-storefront. */
.rm-storefront {
	--rm-ink: #111827;
	--rm-muted: #6b7280;
	--rm-line: #eceef1;
	--rm-field: #d9dce1;
	--rm-soft: #f6f7f9;
	--rm-accent: #111827;
	--rm-accent-ink: #fff;
	--rm-success: #15803d;
	--rm-radius: 12px;
}

/* High enough to sit above theme sticky headers / page-builder layers (often z-index 999+),
   which would otherwise cover the top of the popup - and its × - invisibly. */
.rm-cart-drawer { position: fixed; inset: 0; background: rgba( 17, 24, 39, 0.45 ); z-index: 99990; display: flex; align-items: flex-end; }
.rm-cart-drawer-inner { position: relative; background: #fff; color: var( --rm-ink ); width: 100%; max-height: 88vh; overflow-y: auto; padding: 0 20px 20px; border-radius: 16px 16px 0 0; margin: 0 auto; max-width: 640px; box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.2 ); text-align: left; }

@media ( min-width: 640px ) {
	.rm-cart-drawer { align-items: center; justify-content: center; }
	.rm-cart-drawer-inner { border-radius: 16px; }
}

/* Popup position chosen in the Elementor widget (default: bottom sheet on
   phones, centred on larger screens - above). */
.rm-cart-drawer.rm-cart-pos-center { align-items: center; justify-content: center; }
.rm-cart-drawer.rm-cart-pos-center .rm-cart-drawer-inner { border-radius: 12px; width: calc( 100% - 24px ); }
.rm-cart-drawer.rm-cart-pos-bottom { align-items: flex-end; justify-content: center; }
.rm-cart-drawer.rm-cart-pos-bottom .rm-cart-drawer-inner { border-radius: 12px 12px 0 0; }
.rm-cart-drawer.rm-cart-pos-right { align-items: stretch; justify-content: flex-end; }
.rm-cart-drawer.rm-cart-pos-right .rm-cart-drawer-inner { height: 100%; max-height: none; max-width: 460px; margin: 0; border-radius: 0; }
.rm-cart-drawer.rm-cart-pos-left { align-items: stretch; justify-content: flex-start; }
.rm-cart-drawer.rm-cart-pos-left .rm-cart-drawer-inner { height: 100%; max-height: none; max-width: 460px; margin: 0; border-radius: 0; }

/* Side cart: the panel slides in from its edge (replays each time the
   drawer goes from display:none to shown). */
.rm-cart-side .rm-cart-drawer-inner { animation: rm-side-in-right 0.3s ease; }
.rm-cart-side.rm-cart-pos-left .rm-cart-drawer-inner { animation-name: rm-side-in-left; }
@keyframes rm-side-in-right { from { transform: translateX( 100% ); } to { transform: none; } }
@keyframes rm-side-in-left { from { transform: translateX( -100% ); } to { transform: none; } }
@media ( prefers-reduced-motion: reduce ) {
	.rm-cart-side .rm-cart-drawer-inner { animation: none; }
}

/* Header stays put while the cart scrolls underneath it. */
.rm-cart-drawer-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px 4px; padding: 18px 20px 14px; background: inherit; border-bottom: 1px solid var( --rm-line ); }
.rm-cart-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var( --rm-ink ); }
/* Buttons in the checkout are reset one class deeper than theme button
   rules (which otherwise paint them as big blue blocks), and still below
   Elementor's {{WRAPPER}} Style-tab selectors. */
.rm-storefront .rm-cart-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; min-height: 0; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: var( --rm-soft ); color: var( --rm-ink ); font-size: 22px; font-weight: 400; line-height: 1; box-shadow: none; cursor: pointer; transition: background-color 0.15s ease; }
.rm-storefront .rm-cart-close:hover { background: var( --rm-line ); color: var( --rm-ink ); }

.rm-cart-empty { margin: 0; padding: 32px 0; text-align: center; color: var( --rm-muted ); }

/* Cart lines */
.rm-storefront .rm-cart-table { width: 100%; margin: 0 0 16px; border: 0; border-collapse: collapse; background: none; }
.rm-storefront .rm-cart-table tr { background: none; }
.rm-storefront .rm-cart-table th,
.rm-storefront .rm-cart-table td { padding: 14px 8px; border: 0; border-bottom: 1px solid var( --rm-line ); background: none; color: var( --rm-ink ); font-size: 14px; text-align: left; vertical-align: middle; }
.rm-storefront .rm-cart-table th { padding-top: 12px; padding-bottom: 10px; color: var( --rm-muted ); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.rm-storefront .rm-cart-table tr > :first-child { padding-left: 0; }
.rm-storefront .rm-cart-table tr > :last-child { padding-right: 0; }
.rm-storefront .rm-cart-table tbody tr:last-child td { border-bottom: 0; }
.rm-storefront .rm-cart-table .rm-col-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rm-storefront .rm-cart-table .rm-cart-meta { color: var( --rm-muted ); }
.rm-storefront .rm-cart-table .rm-cart-line-total { font-weight: 600; }
/* Bulk pricing: regular price struck through beside the price now paid. */
.rm-storefront .rm-cart-table .rm-price-regular { color: var( --rm-muted ); font-weight: 400; }
.rm-storefront .rm-cart-table .rm-price-now { color: var( --rm-success ); font-weight: 600; text-decoration: none; background: none; }

.rm-cart-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rm-cart-item-name { font-weight: 600; line-height: 1.35; }
.rm-cart-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var( --rm-soft ); }

.rm-qty-stepper { display: inline-flex; align-items: center; padding: 2px; border: 1px solid var( --rm-field ); border-radius: 999px; background: #fff; }
.rm-storefront .rm-qty-stepper button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var( --rm-ink ); font-size: 17px; font-weight: 500; line-height: 1; text-transform: none; box-shadow: none; cursor: pointer; transition: background-color 0.15s ease; }
.rm-storefront .rm-qty-stepper button:hover { background: var( --rm-soft ); color: var( --rm-ink ); }
.rm-cart-qty { min-width: 26px; font-size: 14px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }

.rm-storefront .rm-cart-table .rm-cart-remove-cell { width: 1%; }
.rm-storefront .rm-cart-remove { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var( --rm-muted ); box-shadow: none; cursor: pointer; transition: color 0.15s ease, background-color 0.15s ease; }
.rm-storefront .rm-cart-remove:hover { background: #fef2f2; color: #b91c1c; }

/* Narrow popup, side cart, phones: each line becomes a compact card -
   name + remove, then the price details, then qty stepper + line total. */
.rm-cart-drawer-body, .rm-cart-widget-body, #rm-cart-app { container-type: inline-size; }
@container ( max-width: 559px ) {
	.rm-storefront .rm-cart-lines thead { display: none; }
	.rm-storefront .rm-cart-lines, .rm-storefront .rm-cart-lines tbody { display: block; }
	.rm-storefront .rm-cart-lines tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var( --rm-line ); }
	.rm-storefront .rm-cart-lines tbody tr:last-child { border-bottom: 0; }
	.rm-storefront .rm-cart-lines tr::after { content: ''; order: 4; flex-basis: 100%; height: 4px; }
	.rm-storefront .rm-cart-lines td { display: block; padding: 0; border: 0; text-align: left; }
	.rm-storefront .rm-cart-lines .rm-cart-item-cell { order: 1; flex: 1 1 calc( 100% - 48px ); min-width: 0; }
	.rm-storefront .rm-cart-lines .rm-cart-remove-cell { order: 2; width: auto; }
	.rm-storefront .rm-cart-lines .rm-cart-meta { order: 3; font-size: 12px; text-align: left; }
	.rm-storefront .rm-cart-lines .rm-cart-meta::before { content: attr( data-label ) ' '; }
	.rm-storefront .rm-cart-lines .rm-cart-meta + .rm-cart-meta { margin-left: -6px; }
	.rm-storefront .rm-cart-lines .rm-cart-meta + .rm-cart-meta::before { content: '· ' attr( data-label ) ' '; }
	.rm-storefront .rm-cart-lines .rm-cart-qty-cell { order: 5; }
	.rm-storefront .rm-cart-lines .rm-cart-line-total { order: 6; margin-left: auto; font-size: 15px; }
}

.rm-bulk-progress { height: 6px; margin: 0 0 16px; border-radius: 999px; background: var( --rm-soft ); overflow: hidden; }
.rm-bulk-progress-bar { height: 100%; border-radius: inherit; background: #f59e0b; transition: width 0.3s ease; }
.rm-bulk-progress-done .rm-bulk-progress-bar { background: var( --rm-success ); }

.rm-cart-promo { margin: 10px 0; }
.rm-cart-promo-line { font-size: 13px; font-weight: 600; color: #8a6d1a; }
.rm-cart-promo-section { padding: 12px 14px; border-radius: 8px; background: #fdf6e3; color: #5c4a12; }
.rm-cart-promo-heading { margin: 0 0 4px; font-size: 15px; }
.rm-cart-promo-text { font-size: 13px; }

.rm-cart-banner { margin: 10px 0; line-height: 0; }
.rm-cart-banner img { display: block; width: 100%; height: auto; border-radius: 8px; }

.rm-table-scroll { overflow-x: auto; }

/* Totals: label left, amount right; the final total set off below. */
.rm-cart-summary { margin: 0 0 20px; padding: 14px 16px; border-radius: var( --rm-radius ); background: var( --rm-soft ); }
.rm-cart-summary p { margin: 4px 0; }
.rm-storefront .rm-cart-summary .rm-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; padding: 4px 0; color: var( --rm-muted ); font-size: 14px; }
.rm-sum-value { color: var( --rm-ink ); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm-sum-saving .rm-sum-value { color: var( --rm-success ); }
.rm-cart-final { font-size: 18px; font-weight: 700; }
.rm-storefront .rm-cart-summary .rm-sum-row.rm-cart-final { margin-top: 8px; padding-top: 12px; border-top: 1px solid #e3e5e9; color: var( --rm-ink ); font-size: 17px; font-weight: 700; }

/* Inputs share one look: 44px tall, soft border, focus ring. */
.rm-storefront .rm-coupon-row input,
.rm-storefront .rm-checkout-form input[type="text"],
.rm-storefront .rm-checkout-form input[type="email"] { display: block; width: 100%; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var( --rm-field ); border-radius: 10px; background: #fff; color: var( --rm-ink ); font-size: 15px; font-weight: 400; line-height: 1.2; box-shadow: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.rm-storefront .rm-coupon-row input:focus,
.rm-storefront .rm-checkout-form input[type="text"]:focus,
.rm-storefront .rm-checkout-form input[type="email"]:focus { border-color: var( --rm-ink ); outline: none; box-shadow: 0 0 0 3px rgba( 17, 24, 39, 0.1 ); }

.rm-coupon-row { display: flex; gap: 8px; margin: 0 0 16px; }
.rm-storefront .rm-coupon-row input { flex: 1; min-width: 0; }
.rm-storefront .rm-coupon-apply { flex-shrink: 0; height: 44px; min-height: 0; margin: 0; padding: 0 20px; border: 1px solid var( --rm-ink ); border-radius: 10px; background: #fff; color: var( --rm-ink ); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.rm-storefront .rm-coupon-apply:hover { background: var( --rm-ink ); color: #fff; }
.rm-coupon-applied { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #ecfdf3; color: var( --rm-success ); font-size: 14px; }
.rm-storefront .rm-coupon-remove { margin: 0 0 0 auto; padding: 0; min-height: 0; border: 0; background: none; color: inherit; font-size: 13px; font-weight: 500; text-decoration: underline; text-transform: none; box-shadow: none; cursor: pointer; }
.rm-coupon-error { margin: -8px 0 16px; font-size: 13px; }

.rm-bulk-hint { margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; background: #fff8e6; color: #8a5a00; font-size: 13px; font-weight: 500; }
.rm-bulk-hint-active { color: var( --rm-success ); background: #ecfdf3; }
/* Coupon-ticket look: dashed border, notched sides, badge on the right. */
.rm-bulk-ticket { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 16px; border: 1.5px dashed currentColor; border-radius: 10px; }
.rm-bulk-ticket::before, .rm-bulk-ticket::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; border: 1.5px dashed currentColor; }
.rm-bulk-ticket::before { left: -8px; clip-path: inset( 0 0 0 50% ); }
.rm-bulk-ticket::after { right: -8px; clip-path: inset( 0 50% 0 0 ); }
.rm-bulk-ticket-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: currentColor; font-size: 15px; font-weight: 700; -webkit-text-fill-color: #fff; }
.rm-bulk-ticket-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.rm-bulk-ticket-title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.rm-bulk-ticket-text { font-size: 14px; font-weight: 600; line-height: 1.35; }
.rm-bulk-ticket-badge { flex: none; padding: 4px 10px; border: 1.5px dashed currentColor; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
/* Cart summary breakdown rows (part of the cart discount above them). */
.rm-storefront .rm-cart-summary .rm-sum-row.rm-sum-breakdown { padding: 0 0 4px 14px; font-size: 13px; }
.rm-storefront .rm-cart-summary .rm-sum-breakdown .rm-sum-label::before { content: '↳ '; }
.rm-storefront .rm-cart-summary .rm-sum-breakdown .rm-sum-value { font-size: 13px; }
/* Order page: store asked for a new pickup date / message the store. */
.rm-date-revision { margin: 12px 0; padding: 14px 16px; border: 1px solid #f5c26b; border-radius: 10px; background: #fff8e6; }
.rm-date-revision-title { margin: 0 0 6px; font-weight: 700; }
.rm-date-revision-note { margin: 0 0 10px; }
.rm-date-proposal-new { margin: 0 0 4px; font-size: 16px; }
.rm-date-proposal-old { margin: 0 0 8px; color: var( --rm-muted ); }
.rm-time-offer-list { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.rm-time-offer-list li { padding: 6px 12px; border: 1px solid var( --rm-field ); border-radius: 999px; background: #fff; font-weight: 600; }
.rm-time-other-box { margin-top: 12px; }
.rm-date-revision .rm-pickup-date-input { display: block; width: 100%; max-width: 360px; height: 44px; margin: 0 0 10px; padding: 0 14px; border: 1px solid var( --rm-field ); border-radius: 10px; background: #fff; font-size: 15px; cursor: pointer; }
.rm-date-revision-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-contact-store { margin: 16px 0 0; }
.rm-contact-store textarea { display: block; width: 100%; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var( --rm-field ); border-radius: 10px; font: inherit; }
.rm-order-messages .rm-msg-customer { color: var( --rm-muted ); }

/* Checkout form */
.rm-checkout-heading { margin: 0 0 10px; color: var( --rm-muted ); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.rm-checkout-form > p { margin: 0 0 12px; }
.rm-checkout-form label { display: block; margin: 0; color: var( --rm-ink ); font-size: 13px; font-weight: 600; }
.rm-storefront .rm-checkout-form label > input[type="text"],
.rm-storefront .rm-checkout-form label > input[type="email"] { margin-top: 6px; }

.rm-pickup-date { margin: 20px 0 0; }
.rm-storefront .rm-checkout-form .rm-pickup-date-input { display: block; width: 100%; height: 44px; margin: 0; padding: 0 40px 0 14px; border: 1px solid var( --rm-field ); border-radius: 10px; background: #fff url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E" ) no-repeat right 12px center; color: var( --rm-ink ); font-size: 15px; font-weight: 400; line-height: 1.2; box-shadow: none; cursor: pointer; }
.rm-storefront .rm-checkout-form .rm-pickup-date-input:focus { border-color: var( --rm-ink ); outline: none; box-shadow: 0 0 0 3px rgba( 17, 24, 39, 0.1 ); }
/* Popup calendar: fixed to the viewport above the cart drawer (z-index 99990), so the drawer's own scrolling can't clip it. */
.rm-pickup-calendar { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rm-pickup-calendar[hidden] { display: none; }
.rm-cal-backdrop { position: absolute; inset: 0; background: rgba( 17, 24, 39, 0.45 ); }
.rm-cal-panel { position: relative; width: 100%; max-width: 340px; max-height: calc( 100vh - 32px ); overflow-y: auto; padding: 16px; border-radius: 14px; background: #fff; color: var( --rm-ink ); box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.25 ); text-align: left; animation: rm-cal-pop 0.15s ease-out; }
@keyframes rm-cal-pop { from { opacity: 0; transform: scale( 0.96 ); } to { opacity: 1; transform: none; } }
.rm-cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rm-cal-heading { font-size: 16px; font-weight: 700; }
.rm-storefront .rm-cal-top .rm-cal-close { width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var( --rm-muted ); font-size: 24px; line-height: 1; cursor: pointer; }
.rm-storefront .rm-cal-top .rm-cal-close:hover { background: var( --rm-soft ); color: var( --rm-ink ); }
.rm-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rm-cal-title { font-weight: 600; color: var( --rm-ink ); }
.rm-storefront .rm-cal-head button { width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var( --rm-ink ); font-size: 20px; line-height: 1; cursor: pointer; }
.rm-storefront .rm-cal-head button:disabled { opacity: 0.3; cursor: default; }
.rm-storefront .rm-cal-grid { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; }
.rm-storefront .rm-cal-grid th, .rm-storefront .rm-cal-grid td { padding: 2px; border: 0; background: none; text-align: center; }
.rm-storefront .rm-cal-grid th { color: var( --rm-muted ); font-size: 12px; font-weight: 600; }
.rm-storefront .rm-cal-day { width: 100%; min-width: 0; height: 40px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var( --rm-ink ); font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; }
.rm-storefront .rm-cal-day.rm-cal-available:hover { background: var( --rm-soft ); }
.rm-storefront .rm-cal-day.rm-cal-today { border-color: var( --rm-field ); }
.rm-storefront .rm-cal-day.rm-cal-disabled { color: #c4c7cc; text-decoration: line-through; cursor: not-allowed; }
.rm-storefront .rm-cal-day.rm-cal-selected { background: var( --rm-accent ); border-color: var( --rm-accent ); color: #fff; }
.rm-storefront .rm-cal-day:focus-visible { outline: 2px solid var( --rm-accent ); outline-offset: 1px; }
.rm-pickup-note { margin: 6px 0 0; color: var( --rm-muted ); font-size: 13px; }
.rm-order-pickup { margin: 10px 0; }
.rm-storefront .rm-notify-btn { display: inline-block; margin: 0 0 12px; padding: 10px 16px; min-height: 0; border: 1px solid var( --rm-ink, #111827 ); border-radius: 10px; background: #fff; color: var( --rm-ink, #111827 ); font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; }
.rm-storefront .rm-notify-btn:hover { background: var( --rm-ink, #111827 ); color: #fff; }
.rm-storefront .rm-notify-btn[disabled] { opacity: 0.6; cursor: wait; }
.rm-notify-on { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #ecfdf3; color: var( --rm-success, #067647 ); font-size: 13px; }
.rm-pickup-pending { color: var( --rm-muted ); font-size: 0.9em; }

.rm-payment-methods { margin: 20px 0 16px; }
.rm-checkout-form .rm-payment-method-option { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 14px 16px; border: 1px solid #e3e5e9; border-radius: var( --rm-radius ); background: #fff; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.rm-checkout-form .rm-payment-method-option:hover { border-color: #c9cdd4; }
.rm-checkout-form .rm-payment-method-option.rm-selected { border-color: var( --rm-ink ); box-shadow: 0 0 0 1px var( --rm-ink ); }
.rm-storefront .rm-payment-method-option input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var( --rm-ink ); }
.rm-upi-note { margin: -2px 0 8px; padding: 10px 14px; border-radius: 10px; background: #ecfdf3; color: var( --rm-success ); font-size: 13px; }

.rm-storefront .rm-checkout-form .rm-place-order { display: block; width: 100%; height: auto; min-height: 0; margin: 12px 0 0; padding: 15px 20px; border: 0; border-radius: var( --rm-radius ); background: var( --rm-accent ); color: var( --rm-accent-ink ); font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; box-shadow: 0 8px 20px rgba( 17, 24, 39, 0.18 ); cursor: pointer; transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease; }
.rm-storefront .rm-checkout-form .rm-place-order:hover { background: #000; color: var( --rm-accent-ink ); box-shadow: 0 10px 24px rgba( 17, 24, 39, 0.24 ); }
.rm-storefront .rm-checkout-form .rm-place-order:active { transform: translateY( 1px ); }
.rm-storefront .rm-checkout-form .rm-place-order[disabled] { opacity: 0.6; cursor: wait; }
.rm-checkout-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fef2f2; font-size: 14px; }

/* Order summary / tracking */
.rm-order-summary { border: 1px solid #e2e2e2; border-radius: 8px; padding: 16px; background: #fff; }
.rm-order-status { display: inline-block; padding: 4px 10px; border-radius: 12px; background: #eee; font-weight: 600; }
.rm-status-pending { background: #fbe2e2; }
.rm-status-accepted { background: #fbeecb; }
.rm-status-preparing { background: #d6e6f6; }
.rm-status-ready { background: #d6f3dc; }
.rm-status-completed { background: #e5e5e5; }
.rm-status-cancelled { background: #e5e5e5; }

.rm-order-messages { padding-left: 18px; }

.rm-store-picker ul, .rm-zone-picker ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rm-zone-active { margin: 0 0 12px; }

/* Touch targets - the qty +/- buttons and colour swatches are otherwise
   under the ~44px guideline on a phone. */
@media ( max-width: 639px ) {
	.rm-qty-minus, .rm-qty-plus { width: 40px; height: 40px; }
	.rm-storefront .rm-qty-row .rm-qty-minus, .rm-storefront .rm-qty-row .rm-qty-plus { width: 40px; height: 40px; }
	.rm-storefront .rm-qty-row .rm-qty-input { height: 40px; }
	.rm-storefront .rm-qty-row .rm-add-to-cart { min-height: 40px; }
	.rm-swatch { min-height: 40px; }
	.rm-swatch[style*="background-color"] { width: 40px; height: 40px; }
}

/* Loading skeletons */
.rm-skeleton-card { border: 1px solid #e2e2e2; border-radius: 8px; padding: 10px; background: #fff; display: flex; gap: 12px; }
.rm-skeleton-block { background: linear-gradient( 90deg, #eee 25%, #f5f5f5 37%, #eee 63% ); background-size: 400% 100%; animation: rm-shimmer 1.4s ease infinite; border-radius: 6px; }
.rm-skeleton-card .rm-skeleton-block:first-child { width: 84px; height: 84px; flex-shrink: 0; }
.rm-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.rm-skeleton-lines .rm-skeleton-block { height: 12px; }
.rm-skeleton-lines .rm-skeleton-block:nth-child(1) { width: 60%; }
.rm-skeleton-lines .rm-skeleton-block:nth-child(2) { width: 90%; }
.rm-skeleton-lines .rm-skeleton-block:nth-child(3) { width: 40%; }
@keyframes rm-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* Toast */
#rm-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #1e1e1e; color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 100001; max-width: 90vw; text-align: center; }
#rm-toast.rm-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
#rm-toast.rm-toast-error { background: #b32d2e; }
/* The popup × stays on top of (and clickable over) the scrolled content. */
.rm-cart-drawer-header .rm-cart-close { position: relative; z-index: 21; pointer-events: auto; cursor: pointer; }
