/* WooCommerce skin for Moonamo */

.woocommerce .mm-woo-main,
.woocommerce-page .mm-woo-main {
  padding: 1.5rem 0 3rem;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  overflow: hidden;
  padding: 0 !important;
  transition: all 200ms;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--mm-steel-300);
  transform: translateY(-4px);
  box-shadow: var(--mm-shadow-hover);
}
.woocommerce ul.products li.product a img {
  margin: 0;
  border-radius: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px !important;
  padding: 0.75rem 1rem 0.25rem !important;
  font-weight: 700;
}
.woocommerce ul.products li.product .price {
  padding: 0 1rem;
  color: var(--mm-text-primary) !important;
  font-weight: 800;
  font-size: 13px;
}
.woocommerce ul.products li.product .button {
  margin: 0.75rem 1rem 1rem !important;
  border-radius: 10px !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

/* Legacy WC single layout — NOT for Moonamo PDP (.mm-pdp has its own structure) */
.woocommerce div.product:not(.mm-pdp) {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .woocommerce div.product:not(.mm-pdp) {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}
.woocommerce div.product:not(.mm-pdp) .woocommerce-product-gallery {
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  overflow: hidden;
  padding: 0.75rem;
}
.woocommerce div.product:not(.mm-pdp) .summary {
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 1.25rem;
}
.woocommerce div.product .product_title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.woocommerce div.product p.price {
  color: var(--mm-text-primary) !important;
  font-size: 1.25rem;
  font-weight: 900;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 0.875rem 1.5rem !important;
}

.woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 1rem 1.25rem 1.5rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 1rem !important;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--mm-border-faint);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 1rem !important;
  font-weight: 700;
  font-size: 13px;
  color: var(--mm-text-muted) !important;
  border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--mm-steel-600) !important;
  border-bottom-color: var(--mm-gold);
}

.woocommerce table.shop_table {
  border: 1px solid var(--mm-border-faint) !important;
  border-radius: 12px;
  overflow: hidden;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order,
.woocommerce button.button.alt {
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 12px !important;
  border-top: 0 !important;
  border-right: 3px solid var(--mm-gold) !important;
}

.woocommerce .quantity .qty {
  border-radius: 8px;
  border: 1px solid var(--mm-border-light);
  padding: 0.5rem;
}

.related.products,
.upsells.products {
  grid-column: 1 / -1;
  margin-top: 2rem;
}
.related.products > h2,
.upsells.products > h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related.products > h2::before,
.upsells.products > h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--mm-gold);
}

/* Account navigation & content — see Account section at file end */

