/* ==========================================================================
   MarioMaker v2 — inner pages (Products, product pages, Build Your Kit, Kits,
   cart, checkout, account, informational pages).
   Uses the tokens/buttons/header/footer defined in home.css (the homepage is
   the design system); this file only adds the page-level components.
   Mobile-first; breakpoints match home.css (600 / 760 / 1024).
   ========================================================================== */

/* Old theme tokens (prototype.css / theme.css still style WooCommerce markup —
   cart, checkout, account, product form). Remapped here so everything they
   draw uses the v2 palette: green → MarioMaker brand green, dark green → charcoal. */
body.mm-v2 {
  --green: #62d31f;
  --green-dark: #111214;
  --green-darker: #111214;
  --ink: #111214;
  --ink-soft: #5f646d;
  --border: #e3e5e8;
  --hero-glow: none;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; /* 0.4.34: one font site-wide (was Poppins) */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
}

/* Old prototype chrome that may still print inside WooCommerce markup */
.mm-v2 .promo-bar { display: none; }
.mm-v2 main { min-height: 40vh; }

/* ---------- Page header ---------- */
.mm-page-head { padding: 22px 0 26px; }
.mm-page-head-grey { background: var(--mm-grey); }
.mm-page-head-cool { background: var(--mm-cool); }
.mm-page-title { margin: 0; font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--mm-ink); }
.mm-page-lead { margin: 10px 0 0; max-width: 46em; font-size: 1.05rem; line-height: 1.55; color: var(--mm-ink-2); }
.mm-page-eyebrow { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mm-muted); }

.mm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; font-size: .85rem; color: var(--mm-muted); }
.mm-crumbs a { color: var(--mm-muted); }
.mm-crumbs a:hover { color: var(--mm-ink); text-decoration: underline; }
.mm-crumbs [aria-current] { color: var(--mm-ink); font-weight: 500; }
.mm-crumbs-sep { color: #b3b7be; }

/* ---------- Filter chips ---------- */
.mm-chips {
  display: flex; gap: 8px; margin: 0 calc(var(--mm-gutter) * -1) 18px; padding: 2px var(--mm-gutter) 6px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mm-chips::-webkit-scrollbar { display: none; }
.mm-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  border: 1.5px solid var(--mm-line); border-radius: 999px; background: #fff;
  font-family: var(--mm-font-head); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-ink-2);
  transition: border-color .2s, background-color .2s, color .2s;
}
.mm-chip:hover { border-color: var(--mm-ink); color: var(--mm-ink); }
.mm-chip.is-active { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }

/* ---------- Shop ---------- */
.mm-shop { padding: 22px 0 48px; }
.mm-shop .mm-card-grid, .mm-shop .mm-shop-bar, .mm-shop .mm-empty { transition: opacity .15s; }
.mm-shop.is-loading .mm-card-grid, .mm-shop.is-loading .mm-shop-bar, .mm-shop.is-loading .mm-empty { opacity: .45; pointer-events: none; } /* shop-filter.js loading in place */
.mm-shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mm-shop-count { margin: 0; font-size: .92rem; color: var(--mm-muted); }
.mm-v2 .woocommerce-ordering { margin: 0; float: none; }
.mm-v2 .woocommerce-ordering select,
.mm-v2 select.orderby {
  min-height: 42px; padding: 0 38px 0 14px; border: 1.5px solid var(--mm-line); border-radius: var(--mm-radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111214' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: inherit; font-size: .9rem; color: var(--mm-ink); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.mm-v2 .woocommerce-ordering select:hover { border-color: var(--mm-ink); }

.mm-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mm-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--mm-line); border-radius: var(--mm-radius); background: #fff; overflow: hidden;
  transition: box-shadow .25s var(--mm-ease), transform .25s var(--mm-ease), border-color .25s;
}
.mm-card:hover { box-shadow: 0 14px 30px -18px rgba(17, 18, 20, .35); transform: translateY(-2px); border-color: #d7dadf; }
.mm-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--mm-grey); overflow: hidden; }
.mm-card-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--mm-ease); }
.mm-card:hover .mm-card-img { transform: scale(1.04); }
.mm-card-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 4px; background: var(--mm-brand); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.mm-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px; }
.mm-card-title { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mm-card-title a { color: var(--mm-ink); }
.mm-card-title a:hover { text-decoration: underline; }
/* No button on the card: the title link stretches over the whole card. */
.mm-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.mm-card-title a:focus-visible { outline: none; }
.mm-card:focus-within { outline: 2px solid var(--mm-ink); outline-offset: 2px; }
.mm-card-compat { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.mm-card-compat-icons { display: flex; }
.mm-card-compat-icons span {
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: -7px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--mm-line); overflow: hidden;
}
.mm-card-compat-icons span:first-child { margin-left: 0; }
.mm-card-compat-icons img { width: 21px; height: auto; }
.mm-card-compat-text { font-size: .76rem; font-weight: 600; color: var(--mm-ink-2); white-space: nowrap; }
.mm-card-compat-icons span:nth-child(4) { display: none; }
.mm-card-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }
.mm-card-price { font-family: var(--mm-font-head); font-size: 1.1rem; font-weight: 700; color: var(--mm-ink); }
.mm-card-price del { color: var(--mm-muted); font-weight: 500; font-size: .85em; margin-right: 4px; }
.mm-card-price ins { text-decoration: none; }
/* Free-shipping pill on gift products' cards (inc/free-shipping-gift.php) — same look as the product page pill */
.mm-card-ship {
  display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 9px 3px 7px;
  border: 1px solid #bfe6a6; border-radius: 999px; background: #eef9e6; color: #2f6b0e;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1.25; white-space: nowrap;
}
.mm-card-ship svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 359px) { .mm-card-ship { gap: 4px; padding: 2px 7px 2px 5px; font-size: .66rem; letter-spacing: 0; } .mm-card-ship svg { width: 13px; height: 13px; } }
.mm-v2 a.added_to_cart { display: none; } /* WC "View cart" link after AJAX add — the header cart covers it */

.mm-v2 .woocommerce-pagination { margin-top: 32px; }
.mm-v2 .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; border: 0; }
.mm-v2 .woocommerce-pagination ul.page-numbers li { border: 0; }
.mm-v2 .woocommerce-pagination .page-numbers a,
.mm-v2 .woocommerce-pagination .page-numbers span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
  border: 1.5px solid var(--mm-line); border-radius: var(--mm-radius); color: var(--mm-ink); font-weight: 600; background: #fff;
}
.mm-v2 .woocommerce-pagination .page-numbers .current { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }

.mm-empty { padding: 48px 20px; border: 1px dashed #cfd3d8; border-radius: var(--mm-radius-lg); text-align: center; background: #fff; }
.mm-empty h2 { margin: 0 0 8px; font-size: 1.4rem; }
.mm-empty p { margin: 0 0 20px; color: var(--mm-muted); }

/* ---------- Kit CTA band ---------- */
.mm-kit-cta { padding: 0 0 48px; }
.mm-kit-cta-inner {
  display: grid; gap: 20px; align-items: center; padding: 30px 22px; border-radius: var(--mm-radius-lg);
  background: #0b0b0c; color: #fff;
}
.mm-kit-cta-eyebrow { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--mm-brand); }
.mm-kit-cta-title { margin: 0 0 6px; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; color: #fff; }
.mm-kit-cta-text { margin: 0; color: rgba(255, 255, 255, .82); }
.mm-kit-cta .mm-btn { width: 100%; }

/* ---------- WooCommerce notices (all pages) ---------- */
.mm-v2 .woocommerce-message,
.mm-v2 .woocommerce-info,
.mm-v2 .woocommerce-error {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 0 0 20px; padding: 14px 18px; list-style: none;
  border: 1px solid var(--mm-line); border-left: 4px solid var(--mm-brand); border-radius: var(--mm-radius);
  background: #fff; color: var(--mm-ink); font-size: .95rem;
}
.mm-v2 .woocommerce-error { border-left-color: #c0392b; }
.mm-v2 .woocommerce-message::before,
.mm-v2 .woocommerce-info::before,
.mm-v2 .woocommerce-error::before { display: none; }
.mm-v2 .woocommerce-message .button,
.mm-v2 .woocommerce-info .button { order: 2; margin-left: auto; }

@media (min-width: 600px) {
  .mm-card-grid { gap: 16px; }
  .mm-card-body { padding: 14px 16px 16px; }
  .mm-card-compat-icons span:nth-child(4) { display: grid; }
  .mm-kit-cta-inner { padding: 36px 36px; }
  .mm-kit-cta .mm-btn { width: auto; }
}
@media (min-width: 760px) {
  .mm-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (min-width: 1024px) {
  .mm-page-head { padding: 28px 0 40px; }
  .mm-page-title { font-size: 3rem; }
  .mm-page-lead { font-size: 1.2rem; }
  .mm-shop { padding: 30px 0 72px; }
  .mm-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .mm-card-title { font-size: 1.08rem; -webkit-line-clamp: 2; }
  .mm-kit-cta { padding-bottom: 72px; }
  .mm-kit-cta-inner { grid-template-columns: 1fr auto; padding: 44px 56px; }
}

/* ==========================================================================
   Build Your Kit page (the builder itself is styled in home.css)
   ========================================================================== */
.mm-build-intro { background: var(--mm-cool); padding: 0 0 4px; }
.mm-build-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.mm-build-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--mm-radius); background: #fff; box-shadow: var(--mm-card-shadow); }
.mm-build-steps li > span:last-child { display: grid; font-size: .85rem; color: var(--mm-muted); line-height: 1.35; }
.mm-build-steps strong { font-family: var(--mm-font-head); font-size: .98rem; font-weight: 600; color: var(--mm-ink); }
.mm-build-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mm-build-presets-label { font-size: .88rem; font-weight: 600; color: var(--mm-ink-2); margin-right: 4px; }
.mm-builder-page { padding-top: 22px; }
.mm-build-note { margin: 22px 0 0; padding-bottom: 28px; font-size: .9rem; color: var(--mm-muted); }
.mm-build-note a { color: var(--mm-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mm-brand); text-decoration-thickness: 2px; }
.mm-step-num-sm { width: 28px; height: 28px; font-size: .85rem; }

@media (min-width: 760px) {
  .mm-build-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  .mm-build-intro { padding-bottom: 12px; }
  .mm-builder-page { padding-top: 26px; }
  .mm-build-note { padding-bottom: 0; }
  .mm-step-num-sm { width: 32px; height: 32px; font-size: .95rem; }
}

/* ==========================================================================
   Kits page
   ========================================================================== */
.mm-kits-page { padding: 28px 0 44px; }
.mm-kit-feature { display: grid; gap: 18px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--mm-line); }
.mm-kit-feature:last-child { border-bottom: 0; margin-bottom: 0; }
.mm-kit-feature-media { aspect-ratio: 1.5 / 1; border-radius: var(--mm-radius-lg); }
.mm-kit-feature:hover .mm-kit-img { transform: scale(1.03); }
.mm-kit-feature-eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mm-muted); }
.mm-kit-feature-title { margin: 0 0 6px; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; line-height: 1.1; }
.mm-kit-feature-text { margin: 0 0 18px; font-size: 1.1rem; color: var(--mm-ink-2); }
.mm-kit-inside-title { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mm-ink-2); }
.mm-kit-inside { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mm-kit-inside a {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px;
  border: 1px solid var(--mm-line); border-radius: var(--mm-radius); background: #fff; color: var(--mm-ink); transition: border-color .2s;
}
.mm-kit-inside a:hover { border-color: var(--mm-ink); }
.mm-kit-inside img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; }
.mm-kit-inside-name { font-weight: 600; font-size: .95rem; }
.mm-kit-inside-price { font-family: var(--mm-font-head); font-weight: 700; }
.mm-kit-feature-note { margin: 0 0 18px; font-size: .88rem; color: var(--mm-muted); }
.mm-kit-feature .mm-btn { width: 100%; }

@media (min-width: 600px) {
  .mm-kit-feature .mm-btn { width: auto; }
}
@media (min-width: 1024px) {
  .mm-kits-page { padding: 56px 0 64px; }
  .mm-kit-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-bottom: 56px; margin-bottom: 56px; }
  .mm-kit-feature:nth-child(even) .mm-kit-feature-media { order: 2; }
  .mm-kit-feature-media { aspect-ratio: 1.45 / 1; }
}

/* ==========================================================================
   Product page (single-product.php keeps its structure + pdp-woo.js hooks;
   these rules bring it onto the v2 design)
   ========================================================================== */
body.mm-v2 .pdp-breadcrumb-bar { padding: 18px 0 0; background: none; }
body.mm-v2 .pdp-breadcrumb-bar .mm-crumbs { margin: 0; }
body.mm-v2 .pdp-section { padding: 16px 0 32px; background: none; }
body.mm-v2 .pdp-gallery-main-photo { border-radius: var(--mm-radius-lg); background: var(--mm-grey); box-shadow: none; border: 1px solid var(--mm-line); }
body.mm-v2 .pdp-gallery .pdp-gallery-side-item { border-radius: var(--mm-radius); }
body.mm-v2 .pdp-gallery .pdp-gallery-side-item.active { border-color: var(--mm-ink); box-shadow: none; }
body.mm-v2 .pdp-buybox { padding: 22px 18px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); box-shadow: none; background: #fff; }
body.mm-v2 .pdp-buybox .pdp-title { font-family: var(--mm-font-head); font-weight: 700; text-transform: none; font-size: clamp(1.8rem, 6.5vw, 2.5rem); line-height: 1.1; color: var(--mm-ink); }
body.mm-v2 .pdp-buybox .pdp-price { font-family: var(--mm-font-head); font-weight: 700; color: var(--mm-ink); }
body.mm-v2 .pdp-lede { color: var(--mm-ink-2); }
body.mm-v2 .pdp-buybox .pdp-choose-title { font-family: var(--mm-font-head); font-size: 1rem; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--mm-ink); }
body.mm-v2 .pdp-choose-title::before { background: var(--mm-brand); height: 3px; }
body.mm-v2 .pdp-choose .pdp-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.mm-v2 .pdp-choose .pdp-brand-card { border-radius: 4px; border-color: var(--mm-line); box-shadow: var(--mm-card-shadow); }
body.mm-v2 .pdp-choose .pdp-brand-card:hover { border-color: #b9bdc4; }
body.mm-v2 .pdp-choose .pdp-brand-card.active { border-color: var(--mm-select); background: #f1fbea; box-shadow: 0 0 0 1px var(--mm-select), 0 0 0 4px rgba(98, 211, 31, .14); }
body.mm-v2 .pdp-brand-card-check { background: var(--mm-select); }
body.mm-v2 .pdp-add-to-cart-wc .single_add_to_cart_button.single_add_to_cart_button {
  background: var(--mm-brand) !important; color: var(--mm-ink) !important;
  font-family: var(--mm-font-head); border-radius: var(--mm-radius); box-shadow: none; min-height: 56px;
}
body.mm-v2 .pdp-add-to-cart-wc .single_add_to_cart_button.single_add_to_cart_button:hover { background: var(--mm-brand-hover) !important; color: var(--mm-ink) !important; box-shadow: 0 8px 20px -10px rgba(92, 173, 65, .55); }
body.mm-v2 .pdp-kit-pill { margin: 14px 0 4px; }
body.mm-v2 .pdp-trust { border-top-color: var(--mm-line); }
body.mm-v2 .pdp-trust svg { color: var(--mm-ink); }
body.mm-v2 .pdp-details-section { padding: 8px 0 32px; }
body.mm-v2 .pdp-highlight { border-color: var(--mm-line); border-radius: var(--mm-radius); box-shadow: none; }
body.mm-v2 .pdp-highlight-icon { background: var(--mm-ink); color: var(--mm-brand); border-radius: var(--mm-radius); }
body.mm-v2 .pdp-info-card { border-color: var(--mm-line); border-radius: var(--mm-radius-lg); box-shadow: none; }
body.mm-v2 .pdp-section-title { font-family: var(--mm-font-head); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1.5rem; }
body.mm-v2 .pdp-info-card .pdp-tab.active { background: var(--mm-ink); color: #fff; }
body.mm-v2 .pdp-reviews-section { padding: 0 0 32px; }
body.mm-v2 .pdp-reviews { border-color: var(--mm-line); border-radius: var(--mm-radius-lg); box-shadow: none; }
body.mm-v2 .pdp-eyebrow { color: var(--mm-muted); }
body.mm-v2 .pdp-battery-search:focus-within { border-color: var(--mm-ink); box-shadow: none; }
body.mm-v2 .pdp-reviews .comment-form textarea:focus { border-color: var(--mm-ink); box-shadow: none; }
.pdp-related-section { padding: 8px 0 44px; }
.pdp-related-title { margin-bottom: 18px; font-size: clamp(1.6rem, 6vw, 2.2rem); }

/* Photo slider: one photo at a time (scroll-snap track = native swipe), small
   arrows, "1 / N" counter; click opens the lightbox (pdp-woo.js). */
.pdp-slider .pdp-gallery-main-photo { position: relative; }
.pdp-slider-track {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pdp-slider-track::-webkit-scrollbar { display: none; }
.pdp-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; }
.pdp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-select: none; user-select: none; }
.pdp-slider-arrow {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .88); color: var(--mm-ink, #111); cursor: pointer;
  box-shadow: 0 2px 10px rgba(17, 17, 17, .16); transition: background .15s ease, transform .15s ease;
}
.pdp-slider-arrow:hover { background: #fff; transform: scale(1.06); }
.pdp-slider-arrow:focus-visible { outline: 2px solid var(--mm-ink, #111); outline-offset: 2px; }
.pdp-slider-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pdp-slider-prev { left: 12px; }
.pdp-slider-next { right: 12px; }
.pdp-slider-count {
  position: absolute; left: 50%; bottom: 12px; z-index: 2; transform: translateX(-50%);
  padding: 4px 11px; border-radius: 999px; background: rgba(17, 17, 17, .62); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; pointer-events: none;
}
@media (max-width: 599px) {
  .pdp-slider-arrow { width: 34px; height: 34px; margin-top: -17px; }
  .pdp-slider-prev { left: 8px; }
  .pdp-slider-next { right: 8px; }
}

/* Lightbox */
html.pdp-lightbox-open { overflow: hidden; }
.pdp-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(12, 12, 14, .96); }
.pdp-lightbox-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.pdp-lightbox-track::-webkit-scrollbar { display: none; }
.pdp-lightbox-slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; padding: 56px 12px; scroll-snap-align: start; scroll-snap-stop: always; }
.pdp-lightbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; }
.pdp-lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.pdp-lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.pdp-lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pdp-lightbox .pdp-slider-count { bottom: 16px; background: rgba(255, 255, 255, .14); }
@media (min-width: 900px) {
  .pdp-lightbox-slide { padding: 64px 88px; }
  .pdp-lightbox .pdp-slider-prev { left: 24px; }
  .pdp-lightbox .pdp-slider-next { right: 24px; }
}

/* "+ Select more batteries" / "− Show less" under the battery tiles */
.pdp-battery-more {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 10px;
  border: 1.5px solid var(--mm-ink, #111); border-radius: var(--mm-radius, 6px); background: #fff; color: var(--mm-ink, #111);
  font-family: var(--mm-font-head, inherit); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pdp-battery-more[hidden] { display: none; }
.pdp-battery-more:hover { background: var(--mm-ink, #111); color: #fff; }
.pdp-battery-more:focus-visible { outline: 2px solid var(--mm-ink, #111); outline-offset: 2px; }
.pdp-battery-more-icon { font-size: 1.15rem; line-height: 1; font-weight: 600; }

@media (min-width: 600px) {
  body.mm-v2 .pdp-choose .pdp-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.mm-v2 .pdp-choose .pdp-brand-card.has-image { flex-direction: column; justify-content: flex-start; text-align: center; }
  body.mm-v2 .pdp-buybox { padding: 28px; }
}
@media (min-width: 1024px) {
  body.mm-v2 .pdp-section { padding: 22px 0 48px; }
  body.mm-v2 .pdp-stack { gap: 40px; align-items: start; }
  /* Gallery stays in view while the long battery list scrolls */
  body.mm-v2 .pdp-stack > .pdp-gallery { position: sticky; top: calc(var(--mm-header-h) + 20px); }
  body.mm-v2 .pdp-buybox { padding: 32px; }
  body.mm-v2 .pdp-choose .pdp-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.mm-v2 .pdp-choose .pdp-brand-card { flex-direction: column; justify-content: center; text-align: center; padding: 10px 6px; }
  body.mm-v2 .pdp-choose .pdp-brand-card .pdp-brand-card-label { font-size: .82rem; }
  .pdp-related-section { padding: 16px 0 72px; }
}

/* Product page — phones: compact battery rows, unboxed buy area */
body.mm-v2 .pdp-trust svg { background: var(--mm-grey); color: var(--mm-ink); }
@media (max-width: 599px) {
  body.mm-v2 .pdp-buybox { padding: 4px 0 0; border: 0; border-radius: 0; }
  body.mm-v2 .pdp-choose .pdp-brand-card.has-image { flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 58px; padding: 6px 8px; text-align: left; }
  body.mm-v2 .pdp-choose .pdp-brand-card.has-image .pdp-brand-card-label { text-align: left; font-size: .8rem; }
  body.mm-v2 .pdp-brand-card-media { width: 40px; height: 36px; flex-shrink: 0; }
  body.mm-v2 .pdp-kit-pill { display: flex; justify-content: center; font-size: .72rem; letter-spacing: .02em; }
}

/* ==========================================================================
   Cart / Checkout / My Account (classic WooCommerce shortcodes — layout and
   functionality are WooCommerce's; theme.css draws them with the remapped
   tokens above, these rules finish them in the v2 style)
   ========================================================================== */
.mm-woo { padding: 24px 0 48px; }
body.mm-v2 .mm-woo .button,
body.mm-v2 .mm-woo button.button,
body.mm-v2 .mm-woo a.button,
body.mm-v2 .mm-woo input.button { box-shadow: none !important; font-family: var(--mm-font-head); border-radius: var(--mm-radius); }
body.mm-v2 .wc-proceed-to-checkout .checkout-button,
body.mm-v2 #place_order {
  background: var(--mm-brand) !important; color: var(--mm-ink) !important; box-shadow: none !important;
  font-family: var(--mm-font-head); font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  border-radius: var(--mm-radius); min-height: 56px;
}
body.mm-v2 .wc-proceed-to-checkout .checkout-button:hover,
body.mm-v2 #place_order:hover { background: var(--mm-brand-hover) !important; }
body.mm-v2 .woocommerce-cart table.shop_table.cart,
body.mm-v2 .cart-collaterals .cart_totals { border-color: var(--mm-line); border-radius: var(--mm-radius-lg); box-shadow: none; }
body.mm-v2 .cart-collaterals .cart_totals h2 { font-family: var(--mm-font-head); text-transform: none; letter-spacing: 0; font-size: 1.35rem; }
body.mm-v2 .woocommerce-cart table.shop_table.cart td.product-name a { font-weight: 600; }
body.mm-v2 .woocommerce-cart table.shop_table.cart .product-thumbnail img { border-radius: var(--mm-radius); }

/* Checkout */
body.mm-v2 .woocommerce-checkout h3,
body.mm-v2 #order_review_heading { font-family: var(--mm-font-head); font-size: 1.35rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
body.mm-v2 .woocommerce form .form-row label { font-weight: 600; font-size: .9rem; color: var(--mm-ink-2); }
body.mm-v2 .woocommerce form .form-row .input-text,
body.mm-v2 .woocommerce form .form-row select,
body.mm-v2 .woocommerce form .form-row textarea,
body.mm-v2 .select2-container .select2-selection--single {
  min-height: 48px; border: 1.5px solid #cfd3d8; border-radius: var(--mm-radius); background: #fff; font-size: 1rem; padding: 10px 14px;
}
body.mm-v2 .select2-container .select2-selection--single { padding: 0; display: flex; align-items: center; }
body.mm-v2 .select2-container .select2-selection--single .select2-selection__rendered { padding-left: 14px; line-height: 46px; }
body.mm-v2 .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
body.mm-v2 .woocommerce form .form-row .input-text:focus,
body.mm-v2 .woocommerce form .form-row textarea:focus { border-color: var(--mm-ink); outline: none; box-shadow: none; }
body.mm-v2 #order_review,
body.mm-v2 .woocommerce-checkout-review-order { border-color: var(--mm-line); border-radius: var(--mm-radius-lg); box-shadow: none; }
body.mm-v2 .woocommerce-checkout #payment { background: var(--mm-grey); border-radius: var(--mm-radius-lg); }
body.mm-v2 .woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: var(--mm-radius); }
body.mm-v2 .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
body.mm-v2 .woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--mm-line); }

/* My Account: signed-out login / register forms (signed-in dashboard: end of file) */
body.mm-v2 .woocommerce-account .woocommerce form.login,
body.mm-v2 .woocommerce-account .woocommerce form.register { border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); padding: 24px; box-shadow: none; }
body.mm-v2 .woocommerce-account h2 { font-family: var(--mm-font-head); font-size: 1.5rem; }

@media (min-width: 1024px) {
  .mm-woo { padding: 36px 0 72px; }
}

/* Checkout desktop: details left, order summary right (layout only) */
@media (min-width: 1024px) {
  body.mm-v2 form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 40px; align-items: start; }
  body.mm-v2 form.woocommerce-checkout > * { grid-column: 1; }
  body.mm-v2 form.woocommerce-checkout #customer_details { grid-row: 1 / span 3; }
  body.mm-v2 form.woocommerce-checkout #customer_details .col-1,
  body.mm-v2 form.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
  body.mm-v2 form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
  body.mm-v2 form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--mm-header-h) + 20px); }
}
body.mm-v2 #place_order { width: 100%; float: none; }