.mm-pdp-specs-wrap {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .mm-pdp-specs-wrap {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}
.mm-pdp-buybox {
  position: sticky;
  top: 1rem;
  background: var(--mm-bg-elevated);
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 1rem;
}
.mm-pdp-buybox .price {
  font-size: 1.125rem;
  font-weight: 900;
  margin: 0.5rem 0 1rem;
}


/* ===== Moonamo PDP (ProductPage.tsx parity) ===== */
.woocommerce div.product.mm-pdp,
.mm-pdp {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  grid-template-columns: none !important;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .mm-pdp { padding-bottom: 0; }
}
.mm-pdp-top {
  width: 100%;
  display: grid;
  gap: 2rem;
  margin-top: 0.5rem;
}
@media (min-width: 1024px) {
  .mm-pdp-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.mm-pdp .mm-breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.375rem; list-style: none; margin: 0; padding: 0;
  font-size: 12px; color: var(--mm-text-muted);
}
@media (min-width: 640px) {
  .mm-pdp .mm-breadcrumb ol { justify-content: flex-start; }
}
.mm-pdp .mm-breadcrumb a { font-weight: 700; color: var(--mm-steel-600); }
.mm-pdp .mm-breadcrumb li:last-child {
  font-weight: 500; color: var(--mm-text-secondary);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 16rem;
}

.mm-pdp-gallery__main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.mm-pdp-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-pdp-gallery__wish {
  position: absolute; top: 12px; left: 12px;
  width: 36px; height: 36px; border-radius: 9999px;
  background: rgba(255,255,255,0.95); border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #94a3b8;
}
.mm-pdp-gallery__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 0.75rem; padding-bottom: 0.25rem; }
.mm-pdp-thumb {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  border: 1px solid #e2e8f0; padding: 0; background: #fff; cursor: pointer; flex-shrink: 0;
}
.mm-pdp-thumb.is-active { border-color: var(--mm-steel-600); box-shadow: 0 0 0 1px var(--mm-steel-400); }
.mm-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mm-pdp-summary { text-align: center; }
@media (min-width: 1024px) { .mm-pdp-summary { text-align: right; } }
.mm-pdp-cat {
  display: inline-flex; font-size: 11px; font-weight: 700;
  padding: 0.25rem 0.625rem; border-radius: 8px;
  background: var(--mm-steel-50); color: var(--mm-steel-700); border: 1px solid var(--mm-steel-200);
}
.mm-pdp .product_title {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem); font-weight: 800;
  margin: 0.75rem 0 0.5rem; line-height: 1.35; letter-spacing: -0.02em;
}
.mm-pdp-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; justify-content: center;
  font-size: 12px; color: var(--mm-text-muted); align-items: center;
}
@media (min-width: 1024px) { .mm-pdp-meta { justify-content: flex-start; } }
.mm-pdp-rating {
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: #d97706; font-weight: 700;
}
.mm-pdp-rating .mm-icon--star { color: #fbbf24; }
.mm-pdp-reviews-link { color: inherit; text-decoration: none; }
.mm-pdp-reviews-link:hover { color: var(--mm-steel-600); }
.mm-pdp-sku { font-family: ui-monospace, monospace; }

.mm-pdp-signals { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
@media (min-width: 1024px) { .mm-pdp-signals { justify-content: flex-start; } }
.mm-signal {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 11px; font-weight: 700; padding: 0.375rem 0.625rem; border-radius: 8px; border: 1px solid;
}
.mm-signal--view { background: #fffbeb; color: #78350f; border-color: #fde68a; }
.mm-signal--sales { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }

.mm-pdp-price {
  margin: 1rem 0 0.25rem; font-size: 1.5rem; font-weight: 900;
  color: var(--mm-text-primary);
}
.mm-pdp-price__cur {
  font-size: 0.875rem; font-weight: 500; color: var(--mm-text-muted);
}
.mm-pdp-breakdown-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: none; border: 0; color: var(--mm-steel-700); font-size: 12px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0; margin-top: 0.375rem;
}
.mm-pdp-breakdown-link:hover { color: var(--mm-steel-900); }
.mm-pdp-note { font-size: 12px; color: var(--mm-text-muted); margin: 0.25rem 0 0; font-weight: 500; }
.mm-pdp-excerpt {
  margin-top: 1rem; font-size: 14px; color: var(--mm-text-secondary);
  line-height: 1.7; max-width: 32rem; margin-inline: auto; font-weight: 500;
}
.mm-pdp-excerpt p { margin: 0; }
@media (min-width: 1024px) { .mm-pdp-excerpt { margin-inline: 0; } }

.mm-pdp-weights { margin-top: 1.25rem; text-align: right; max-width: 28rem; margin-inline: auto; }
@media (min-width: 1024px) { .mm-pdp-weights { margin-inline: 0; } }
.mm-pdp-weights__label {
  font-size: 11px; font-weight: 800; color: var(--mm-text-primary); margin: 0 0 0.5rem;
}
.mm-pdp-weights__list {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
@media (min-width: 1024px) { .mm-pdp-weights__list { justify-content: flex-start; } }
.mm-pdp-weight {
  min-width: 4.5rem; padding: 0.625rem 0.75rem; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff; color: var(--mm-text-secondary);
  font-size: 12px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.mm-pdp-weight:hover { border-color: var(--mm-steel-300); }
.mm-pdp-weight.is-active {
  border-color: var(--mm-steel-600); background: var(--mm-steel-50); color: var(--mm-steel-800);
}

.mm-pdp-cart-row { margin-top: 1.5rem; }
.mm-pdp-cart-row .stock { display: none; }
.mm-pdp-cart-wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center;
}
@media (min-width: 1024px) { .mm-pdp-cart-wrap { justify-content: flex-start; } }

.mm-pdp-stepper {
  display: none;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.mm-pdp-cart-wrap.has-qty .mm-pdp-stepper { display: inline-flex; }
.mm-pdp-cart-wrap.has-qty .mm-pdp-atc { display: none !important; }
.mm-pdp-stepper__btn {
  width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #475569; cursor: pointer; padding: 0;
}
.mm-pdp-stepper__btn:hover { background: #f8fafc; }
.mm-pdp-stepper__val {
  min-width: 2.5rem; text-align: center; font-size: 14px; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.mm-pdp-cart-wrap.is-loading { opacity: 0.65; pointer-events: none; }

.mm-pdp-atc {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem !important; border-radius: 12px !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important; font-size: 14px !important; font-weight: 700 !important;
  border: 0 !important; box-shadow: 0 4px 12px rgba(29, 62, 97, 0.25);
  cursor: pointer; position: relative;
}
.mm-pdp-atc .mm-icon { color: #fff; }
.mm-pdp-atc.is-loading { opacity: 0.7; pointer-events: none; }
.mm-pdp-atc--disabled { opacity: 0.5; cursor: not-allowed; }

.mm-pdp-gallery__zoom {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; background: transparent; cursor: zoom-in;
}
.mm-pdp-gallery__zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox */
html.mm-lightbox-open { overflow: hidden; }
.mm-lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.mm-lightbox[hidden] { display: none !important; }
.mm-lightbox__backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: rgba(15, 23, 42, 0.88);
}
.mm-lightbox__panel {
  position: relative; z-index: 1; width: min(92vw, 56rem);
  max-height: 90vh; display: flex; align-items: center; justify-content: center;
}
.mm-lightbox__img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 0.75rem; background: #0f172a; box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.mm-lightbox__close {
  position: absolute; top: -0.25rem; left: -0.25rem; z-index: 2;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 0;
  background: rgba(255,255,255,0.95); color: #0f172a; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mm-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 9999px; border: 0;
  background: rgba(255,255,255,0.92); color: #0f172a; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.mm-lightbox__nav--prev { right: 0.5rem; }
.mm-lightbox__nav--next { left: 0.5rem; }
.mm-lightbox__nav:hover,
.mm-lightbox__close:hover { background: #fff; }
.mm-lightbox__counter {
  position: absolute; bottom: -2rem; inset-inline: 0; text-align: center;
  margin: 0; color: #e2e8f0; font-size: 12px; font-weight: 700;
}
@media (max-width: 640px) {
  .mm-lightbox__nav--prev { right: 0; }
  .mm-lightbox__nav--next { left: 0; }
}

.mm-pdp-share { margin-top: 1.25rem; text-align: right; max-width: 28rem; margin-inline: auto; }
@media (min-width: 1024px) { .mm-pdp-share { margin-inline: 0; } }
.mm-pdp-share > p { font-size: 11px; font-weight: 800; margin: 0 0 0.5rem; }
.mm-pdp-share .mm-share { justify-content: center; margin: 0; }
@media (min-width: 1024px) { .mm-pdp-share .mm-share { justify-content: flex-start; } }
.mm-pdp-share .mm-share a {
  padding: 0.375rem 0.625rem; border-radius: 8px; font-size: 10px; font-weight: 700; color: #fff;
}

.mm-pdp-trust {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--mm-text-secondary);
}
@media (min-width: 1024px) { .mm-pdp-trust { justify-content: flex-start; } }
.mm-pdp-trust li { display: inline-flex; align-items: center; gap: 0.375rem; }
.mm-pdp-trust .mm-icon { color: var(--mm-gold); }

/* Tabs */
.mm-pdp-tabs-wrap { margin-top: 3rem; scroll-margin-top: 6rem; }
.mm-pdp-tabs-wrap .woocommerce-tabs {
  display: block; margin-top: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0;
}
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs {
  padding: 0 !important; margin: 0 !important;
  display: flex; gap: 0; overflow-x: auto;
  background: #fff; border: 1px solid #e2e8f0; border-bottom: 0;
  border-radius: 1rem 1rem 0 0;
}
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs::before { display: none !important; }
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs li {
  border: 0 !important; background: transparent !important;
  margin: 0 !important; padding: 0 !important; border-radius: 0 !important;
}
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs li a {
  display: block; padding: 0.875rem 1rem !important;
  font-weight: 800; font-size: 12px; white-space: nowrap;
  color: var(--mm-text-muted) !important;
  border-bottom: 2px solid transparent !important;
}
@media (min-width: 640px) {
  .mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs li a {
    padding: 0.875rem 1.5rem !important; font-size: 14px;
  }
}
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs li.active a {
  color: var(--mm-steel-800) !important;
  border-bottom-color: var(--mm-steel-700) !important;
}
.mm-pdp-tabs-wrap .woocommerce-Tabs-panel {
  background: #fff; border: 1px solid #e2e8f0; border-top: 0;
  border-radius: 0 0 1rem 1rem; padding: 1.25rem 1.25rem 1.75rem !important;
  margin: 0 !important;
}
@media (min-width: 640px) {
  .mm-pdp-tabs-wrap .woocommerce-Tabs-panel { padding: 1.75rem !important; }
}
.mm-pdp-desc-tab {
  font-size: 14px; color: var(--mm-text-secondary); line-height: 1.75; font-weight: 500; text-align: right;
}
.mm-pdp-desc-tab p { margin: 0; }

.mm-spec-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #f1f5f9; }
.mm-spec-nav__item {
  padding: 0.375rem 0.75rem; border-radius: 8px; font-size: 11px; font-weight: 800;
  border: 1px solid #e2e8f0; background: #fff; color: var(--mm-text-secondary); text-decoration: none;
}
.mm-spec-nav__item.is-active { background: var(--mm-steel-700); color: #fff; border-color: var(--mm-steel-700); }
.mm-spec-group { margin-bottom: 2rem; scroll-margin-top: 6rem; }
.mm-spec-group__title {
  font-size: 14px; font-weight: 800; margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mm-steel-700); display: inline-block;
}
.mm-pdp-specs-wrap .mm-specs-table {
  width: 100%; border: 0 !important; border-collapse: collapse;
}
.mm-pdp-specs-wrap .mm-specs-table th,
.mm-pdp-specs-wrap .mm-specs-table td {
  border: 0 !important; border-bottom: 1px solid #f1f5f9 !important;
  padding: 0.875rem 0 !important; font-size: 13px; text-align: right; vertical-align: top;
}
.mm-pdp-specs-wrap .mm-specs-table th {
  width: 38%; font-weight: 700; color: var(--mm-text-muted); padding-left: 1rem !important;
}
.mm-pdp-specs-wrap .mm-specs-table td { font-weight: 800; color: var(--mm-text-primary); }
.mm-pdp-specs-wrap .mm-specs-table tr:last-child th,
.mm-pdp-specs-wrap .mm-specs-table tr:last-child td { border-bottom: 0 !important; }

.mm-pdp-buybox {
  position: sticky; top: 6rem;
  background: var(--mm-bg-page); border: 1px solid #e2e8f0;
  border-radius: 1rem; padding: 1rem; text-align: right;
  box-shadow: var(--mm-shadow-subtle);
}
.mm-pdp-buybox .price { font-size: 1.125rem; font-weight: 900; margin: 1rem 0 0.25rem; }
.mm-pdp-buybox__head { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.mm-pdp-buybox__head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid #e2e8f0; background: #fff; flex-shrink: 0; }
.mm-pdp-buybox__head strong { font-size: 11px; color: var(--mm-steel-600); display: block; font-weight: 700; }
.mm-pdp-buybox__head p { margin: 0.25rem 0 0; font-size: 12px; font-weight: 800; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-pdp-buybox__list { list-style: none; margin: 0 0 0.75rem; padding: 0; font-size: 10px; font-weight: 500; color: var(--mm-text-secondary); }
.mm-pdp-buybox__list li { margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.375rem; }
.mm-pdp-buybox__list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--mm-gold); flex-shrink: 0;
}

/* Reviews tab polish */
#tab-reviews .woocommerce-Reviews-title { font-size: 14px; font-weight: 800; margin: 0 0 1rem; }
#tab-reviews .commentlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
#tab-reviews .comment {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 1rem; margin: 0 !important;
}
#tab-reviews .comment-text { margin: 0; border: 0 !important; padding: 0 !important; }
#tab-reviews .meta { font-size: 12px; font-weight: 800; color: var(--mm-text-primary); }
#tab-reviews .description p { font-size: 12px; color: var(--mm-text-secondary); line-height: 1.7; margin: 0.5rem 0 0; }
#review_form_wrapper {
  margin-top: 1.25rem; border: 1px solid #e2e8f0; border-radius: 12px;
  background: var(--mm-bg-page); padding: 1rem;
}
#review_form_wrapper .comment-reply-title { font-size: 12px; font-weight: 800; margin: 0 0 0.75rem; }
#review_form_wrapper .comment-notes { font-size: 10px; color: var(--mm-text-muted); }
#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea {
  border: 1px solid #e2e8f0 !important; border-radius: 12px !important;
  padding: 0.5rem 0.75rem !important; font-size: 12px !important; background: #fff !important;
  width: 100%;
}
#review_form_wrapper .form-submit input {
  background: var(--mm-steel-700) !important; color: #fff !important;
  border-radius: 12px !important; font-size: 12px !important; font-weight: 700 !important;
  padding: 0.625rem 1.25rem !important; border: 0 !important;
}

/* Related */
.mm-pdp-related { margin-top: 3rem; }
.mm-pdp-related > h2 {
  font-size: 1.125rem; font-weight: 800; margin: 0 0 1.25rem;
  text-align: center;
}
@media (min-width: 640px) { .mm-pdp-related > h2 { text-align: right; } }
.mm-pdp-related > h2::before { display: none !important; }
.mm-pdp-related__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem;
}
@media (min-width: 640px) {
  .mm-pdp-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mm-product-card--related {
  border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; background: #fff;
  transition: box-shadow 0.2s;
}
.mm-product-card--related:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.mm-product-card--related .mm-product-card__media { aspect-ratio: 1; background: #f8fafc; }
.mm-product-card--related .mm-product-card__media a { display: block; height: 100%; position: relative; }
.mm-product-card--related .mm-product-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s;
}
.mm-product-card--related .mm-product-card__media img.hover { opacity: 0; }
.mm-product-card--related:hover .mm-product-card__media img.main { opacity: 0; }
.mm-product-card--related:hover .mm-product-card__media img.hover { opacity: 1; }
.mm-product-card--related .mm-product-card__body { padding: 0.75rem; }
.mm-product-card__title--related {
  font-size: 12px; font-weight: 700; margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2rem;
}
.mm-product-card__title--related a { color: inherit; text-decoration: none; }
.mm-product-card__price--related {
  margin: 0.25rem 0 0; font-size: 12px; font-weight: 900;
}
.mm-product-card__price--related .woocommerce-Price-amount { font-weight: 900; }

/* Modal */
.mm-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.mm-modal[hidden] { display: none !important; }
.mm-modal__backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: rgba(15, 23, 42, 0.5);
}
.mm-modal__panel {
  position: relative; width: 100%; max-width: 28rem; background: #fff;
  border-radius: 1rem; border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25); max-height: 90vh; overflow: auto;
  z-index: 1;
}
.mm-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9;
}
.mm-modal__head h2 { font-size: 14px; font-weight: 800; margin: 0; }
.mm-modal__close {
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mm-modal__close:hover { background: #f8fafc; }
.mm-modal__rows {
  list-style: none; margin: 0; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.625rem;
}
.mm-modal__rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-bottom: 0.625rem; border-bottom: 1px solid #f8fafc;
  font-size: 12px;
}
.mm-modal__rows li > span:first-child { font-weight: 500; color: var(--mm-text-secondary); }
.mm-modal__rows li > span:last-child { font-weight: 700; color: var(--mm-text-primary); }
.mm-modal__rows--total { border-bottom: 0 !important; padding-top: 0.25rem; }
.mm-modal__rows--total > span:first-child { font-weight: 800; color: var(--mm-text-primary); }
.mm-modal__rows--total > span:last-child { font-weight: 900; font-size: 1rem; }
.mm-modal__ok {
  display: block; width: calc(100% - 2.5rem); margin: 0 1.25rem 1.25rem;
  text-align: center; padding: 0.75rem !important; border-radius: 12px !important;
  background: var(--mm-steel-700) !important; color: #fff !important;
  font-size: 12px !important; font-weight: 700 !important; border: 0 !important; cursor: pointer;
}

.mm-pdp-mobile-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
  border-top: 1px solid #e2e8f0; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px); padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  box-shadow: 0 -8px 24px rgba(15,23,42,0.08);
}
@media (min-width: 1024px) { .mm-pdp-mobile-bar { display: none; } }
.mm-pdp-mobile-bar__info { min-width: 0; flex: 1; text-align: right; }
.mm-pdp-mobile-bar__title {
  margin: 0; font-size: 11px; font-weight: 500; color: var(--mm-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-pdp-mobile-bar__price { margin: 0; font-size: 14px; font-weight: 900; }
.mm-pdp-mobile-bar__btn {
  display: inline-flex !important; align-items: center; gap: 0.375rem;
  white-space: nowrap; padding: 0.625rem 1rem !important;
  border-radius: 12px !important; font-size: 12px !important; font-weight: 700 !important;
  background: var(--mm-steel-700) !important; color: #fff !important; border: 0 !important; cursor: pointer;
}

body.single-product .mm-main { padding-bottom: 0; }
body.single-product .related.products:not(.mm-pdp-related) { display: none; }

/* legacy buybox grid kept */

/* —— Cart page (CartPage.tsx parity) —— */
.woocommerce-cart .mm-woo-main { padding: 2rem 0 3rem; }
@media (min-width: 640px) {
  .woocommerce-cart .mm-woo-main { padding: 3rem 0 4rem; }
}
.woocommerce-cart .mm-woo-head { margin-bottom: 1.5rem; }
.woocommerce-cart .mm-woo-head { text-align: center; }
@media (min-width: 640px) {
  .woocommerce-cart .mm-woo-head { text-align: right; }
}

.mm-cart-empty {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.mm-cart-empty__msg {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--mm-text-secondary);
}
.mm-cart-empty__cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.woocommerce-cart .return-to-shop,
.woocommerce-cart .wc-empty-cart-message { display: none !important; }

.mm-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .mm-cart-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.mm-cart-lines { display: flex; flex-direction: column; gap: 0.75rem; }
.mm-cart-lines__head {
  display: none;
  grid-template-columns: 1fr 100px 120px 40px;
  gap: 0.75rem;
  padding: 0 1rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--mm-text-muted);
}
@media (min-width: 640px) {
  .mm-cart-lines__head { display: grid; }
  .mm-cart-lines__head span:nth-child(1) { text-align: right; }
  .mm-cart-lines__head span:nth-child(2) { text-align: center; }
  .mm-cart-lines__head span:nth-child(3) { text-align: left; }
}

.mm-cart-line {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.875rem;
}
@media (min-width: 640px) {
  .mm-cart-line { gap: 1rem; padding: 1rem; }
}
.mm-cart-line__thumb {
  width: 5rem; height: 5rem; flex-shrink: 0;
  border-radius: 0.75rem; overflow: hidden;
  border: 1px solid #f1f5f9; background: #f8fafc;
}
@media (min-width: 640px) {
  .mm-cart-line__thumb { width: 6rem; height: 6rem; }
}
.mm-cart-line__thumb a { display: block; height: 100%; }
.mm-cart-line__thumb img,
.mm-cart-line__img {
  width: 100% !important; height: 100% !important;
  object-fit: cover; margin: 0 !important; border-radius: 0 !important;
}
.mm-cart-line__body { flex: 1; min-width: 0; text-align: right; }
.mm-cart-line__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12px; font-weight: 700;
  color: var(--mm-text-primary); text-decoration: none; margin: 0;
}
@media (min-width: 640px) { .mm-cart-line__title { font-size: 14px; } }
.mm-cart-line__title:hover { color: var(--mm-steel-600); }
.mm-cart-line__meta {
  margin: 0.25rem 0 0; font-size: 11px; font-weight: 500; color: var(--mm-text-muted);
}
.mm-cart-line__price {
  margin-top: 0.25rem; font-size: 14px; font-weight: 900;
}
.mm-cart-line__price .woocommerce-Price-amount { font-weight: 900; }
.mm-cart-line__stock {
  margin: 0.15rem 0 0; font-size: 10px; font-weight: 700;
}
.mm-cart-line__stock.is-in { color: #047857; }
.mm-cart-line__stock.is-out { color: #be123c; }

.mm-cart-line__controls {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0;
}
.mm-qty {
  display: inline-flex; align-items: center;
  border: 1px solid #e2e8f0; border-radius: 0.5rem; overflow: hidden; background: #fff;
}
.mm-qty__btn {
  width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--mm-text-primary); cursor: pointer; padding: 0;
}
.mm-qty__btn:hover { background: #f8fafc; }
.mm-qty .quantity { margin: 0 !important; }
.mm-qty .qty,
.mm-qty__input {
  width: 2rem !important; min-width: 2rem !important; height: 2rem !important;
  border: 0 !important; border-radius: 0 !important; padding: 0 !important;
  text-align: center; font-size: 12px; font-weight: 900; box-shadow: none !important;
  -moz-appearance: textfield;
}
.mm-qty .qty::-webkit-outer-spin-button,
.mm-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mm-cart-line__subtotal { font-size: 12px; font-weight: 800; }
.mm-cart-line__remove {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 11px; font-weight: 700; color: #e11d48; text-decoration: none;
}
.mm-cart-line__remove:hover { color: #be123c; }

.mm-cart-coupon {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem;
}
@media (min-width: 640px) {
  .mm-cart-coupon { flex-direction: row; }
}
.mm-cart-coupon__input {
  flex: 1; border: 1px solid #e2e8f0 !important; border-radius: 0.75rem !important;
  padding: 0.625rem 0.75rem !important; font-size: 14px !important; width: 100%;
}
.mm-cart-coupon__btn {
  border: 1px solid #e2e8f0 !important; border-radius: 0.75rem !important;
  background: var(--mm-bg-page) !important; color: var(--mm-text-primary) !important;
  font-size: 12px !important; font-weight: 700 !important; padding: 0.625rem 1rem !important;
  white-space: nowrap;
}

.mm-cart-trust {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--mm-steel-50); border: 1px solid #e2e8f0; border-radius: 1rem;
  padding: 1rem; font-size: 11px; font-weight: 500; color: var(--mm-text-secondary);
}
@media (min-width: 640px) {
  .mm-cart-trust { flex-direction: row; gap: 1.25rem; }
}
.mm-cart-trust__item { display: inline-flex; align-items: center; gap: 0.375rem; }
.mm-cart-trust__item .mm-icon { color: var(--mm-gold); }
.mm-cart-trust__item--strong { font-weight: 700; color: var(--mm-steel-700); }

.mm-cart-update {
  align-self: flex-start;
  border: 1px solid #e2e8f0 !important; border-radius: 0.75rem !important;
  background: #fff !important; color: var(--mm-text-secondary) !important;
  font-size: 12px !important; font-weight: 700 !important; padding: 0.5rem 1rem !important;
}
.mm-cart-update[aria-disabled="true"],
.mm-cart-update:disabled { opacity: 0.45; }

.mm-cart-aside { position: relative; }
.mm-cart-totals {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem;
  position: sticky; top: 1.5rem;
}
.mm-cart-totals__title {
  margin: 0 0 1rem; font-size: 14px; font-weight: 800;
}
.mm-cart-totals__rows { display: flex; flex-direction: column; }
.mm-cart-totals__row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.625rem 0; border-bottom: 1px solid #f1f5f9;
  font-size: 12px; font-weight: 500; color: var(--mm-text-secondary);
}
.mm-cart-totals__row > span:last-child {
  font-weight: 700; color: var(--mm-text-primary);
}
.mm-cart-totals__row--discount { color: #047857; }
.mm-cart-totals__row--discount > span:last-child { color: #047857; }
.mm-cart-totals__row--total {
  border-bottom: 0; padding-top: 0.75rem; font-size: 14px; font-weight: 800;
  color: var(--mm-text-primary);
}
.mm-cart-totals__row--total > span:last-child { font-weight: 900; }
.mm-cart-totals__shipping table,
.mm-cart-totals__shipping .shop_table {
  width: 100%; border: 0 !important; margin: 0 !important;
}
.mm-cart-totals__shipping th,
.mm-cart-totals__shipping td {
  padding: 0.625rem 0 !important; border: 0 !important; border-bottom: 1px solid #f1f5f9 !important;
  font-size: 12px; font-weight: 500;
}
.mm-cart-totals__note {
  margin: 0 0 1rem; font-size: 10px; font-weight: 500;
  color: var(--mm-text-muted); line-height: 1.6;
}
.mm-cart-checkout-btn,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.75rem 1rem !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important; font-size: 12px !important; font-weight: 700 !important;
  text-decoration: none !important; border: 0 !important;
}
.mm-cart-checkout-btn__icon { color: #fcd34d; }
.mm-cart-totals__continue {
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.5rem; font-size: 11px; font-weight: 700;
  color: var(--mm-steel-600); text-decoration: none;
}
.mm-cart-totals__continue:hover { color: var(--mm-steel-700); }

/* Hide default WC table chrome if any leftover */
.woocommerce-cart table.shop_table.cart { display: none; }
.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after { display: none; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }

/* —— Checkout page (CheckoutPage.tsx parity) —— */
.woocommerce-checkout .mm-woo-main { padding: 2rem 0 3rem; }
@media (min-width: 640px) {
  .woocommerce-checkout .mm-woo-main { padding: 3rem 0 4rem; }
}
.woocommerce-checkout .mm-woo-head { margin-bottom: 1.5rem; }
.woocommerce-checkout .mm-woo-panel--checkout { display: contents; }

.mm-checkout { width: 100%; overflow: visible; }
.mm-checkout-form,
.woocommerce-checkout form.checkout { overflow: visible; }
.mm-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  overflow: visible;
}
@media (min-width: 1024px) {
  .mm-checkout-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
  /* Sticky the aside itself — card-inside-short-aside cannot stick */
  .mm-checkout-aside {
    position: sticky;
    top: var(--mm-sticky-top); /* below fixed mm-header (live height) */
    z-index: 2;
    align-self: start;
  }
}
.mm-checkout-main { display: flex; flex-direction: column; gap: 1rem; }

.mm-checkout-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
}
@media (min-width: 640px) {
  .mm-checkout-card { padding: 1.5rem; }
}
.mm-checkout-card__title {
  margin: 0 0 1rem;
  font-size: 14px;
  font-weight: 800;
  color: var(--mm-text-primary);
}

.mm-checkout-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .mm-checkout-fields { grid-template-columns: 1fr 1fr; }
}
.mm-checkout-fields .form-row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
.mm-checkout-fields .form-row-wide,
.mm-checkout-fields .mm-checkout-field--full,
.mm-checkout-fields #order_comments_field,
.mm-checkout-fields #billing_address_1_field {
  grid-column: 1 / -1;
}
.mm-checkout-field--hide { display: none !important; }

.woocommerce-checkout .mm-checkout-fields label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-align: right;
  color: var(--mm-text-primary);
}
.woocommerce-checkout .mm-checkout-fields .required { color: #be123c; }
.woocommerce-checkout .mm-checkout-fields input.input-text,
.woocommerce-checkout .mm-checkout-fields textarea,
.woocommerce-checkout .mm-checkout-fields select,
.woocommerce-checkout .mm-checkout-fields .select2-container .select2-selection--single {
  width: 100%;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 0.75rem !important;
  font-size: 14px !important;
  font-weight: 500;
  background: #fff;
  min-height: 42px;
  box-shadow: none !important;
}
.woocommerce-checkout .mm-checkout-fields textarea { min-height: 5rem; resize: vertical; }
.woocommerce-checkout .mm-checkout-fields .select2-container { width: 100% !important; }

.mm-checkout-ship-diff { margin-top: 0.75rem; }
.mm-checkout-ship-diff__toggle {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}
.mm-checkout-notes { margin-top: 0.25rem; }
.mm-checkout-account-fields { margin-top: 0.75rem; font-size: 12px; }

.mm-checkout-ship-list,
.mm-checkout-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mm-checkout-ship-option,
.mm-checkout-pay-option {
  position: relative;
  margin: 0 !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.875rem;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.mm-checkout-ship-option:has(input:checked),
.mm-checkout-pay-option:has(input:checked) {
  border-color: var(--mm-steel-400, #94a3b8);
  background: var(--mm-steel-50, #f8fafc);
}
.mm-checkout-ship-option input,
.mm-checkout-pay-option > input.input-radio {
  position: absolute;
  inset-inline-start: 0.875rem;
  top: 1rem;
  margin: 0;
}
.mm-checkout-ship-option__label,
.mm-checkout-pay-option__label {
  display: block;
  padding-inline-start: 1.5rem;
  cursor: pointer;
}
.mm-checkout-ship-option__title,
.mm-checkout-pay-option__title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-text-primary);
}
.mm-checkout-ship-option__title .mm-icon { color: var(--mm-gold); width: 14px; height: 14px; }
.mm-checkout-ship-option__desc,
.mm-checkout-pay-option__desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.5;
}
.mm-checkout-shipping-empty {
  margin: 0;
  font-size: 12px;
  color: var(--mm-text-muted);
  font-weight: 500;
}

.mm-checkout-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mm-checkout-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 12px;
}
.mm-checkout-line__thumb {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
}
.mm-checkout-line__thumb img,
.mm-checkout-line__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-checkout-line__title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  text-align: right;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mm-checkout-line__qty { font-weight: 500; color: var(--mm-text-muted); }
.mm-checkout-line__total {
  flex-shrink: 0;
  font-weight: 900;
}