/* ==========================================================================
   Informational pages (policy pages via page.php, About, Contact, 404/index)
   ========================================================================== */
.mm-page { padding: 32px 0 44px; }
.mm-prose { max-width: 760px; font-size: 1.02rem; line-height: 1.7; color: var(--mm-ink-2); }
.mm-prose .policy-content { max-width: none; padding: 0; border: 0; background: none; box-shadow: none; }
.mm-prose h2 { margin: 1.8em 0 .5em; font-size: 1.45rem; font-weight: 700; color: var(--mm-ink); }
.mm-prose h2:first-child, .mm-prose .policy-content > h2:first-child { margin-top: 0; }
.mm-prose h3 { margin: 1.5em 0 .4em; font-size: 1.15rem; color: var(--mm-ink); }
.mm-prose p { margin: 0 0 1em; }
.mm-prose ul, .mm-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.mm-prose li { margin-bottom: .4em; }
.mm-prose li::marker { color: var(--mm-ink); }
.mm-prose a { color: var(--mm-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mm-brand); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.mm-prose strong { color: var(--mm-ink); }
.mm-prose .track-order-card { padding: 24px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: var(--mm-grey); }
.mm-prose .track-order-card h1 { display: none; } /* page header already shows the title */
.mm-prose .track-order-sub { margin: 0; }

.mm-info-band { padding: 40px 0; background: var(--mm-grey); }
.mm-info-band .mm-h2 { margin-bottom: 22px; }
.mm-feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mm-feature { padding: 22px; border-radius: var(--mm-radius-lg); background: #fff; border: 1px solid var(--mm-line); }
.mm-feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: var(--mm-radius); background: var(--mm-ink); color: var(--mm-brand); }
.mm-feature-icon svg { width: 22px; height: 22px; }
.mm-feature h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; }
.mm-feature p { margin: 0; color: var(--mm-muted); line-height: 1.55; }
.mm-values { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.mm-values li { padding: 20px 22px; border-left: 4px solid var(--mm-brand); background: #fff; border-radius: 0 var(--mm-radius) var(--mm-radius) 0; box-shadow: var(--mm-card-shadow); }
.mm-values strong { display: block; margin-bottom: 4px; font-family: var(--mm-font-head); font-size: 1.08rem; color: var(--mm-ink); }
.mm-values p { margin: 0; color: var(--mm-muted); }

/* Contact */
.mm-contact-grid { display: grid; gap: 16px; }
.mm-panel { padding: 22px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; }
.mm-panel-grey { background: var(--mm-grey); border-color: transparent; }
.mm-panel h2 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 700; }
.mm-panel-sub { margin: 0 0 18px; color: var(--mm-muted); }
.mm-form { display: grid; gap: 14px; }
.mm-field { display: grid; gap: 6px; }
.mm-field label { font-size: .9rem; font-weight: 600; color: var(--mm-ink-2); }
.mm-field input, .mm-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cfd3d8; border-radius: var(--mm-radius);
  background: #fff; font: inherit; font-size: 1rem; color: var(--mm-ink);
}
.mm-field textarea { resize: vertical; }
.mm-field input:focus, .mm-field textarea:focus { outline: none; border-color: var(--mm-ink); }
.mm-btn-full { width: 100%; }
.mm-form-note { margin: 0; min-height: 1.2em; font-size: .92rem; font-weight: 500; }
.mm-contact-address { margin: 18px 0; font-style: normal; line-height: 1.7; color: var(--mm-ink-2); }
/* Contact panel sits on light grey: undo the dark-footer white email/social styles */
.mm-panel .mm-footer-mail { color: var(--mm-ink); }
.mm-panel .mm-footer-mail:hover { color: var(--mm-ink-2); }
.mm-panel .mm-social a { color: var(--mm-ink); border-color: #c4c8ce; background: #fff; }
.mm-panel .mm-social a:hover { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }
.mm-faq { display: grid; gap: 10px; max-width: 860px; }
.mm-faq details { border: 1px solid var(--mm-line); border-radius: var(--mm-radius); background: #fff; }
.mm-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px;
  font-family: var(--mm-font-head); font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none;
}
.mm-faq summary::-webkit-details-marker { display: none; }
.mm-faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; line-height: 1; }
.mm-faq details[open] summary::after { content: '–'; }
.mm-faq details p { margin: 0; padding: 0 18px 16px; color: var(--mm-ink-2); line-height: 1.6; }
.mm-faq a { color: var(--mm-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mm-brand); text-decoration-thickness: 2px; }