.mm-checkout-coupon {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  background: var(--mm-bg-page, #f8fafc);
}
.mm-checkout-coupon__label {
  margin: 0 0 0.5rem;
  font-size: 11px;
  font-weight: 800;
}
.mm-checkout-coupon__row { display: flex; gap: 0.5rem; }
.mm-checkout-coupon__input {
  flex: 1;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 12px !important;
  background: #fff;
}
.mm-checkout-coupon__btn {
  border: 0 !important;
  border-radius: 0.5rem !important;
  background: var(--mm-steel-700, #1e3a5f) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 0.5rem 0.75rem !important;
  white-space: nowrap;
}

.mm-checkout-totals {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mm-checkout-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--mm-text-secondary);
}
.mm-checkout-totals__row > span:last-child {
  font-weight: 700;
  color: var(--mm-text-primary);
}
.mm-checkout-totals__row--discount { color: #047857; }
.mm-checkout-totals__row--discount > span:last-child { color: #047857; }
.mm-checkout-totals__row--total {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  font-size: 14px;
  font-weight: 800;
  color: var(--mm-text-primary);
}
.mm-checkout-totals__row--total > span:last-child { font-weight: 900; }

.mm-checkout-payment { margin-top: 1rem; }
.mm-checkout-payment__heading {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 800;
}
.mm-checkout-place { margin: 1.25rem 0 0 !important; padding: 0 !important; }
.mm-checkout-submit,
.woocommerce-checkout #place_order {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.mm-checkout-legal {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.6;
}
.mm-checkout-legal a { text-decoration: underline; color: inherit; }

.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading { background: transparent; border: 0; padding: 0; margin: 0; border-radius: 0; }
.woocommerce-checkout .woocommerce-privacy-policy-text { display: none; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 11px; margin-bottom: 0.5rem; }
.woocommerce-checkout .woocommerce-NoticeGroup { margin-bottom: 1rem; }

/* Force-hide WC fields not in CheckoutPage mock */
.woocommerce-checkout .mm-checkout-field--hide,
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #shipping_company_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout #shipping_address_2_field {
  display: none !important;
}

/* —— Account page (AccountPage.tsx parity) —— */
.woocommerce-account .mm-woo-main { padding: 2rem 0 3rem; }
@media (min-width: 640px) {
  .woocommerce-account .mm-woo-main { padding: 3rem 0 4rem; }
}
.woocommerce-account .mm-woo-head { margin-bottom: 1.5rem; }
.woocommerce-account .mm-woo-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.woocommerce-account .mm-container { max-width: 64rem; }

/* Kill WC / entry-content bleed into auth card */
.woocommerce-account .mm-account-auth h2,
.woocommerce-account .mm-content .entry-content .mm-account-auth h2,
.woocommerce-account .mm-content .entry-content .mm-account-auth__title {
  margin: 0 !important;
  padding: 0 !important;
}

.mm-account-shell--guest {
  max-width: 28rem; /* max-w-md */
  margin: 0 auto;
}

.mm-account-auth__card {
  background: #fff;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 1rem !important; /* rounded-2xl */
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(29, 62, 97, 0.06);
}
@media (min-width: 640px) {
  .mm-account-auth__card { padding: 2rem; }
}

.mm-account-auth__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: var(--mm-steel-700);
  margin: 0 0 0.875rem;
  line-height: 1;
}
.mm-account-auth__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem; /* rounded-xl */
  background: var(--mm-steel-50, #f8fafc);
  border: 1px solid var(--mm-steel-200, #e2e8f0);
  color: var(--mm-steel-700);
  flex-shrink: 0;
}
.mm-account-auth__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin: 0;
  color: inherit;
}
.mm-account-auth__icon svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}
.mm-account-auth__title {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.875rem; /* text-sm */
  font-weight: 800;
  line-height: 1.25;
  color: var(--mm-steel-700);
  letter-spacing: -0.01em;
}
.mm-account-auth__lead {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--mm-text-secondary);
}

.mm-account-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0 0 1.35rem;
  padding: 0.25rem;
  background: var(--mm-bg-page, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem; /* rounded-xl */
}
.mm-account-auth__tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 0.55rem;
  padding: 0.6rem 0.75rem;
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}
.mm-account-auth__tab:hover { color: var(--mm-steel-700); }
.mm-account-auth__tab.is-active {
  background: #fff;
  color: var(--mm-steel-800);
  border-color: var(--mm-steel-200, #cbd5e1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.mm-account-auth__panel[hidden] { display: none !important; }

.woocommerce-account .mm-account-auth__form .form-row {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce-account .mm-account-auth__form label {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 0.4rem !important;
  color: var(--mm-text-primary);
  line-height: 1.4;
}

/* Inputs — rounded-xl (12px), beat WC 3–4px + dark border overrides */
.woocommerce-account .mm-account-auth__form .woocommerce-Input,
.woocommerce-account .mm-account-auth__form input.input-text,
.woocommerce-account .mm-account-auth__form input[type="text"],
.woocommerce-account .mm-account-auth__form input[type="email"],
.woocommerce-account .mm-account-auth__form input[type="password"],
.woocommerce-account .mm-account-auth__form input[type="tel"],
.woocommerce.woocommerce-account .mm-account-auth input.input-text {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important; /* rounded-xl */
  padding: 0.7rem 0.9rem !important;
  min-height: 2.75rem !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: #fff !important;
  color: var(--mm-text-primary) !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce-account .mm-account-auth__form input:focus,
.woocommerce-account .mm-account-auth__form input.input-text:focus {
  border-color: var(--mm-steel-300, #94a3b8) !important;
  box-shadow: 0 0 0 3px rgba(41, 82, 127, 0.12) !important;
}
.woocommerce-account .mm-account-auth__form input::placeholder {
  color: var(--mm-text-muted);
  font-weight: 500;
}
.woocommerce-account .mm-account-auth__form .required { color: #e11d48; }

/* Password field shell */
.woocommerce-account .mm-account-auth__form .password-input {
  display: flex !important;
  align-items: stretch;
  position: relative;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  background: #fff;
  min-height: 2.75rem;
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce-account .mm-account-auth__form .password-input input.input-text {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 2.75rem !important;
  flex: 1;
  min-width: 0;
}
.woocommerce-account .mm-account-auth__form .password-input .show-password-input {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  padding: 0 0.85rem !important;
  margin: 0 !important;
  color: var(--mm-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
}
.woocommerce-account .mm-account-auth__form .password-input:focus-within {
  border-color: var(--mm-steel-300, #94a3b8) !important;
  box-shadow: 0 0 0 3px rgba(41, 82, 127, 0.12);
}

/* Remember + forgot on one row — no cramped link under CTA */
.mm-account-auth__meta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.35rem !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce-account .mm-account-auth__form .form-row-wide:has(+ .mm-account-auth__meta),
.woocommerce-account .mm-account-auth__form .form-row:has(.password-input) {
  margin-bottom: 0.35rem !important;
}
.mm-account-auth__meta .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-text-secondary);
  cursor: pointer;
  line-height: 1.3;
}
.mm-account-auth__meta .woocommerce-form__input-checkbox {
  width: 0.95rem !important;
  height: 0.95rem !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0.25rem !important;
  accent-color: var(--mm-steel-700, #1d3e61);
}
.mm-account-auth__lost {
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-steel-600);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.mm-account-auth__lost:hover {
  color: var(--mm-steel-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA — rounded-xl, full width, kill WC button chrome */
.woocommerce-account .mm-account-auth__submit,
.woocommerce-account .mm-account-auth__form button.button.mm-account-auth__submit,
.woocommerce.woocommerce-account .mm-account-auth button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0.9rem 1.1rem !important;
  min-height: 2.85rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important; /* rounded-xl */
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(29, 62, 97, 0.28) !important;
  cursor: pointer;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.woocommerce-account .mm-account-auth__submit:hover,
.woocommerce-account .mm-account-auth__form button.button.mm-account-auth__submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(29, 62, 97, 0.34) !important;
}
.woocommerce-account .mm-account-auth__submit:active {
  transform: translateY(1px);
}
.mm-account-auth__submit-icon {
  display: inline-flex !important;
  line-height: 0;
  color: inherit;
}
.mm-account-auth__submit-icon svg {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
}

.mm-account-auth__hint {
  margin: 0 0 1rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.7;
  text-align: center;
}
.mm-account-auth__note {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.6;
}

.mm-account-auth__footer {
  margin-top: 1.75rem;
  text-align: center;
}
.mm-account-auth__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-steel-600);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  transition: color .15s, background .15s;
}
.mm-account-auth__cart:hover {
  color: var(--mm-steel-800);
  background: var(--mm-steel-50, #f8fafc);
}
.mm-account-auth__cart .mm-icon {
  display: inline-flex !important;
  line-height: 0;
}
.mm-account-auth__cart .mm-icon svg { width: 0.9rem; height: 0.9rem; display: block; }

/* Password toggle — WC absolute; keep inside our flex shell */
.woocommerce-account .mm-account-auth__form .password-input {
  position: relative !important;
}
.woocommerce-account .mm-account-auth__form .password-input .show-password-input {
  position: absolute !important;
  inset: auto auto 50% 0.35rem !important;
  transform: translateY(50%) !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.woocommerce-account .mm-account-auth__form .password-input input.input-text {
  padding-inline-start: 2.75rem !important;
}

/* Kill WC float layout that collapses account grid */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.mm-account-nav,
.mm-account-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Logged-in account shell */
.mm-account-shell--member {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .mm-account-shell--member {
    grid-template-columns: minmax(13.5rem, 0.28fr) minmax(0, 0.72fr);
    gap: 1.25rem;
  }
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.mm-account-nav {
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 0.65rem;
  height: fit-content;
  box-shadow: var(--mm-shadow-subtle);
  overflow: hidden;
}
.mm-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mm-account-nav ul::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .mm-account-nav ul {
    flex-direction: column;
    overflow: visible;
    gap: 0.25rem;
  }
}
.mm-account-nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  text-align: right;
  line-height: 1.3;
  white-space: nowrap;
  transition: background var(--mm-transition-fast), color var(--mm-transition-fast), border-color var(--mm-transition-fast);
}
.mm-account-nav a:hover { background: var(--mm-bg-page); color: var(--mm-steel-800); }
.mm-account-nav .is-active a,
.mm-account-nav li.is-active a {
  background: var(--mm-steel-50);
  color: var(--mm-steel-800);
  border-color: var(--mm-steel-200);
}
.mm-account-nav__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
  line-height: 0;
}
.mm-account-nav__icon svg { width: 0.9rem; height: 0.9rem; display: block; }
.mm-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #e11d48;
}
.mm-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fff1f2;
  border-color: transparent;
}

.woocommerce-account .woocommerce-MyAccount-content,
.mm-account-content {
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  text-align: right;
  box-shadow: var(--mm-shadow-subtle);
  min-width: 0;
}
@media (min-width: 640px) {
  .woocommerce-account .woocommerce-MyAccount-content,
  .mm-account-content { padding: 1.5rem 1.6rem; }
}

.mm-account-section__title {
  margin: 0 0 0.85rem !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  color: var(--mm-text-primary) !important;
  letter-spacing: -0.02em;
}
.mm-account-section__lead {
  margin: 0 0 1.15rem;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--mm-text-secondary);
}

.mm-account-content p {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--mm-text-secondary);
}
.mm-account-content .woocommerce-notices-wrapper:empty { display: none; }

/* Dashboard cards */
.mm-account-dash__intro { margin-bottom: 1.25rem; }
.mm-account-dash__title {
  margin: 0 0 0.4rem !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--mm-text-primary) !important;
}
.mm-account-dash__lead {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--mm-text-secondary);
}
.mm-account-dash__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .mm-account-dash__cards { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}
.mm-account-dash__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--mm-border-faint);
  border-radius: 0.85rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--mm-transition-fast), box-shadow var(--mm-transition-fast), transform var(--mm-transition-fast);
}
.mm-account-dash__card:hover {
  border-color: var(--mm-steel-300);
  box-shadow: var(--mm-shadow-card);
  transform: translateY(-2px);
}
.mm-account-dash__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: var(--mm-steel-50);
  border: 1px solid var(--mm-steel-200);
  color: var(--mm-steel-700);
  flex-shrink: 0;
}
.mm-account-dash__card-icon svg { width: 1rem; height: 1rem; display: block; }
.mm-account-dash__card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mm-account-dash__card-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-text-primary);
}
.mm-account-dash__card-desc {
  font-size: 10px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.5;
}
.mm-account-dash__card-arrow {
  color: var(--mm-steel-400);
  flex-shrink: 0;
  line-height: 0;
  transition: transform var(--mm-transition-fast), color var(--mm-transition-fast);
}
.mm-account-dash__card-arrow svg { width: 0.9rem; height: 0.9rem; display: block; }
.mm-account-dash__card:hover .mm-account-dash__card-arrow {
  color: var(--mm-steel-700);
  transform: translateX(-2px);
}