@media (min-width: 760px) {
  .mm-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mm-values { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .mm-contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 24px; }
  .mm-panel { padding: 30px; }
}
@media (min-width: 1024px) {
  .mm-page { padding: 48px 0 64px; }
  .mm-info-band { padding: 64px 0; }
  .mm-feature-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.mm-notfound { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ==========================================================================
   Order thresholds (inc/order-rules.php) — progress component, checkout lock
   ========================================================================== */
.mm-order { --mm-ok: #2f6b0e; display: grid; gap: 8px; }
.mm-order-full { margin: 0 0 20px; padding: 18px; border: 1px solid var(--mm-line); border-left: 4px solid var(--mm-brand); border-radius: var(--mm-radius-lg); background: #fff; }
.mm-order-full.is-unlocked { border-left-color: var(--mm-ok); }
.mm-order-compact { padding: 14px; border-radius: var(--mm-radius); background: var(--mm-grey); }
#mm-order-checkout { margin: 0 0 20px; }
.mm-order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mm-order-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mm-muted); }
.mm-order-value { font-family: var(--mm-font-head); font-size: 1.5rem; font-weight: 700; color: var(--mm-ink); }
.mm-order-msg { margin: 0; font-family: var(--mm-font-head); font-weight: 600; font-size: 1rem; color: var(--mm-ink); }
.mm-order-compact .mm-order-msg { font-size: .9rem; }
.mm-order-msg.is-done { color: var(--mm-ok); }
.mm-order-msg-free { font-size: .9rem; font-weight: 600; color: var(--mm-ink-2); }
.mm-order-help { margin: 2px 0 0; font-size: .8rem; color: var(--mm-muted); }

/* ---------- Two-milestone track (mariomaker_order_track_html) ----------
   €0 ─────────── ● ──── ●
                €150   €200
              Checkout Free shipping
   The bar and the labels share one grid, and each label sits in its own
   column under its segment's end dot — labels cannot overlap at any width. */
.mm-track { --dot: 16px; --ok: #2f6b0e; padding-right: calc(var(--dot) / 2); }
.mm-track-bar,
.mm-track-labels { display: grid; grid-template-columns: minmax(0, 3fr) minmax(96px, 1fr); }
.mm-track-seg { position: relative; height: 8px; background: #e4e6ea; }
.mm-track-seg:first-child { border-radius: 99px 0 0 99px; }
.mm-track-seg:last-child { border-radius: 0 99px 99px 0; }
.mm-track-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--mm-brand); transition: width .4s var(--mm-ease), background-color .3s; }
.mm-track.is-min [data-seg="1"],
.mm-track.is-free [data-seg="2"] { background: var(--ok); }
.mm-track-dot {
  position: absolute; z-index: 1; top: 50%; right: calc(var(--dot) / -2); width: var(--dot); height: var(--dot);
  transform: translateY(-50%); border-radius: 50%; background: #fff; border: 2px solid #c3c7ce; box-sizing: border-box;
  transition: background-color .3s, border-color .3s;
}
.mm-track.is-min [data-dot="1"],
.mm-track.is-free [data-dot="2"] {
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: var(--ok);
}
.mm-track-labels { margin-top: 8px; margin-right: calc(var(--dot) / -2); }
.mm-track-col { display: flex; justify-content: flex-end; align-items: flex-start; gap: 8px; min-width: 0; }
.mm-track-col:first-child { justify-content: space-between; }
.mm-track-zero { font-size: .72rem; color: var(--mm-muted); line-height: 1.2; }
.mm-track-label { display: grid; justify-items: end; text-align: right; line-height: 1.2; min-width: 0; }
.mm-track-label strong { font-family: var(--mm-font-head); font-size: .82rem; font-weight: 700; color: var(--mm-ink); }
.mm-track-label small { font-size: .7rem; color: var(--mm-muted); }
.mm-track.is-min [data-label="1"] strong,
.mm-track.is-free [data-label="2"] strong { color: var(--ok); }

/* Cart: locked checkout */
body.mm-v2 .wc-proceed-to-checkout .mm-checkout-locked {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px;
  border: 1.5px dashed #b9bdc4; border-radius: var(--mm-radius); background: #eef0f3 !important; color: #4a4f57 !important; cursor: not-allowed;
  font-family: var(--mm-font-head); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; box-shadow: none !important;
}
.mm-checkout-locked-note { margin: 10px 0 12px; font-size: .9rem; color: var(--mm-ink-2); text-align: center; }
.mm-continue { display: flex; justify-content: center; width: 100%; min-height: 48px; }

/* Header cart drawer */
.cart-panel .mm-order-compact { margin: 4px 0 12px; }

/* Product page: minimum-order note (informational — Add to Cart always works) */
.pdp-min-note { margin: 10px 0 0; font-size: .86rem; color: var(--mm-muted); }

@media (min-width: 1024px) {
  .mm-order-full { padding: 20px 24px; }
}

/* ---------- Your Kit summary (store-wide thresholds) ----------
   Hierarchy: 1 total · 2 progress · 3 checkout status · 4 free shipping ·
   5 helper · 6 button. Desktop: white side card. Phones/tablets: compact
   sticky bar (total + button on top, progress and both statuses below). */
.mm-summary-cart { margin: 0; font-size: .78rem; color: var(--mm-muted); }
.mm-summary .mm-track { margin: 10px 0 4px; }
.mm-summary-status { margin: 0; font-family: var(--mm-font-head); font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--mm-ink); }
.mm-summary-status.is-done { color: #2f6b0e; }
.mm-summary-status-free { font-size: .85rem; color: var(--mm-ink-2); }
.mm-summary-help { margin: 0; font-size: .78rem; color: var(--mm-muted); }
.mm-summary-msg { margin: 0; font-size: .82rem; color: var(--mm-ink-2); }
.mm-summary-msg[hidden] { display: none; }

@media (max-width: 1023px) {
  .mm-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding-top: 10px; }
  .mm-summary > * { grid-column: 1 / -1; }
  .mm-summary .mm-summary-head { grid-column: 1; grid-row: 1; }
  .mm-summary .mm-summary-total { grid-column: 1; grid-row: 2; font-size: 1.5rem; }
  .mm-summary .mm-btn-kit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .mm-summary .mm-track { margin: 8px 0 2px; --dot: 14px; }
  .mm-summary-help, .mm-summary-list { display: none; }
}
@media (min-width: 1024px) {
  .mm-summary-head { margin-bottom: 14px; }
  .mm-summary .mm-summary-total { font-size: 2.4rem; margin: 0; line-height: 1.05; }
  .mm-summary-cart { margin-top: 4px; font-size: .85rem; }
  .mm-summary .mm-track { margin: 18px 0 14px; }
  .mm-summary-status { font-size: 1rem; }
  .mm-summary-status-free { margin-top: 4px; font-size: .92rem; }
  .mm-summary-help { margin: 12px 0 14px; padding-top: 12px; border-top: 1px solid var(--mm-line); font-size: .85rem; }
  .mm-summary-list { margin-bottom: 14px; }
  .mm-summary-msg { margin-bottom: 12px; }
  .mm-summary .mm-btn-kit { margin-top: 2px; }
}
/* Header cart drawer: v2 buttons + neutral variant pill */
body.mm-v2 .cart-panel .btn-primary { box-shadow: none; background: var(--mm-brand); color: var(--mm-ink); font-family: var(--mm-font-head); border-radius: var(--mm-radius); }
body.mm-v2 .cart-panel .btn-primary:hover { background: var(--mm-brand-hover); color: var(--mm-ink); }
body.mm-v2 .cart-panel .btn-primary.mm-cart-view { background: var(--mm-ink); color: #fff; }
body.mm-v2 .cart-item-variant { background: var(--mm-grey); color: var(--mm-ink-2); }

/* ==========================================================================
   Request a Product (page-request-a-product.php) + My Product Requests
   (account endpoint, inc/product-requests.php)
   ========================================================================== */
.mm-req { padding: 24px 0 56px; }
.mm-req-grid { display: grid; gap: 28px; }
.mm-req-main { min-width: 0; }
.mm-req .mm-btn-dark { background: var(--mm-ink); color: #fff; }
.mm-req .mm-btn-dark:hover { background: var(--mm-ink-2); }

.mm-req-card { padding: 28px 22px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: var(--mm-card-shadow); text-align: center; }
.mm-req-card h2 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.mm-req-card > p { margin: 0 auto 22px; max-width: 34em; font-size: 1.02rem; line-height: 1.6; color: var(--mm-ink-2); }
.mm-req-card .mm-page-eyebrow { margin: 0 0 6px; }
.mm-req-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: var(--mm-ink); color: var(--mm-brand); }
.mm-req-icon .mm-i { width: 26px; height: 26px; }
.mm-req-icon-ok { background: var(--mm-brand); color: var(--mm-ink); }
.mm-req-icon-ok .mm-i { stroke-width: 2.5; }
.mm-req-gate-actions { display: grid; gap: 10px; }
.mm-req-gate-actions .mm-btn { width: 100%; }
.mm-req-gate-actions .mm-btn-outline { justify-content: center; min-height: 48px; }
.mm-req-card > .mm-req-gate-note { margin: 18px auto 0; font-size: .88rem; color: var(--mm-muted); }

.mm-req-kinds { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.mm-req-kinds li { display: grid; gap: 2px; padding: 16px 18px; border-left: 4px solid var(--mm-brand); border-radius: 0 var(--mm-radius) var(--mm-radius) 0; background: var(--mm-grey); }
.mm-req-kinds strong { font-family: var(--mm-font-head); font-size: 1rem; }
.mm-req-kinds span { font-size: .92rem; color: var(--mm-muted); }

/* Form */
.mm-req-intro { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.6; color: var(--mm-ink-2); }
.mm-req-alert { margin: 0 0 16px; padding: 14px 18px; border: 1px solid #f1c3c0; border-left: 4px solid #c8322b; border-radius: var(--mm-radius); background: #fff6f5; color: var(--mm-ink); }
.mm-req-alert ul { margin: 6px 0 0; padding-left: 1.2em; font-size: .92rem; }
.mm-req-form { display: grid; gap: 14px; }
.mm-req-step { min-width: 0; margin: 0; padding: 20px 18px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; transition: border-color .2s; }
.mm-req-step.has-error { border-color: #c8322b; }
.mm-req-step-head { display: flex; align-items: center; gap: 12px; float: left; width: 100%; margin: 0 0 16px; padding: 0; font-family: var(--mm-font-head); font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mm-ink); }
.mm-req-step-head + * { clear: both; }
.mm-req-step-head label { cursor: pointer; }
.mm-req .mm-step-num { background: var(--mm-brand); color: var(--mm-ink); font-weight: 700; }
.mm-req-optional { font-family: var(--mm-font-body); font-size: .82rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mm-muted); }
.mm-req-sub { font-size: .92rem; line-height: 1.5; color: var(--mm-muted); }
.mm-req .mm-field input[type="text"], .mm-req .mm-field textarea { min-width: 0; }
.mm-req .mm-field textarea { min-height: 150px; line-height: 1.55; }
.mm-req .mm-field input::placeholder, .mm-req .mm-field textarea::placeholder { color: #9a9ea6; }
.mm-req-error { margin: 10px 0 0; font-size: .88rem; font-weight: 500; color: #b3261e; }
.mm-req-error[hidden], .mm-req-step:not(.has-error) .mm-req-field-error { display: none; }

/* Battery cards */
.mm-req-batteries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mm-req-battery { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 10px; border: 1.5px solid var(--mm-line); border-radius: var(--mm-radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.mm-req-battery input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mm-req-battery:hover { border-color: #b9bdc4; }
.mm-req-battery:has(input:focus-visible) { outline: 2px solid var(--mm-ink); outline-offset: 2px; }
.mm-req-battery:has(input:checked) { border-color: var(--mm-ink); background: #f1fbea; box-shadow: inset 0 0 0 1px var(--mm-ink); }
.mm-req-battery:has(input:checked)::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mm-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111214' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.mm-req-battery-media { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 40px; color: var(--mm-muted); }
.mm-req-battery-media img { width: 100%; height: 100%; object-fit: contain; }
.mm-req-battery-name { min-width: 0; padding-right: 14px; font-size: .84rem; font-weight: 600; line-height: 1.25; color: var(--mm-ink); overflow-wrap: anywhere; }
.mm-req-battery.is-other { grid-column: 1 / -1; border-style: dashed; }
.mm-req-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.mm-req-type { min-height: 48px; padding: 8px 22px; justify-content: center; text-align: center; }
.mm-req-type .mm-req-battery-name { padding-right: 0; }
.mm-req-other { margin-top: 12px; }
.mm-req-other[hidden] { display: none; }

/* Photo */
.mm-req-drop { position: relative; }
.mm-req-file { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mm-req-drop-zone { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed #c9cdd3; border-radius: var(--mm-radius-lg); background: var(--mm-grey); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.mm-req-drop-zone .mm-req-icon { width: 48px; height: 48px; margin-bottom: 8px; background: #fff; color: var(--mm-ink); box-shadow: var(--mm-card-shadow); }
.mm-req-drop-zone .mm-req-icon .mm-i { width: 22px; height: 22px; }
.mm-req-drop-zone strong { font-family: var(--mm-font-head); font-size: 1rem; }
.mm-req-drop-zone > span { font-size: .92rem; color: var(--mm-ink-2); }
.mm-req-drop-cta { font-weight: 600; text-decoration: underline; text-decoration-color: var(--mm-brand); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.mm-req-drop-zone small { font-size: .8rem; color: var(--mm-muted); }
.mm-req-drop-zone:hover, .mm-req-drop.is-dragging .mm-req-drop-zone { border-color: var(--mm-ink); background: #f1fbea; }
.mm-req-file:focus-visible + .mm-req-drop-zone { outline: 2px solid var(--mm-ink); outline-offset: 2px; }
.mm-req-drop.has-file .mm-req-drop-zone { display: none; }
.mm-req-preview { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1.5px solid var(--mm-ink); border-radius: var(--mm-radius-lg); background: #fff; }
.mm-req-preview[hidden] { display: none; }
.mm-req-preview img { width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: var(--mm-radius); background: var(--mm-grey); }
.mm-req-preview-info { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mm-req-preview-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.mm-req-preview-info span { font-size: .82rem; color: var(--mm-muted); }
.mm-req-remove { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--mm-grey); color: var(--mm-ink); cursor: pointer; }
.mm-req-remove:hover { background: var(--mm-line); }
@media (hover: none) { .mm-req-drop-drag { display: none; } }

/* Notify */
.mm-req-check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--mm-ink); }
.mm-req-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mm-req-check-box { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border: 1.5px solid #b9bdc4; border-radius: 5px; background: #fff; transition: background-color .15s, border-color .15s; }
.mm-req-check-box svg { width: 16px; height: 16px; fill: none; stroke: var(--mm-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.mm-req-check input:checked + .mm-req-check-box { background: var(--mm-brand); border-color: var(--mm-brand); }
.mm-req-check input:checked + .mm-req-check-box svg { opacity: 1; }
.mm-req-check input:focus-visible + .mm-req-check-box { outline: 2px solid var(--mm-ink); outline-offset: 2px; }
.mm-req-account { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--mm-line); font-size: .88rem; color: var(--mm-muted); overflow-wrap: anywhere; }
.mm-req-account .mm-i { width: 18px; height: 18px; margin-top: 1px; }
.mm-req-account strong { color: var(--mm-ink); font-weight: 600; }
.mm-req-submit { width: 100%; min-height: 58px; font-size: 1rem; }

/* How it works */
.mm-req-aside { padding: 22px; border-radius: var(--mm-radius-lg); background: var(--mm-grey); }
.mm-req-aside h2 { margin: 0 0 16px; font-size: 1.2rem; font-weight: 700; }
.mm-req-how { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.mm-req-how li { display: flex; gap: 12px; align-items: flex-start; }
.mm-req-how-num { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--mm-ink); color: var(--mm-brand); font-family: var(--mm-font-head); font-weight: 700; font-size: .9rem; }
.mm-req-how li div { display: grid; gap: 2px; padding-top: 3px; }
.mm-req-how strong { font-family: var(--mm-font-head); font-size: .98rem; }
.mm-req-how div span { font-size: .88rem; line-height: 1.45; color: var(--mm-muted); }

/* Statuses (account list) */
.mm-req-status { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--mm-grey); color: var(--mm-ink-2); }
.mm-req-status-under-review { background: #fff1c7; color: #6b4e00; }
.mm-req-status-in-development { background: var(--mm-ink); color: var(--mm-brand); }
.mm-req-status-available { background: #e7f8da; color: #2f6b0e; }

/* My Product Requests (My Account) */
.mm-myreq-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.mm-myreq-head h2 { margin: 0 0 4px; }
.mm-myreq-head p { margin: 0; color: var(--mm-muted); }
.mm-myreq-head .mm-btn { min-height: 46px; padding: 0 20px; font-size: .85rem; }
.mm-myreq-empty { padding: 32px 22px; border: 1.5px dashed var(--mm-line); border-radius: var(--mm-radius-lg); text-align: center; }
.mm-myreq-empty h3 { margin: 0 0 6px; font-size: 1.2rem; }
.mm-myreq-empty p { margin: 0 auto; max-width: 30em; color: var(--mm-muted); }
.mm-myreq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mm-myreq-item { padding: 18px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; }
.mm-myreq-top { display: flex; align-items: flex-start; gap: 12px; }
.mm-myreq-photo { width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border-radius: var(--mm-radius); }
.mm-myreq-main { flex: 1; min-width: 0; }
.mm-myreq-main h3 { margin: 0 0 4px; font-size: 1.1rem; line-height: 1.3; overflow-wrap: anywhere; }
.mm-myreq-meta { margin: 0; font-size: .85rem; color: var(--mm-muted); }
.mm-myreq-text { margin: 12px 0 0; font-size: .92rem; line-height: 1.55; color: var(--mm-ink-2); overflow-wrap: anywhere; }
.mm-myreq-track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding: 0; }
.mm-myreq-track li { display: grid; gap: 6px; font-size: .72rem; font-weight: 600; color: #9a9ea6; }
.mm-myreq-track li::before { content: ''; height: 5px; border-radius: 999px; background: var(--mm-line); }
.mm-myreq-track li.is-done { color: var(--mm-ink); }
.mm-myreq-track li.is-done::before { background: var(--mm-brand); }
@media (max-width: 599px) {
  /* Phone: photo + title side by side, status pill under the title */
  .mm-myreq-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 12px; }
  .mm-myreq-top:has(.mm-myreq-photo) { grid-template-columns: 56px minmax(0, 1fr); }
  .mm-myreq-top .mm-req-status { grid-column: -2; justify-self: start; }
  .mm-myreq-track li { font-size: .66rem; }

  /* Phone: battery cards stack image over name, 3 across, so names wrap at word breaks */
  .mm-req-batteries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mm-req-battery { flex-direction: column; justify-content: flex-start; gap: 6px; min-height: 96px; padding: 10px 6px 8px; text-align: center; }
  .mm-req-battery-media { width: 48px; height: 38px; }
  .mm-req-battery-name { padding: 0; font-size: .74rem; overflow-wrap: normal; }
  .mm-req-battery.is-other { flex-direction: row; justify-content: center; min-height: 52px; }
  .mm-req-battery.is-other .mm-req-battery-media { width: 24px; height: 24px; }
}

@media (min-width: 600px) {
  .mm-req-batteries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-req-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; }
  .mm-req-gate-actions .mm-btn { width: auto; }
  .mm-req-card { padding: 40px 36px; }
  .mm-req-step { padding: 24px; }
  .mm-req-kinds { grid-template-columns: repeat(3, 1fr); }
  .mm-req-submit { width: auto; justify-self: start; padding: 0 36px; }
}
@media (min-width: 760px) {
  .mm-req-batteries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .mm-req { padding: 40px 0 80px; }
  .mm-req-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
  .mm-req-aside { position: sticky; top: calc(var(--mm-header-h) + 24px); padding: 26px; }
  .mm-req-step { padding: 28px; }
  .mm-req-card { padding: 56px 48px; }
}

/* ==========================================================================
   Community Requests board (page-requests.php, assets/js/requests.js)
   ========================================================================== */
.mm-rq-head-grid { display: grid; gap: 20px; }
.mm-rq-subtitle { margin: 12px 0 0; font-family: var(--mm-font-head); font-size: 1.2rem; font-weight: 600; color: var(--mm-ink); }
.mm-rq-subtitle::before { content: ''; display: inline-block; width: 22px; height: 4px; margin: 0 10px 4px 0; border-radius: 2px; background: var(--mm-brand); vertical-align: middle; }
.mm-rq-head .mm-page-lead { margin-top: 6px; }
.mm-rq-cta { width: 100%; }
.mm-rq-cta .mm-i { width: 20px; height: 20px; stroke-width: 2.5; }

.mm-rq { padding: 20px 0 56px; }
.mm-rq-filters .mm-chip { gap: 8px; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.mm-rq-filters .mm-i { width: 17px; height: 17px; }
.mm-rq-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--mm-grey); font-family: var(--mm-font-body); font-size: .75rem; font-weight: 700; color: var(--mm-ink-2); }
.mm-chip.is-active .mm-rq-count { background: var(--mm-brand); color: var(--mm-ink); }

.mm-rq-notice { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--mm-brand); border-radius: 0 var(--mm-radius) var(--mm-radius) 0; background: var(--mm-grey); font-weight: 500; }
.mm-rq-notice[hidden] { display: none; }

.mm-rq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.mm-rq-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: var(--mm-card-shadow); scroll-margin-top: calc(var(--mm-header-h) + 16px); }
.mm-rq-card:target { border-color: var(--mm-ink); box-shadow: 0 0 0 1px var(--mm-ink); }
.mm-rq-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mm-rq-battery { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; min-height: 28px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--mm-grey); font-size: .8rem; font-weight: 600; color: var(--mm-ink-2); overflow-wrap: anywhere; }
.mm-rq-battery img { width: 26px; height: 24px; object-fit: contain; flex-shrink: 0; }
.mm-rq-card-body { display: flex; gap: 14px; align-items: flex-start; flex: 1; }
.mm-rq-photo { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; border-radius: var(--mm-radius); }
.mm-rq-text { min-width: 0; }
.mm-rq-title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--mm-ink); overflow-wrap: anywhere; }
.mm-rq-desc { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--mm-ink-2); overflow-wrap: anywhere; }
.mm-rq-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--mm-line); }
.mm-rq-stats { display: grid; gap: 2px; min-width: 0; }
.mm-rq-votes { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; color: var(--mm-ink-2); }
.mm-rq-votes strong { font-family: var(--mm-font-head); font-size: 1.35rem; font-weight: 700; color: var(--mm-ink); }
.mm-rq-votes .mm-i { width: 20px; height: 20px; fill: var(--mm-brand); stroke: #54bd16; stroke-width: 1.5; }
.mm-rq-by { font-size: .8rem; color: var(--mm-muted); overflow-wrap: anywhere; }

/* Vote button — big tap target, brand green once voted */
.mm-rq-vote-form { margin: 0; flex-shrink: 0; }
.mm-rq-vote {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 118px; min-height: 52px; padding: 0 18px;
  border: 1.5px solid var(--mm-ink); border-radius: var(--mm-radius); background: #fff; color: var(--mm-ink);
  font-family: var(--mm-font-head); font-size: .92rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.mm-rq-vote .mm-i { width: 20px; height: 20px; stroke-width: 2.5; }
.mm-rq-vote:hover { background: var(--mm-ink); color: #fff; }
.mm-rq-vote:active { transform: translateY(1px); }
.mm-rq-vote .mm-rq-ico-ok, .mm-rq-vote.is-voted .mm-rq-ico-up { display: none; }
.mm-rq-vote.is-voted .mm-rq-ico-ok { display: block; }
.mm-rq-vote.is-voted { background: var(--mm-brand); border-color: var(--mm-brand); color: var(--mm-ink); }
.mm-rq-vote.is-voted:hover { background: var(--mm-brand-hover); border-color: var(--mm-brand-hover); color: var(--mm-ink); }
.mm-rq-vote[aria-busy="true"] { opacity: .6; pointer-events: none; }
.mm-rq-vote.is-own { border-style: dashed; border-color: #b9bdc4; color: var(--mm-muted); background: #fff; }
.mm-rq-vote.is-own:hover { background: var(--mm-grey); color: var(--mm-ink-2); }
.mm-rq-shop { background: var(--mm-ink); color: #fff; }
.mm-rq-shop:hover { background: var(--mm-ink-2); }
.mm-rq-done { border-color: transparent; background: #e7f8da; color: #2f6b0e; cursor: default; }
.mm-rq-done:hover { background: #e7f8da; color: #2f6b0e; }
.mm-rq-msg { margin: -4px 0 0; font-size: .86rem; font-weight: 500; color: var(--mm-ink-2); }
.mm-rq-msg:empty { display: none; }
.mm-rq-msg.is-error { color: #b3261e; }

.mm-rq-empty { display: grid; justify-items: center; gap: 4px; padding: 44px 22px; border: 1.5px dashed var(--mm-line); border-radius: var(--mm-radius-lg); text-align: center; }
.mm-rq-empty h2 { margin: 0; font-size: 1.35rem; }
.mm-rq-empty p { margin: 0 0 14px; max-width: 32em; color: var(--mm-muted); }

.mm-rq-pages { margin-top: 24px; }
.mm-rq-pages .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; margin: 0 4px 6px 0; border: 1.5px solid var(--mm-line); border-radius: var(--mm-radius); font-weight: 600; color: var(--mm-ink); }
.mm-rq-pages .page-numbers.current { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }

.mm-rq-how { list-style: none; margin: 36px 0 0; padding: 22px; display: grid; gap: 14px; border-radius: var(--mm-radius-lg); background: var(--mm-grey); }
.mm-rq-how li { display: flex; gap: 12px; align-items: flex-start; }
.mm-rq-how li div { display: grid; gap: 2px; padding-top: 3px; }
.mm-rq-how strong { font-family: var(--mm-font-head); font-size: .98rem; }
.mm-rq-how div span { font-size: .88rem; line-height: 1.45; color: var(--mm-muted); }

/* "Sign in to vote" dialog */
.mm-rq-gate { width: min(440px, calc(100vw - 32px)); padding: 36px 24px 26px; border: 0; border-radius: var(--mm-radius-lg); background: #fff; color: var(--mm-ink); text-align: center; box-shadow: 0 24px 60px -20px rgba(17, 18, 20, .45); }
.mm-rq-gate::backdrop { background: rgba(17, 18, 20, .55); }
.mm-rq-gate h2 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 700; }
.mm-rq-gate p { margin: 0 0 22px; color: var(--mm-ink-2); line-height: 1.55; }
.mm-rq-gate .mm-req-gate-actions { display: grid; }
.mm-rq-gate .mm-btn-dark { background: var(--mm-ink); color: #fff; }
.mm-rq-gate .mm-btn-dark:hover { background: var(--mm-ink-2); }
.mm-rq-gate-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--mm-ink); cursor: pointer; }
.mm-rq-gate-close:hover { background: var(--mm-grey); }

/* My Requests additions */
.mm-myreq-votes { color: var(--mm-ink); }
.mm-myreq-link { display: inline-flex; gap: 6px; margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--mm-ink); border-bottom: 1.5px solid var(--mm-brand); }

@media (max-width: 599px) {
  .mm-rq-card-foot { align-items: stretch; }
  .mm-rq-stats { align-content: center; }
  .mm-rq-vote { min-width: 124px; min-height: 54px; font-size: .95rem; }
}
@media (min-width: 600px) {
  .mm-rq-cta { width: auto; }
  .mm-rq-gate { padding: 44px 36px 32px; }
  .mm-rq-how { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .mm-rq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .mm-rq-head-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
@media (min-width: 1024px) {
  .mm-rq { padding: 28px 0 80px; }
  .mm-rq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .mm-rq-card { padding: 22px; }
  .mm-rq-how { grid-template-columns: repeat(4, 1fr); padding: 26px; margin-top: 48px; }
}

/* ==========================================================================
   My Account — customer dashboard (woocommerce/myaccount/*, inc/account.php)
   ========================================================================== */
.mm-myacc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.woocommerce-account .mm-myacc .woocommerce-MyAccount-navigation,
.woocommerce-account .mm-myacc .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }
.mm-myacc-content { min-width: 0; }
.mm-myacc-title { margin: 0 0 18px; font-family: var(--mm-font-head); font-size: 1.45rem; font-weight: 700; color: var(--mm-ink); }

/* Account menu */
.mm-acc-nav { padding: 10px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: var(--mm-card-shadow); }
.mm-acc-member { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--mm-line); }
.mm-acc-avatar { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--mm-brand); color: var(--mm-ink); font-family: var(--mm-font-head); font-size: 1rem; font-weight: 700; }
.mm-acc-member-text { display: grid; min-width: 0; line-height: 1.3; }
.mm-acc-member-text strong { font-family: var(--mm-font-head); font-size: .98rem; color: var(--mm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-acc-member-text span { font-size: .82rem; color: var(--mm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-acc-nav .mm-acc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mm-acc-nav .mm-acc-links a { border: 0; text-decoration: none; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; color: var(--mm-ink-2); transition: background-color .15s, color .15s; }
.mm-acc-nav .mm-acc-links a .mm-i { width: 20px; height: 20px; flex-shrink: 0; color: var(--mm-muted); transition: color .15s; }
.mm-acc-nav .mm-acc-links a:hover { background: var(--mm-grey); color: var(--mm-ink); }
.mm-acc-nav .mm-acc-links a:hover .mm-i { color: var(--mm-ink); }
.mm-acc-nav .mm-acc-links .is-active a { background: var(--mm-grey); color: var(--mm-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--mm-brand); }
.mm-acc-nav .mm-acc-links .is-active a .mm-i { color: var(--mm-ink); }
.mm-acc-nav .mm-acc-links .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--mm-line); }
.mm-acc-nav .mm-acc-links .woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fdecea; color: #b3261e; }
.mm-acc-nav .mm-acc-links .woocommerce-MyAccount-navigation-link--customer-logout a:hover .mm-i { color: #b3261e; }

/* Phones/tablets: the menu folds behind a "current section" button (account.js) */
.mm-acc-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--mm-line); border-radius: 8px; background: #fff; font: inherit; font-family: var(--mm-font-head); font-size: .95rem; font-weight: 600; color: var(--mm-ink); cursor: pointer; }
.mm-acc-toggle[hidden] { display: none; }
.mm-acc-toggle > span { flex: 1; text-align: left; }
.mm-acc-toggle .mm-i { width: 20px; height: 20px; }
.mm-acc-toggle .mm-i:last-child { transition: transform .2s var(--mm-ease); }
.mm-acc-toggle[aria-expanded="true"] .mm-i:last-child { transform: rotate(90deg); }
.mm-acc-nav.is-collapsible .mm-acc-links { display: none; margin-top: 8px; }
.mm-acc-nav.is-collapsible.is-open .mm-acc-links { display: grid; }

/* Overview */
.mm-dash { display: grid; gap: 18px; }
.mm-dash-card { position: relative; padding: 20px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: var(--mm-card-shadow); }
.mm-dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.mm-dash-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mm-font-head); font-size: 1.15rem; font-weight: 700; color: var(--mm-ink); }
.mm-dash-head h2 .mm-i { width: 22px; height: 22px; }
.mm-dash-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--mm-brand); font-size: .8rem; font-weight: 700; }
.mm-dash-more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--mm-ink); border-bottom: 1.5px solid var(--mm-brand); }
.mm-dash-more .mm-i { width: 15px; height: 15px; }
.mm-dash-more:hover { border-color: var(--mm-ink); }
.mm-dash-list { list-style: none; margin: 0; padding: 0; }
.mm-dash-list li + li { border-top: 1px solid var(--mm-line); }
.mm-dash-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin: 0 -10px; padding: 14px 10px; border-radius: 8px; color: var(--mm-ink); transition: background-color .15s; }
.mm-dash-row:hover { background: var(--mm-grey); }
.mm-dash-row-main { grid-column: 1 / -1; display: grid; gap: 3px; min-width: 0; }
.mm-dash-row-main strong { font-family: var(--mm-font-head); font-size: .98rem; font-weight: 600; overflow-wrap: anywhere; }
.mm-dash-row-meta { font-size: .84rem; color: var(--mm-muted); }
.mm-dash-row .mm-pill, .mm-dash-row .mm-req-status { justify-self: start; }
.mm-dash-row-total { font-weight: 700; text-align: right; }
.mm-dash-row > .mm-i { display: none; width: 18px; height: 18px; color: var(--mm-muted); }
.mm-dash-foot { margin: 12px 0 0; font-size: .9rem; }
.mm-dash-empty { display: grid; justify-items: center; gap: 14px; padding: 26px 16px; border: 1.5px dashed var(--mm-line); border-radius: var(--mm-radius-lg); background: #fafafa; text-align: center; }
.mm-dash-empty p { margin: 0; color: var(--mm-ink-2); }
.mm-dash-empty .mm-btn, .mm-dash-community .mm-btn { min-height: 46px; padding: 0 22px; font-size: .85rem; }
.mm-dash-empty .mm-btn .mm-i, .mm-dash-community .mm-btn .mm-i { width: 18px; height: 18px; }

/* Status pills (orders) */
.mm-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mm-pill-ok { background: #e7f8da; color: #2f6b0e; }
.mm-pill-info { background: #eef0f3; color: #2d3036; }
.mm-pill-warn { background: #fff4d6; color: #8a6100; }
.mm-pill-bad { background: #fde8e7; color: #b3261e; }
.mm-pill-muted { background: #eef0f3; color: #5f646d; }

/* My requests: the member feature, so it gets the brand accent */
.mm-dash-requests { overflow: hidden; border-color: #b9e89a; }
.mm-dash-requests::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--mm-brand); }
.mm-dash-requests .mm-dash-head h2 .mm-i { padding: 5px; width: 32px; height: 32px; border-radius: 50%; background: var(--mm-brand); color: var(--mm-ink); }

/* Quick actions */
.mm-dash-section-title { margin: 6px 0 12px; font-family: var(--mm-font-head); font-size: 1.15rem; font-weight: 700; }
.mm-dash-actions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mm-dash-action { display: grid; grid-template-columns: 46px minmax(0, 1fr) 18px; align-items: center; gap: 14px; height: 100%; padding: 16px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: var(--mm-card-shadow); color: var(--mm-ink); transition: transform .2s var(--mm-ease), border-color .2s; }
.mm-dash-action:hover { transform: translateY(-2px); border-color: var(--mm-ink); }
.mm-dash-action-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--mm-radius); background: #e7f8da; }
.mm-dash-action-icon .mm-i { width: 22px; height: 22px; }
.mm-dash-action-text { display: grid; gap: 2px; min-width: 0; }
.mm-dash-action-text strong { font-family: var(--mm-font-head); font-size: .95rem; font-weight: 600; }
.mm-dash-action-text span { font-size: .84rem; color: var(--mm-muted); }
.mm-dash-action > .mm-i { width: 18px; height: 18px; color: var(--mm-muted); transition: transform .2s var(--mm-ease), color .2s; }
.mm-dash-action:hover > .mm-i { color: var(--mm-ink); transform: translateX(3px); }

/* Account information + community */
.mm-dash-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.mm-dash-dl { margin: 0; }
.mm-dash-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--mm-line); }
.mm-dash-dl dt { flex-shrink: 0; font-size: .88rem; color: var(--mm-muted); }
.mm-dash-dl dd { margin: 0; min-width: 0; font-size: .92rem; font-weight: 600; color: var(--mm-ink); text-align: right; overflow-wrap: anywhere; }
.mm-dash-edit { margin-top: 16px; }
.mm-dash-community { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 22px; border-radius: var(--mm-radius-lg); background: var(--mm-ink); color: #fff; }
.mm-dash-community-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 4px; border-radius: 50%; background: var(--mm-brand); color: var(--mm-ink); }
.mm-dash-community-icon .mm-i { width: 24px; height: 24px; }
.mm-dash-community-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mm-brand); }
.mm-dash-community h2 { margin: 0; font-family: var(--mm-font-head); font-size: 1.45rem; font-weight: 700; line-height: 1.2; color: #fff; }
.mm-dash-community p { margin: 0 0 8px; color: #c9ccd1; line-height: 1.55; }

/* WooCommerce endpoints inside the account (orders, addresses, forms, payment methods) */
.mm-myacc-content table.shop_table { width: 100%; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; box-shadow: var(--mm-card-shadow); }
.mm-myacc-content table.shop_table th { padding: 12px 16px; background: #fafafa; font-family: var(--mm-font-head); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-muted); text-align: left; }
.mm-myacc-content table.shop_table td,
.mm-myacc-content table.shop_table tbody th,
.mm-myacc-content table.shop_table tfoot th { padding: 14px 16px; border-top: 1px solid var(--mm-line); background: #fff; vertical-align: middle; }
.mm-myacc-content table.shop_table tbody th { font-family: var(--mm-font-body); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--mm-ink); }
.mm-myacc-content table.shop_table td a:not(.button) { font-weight: 600; color: var(--mm-ink); }
.mm-myacc-content .button,
.mm-myacc-content a.button,
.mm-myacc-content button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 2px 4px 2px 0; padding: 0 16px; border: 1.5px solid var(--mm-ink); border-radius: var(--mm-radius); background: #fff; color: var(--mm-ink); font-family: var(--mm-font-head); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1; transition: background-color .2s, color .2s; }
.mm-myacc-content .button:hover { background: var(--mm-ink); color: #fff; }
.mm-myacc-content form .button[type="submit"],
.mm-myacc-content .woocommerce-Button--next,
.mm-myacc-content .woocommerce-Button--previous { min-height: 48px; padding: 0 26px; border-color: var(--mm-brand); background: var(--mm-brand); font-size: .85rem; }
.mm-myacc-content form .button[type="submit"]:hover { border-color: var(--mm-brand-hover); background: var(--mm-brand-hover); color: var(--mm-ink); }
.mm-myacc-edit-account form.woocommerce-EditAccountForm,
.mm-myacc-edit-address form,
.mm-myacc-add-payment-method form { padding: 22px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: var(--mm-card-shadow); }
.mm-myacc-content fieldset { margin: 22px 0 8px; padding: 18px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); }
.mm-myacc-content fieldset legend { padding: 0 8px; font-family: var(--mm-font-head); font-weight: 700; color: var(--mm-ink); }
.mm-myacc-content .woocommerce-Addresses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.mm-myacc-content .woocommerce-Addresses::before,
.mm-myacc-content .woocommerce-Addresses::after { display: none; }
.mm-myacc-content .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; margin: 0; padding: 20px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: var(--mm-card-shadow); }
.mm-myacc-content .woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mm-myacc-content .woocommerce-Address-title::before,
.mm-myacc-content .woocommerce-Address-title::after { display: none; }
.mm-myacc-content .woocommerce-Address-title h2 { margin: 0; font-size: 1.1rem; }
.mm-myacc-content .woocommerce-Address-title .edit { float: none; font-size: .88rem; font-weight: 600; color: var(--mm-ink); border-bottom: 1.5px solid var(--mm-brand); }
.mm-myacc-content address { font-style: normal; line-height: 1.65; color: var(--mm-ink-2); }
.mm-myacc-content mark { padding: 0 4px; border-radius: 4px; background: #e7f8da; color: var(--mm-ink); font-weight: 600; }
.mm-myacc-content .woocommerce-order-details,
.mm-myacc-content .woocommerce-customer-details { margin-top: 24px; }
.woocommerce-account .mm-myacc-content .woocommerce-order-details table.shop_table.order_details { border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); }
.woocommerce-account .mm-myacc-content .woocommerce-order-details table.shop_table.order_details th,
.woocommerce-account .mm-myacc-content .woocommerce-order-details table.shop_table.order_details td { padding: 14px 16px; }
.woocommerce-account .mm-myacc-content .woocommerce-order-details__title,
.woocommerce-account .mm-myacc-content .woocommerce-column__title { font-size: 1.2rem; }

@media (min-width: 600px) {
  .mm-dash-card { padding: 24px; }
  .mm-dash-row { grid-template-columns: minmax(0, 1fr) auto auto 18px; gap: 16px; }
  .mm-dash-requests .mm-dash-row { grid-template-columns: minmax(0, 1fr) auto 18px; }
  .mm-dash-row-main { grid-column: auto; }
  .mm-dash-row > .mm-i { display: block; }
  .mm-dash-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .mm-myacc-content .woocommerce-Addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .mm-myacc { grid-template-columns: 272px minmax(0, 1fr); gap: 32px; }
  .mm-acc-nav { position: sticky; top: calc(var(--mm-header-h) + 20px); }
  .mm-acc-nav .mm-acc-toggle { display: none; }
  .mm-acc-nav.is-collapsible .mm-acc-links { display: grid; margin-top: 0; }
  .mm-dash { gap: 22px; }
}
@media (min-width: 1180px) {
  .mm-dash-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
/* Phones: WooCommerce's stacked order table hides the order-number cell; show it like the other rows */
@media (max-width: 768px) {
  .woocommerce-account .mm-myacc-content table.shop_table_responsive tbody th { display: block; text-align: right; border-top: 0; }
  .woocommerce-account .mm-myacc-content table.shop_table_responsive tbody th::before { content: attr(data-title) ": "; float: left; font-weight: 700; }
  .woocommerce-account .mm-myacc-content table.shop_table_responsive tbody tr + tr th { border-top: 1px solid var(--mm-line); }
}

/* ==========================================================================
   Order status timeline — My Account → View Order (inc/order-timeline.php)
   Vertical on phones, horizontal from 700px.
   ========================================================================== */
.mm-otl { margin: 0 0 24px; padding: 20px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: var(--mm-card-shadow); }
.mm-otl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.mm-otl-head h2 { margin: 0; font-family: var(--mm-font-head); font-size: 1.15rem; font-weight: 700; color: var(--mm-ink); }
.mm-otl-now { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #e7f8da; color: #2f6b0e; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mm-otl-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mm-brand); }

.mm-otl-steps { list-style: none; margin: 0; padding: 0; }
.mm-otl-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 22px; }
.mm-otl-step:last-child { padding-bottom: 0; }
/* connector to the next stage */
.mm-otl-step:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 2px; width: 4px; border-radius: 4px; background: #e3e5e8; }
.mm-otl-step.is-done:not(:last-child)::after { background: var(--mm-brand); }

.mm-otl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #d5d8dd; border-radius: 50%; background: #fff; color: var(--mm-ink); }
.mm-otl-dot .mm-i { width: 18px; height: 18px; stroke-width: 3; }
.mm-otl-step.is-done .mm-otl-dot { border-color: var(--mm-brand); background: var(--mm-brand); }
.mm-otl-step.is-current .mm-otl-dot { border-color: var(--mm-brand); background: var(--mm-brand); box-shadow: 0 0 0 6px rgba(107, 191, 78, .22); }
.mm-otl-step.is-current:not(.is-final) .mm-otl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mm-ink); }

.mm-otl-text { display: grid; gap: 2px; padding-top: 6px; min-width: 0; }
.mm-otl-text strong { font-family: var(--mm-font-head); font-size: .95rem; font-weight: 600; color: var(--mm-ink); }
.mm-otl-text time { font-size: .82rem; color: var(--mm-muted); }
.mm-otl-step.is-todo .mm-otl-text strong { color: #8a8f98; font-weight: 500; }
.mm-otl-step.is-current .mm-otl-text strong { font-weight: 700; }
.mm-otl-step.is-current .mm-otl-text time { color: #2f6b0e; font-weight: 600; }

.mm-otl-tracking { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--mm-line); font-size: .95rem; color: var(--mm-ink-2); overflow-wrap: anywhere; }
.mm-otl-tracking .mm-i { width: 22px; height: 22px; flex-shrink: 0; color: var(--mm-ink); }
.mm-otl-tracking a { font-weight: 700; color: var(--mm-ink); border-bottom: 2px solid var(--mm-brand); }
.mm-otl-tracking a:hover { border-color: var(--mm-ink); }

.mm-otl-halted { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mm-otl-halted p { margin: 0; color: var(--mm-ink-2); }

@media (min-width: 700px) {
  .mm-otl { padding: 24px 26px 26px; }
  .mm-otl-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* one continuous line behind the dots: grey track + green progress (from the first to the current dot) */
  .mm-otl-steps::before,
  .mm-otl-steps::after { content: ""; position: absolute; top: 15px; left: 10%; height: 4px; border-radius: 4px; }
  .mm-otl-steps::before { right: 10%; background: #e3e5e8; }
  .mm-otl-steps::after { width: calc(80% * var(--mm-otl-progress, 0)); background: var(--mm-brand); }
  .mm-otl-step { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 10px; padding: 0 6px; text-align: center; }
  .mm-otl-step:not(:last-child)::after { display: none; }
  .mm-otl-text { padding-top: 0; }
}

/* ==========================================================================
   Products page extras (inc/shop-extras.php): card hierarchy, currency
   selector, "Find your product" bar + dialog
   ========================================================================== */

/* Card: title (max 2 lines) → subtitle (1 line) → battery platforms → price */
.mm-card-title { font-size: .95rem; -webkit-line-clamp: 2; }
.mm-card-sub { margin: -2px 0 0; font-size: .8rem; line-height: 1.35; color: var(--mm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-card-compat { gap: 7px; }
.mm-card-compat-text { white-space: normal; line-height: 1.2; font-size: .74rem; }
@media (min-width: 600px) {
  .mm-card-title { font-size: 1rem; }
  .mm-card-compat-text { white-space: nowrap; }
}

/* ---------- Currency selector ---------- */
.mm-currency { position: relative; display: none; flex-shrink: 0; }
@media (min-width: 1024px) { .mm-currency { display: block; } }
.mm-currency-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px 0 10px; white-space: nowrap;
  border: 1.5px solid var(--mm-line); border-radius: 999px; background: #fff; color: var(--mm-ink);
  font-family: var(--mm-font-head); font-size: .8rem; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  transition: border-color .2s;
}
.mm-currency-btn:hover, .mm-currency-btn[aria-expanded="true"] { border-color: var(--mm-ink); }
.mm-currency-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.mm-currency-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-currency-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 210px; padding: 6px;
  border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; box-shadow: 0 16px 36px -14px rgba(17, 18, 20, .35);
}
.mm-currency-menu[hidden] { display: none; }
.mm-currency-menu button {
  display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 40px; padding: 0 12px;
  border: 0; border-radius: var(--mm-radius); background: transparent; color: var(--mm-ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.mm-currency-menu button:hover { background: var(--mm-grey); }
.mm-currency-menu button[aria-pressed="true"] { background: var(--mm-ink); color: #fff; }
.mm-currency-note { margin: 6px 6px 2px; font-size: .72rem; line-height: 1.4; color: var(--mm-muted); }
/* Many checkout currencies (inc/multi-currency.php): two columns instead of a tall list */
.mm-currency-menu.is-many:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 268px; }
.mm-currency-menu.is-many .mm-currency-note { grid-column: 1 / -1; }
.mm-currency.is-switching .mm-currency-btn, .mm-currency-drawer.is-switching .mm-currency-seg { opacity: .55; pointer-events: none; }
/* Mobile menu: segmented control */
.mm-currency-drawer { padding-top: 4px; }
.mm-currency-drawer-label { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-muted); }
.mm-currency-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mm-currency-seg button {
  min-height: 38px; border: 1.5px solid var(--mm-line); border-radius: 8px; background: #fff; color: var(--mm-ink);
  font-family: var(--mm-font-head); font-size: .84rem; font-weight: 600; cursor: pointer;
}
.mm-currency-seg button[aria-pressed="true"] { background: var(--mm-ink); border-color: var(--mm-ink); color: #fff; }
.mm-currency-drawer .mm-currency-note { margin: 8px 0 0; }
/* Converted (estimated) prices */
.mm-fx-approx { margin-right: .12em; font-weight: 500; opacity: .7; }
.mm-fx-eur-note { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--mm-radius); background: #f1fbea; color: var(--mm-ink-2); font-size: .88rem; }
.mm-fx-eur-note[hidden] { display: none; }

/* ---------- Find your product ---------- */
.mm-finder-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 12px 12px 12px 16px;
  border-radius: var(--mm-radius-lg); background: var(--mm-ink); color: #fff;
}
.mm-finder-cta-text { margin: 0; font-size: .86rem; line-height: 1.35; }
.mm-finder-cta-text strong { display: block; font-family: var(--mm-font-head); font-size: .95rem; }
.mm-finder-cta-text span { color: #c9ccd2; }
.mm-finder-cta .mm-btn { flex-shrink: 0; min-height: 44px; padding: 0 16px; font-size: .8rem; }
@media (max-width: 599px) {
  .mm-finder-cta-text span { display: none; } /* keep the bar one compact row on phones */
}

.mm-finder {
  width: min(720px, 100%); max-width: 100%; max-height: min(88vh, 860px); margin: auto; padding: 0;
  border: 0; border-radius: var(--mm-radius-lg); background: #fff; color: var(--mm-ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
.mm-finder::backdrop { background: rgba(12, 12, 14, .55); }
.mm-finder[open] { display: flex; }
.mm-finder-inner { display: flex; flex-direction: column; width: 100%; min-height: 0; padding: 14px 20px 20px; }
.mm-finder-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 6px; }
.mm-finder-back, .mm-finder-close {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--mm-grey); color: var(--mm-ink); cursor: pointer;
}
.mm-finder-back[hidden] { visibility: hidden; display: grid; }
.mm-finder-close { grid-column: 3; }
.mm-finder-back svg, .mm-finder-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mm-finder-steps { grid-column: 2; margin: 0; text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-muted); }
.mm-finder-title { margin: 6px 0 2px; font-family: var(--mm-font-head); font-size: 1.45rem; line-height: 1.2; outline: none; }
.mm-finder-sub { margin: 0 0 14px; color: var(--mm-muted); font-size: .92rem; }
.mm-finder-body { min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 2px 4px 4px; }

.mm-finder-batteries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mm-finder-battery {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 10px 6px 6px;
  border: 1.5px solid var(--mm-line); border-radius: var(--mm-radius); background: #fff; color: var(--mm-ink);
  font: inherit; font-size: .82rem; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; transition: border-color .15s;
}
.mm-finder-battery:hover { border-color: var(--mm-ink); }
.mm-finder-battery.is-active { border-color: var(--mm-select); background: #f1fbea; }
.mm-finder-battery img { width: 44px; height: 40px; object-fit: contain; flex-shrink: 0; }

.mm-finder-needs { display: grid; gap: 8px; }
.mm-finder-need {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px;
  border: 1.5px solid var(--mm-line); border-radius: var(--mm-radius); background: #fff; color: var(--mm-ink);
  font-family: var(--mm-font-head); font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s;
}
.mm-finder-need:hover:not(:disabled) { border-color: var(--mm-ink); }
.mm-finder-need:disabled { opacity: .45; cursor: default; }
.mm-finder-need.is-all { background: var(--mm-grey); }
.mm-finder-count { font-family: var(--mm-font-body); font-size: .78rem; font-weight: 600; color: var(--mm-muted); white-space: nowrap; }

.mm-finder-results { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mm-finder-result {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 8px;
  border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); color: var(--mm-ink); transition: border-color .15s, box-shadow .15s;
}
.mm-finder-result:hover { border-color: #c9ccd2; box-shadow: var(--mm-card-shadow); }
.mm-finder-result-media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--mm-radius); background: var(--mm-grey); overflow: hidden; }
.mm-finder-result-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-finder-result-media .mm-card-badge { top: 4px; left: 4px; padding: 3px 6px; font-size: .58rem; }
.mm-finder-result-body { display: grid; gap: 3px; min-width: 0; }
.mm-finder-result-body strong { font-family: var(--mm-font-head); font-size: .98rem; line-height: 1.25; }
.mm-finder-result-sub { font-size: .8rem; color: var(--mm-muted); }
.mm-finder-fit { font-size: .76rem; font-weight: 700; color: #2f6b0e; }
.mm-finder-result-price { font-family: var(--mm-font-head); font-weight: 700; }
.mm-finder-empty { margin: 4px 0 0; color: var(--mm-ink-2); }
.mm-finder-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

@media (max-width: 599px) {
  .mm-finder { width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .mm-finder-inner { padding: 12px 16px 16px; }
}
@media (min-width: 600px) {
  .mm-finder-batteries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-finder-inner { padding: 18px 24px 24px; }
}
/* Slide-out cart: "estimates · charged in EUR" line above the checkout button */
#cart-overlay .mm-fx-eur-note { margin: 0 0 10px; padding: 8px 12px; font-size: .78rem; }

/* ---------- Customizer additions (inc/customizer.php) ---------- */
/* Homepage promo banner (Homepage Sections → Promo banner, off by default) */
.mm-home-promo { padding-top: 44px; }
.mm-promo-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--mm-radius); }
@media (min-width: 1024px) {
  .mm-home-promo { padding-top: 56px; }
  .mm-kit-cta-inner.has-img { grid-template-columns: minmax(0, 340px) 1fr auto; }
  .mm-promo-img { aspect-ratio: 4 / 3; }
}

/* Minimum order: no express payment (WooPayments / Stripe / PayPal incl. Apple Pay, Google Pay) while the cart is below it — inc/order-rules.php.
   Fallback only: the server already leaves these buttons out and refuses the payment. */
.mm-below-min body.woocommerce-cart .wcpay-express-checkout-wrapper,
.mm-below-min body.woocommerce-cart #wc-stripe-express-checkout-element,
.mm-below-min body.woocommerce-cart #wc-stripe-express-checkout-button-separator,
.mm-below-min body.woocommerce-cart .ppc-button-wrapper,
.mm-below-min body.woocommerce-cart #ppc-button-ppcp-gateway,
.mm-below-min body.woocommerce-cart #ppc-button-applepay-container,
.mm-below-min body.woocommerce-cart #ppc-button-googlepay-container,
.mm-below-min body.woocommerce-checkout .wcpay-express-checkout-wrapper,
.mm-below-min body.woocommerce-checkout #wc-stripe-express-checkout-element,
.mm-below-min body.woocommerce-checkout #wc-stripe-express-checkout-button-separator,
.mm-below-min body.woocommerce-checkout .ppc-button-wrapper,
.mm-below-min body.woocommerce-checkout #ppc-button-ppcp-gateway,
.mm-below-min body.woocommerce-checkout #ppc-button-applepay-container,
.mm-below-min body.woocommerce-checkout #ppc-button-googlepay-container { display: none !important; }

/* ==========================================================================
   Checkout refinements (0.4.12) — presentation only (inc/checkout-ui.php)
   ========================================================================== */

/* Progress (checkout context): larger labels, white card, clearer statuses */
#mm-order-checkout { gap: 10px; padding: 16px 18px; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: #fff; }
#mm-order-checkout .mm-track { --dot: 20px; }
#mm-order-checkout .mm-track-seg { height: 10px; }
#mm-order-checkout .mm-track-labels { margin-top: 10px; }
#mm-order-checkout .mm-track-zero { font-size: .8rem; }
#mm-order-checkout .mm-track-label strong { font-size: .95rem; }
#mm-order-checkout .mm-track-label small { font-size: .78rem; }
#mm-order-checkout .mm-order-msg { font-size: .95rem; line-height: 1.35; }
#mm-order-checkout .mm-order-msg-free:not(.is-done) { color: var(--mm-ink); }
#mm-order-checkout .mm-order-msg-free:not(.is-done) .mm-money { font-weight: 800; }
@media (min-width: 640px) {
  #mm-order-checkout { grid-template-columns: auto 1fr; column-gap: 24px; padding: 18px 22px; }
  #mm-order-checkout .mm-track { grid-column: 1 / -1; }
  #mm-order-checkout .mm-order-msg-free { text-align: right; }
}
@media (max-width: 639px) {
  #mm-order-checkout { padding: 14px; }
  #mm-order-checkout .mm-track-bar,
  #mm-order-checkout .mm-track-labels { grid-template-columns: minmax(0, 2fr) minmax(104px, 1fr); }
}

/* Express checkout (Stripe: Apple Pay, Google Pay, Amazon Pay, Link) — titled, then a ruled "or" */
body.mm-v2 form.woocommerce-checkout #wc-stripe-express-checkout-element { margin: 0 0 4px; }
.mm-co-express-title { display: none; }
body.mm-v2 form.woocommerce-checkout:has(#wc-stripe-express-checkout-button-separator:not([style*="none"])) .mm-co-express-title { display: block; margin: 0 0 12px; }
body.mm-v2 form.woocommerce-checkout #wc-stripe-express-checkout-button-separator {
  margin: 16px 0 22px !important; font-size: 0; line-height: 0; text-align: center;
  background: linear-gradient(var(--mm-line), var(--mm-line)) center / 100% 1px no-repeat;
}
body.mm-v2 form.woocommerce-checkout #wc-stripe-express-checkout-button-separator::before {
  content: "or pay by card or PayPal below"; display: inline-block; padding: 0 12px; background: #fff;
  font-size: .85rem; line-height: 1.6; font-weight: 600; color: var(--mm-muted);
}

/* Desktop: express block on top of the details column (it used to fall below the order notes) */
@media (min-width: 1024px) {
  body.mm-v2 form.woocommerce-checkout .mm-co-express-title { grid-column: 1; grid-row: 1; }
  body.mm-v2 form.woocommerce-checkout #wc-stripe-express-checkout-element { grid-column: 1; grid-row: 2; }
  body.mm-v2 form.woocommerce-checkout #wc-stripe-express-checkout-button-separator { grid-column: 1; grid-row: 3; }
  body.mm-v2 form.woocommerce-checkout .wcpay-express-checkout-wrapper { grid-column: 1; grid-row: 4; }
  body.mm-v2 form.woocommerce-checkout #customer_details { grid-row: 5 / span 3; }
  body.mm-v2 form.woocommerce-checkout #order_review_heading { grid-row: 1; align-self: start; }
  body.mm-v2 form.woocommerce-checkout #order_review { grid-row: 1 / span 7; align-self: start; margin-top: 52px; }
}

/* Your order: final total stands out; product, battery, subtotal, shipping and VAT unchanged */
body.mm-v2 .woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.mm-v2 .woocommerce-checkout-review-order-table tfoot tr.order-total td {
  padding-top: 16px; padding-bottom: 6px; border-top: 2px solid var(--mm-ink); background: #f6f7f4;
  font-family: var(--mm-font-head); font-size: 1.15rem; font-weight: 700; color: var(--mm-ink); vertical-align: baseline;
}
body.mm-v2 .woocommerce-checkout-review-order-table tfoot tr.order-total td,
body.mm-v2 .woocommerce-checkout-review-order-table tfoot tr.order-total td strong { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
body.mm-v2 .woocommerce-checkout-review-order-table tfoot tr.mm-co-charged td {
  padding-top: 0; padding-bottom: 14px; border-top: 0; background: #f6f7f4; font-size: .8rem; font-weight: 500; color: var(--mm-muted); text-align: right;
}
body.mm-v2 .woocommerce-checkout-review-order-table tfoot tr.mm-co-charged td::before { display: none; }

/* Payment methods: clearer rows, brand badges, no stray fieldset frames inside the card box */
body.mm-v2 .woocommerce-checkout #payment ul.payment_methods > li { padding: 4px 0; }
body.mm-v2 .woocommerce-checkout #payment ul.payment_methods > li > label { font-family: var(--mm-font-head); font-weight: 700; font-size: 1rem; color: var(--mm-ink); }
body.mm-v2 .woocommerce-checkout #payment ul.payment_methods > li > label img { display: none; }
body.mm-v2 .woocommerce-checkout #payment li.payment_method_stripe > label::after {
  content: ""; display: inline-block; width: 82px; height: 24px; margin-left: 10px; vertical-align: middle;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 24'><rect x='.5' y='.5' width='37' height='23' rx='3.5' fill='%23fff' stroke='%23dfe2dc'/><text x='19' y='16' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-weight='800' font-style='italic' font-size='10' fill='%231A1F71'>VISA</text><rect x='44.5' y='.5' width='37' height='23' rx='3.5' fill='%23fff' stroke='%23dfe2dc'/><circle cx='59' cy='12' r='7' fill='%23EB001B'/><circle cx='67' cy='12' r='7' fill='%23F79E1B' fill-opacity='.85'/></svg>") left center / 82px 24px no-repeat;
}
.mm-co-badges { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; }
.mm-co-badge { display: inline-flex; width: 38px; height: 24px; border: 1px solid var(--mm-line); border-radius: 4px; overflow: hidden; background: #fff; }
.mm-co-badge svg { width: 100%; height: 100%; }
body.mm-v2 .woocommerce-checkout #payment div.payment_box fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Reassurance under Place Order */
body.mm-v2 #payment .form-row.place-order { flex-wrap: wrap; }
.mm-co-trust { flex: 0 0 100%; width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .82rem; color: var(--mm-ink-2); }
.mm-co-trust li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.mm-co-trust svg { width: 15px; height: 15px; flex: 0 0 15px; color: #2f6b0e; }
.mm-co-trust a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