/* Empty states */
.mm-account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--mm-border-light);
  border-radius: 0.85rem;
  background: var(--mm-bg-page);
}
.mm-account-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  color: var(--mm-steel-600);
}
.mm-account-empty__icon svg { width: 1.15rem; height: 1.15rem; display: block; }
.mm-account-empty__text {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--mm-text-muted) !important;
}
.mm-account-empty__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.7rem 1.15rem !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(29, 62, 97, 0.22);
}

/* Address cards */
.mm-account-addresses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .mm-account-addresses__grid { grid-template-columns: repeat(2, 1fr); }
}
.mm-account-address-card {
  border: 1px solid var(--mm-border-faint);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: border-color var(--mm-transition-fast), box-shadow var(--mm-transition-fast);
}
.mm-account-address-card:hover {
  border-color: var(--mm-steel-300);
  box-shadow: var(--mm-shadow-card);
}
.mm-account-address-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.mm-account-address-card__icon {
  display: inline-flex;
  color: var(--mm-steel-600);
  line-height: 0;
}
.mm-account-address-card__icon svg { width: 0.9rem; height: 0.9rem; display: block; }
.mm-account-address-card__title {
  flex: 1;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--mm-text-primary) !important;
}
.mm-account-address-card__edit {
  font-size: 11px;
  font-weight: 800;
  color: var(--mm-steel-600);
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--mm-border-faint);
  background: var(--mm-bg-page);
  transition: background var(--mm-transition-fast), color var(--mm-transition-fast);
}
.mm-account-address-card__edit:hover {
  background: var(--mm-steel-50);
  color: var(--mm-steel-800);
}
.mm-account-address-card__body {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--mm-text-secondary);
}

/* Forms (edit account / address) */
.mm-account-form .form-row,
.mm-account-content .woocommerce-address-fields .form-row,
.mm-account-content form .form-row {
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  clear: none !important;
}
.mm-account-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .mm-account-form__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .mm-account-form__grid .form-row { margin-bottom: 0.9rem !important; }
}
.mm-account-content .mm-account-form label,
.mm-account-content form .form-row > label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 0.35rem !important;
  color: var(--mm-text-primary);
}
.mm-account-content .woocommerce-Input,
.mm-account-content input.input-text,
.mm-account-content select,
.mm-account-content textarea,
.mm-account-content .select2-container .select2-selection--single {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid var(--mm-border-faint) !important;
  border-radius: 0.75rem !important;
  padding: 0.65rem 0.85rem !important;
  min-height: 2.65rem !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: #fff !important;
  color: var(--mm-text-primary) !important;
  box-shadow: none !important;
  outline: none !important;
}
.mm-account-content input:focus,
.mm-account-content select:focus,
.mm-account-content textarea:focus {
  border-color: var(--mm-steel-300) !important;
  box-shadow: 0 0 0 3px rgba(41, 82, 127, 0.12) !important;
}
.mm-account-form__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 10px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.5;
  font-style: normal;
}
.mm-account-form__hint--block { margin: 0 0 0.85rem; }
.mm-account-form__fieldset {
  margin: 1.35rem 0 0;
  padding: 1.15rem 0 0;
  border: 0;
  border-top: 1px dashed var(--mm-border-faint);
}
.mm-account-form__fieldset legend {
  padding: 0;
  float: none;
  width: 100%;
}
.mm-account-form__actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0 !important;
  float: none !important;
  width: 100% !important;
}
.mm-account-form__cancel {
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-text-muted);
  text-decoration: none;
}
.mm-account-form__cancel:hover { color: var(--mm-steel-700); }

.mm-account-content .woocommerce-Button,
.mm-account-content button.button,
.mm-account-content a.button,
.mm-account-content .mm-btn--primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 0.75rem 1.15rem !important;
  min-height: 2.65rem;
  box-shadow: 0 4px 12px rgba(29, 62, 97, 0.22);
  cursor: pointer;
  text-decoration: none !important;
  float: none !important;
  width: auto !important;
  transition: filter var(--mm-transition-fast);
}
.mm-account-content .woocommerce-Button:hover,
.mm-account-content button.button:hover,
.mm-account-content a.button:hover {
  filter: brightness(1.05);
}

/* Kill WC float columns inside account */
.mm-account-content .col2-set,
.mm-account-content .u-columns,
.mm-account-content .woocommerce-Addresses {
  display: contents;
}
.mm-account-content .clear { display: none; }

/* Orders table */
.mm-account-orders__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--mm-border-faint);
  border-radius: 0.85rem;
}
.mm-account-content .woocommerce-orders-table,
.mm-account-content table.shop_table,
.mm-account-orders__table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}
.mm-account-orders__table thead th {
  background: var(--mm-bg-page);
  font-size: 11px;
  font-weight: 800;
  color: var(--mm-text-muted);
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--mm-border-faint);
  text-align: right;
  white-space: nowrap;
}
.mm-account-orders__table tbody td,
.mm-account-orders__table tbody th {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--mm-border-faint);
  font-weight: 600;
  color: var(--mm-text-secondary);
  text-align: right;
  vertical-align: middle;
}
.mm-account-orders__table tbody tr:last-child td,
.mm-account-orders__table tbody tr:last-child th {
  border-bottom: 0;
}
.mm-account-orders__table a {
  color: var(--mm-steel-700);
  font-weight: 800;
  text-decoration: none;
}
.mm-account-orders__status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: var(--mm-radius-pill);
  font-size: 10px;
  font-weight: 800;
  background: var(--mm-steel-50);
  color: var(--mm-steel-700);
  border: 1px solid var(--mm-steel-200);
  white-space: nowrap;
}
.mm-account-orders__status--completed,
.mm-account-orders__status--processing {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.mm-account-orders__status--on-hold,
.mm-account-orders__status--pending {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.mm-account-orders__status--cancelled,
.mm-account-orders__status--failed,
.mm-account-orders__status--refunded {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}
.mm-account-orders__action {
  padding: 0.45rem 0.75rem !important;
  min-height: 0 !important;
  font-size: 11px !important;
  box-shadow: none !important;
}
.mm-account-orders__pager {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Mobile: WC responsive table → stacked cards */
@media (max-width: 767px) {
  .mm-account-orders__table-wrap { border: 0; overflow: visible; }
  .mm-account-orders__table,
  .mm-account-orders__table tbody {
    display: block;
    width: 100%;
  }
  .mm-account-orders__table thead { display: none; }
  .mm-account-orders__table tbody tr {
    display: block;
    margin-bottom: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--mm-border-faint);
    border-radius: 0.85rem;
    background: #fff;
  }
  .mm-account-orders__table tbody td,
  .mm-account-orders__table tbody th {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0 !important;
    border: 0 !important;
    text-align: left;
  }
  .mm-account-orders__table tbody td::before,
  .mm-account-orders__table tbody th::before {
    content: attr(data-title);
    font-size: 10px;
    font-weight: 800;
    color: var(--mm-text-muted);
    text-align: right;
    flex-shrink: 0;
  }
}

/* Notices */
.mm-account-content .woocommerce-Message,
.mm-account-content .woocommerce-info,
.mm-account-content .woocommerce-message,
.mm-account-content .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error {
  border-radius: 0.75rem !important;
  border: 1px solid var(--mm-border-faint) !important;
  background: #fff !important;
  color: var(--mm-text-secondary) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 0.85rem 1rem !important;
  margin: 0 0 1rem !important;
  box-shadow: none !important;
  list-style: none;
}
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error {
  border-color: #fecdd3 !important;
  background: #fff1f2 !important;
  color: #9f1239 !important;
}

/* View order marks */
.mm-account-content mark {
  background: var(--mm-steel-50);
  color: var(--mm-steel-800);
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  font-weight: 800;
}
