/*
Theme Name: MedicAlert SA
Theme URI: https://www.medicalert.co.za/
Author: Medic Alert
Description: WooCommerce theme for MedicAlert Foundation of Southern Africa. Calm, clinical, WCAG-AA, mobile-first. Implements the approved "Product Detail" design template with shared header/footer chrome. South African context (Rand, Payfast, POPIA).
Version: 10.71
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 7.0
Text Domain: medicalert
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ma-red: #C8161D;
  --ma-red-dark: #A6131A;
  --ma-red-tint: #FBE9EA;
  --ma-emblem: #C8161D;
  --ma-azure: #0E66AC;
  --ma-navy: #0E4C84;
  --ma-navy-dark: #0A3A66;
  --ma-navy-input: #0B406F;
  --ma-navy-border: #2C6BA0;
  --ma-footer-text: #D7E5F1;
  --ma-footer-accent: #9FC6E8;
  --ma-ink: #25282C;
  --ma-ink-strong: #1B1E22;
  --ma-text: #52595F;
  --ma-text-2: #42484E;
  --ma-muted: #6A7178;
  --ma-muted-2: #5E666D;
  --ma-muted-3: #7A828A;
  --ma-slate: #3A3F45;
  --ma-strike: #8B9298;
  --ma-bg: #F4F6F8;
  --ma-line: #E1E5E9;
  --ma-line-2: #DCE2E7;
  --ma-line-3: #E7ECF0;
  --ma-line-4: #D6DEE5;
  --ma-line-5: #EEF1F4;
  --ma-green: #1F8A5B;
  --ma-gold: #C9A24B;
  --ma-wrap: 1180px;
  --ma-font: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ma-font-head: 'Libre Franklin', var(--ma-font);
  --ma-font-serif: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ma-font);
  color: var(--ma-ink);
  background: #FFFFFF;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.ma-wrap { max-width: var(--ma-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ma-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   UTILITY BAR
   ============================================================ */
.ma-utility { background: var(--ma-azure); color: #fff; font-size: 13px; }
.ma-utility__inner {
  max-width: var(--ma-wrap); margin: 0 auto; padding: 7px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ma-utility__phone { font-weight: 600; letter-spacing: .01em; color: #fff; }
.ma-utility__links { display: flex; gap: 18px; align-items: center; font-weight: 600; }
.ma-utility__links a { color: #fff; }
.ma-utility__social {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.2); align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--ma-font-serif);
}
/* Mobile: stack the utility bar into two tidy centred rows instead of a cramped
   left-aligned wrap. */
@media (max-width: 600px) {
  .ma-utility { font-size: 12.5px; }
  .ma-utility__inner { justify-content: center; gap: 4px 18px; padding: 6px 16px; }
  .ma-utility__phone { width: 100%; text-align: center; }
  .ma-utility__links { width: 100%; justify-content: center; gap: 14px; }
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.ma-header { background: #fff; border-bottom: 1px solid var(--ma-line); position: sticky; top: 0; z-index: 50; }
.ma-header__inner {
  max-width: var(--ma-wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ma-logo { display: flex; align-items: center; gap: 12px; }
.ma-logo__badge {
  display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: var(--ma-emblem);
  align-items: center; justify-content: center; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.ma-logo--image img { max-height: 60px; width: auto; }
.ma-logo__cross { position: relative; width: 22px; height: 22px; display: block; }
.ma-logo__cross::before,
.ma-logo__cross::after { content: ""; position: absolute; background: #fff; border-radius: 1px; }
.ma-logo__cross::before { left: 8px; top: 0; width: 6px; height: 22px; }
.ma-logo__cross::after { top: 8px; left: 0; width: 22px; height: 6px; }
.ma-logo__text { display: flex; flex-direction: column; line-height: 1; }
.ma-logo__word { font-family: var(--ma-font-serif); font-weight: 700; font-size: 25px; color: var(--ma-ink); letter-spacing: -.01em; }
.ma-logo__word span { color: var(--ma-red); }
.ma-logo__sub { font-size: 9.5px; letter-spacing: .18em; color: var(--ma-muted-2); font-weight: 600; margin-top: 3px; }

.ma-nav { display: flex; align-items: center; gap: 6px; }
.ma-nav__link { padding: 9px 12px; font-size: 15.5px; font-weight: 600; color: var(--ma-slate); border-radius: 6px; }
.ma-nav__link:hover { background: var(--ma-bg); color: var(--ma-red); }
.ma-nav__link.is-active { color: var(--ma-red); background: var(--ma-red-tint); }
.ma-nav__specials {
  margin-left: 6px; padding: 9px 16px; background: var(--ma-red); color: #fff;
  font-weight: 700; font-size: 14.5px; border-radius: 6px;
}
.ma-nav__specials:hover { background: var(--ma-red-dark); }
.ma-nav__icon {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--ma-slate);
}
.ma-nav__icon:hover { background: var(--ma-bg); }
.ma-nav__icon--search { margin-left: 8px; }
.ma-nav__search-glass {
  width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%;
  display: inline-block; position: relative;
}
.ma-nav__search-glass::after {
  content: ""; position: absolute; width: 7px; height: 2px; background: currentColor;
  transform: rotate(45deg); right: -5px; bottom: -1px;
}
.ma-nav__cart-icon { font-size: 18px; }

.ma-burger {
  border: 1px solid var(--ma-line); background: #fff; width: 46px; height: 44px; border-radius: 8px;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.ma-burger span { width: 22px; height: 2.5px; background: var(--ma-ink); border-radius: 2px; }
/* Search + cart shown beside the burger on mobile (the desktop nav is hidden there). */
.ma-mobile-actions { display: none; align-items: center; gap: 4px; margin-left: auto; }
/* 404 page */
.ma-404 { max-width: 640px; text-align: center; padding: 20px 0 10px; }
.ma-404__code { display: block; font-family: var(--ma-font-head, serif); font-weight: 800; font-size: clamp(64px, 12vw, 116px); line-height: 1; color: var(--ma-red, #C8161D); opacity: .16; letter-spacing: -.03em; }
.ma-404 .ma-h2 { margin: 4px 0 10px; }
.ma-404__intro { color: var(--ma-muted-2, #5E666D); font-size: 16.5px; margin: 0 auto 22px; max-width: 46ch; }
.ma-404__search { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 22px; }
.ma-404__input { flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid var(--ma-line-3, #D9E0E7); border-radius: 9px; font-size: 15px; font-family: inherit; }
.ma-404__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 480px) { .ma-404__search { flex-direction: column; } }

.ma-mobile-nav { border-top: 1px solid var(--ma-line); padding: 8px 16px 16px; display: none; }
.ma-mobile-nav.is-open { display: block; }
.ma-mobile-nav__link {
  display: block; padding: 12px 8px; font-size: 17px; font-weight: 600; color: var(--ma-slate);
  border-bottom: 1px solid var(--ma-line-5);
}
.ma-mobile-nav__link.is-active { color: var(--ma-red); }
.ma-mobile-nav__specials {
  display: block; margin-top: 14px; text-align: center; padding: 13px; background: var(--ma-red);
  color: #fff; font-weight: 700; border-radius: 8px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.ma-breadcrumb { max-width: var(--ma-wrap); margin: 0 auto; padding: 18px 24px 0; }
.ma-breadcrumb__nav { font-size: 13.5px; color: var(--ma-muted-3); display: flex; flex-wrap: wrap; gap: 7px; }
.ma-breadcrumb__nav a { color: var(--ma-muted-3); }
.ma-breadcrumb__nav a:hover { color: var(--ma-red); }
.ma-breadcrumb__current { color: var(--ma-slate); font-weight: 600; }

/* ============================================================
   PRODUCT MAIN
   ============================================================ */
.ma-product { max-width: var(--ma-wrap); margin: 0 auto; padding: 24px 24px 56px; }
.ma-product__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; }

/* Gallery */
.ma-gallery__main {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--ma-line);
  border-radius: 14px; overflow: hidden;
}
.ma-gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.ma-gallery__thumb {
  position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--ma-line); border-radius: 10px;
  overflow: hidden; padding: 0; background: none; cursor: pointer;
}
.ma-gallery__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-gallery__thumb.is-active { border-color: var(--ma-red); box-shadow: 0 0 0 1px var(--ma-red); }

/* Placeholder fill (used when no real image) */
.ma-imgph {
  position: absolute; inset: 0; width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--ma-muted-3);
  background: repeating-linear-gradient(135deg, #EEF2F6, #EEF2F6 14px, #E6ECF2 14px, #E6ECF2 28px);
}
.ma-imgph--sm { font-size: 11px; background: repeating-linear-gradient(135deg, #F1F4F7, #F1F4F7 10px, #EAEFF3 10px, #EAEFF3 20px); }
.ma-imgph--card { background: repeating-linear-gradient(135deg, #EEF2F6, #EEF2F6 12px, #E6ECF2 12px, #E6ECF2 24px); }

.ma-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--ma-red); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 6px;
}
.ma-badge--sm { top: 12px; left: 12px; font-size: 12px; padding: 4px 9px; border-radius: 5px; }

/* Summary */
.ma-summary__eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--ma-muted-3); margin-bottom: 10px; }
.ma-summary__title {
  font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.12;
  letter-spacing: -.02em; margin: 0 0 12px; color: var(--ma-ink-strong);
}
.ma-summary__lead { font-size: 16.5px; color: var(--ma-text); margin: 0 0 18px; max-width: 520px; }

.ma-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.ma-price__now { font-family: var(--ma-font-head); font-weight: 800; font-size: 30px; color: var(--ma-red-dark); }
.ma-price__was { text-decoration: line-through; color: var(--ma-strike); font-size: 18px; }
.ma-price__save { background: var(--ma-red-tint); color: var(--ma-red-dark); font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 5px; }
.ma-price__note { font-size: 13.5px; color: var(--ma-muted-2); margin: 0 0 26px; }
/* Name Your Price (donation) amount field */
.ma-nyp { margin: 0 0 18px; }
.ma-nyp__label { display: block; font-weight: 700; font-size: 14px; color: var(--ma-ink-strong, #1B1E22); margin-bottom: 10px; }
.ma-nyp__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ma-nyp__preset { background: var(--ma-red-tint, #F7E9EA); color: var(--ma-red-dark, #A6131A); border: 1px solid #F0CfD2; border-radius: 8px;
  padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: background .12s, color .12s; }
.ma-nyp__preset:hover { background: var(--ma-red, #C8161D); color: #fff; border-color: var(--ma-red, #C8161D); }
.ma-nyp__row { display: flex; align-items: stretch; max-width: 260px; border: 1.5px solid var(--ma-line-3, #D9E0E7); border-radius: 10px; overflow: hidden; }
.ma-nyp__cur { display: flex; align-items: center; padding: 0 14px; background: var(--ma-bg, #F4F6F8); font-weight: 800; color: var(--ma-navy, #0E4C84); font-size: 18px; }
.ma-nyp__row input { flex: 1; min-width: 0; border: none; padding: 14px 14px; font-size: 20px; font-weight: 700; color: var(--ma-ink-strong, #1B1E22); font-family: inherit; }
.ma-nyp__row input:focus { outline: none; }
.ma-nyp__row:focus-within { border-color: var(--ma-red, #C8161D); }
.ma-nyp__min { font-size: 12.5px; color: var(--ma-muted-2, #5E666D); margin: 8px 0 0; }
.ma-price__note--nyp { color: var(--ma-navy, #0E4C84); font-weight: 600; font-size: 15px; }

/* Variations */
.ma-variations { display: flex; flex-direction: column; gap: 22px; }
.ma-vargroup__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ma-vargroup__label { font-size: 14px; font-weight: 700; color: var(--ma-slate); text-transform: uppercase; letter-spacing: .04em; }
.ma-vargroup__value { font-size: 14px; color: var(--ma-text); }

.ma-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.ma-swatch {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 0 0 1px rgba(20,30,40,.22);
}
.ma-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ma-red); }

.ma-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-chip {
  padding: 10px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .12s; border: 1.5px solid var(--ma-line-4); background: #fff; color: var(--ma-slate);
}
.ma-chip.is-active { border-color: var(--ma-red); background: var(--ma-red-tint); color: var(--ma-red-dark); }

/* Quantity + add to cart */
.ma-buy { display: flex; gap: 14px; align-items: stretch; margin: 30px 0 0; flex-wrap: wrap; }
.ma-qty { display: flex; align-items: center; border: 1.5px solid var(--ma-line-4); border-radius: 8px; overflow: hidden; }
.ma-qty__btn { width: 46px; height: 52px; border: none; background: #fff; font-size: 22px; color: var(--ma-slate); cursor: pointer; }
.ma-qty__input {
  width: 48px; height: 52px; text-align: center; font-size: 17px; font-weight: 700; border: none;
  background: #fff; color: var(--ma-ink); font-family: inherit; -moz-appearance: textfield;
}
.ma-qty__input::-webkit-outer-spin-button,
.ma-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ma-addtocart {
  flex: 1; min-width: 200px; height: 52px; background: var(--ma-red); color: #fff; font-weight: 700;
  font-size: 17px; border: none; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 6px rgba(200,22,29,.25);
}
.ma-addtocart:hover { background: var(--ma-red-dark); }
.ma-stock { font-size: 13.5px; color: var(--ma-muted-2); margin: 14px 0 0; display: flex; align-items: center; gap: 8px; }
.ma-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ma-green); display: inline-block; }
.ma-stock__dot--out { background: var(--ma-strike); }

/* Membership notice */
.ma-membership { margin-top: 26px; background: var(--ma-bg); border: 1px solid var(--ma-line); border-radius: 12px; padding: 22px; }
.ma-membership__title { font-family: var(--ma-font-head); font-weight: 700; font-size: 17px; margin: 0 0 8px; color: var(--ma-ink-strong); }
.ma-membership__text { font-size: 15px; color: var(--ma-text); margin: 0 0 14px; }
.ma-membership__link { font-weight: 700; font-size: 15px; color: var(--ma-red-dark); }
.ma-membership__link:hover { color: var(--ma-red); }

/* ============================================================
   TABS
   ============================================================ */
.ma-tabs-section { background: var(--ma-bg); border-top: 1px solid var(--ma-line); }
.ma-tabs-section__inner { max-width: var(--ma-wrap); margin: 0 auto; padding: 48px 24px 56px; }
.ma-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--ma-line-2); margin-bottom: 30px; }
.ma-tab {
  padding: 13px 18px; font-size: 15.5px; font-weight: 700; cursor: pointer; border: none; background: none;
  font-family: inherit; margin-bottom: -1px; color: var(--ma-muted); border-bottom: 3px solid transparent;
}
.ma-tab.is-active { color: var(--ma-red-dark); border-bottom: 3px solid var(--ma-red); }
.ma-tabpanel { display: none; }
.ma-tabpanel.is-active { display: block; }

.ma-prose { max-width: 760px; font-size: 16.5px; color: var(--ma-text-2); line-height: 1.7; }
.ma-prose p { margin: 0 0 16px; }
.ma-prose p:last-child { margin: 0; }
.ma-prose--16 { font-size: 16px; }
.ma-prose strong { color: var(--ma-ink); }

.ma-rows { max-width: 680px; }
.ma-row {
  display: flex; justify-content: space-between; gap: 20px; padding: 13px 0;
  border-bottom: 1px solid var(--ma-line); font-size: 15.5px;
}
.ma-row__k { color: var(--ma-muted); }
.ma-row__v { color: var(--ma-ink); font-weight: 600; text-align: right; }
.ma-row--size .ma-row__k { color: var(--ma-ink); font-weight: 700; }
.ma-row--size .ma-row__v { color: var(--ma-muted); font-weight: 400; text-align: left; }
.ma-size-intro { font-size: 16px; color: var(--ma-text-2); margin: 0 0 20px; }

/* ============================================================
   RELATED
   ============================================================ */
.ma-related { background: #fff; padding: 56px 0; }
.ma-related__inner { max-width: var(--ma-wrap); margin: 0 auto; padding: 0 24px; }
.ma-related__title {
  font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -.02em; margin: 0 0 28px; color: var(--ma-ink-strong);
}
.ma-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ma-card { display: block; border: 1px solid var(--ma-line-3); border-radius: 12px; overflow: hidden; background: #fff; }
.ma-card:hover { border-color: #CDD4DA; box-shadow: 0 6px 18px rgba(20,30,40,.08); }
.ma-card__media { position: relative; aspect-ratio: 1 / 1; }
.ma-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-card__body { padding: 16px 16px 18px; }
.ma-card__name { font-size: 15.5px; font-weight: 600; margin: 0 0 12px; color: var(--ma-ink); line-height: 1.35; }
.ma-card__colours { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.ma-card__colour { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 0 0 1px rgba(20,30,40,.18); }
.ma-card__price { display: flex; align-items: baseline; gap: 8px; }
.ma-card__was { text-decoration: line-through; color: var(--ma-strike); font-size: 14px; }
.ma-card__now { color: var(--ma-red-dark); font-weight: 700; font-size: 16.5px; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.ma-trust { background: var(--ma-bg); border-top: 1px solid var(--ma-line); }
.ma-trust__inner {
  max-width: var(--ma-wrap); margin: 0 auto; padding: 26px 24px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center;
}
.ma-trust__item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ma-slate); }
.ma-trust__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ma-red); flex: none; }
/* Small red icon chip (old-site style, sized down to sit on one row). */
.ma-trust__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ma-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ma-trust__ico { width: 17px; height: 17px; }
/* Mobile: stack into ONE left-aligned column (icons line up), block centred. */
@media (max-width: 600px) {
  .ma-trust__inner { flex-direction: column; align-items: flex-start; gap: 16px; width: max-content; max-width: 100%; margin-inline: auto; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ma-footer { background: var(--ma-navy); color: var(--ma-footer-text); padding: 54px 0 0; }
/* Contact · Quick Links · Categories (Categories takes half the row). */
.ma-footer__grid { max-width: var(--ma-wrap); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 36px; align-items: start; }
/* Let grid cells shrink below their content's intrinsic width so a long,
   nowrap category name can't blow the column out (caused a 16px horizontal
   scroll on mobile). */
.ma-footer__grid > div { min-width: 0; }
.ma-footer__h { font-family: var(--ma-font-head); font-weight: 700; font-size: 16px; color: #fff; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .06em; }
.ma-footer__contact { font-size: 14.5px; line-height: 1.7; }
.ma-footer__contact p { margin: 0 0 10px; }
.ma-footer__contact p:last-child { margin: 0; }
.ma-footer__label { color: var(--ma-footer-accent); }
.ma-footer__contact strong { color: #fff; }
.ma-footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.ma-footer__links a { color: var(--ma-footer-text); }
.ma-footer__links a:hover { color: #fff; }
/* Two columns, each row the same height with the name on one line. */
/* Two columns filled top-to-bottom (column-major): the A–Z list runs DOWN the
   left column first, then continues down the right — so “Alloy” sits under
   “Accessories”, not beside it. */
.ma-footer__cats { columns: 2; column-gap: 28px; font-size: 14.5px; }
.ma-footer__cats a { display: block; margin-bottom: 11px; break-inside: avoid; color: var(--ma-footer-text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-footer__cats a:hover { color: #fff; }
.ma-footer__form { display: flex; flex-direction: column; gap: 10px; }
.ma-footer__field { font-size: 13px; color: var(--ma-footer-accent); }
.ma-footer__req { color: #F4A6AA; }
.ma-footer__input {
  width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--ma-navy-border);
  background: var(--ma-navy-input); color: #fff; border-radius: 6px; font-size: 14.5px; font-family: inherit;
}
.ma-footer__subscribe { margin-top: 4px; padding: 12px; background: var(--ma-red); color: #fff; font-weight: 700; border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
.ma-footer__subscribe:hover { background: var(--ma-red-dark); }
/* Newsletter — full-width horizontal band under the menu columns. */
.ma-footer__news { max-width: var(--ma-wrap); margin: 34px auto 0; padding: 26px 24px 0; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.ma-footer__news .ma-footer__h { margin: 0 0 4px; }
.ma-footer__news-copy { flex: 1 1 260px; }
.ma-footer__news-sub { margin: 0; font-size: 14px; color: var(--ma-footer-text); max-width: 42ch; }
.ma-footer__news-form { flex: 2 1 480px; }
.ma-footer__news .ma-footer__form { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; gap: 14px; }
.ma-footer__news [data-ma-news-fields] { display: flex; gap: 14px; flex: 1 1 auto; min-width: 0; margin: 0; }
.ma-footer__news .ma-footer__field { flex: 1 1 0; min-width: 0; }
.ma-footer__news .ma-footer__subscribe { margin-top: 0; white-space: nowrap; padding: 13px 26px; align-self: flex-end; flex: 0 0 auto; }
.ma-footer__news .ma-news__msg { flex-basis: 100%; }
/* Brevo embed → horizontal row. Covers both Brevo plugin generations by making
   the form and its inner containers flex rows and their field blocks share the
   width. Labels sit above each input; Subscribe drops to its own row. */
.ma-footer__news .ma-footer__brevo,
.ma-footer__news .ma-footer__brevo .sib_signup_form,
.ma-footer__news .ma-footer__brevo .sib-form,
.ma-footer__news .ma-footer__brevo #sib-form-container { width: 100%; max-width: none; }
.ma-footer__news .ma-footer__brevo form,
.ma-footer__news .ma-footer__brevo .sib_signup_form_inside,
.ma-footer__news .ma-footer__brevo #sib-form,
.ma-footer__news .ma-footer__brevo form > div { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 14px; width: 100%; }
/* The sibwp plugin wraps each field in a <p class="sib-*-area"> — treat ONLY those
   field paragraphs as flex columns so Email / First / Last share one row. (We must
   NOT flex every child — that force-shows Brevo's hidden loading spinner.) */
.ma-footer__news .ma-footer__brevo p[class*="-area"] { flex: 1 1 190px; min-width: 160px; margin: 0 !important; padding: 0 !important; box-sizing: border-box; }
/* Notices and the Subscribe button take a full row rather than a field slot. */
.ma-footer__news .ma-footer__brevo [class*="message-panel"],
.ma-footer__news .ma-footer__brevo [class*="sib-optin"],
.ma-footer__news .ma-footer__brevo p:not([class*="-area"]),
.ma-footer__news .ma-footer__brevo [class*="button"] { flex: 1 1 100% !important; }
.ma-footer__news .ma-footer__brevo input[type="submit"],
.ma-footer__news .ma-footer__brevo .sib-default-btn { width: auto !important; display: inline-block; }
/* Keep Brevo's own loading spinner / progress icon hidden (it only belongs during
   an AJAX submit, and must never show as a grey blob at rest). */
.ma-footer__news .ma-footer__brevo [class*="loader"],
.ma-footer__news .ma-footer__brevo [class*="spinner"],
.ma-footer__news .ma-footer__brevo [id*="loader"],
.ma-footer__news .ma-footer__brevo img[src*="loader"],
.ma-footer__news .ma-footer__brevo img[src*="spinner"],
.ma-footer__news .ma-footer__brevo img[src$=".gif"] { display: none !important; }
@media (max-width: 700px) {
  /* Stack copy over form and let each block size to its content. The desktop
     flex bases (260px / 480px) are WIDTHS; in a column they'd become HEIGHTS and
     inflate the band, so reset them and pin the stack to the top. */
  .ma-footer__news { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; }
  .ma-footer__news-copy,
  .ma-footer__news-form { flex: 0 0 auto; }
  .ma-footer__news .ma-footer__form { flex-direction: column; align-items: stretch; }
  .ma-footer__news [data-ma-news-fields] { flex-direction: column; }
  .ma-footer__news .ma-footer__subscribe { align-self: stretch; }
}
/* Ways-to-pay strip (above the copyright bar) */
.ma-paystrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px;
  margin-top: 44px; padding: 20px 24px 0; border-top: 1px solid rgba(255,255,255,.12); }
.ma-paystrip__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ma-footer-accent, #9fb6cf); }
.ma-paystrip__badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ma-pay { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 0 9px;
  background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.18); font-weight: 800; font-size: 13px; line-height: 1; }
.ma-pay svg { display: block; }
.ma-pay--visa { color: #1A1F71; font-style: italic; letter-spacing: .04em; font-size: 15px; }
.ma-pay--applepay { color: #000; font-weight: 600; font-size: 14px; }
.ma-pay--text { font-weight: 700; font-size: 12.5px; letter-spacing: .01em; }
.ma-pay--eft { color: #0A2C4E; }
.ma-pay--snapscan { color: #12100B; }
.ma-pay--zapper { color: #DA1A5D; }
.ma-pay--mobicred { color: #5A2D82; text-transform: lowercase; }
.ma-paystrip__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ma-footer-text, #c9d6e5); }
.ma-paystrip__lock { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 3px; position: relative; margin-top: 2px; }
.ma-paystrip__lock::before { content: ""; position: absolute; left: 2px; top: -5px; width: 8px; height: 7px; border: 2px solid currentColor; border-bottom: none; border-radius: 5px 5px 0 0; }
@media (max-width: 600px) { .ma-paystrip { gap: 10px; } .ma-paystrip__label { width: 100%; text-align: center; } }
.ma-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ma-footer__social { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 13px; font-family: var(--ma-font-serif, serif); text-decoration: none; transition: background .15s; }
.ma-footer__social:hover { background: var(--ma-red, #C8161D); color: #fff; }
.ma-footer__bar { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; background: var(--ma-navy-dark); }
.ma-wrap:has(.ma-paystrip) + .ma-footer__bar { margin-top: 28px; }
.ma-footer__copy { max-width: var(--ma-wrap); margin: 0 auto; padding: 18px 24px; background: transparent; font-size: 13px; color: var(--ma-footer-accent); text-align: center; }
/* Clickable footer contact links */
.ma-footer__contact a { color: inherit; text-decoration: none; transition: color .15s ease; }
.ma-footer__contact a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1139px) {
  .ma-related__grid { grid-template-columns: repeat(2, 1fr); }
  .ma-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .ma-product__grid { grid-template-columns: 1fr; gap: 28px; }
  .ma-nav { display: none; }
  .ma-burger { display: inline-flex; }
  .ma-mobile-actions { display: flex; }
}
@media (min-width: 900px) {
  .ma-mobile-nav { display: none !important; }
}
@media (max-width: 679px) {
  .ma-footer__grid { grid-template-columns: 1fr; }
  /* One readable column; let long category names wrap in full instead of
     being clipped with an ellipsis on a narrow screen. */
  .ma-footer__cats { columns: 1; }
  .ma-footer__cats a { white-space: normal; }
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
.ma-btn {
  display: inline-block; font-weight: 700; font-size: 17px; border-radius: 8px;
  padding: 15px 28px; cursor: pointer; border: 1.5px solid transparent; line-height: 1.2;
}
.ma-btn--primary { background: var(--ma-red); color: #fff; box-shadow: 0 2px 6px rgba(200,22,29,.25); }
.ma-btn--primary:hover { background: var(--ma-red-dark); }
.ma-btn--ghost { background: #fff; color: var(--ma-ink); border-color: #CDD4DA; }
.ma-btn--ghost:hover { border-color: var(--ma-azure); color: var(--ma-azure); }
.ma-btn--oncolor:hover { background: #fff; color: var(--ma-navy); }
.ma-btn--block { width: 100%; text-align: center; padding: 14px; font-size: 16px; }
.ma-btn--ondonate { align-self: flex-start; background: #fff; color: var(--ma-red); font-size: 16px; padding: 14px 28px; }
.ma-btn--ondonate:hover { background: var(--ma-ink-strong); color: #fff; }

.ma-center { display: flex; justify-content: center; }

.ma-section { padding: 74px 0; }
.ma-section--white { background: #fff; }
.ma-section--grey { background: var(--ma-bg); }
.ma-section--navy { background: var(--ma-navy); color: #fff; }

.ma-sectionhead { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.ma-sectionhead__intro { font-size: 18px; color: #4A5158; margin: 0; }
.ma-sectionhead__sub { font-size: 16.5px; color: var(--ma-text); margin: 10px 0 0; line-height: 1.55; }
.ma-section--tight { padding-top: 8px; }

/* About — Code of Conduct: numbered cards */
.ma-coc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ma-coc__card { background: #fff; border: 1px solid var(--ma-line-3); border-radius: 14px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.ma-coc__num { font-family: var(--ma-font-head); font-weight: 800; font-size: 30px; line-height: 1; color: var(--ma-red); }
.ma-coc__label { font-size: 15px; font-weight: 600; color: var(--ma-ink-strong); line-height: 1.4; }
@media (max-width: 980px) { .ma-coc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ma-coc { grid-template-columns: 1fr; } }

/* About — Who benefits: two-column tick list in a card */
.ma-benefits { max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid var(--ma-line-3); border-radius: 16px; padding: 34px 40px; }
.ma-benefits__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.ma-benefits__item { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ma-text); line-height: 1.45; }
.ma-benefits__tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ma-red-tint); color: var(--ma-red); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; margin-top: 1px; }
.ma-benefits__foot { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--ma-line-3); text-align: center; color: var(--ma-text); font-size: 16px; line-height: 1.55; }
@media (max-width: 700px) { .ma-benefits { padding: 26px 22px; } .ma-benefits__list { grid-template-columns: 1fr; } }
.ma-h2 { font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(26px,3vw,36px); letter-spacing: -.02em; margin: 0 0 14px; color: var(--ma-ink-strong); }
.ma-h2--light { color: #fff; }
.ma-h2--sm { font-size: clamp(24px,2.7vw,32px); }
.ma-h2--xs { font-size: 24px; letter-spacing: -.01em; margin: 0 0 10px; }
.ma-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; margin-bottom: 12px; }
.ma-eyebrow--light { color: var(--ma-footer-accent); }

.ma-grid { display: grid; gap: 22px; }
.ma-grid--4 { grid-template-columns: repeat(4,1fr); }
.ma-grid--3 { grid-template-columns: repeat(3,1fr); }
.ma-grid--5 { grid-template-columns: repeat(5,1fr); gap: 18px; }
/* Centred variant — cards flow and centre so 1 or 2 items don't sit lonely on
   the left (used by the About "In members' words" section). */
.ma-grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
.ma-grid--center > * { flex: 1 1 300px; max-width: 360px; }

/* Hero */
.ma-hero { background: var(--ma-bg); }
.ma-hero__inner { max-width: var(--ma-wrap); margin: 0 auto; padding: 76px 24px; display: flex; align-items: center; gap: 48px; }
.ma-hero__copy { flex: 1; min-width: 0; }
.ma-hero__media { flex: 1; min-width: 0; width: 100%; }
.ma-hero__eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .13em; color: var(--ma-red-dark); background: var(--ma-red-tint); padding: 6px 12px; border-radius: 100px; margin-bottom: 22px; }
.ma-hero__title { font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(30px,4.4vw,50px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; color: var(--ma-ink-strong); }
.ma-hero__lead { font-size: clamp(17px,1.5vw,19.5px); color: #4A5158; max-width: 560px; margin: 0 0 30px; }
.ma-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.ma-hero__note { font-size: 14.5px; color: var(--ma-muted-2); margin: 0; }
.ma-hero__frame { position: relative; width: 100%; aspect-ratio: 4/3; border: 1px solid var(--ma-line-4); border-radius: 14px; overflow: hidden; }
.ma-hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Emergency steps */
.ma-estep { background: var(--ma-bg); border: 1px solid var(--ma-line-3); border-radius: 12px; padding: 26px; }
.ma-section--white .ma-estep { background: var(--ma-bg); }
.ma-estep__num { width: 42px; height: 42px; border-radius: 50%; background: var(--ma-red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--ma-font-head); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.ma-estep__title { font-family: var(--ma-font-head); font-weight: 700; font-size: 18.5px; margin: 0 0 8px; color: var(--ma-ink-strong); }
.ma-estep__body { font-size: 15.5px; color: var(--ma-text); margin: 0; }
.ma-emergency-pill-wrap { margin-top: 30px; display: flex; justify-content: center; }
.ma-emergency-pill { display: inline-flex; align-items: center; gap: 12px; background: var(--ma-red-tint); border: 1px solid #F3CFD2; border-radius: 100px; padding: 10px 22px; font-size: 15.5px; color: #7A1218; font-weight: 600; text-decoration: none; transition: background .14s; }
a.ma-emergency-pill:hover { background: #F6DADC; color: #7A1218; }
.ma-emergency-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ma-red); display: inline-block; }
.ma-emergency-pill strong { color: var(--ma-red-dark); }

/* Membership steps (navy) */
.ma-mstep { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 30px; }
.ma-mstep__num { font-family: var(--ma-font-head); font-weight: 800; font-size: 40px; color: #7FB3DD; line-height: 1; margin-bottom: 14px; }
.ma-mstep__title { font-family: var(--ma-font-head); font-weight: 700; font-size: 21px; margin: 0 0 10px; color: #fff; }
.ma-mstep__body { font-size: 15.5px; color: var(--ma-footer-text); margin: 0; }
.ma-section--navy .ma-center { margin-top: 38px; }

/* Featured products row head */
.ma-rowhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.ma-rowhead__sub { font-size: 16.5px; color: var(--ma-text); margin: 8px 0 0; }
.ma-rowhead__link { font-weight: 700; font-size: 16px; color: var(--ma-red-dark); white-space: nowrap; }
.ma-rowhead__link:hover { color: var(--ma-red); }

/* Conditions */
.ma-cond { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ma-line-3); border-radius: 12px; padding: 24px 20px; }
.ma-cond:hover { border-color: var(--ma-red); box-shadow: 0 6px 18px rgba(20,30,40,.07); }
.ma-cond__rule { width: 34px; height: 4px; background: var(--ma-red); border-radius: 3px; margin-bottom: 16px; }
.ma-cond__name { font-family: var(--ma-font-head); font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--ma-ink-strong); }
.ma-cond__body { font-size: 14.5px; color: var(--ma-text); margin: 0 0 16px; flex: 1; }
.ma-cond__more { font-size: 14.5px; font-weight: 700; color: var(--ma-red-dark); }

/* Partners */
.ma-partners { padding: 60px 0; background: #fff; border-top: 1px solid var(--ma-line-5); }
.ma-partners__label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .13em; color: var(--ma-muted-3); margin: 0 0 32px; }
.ma-partners__grid { align-items: stretch; }
.ma-partner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; }
/* Square logo tile — sized to the square logos the foundation supplies. */
.ma-partner__logo { width: 100%; max-width: 180px; aspect-ratio: 1 / 1; margin: 0 auto; border: 1px solid var(--ma-line-3); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.ma-partner__logo--empty { border-style: dashed; background: repeating-linear-gradient(135deg,#F6F8FA,#F6F8FA 10px,#EFF3F6 10px,#EFF3F6 20px); }
a.ma-partner:hover .ma-partner__logo { border-color: var(--ma-red); box-shadow: 0 6px 18px rgba(20,30,40,.08); }
.ma-partner__logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.ma-partner__ph { font-family: var(--ma-font-head); font-weight: 700; font-size: 13px; color: #8A929A; line-height: 1.25; }
.ma-partner__name { font-size: 14px; font-weight: 600; color: var(--ma-ink-strong); line-height: 1.3; }
a.ma-partner:hover .ma-partner__name { color: var(--ma-red-dark); }

/* Newsletter + Donate */
.ma-cta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.ma-news { background: #fff; border: 1px solid var(--ma-line-3); border-radius: 14px; padding: 34px; }
.ma-news__text { font-size: 16px; color: var(--ma-text); margin: 0 0 22px; }
.ma-news__form { display: flex; flex-direction: column; gap: 12px; }
.ma-news__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-news__row input { flex: 1; min-width: 140px; padding: 13px 14px; border: 1.5px solid var(--ma-line-4); border-radius: 8px; font-size: 15.5px; font-family: inherit; }
.ma-news__note { font-size: 12.5px; color: var(--ma-muted-3); margin: 14px 0 0; }
.ma-donate { background: var(--ma-red); border-radius: 14px; padding: 34px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.ma-donate__text { font-size: 16px; color: #FCE3E4; margin: 0 0 22px; }

@media (max-width: 1139px) {
  .ma-grid--4 { grid-template-columns: repeat(2,1fr); }
  .ma-grid--5 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 899px) {
  .ma-hero__inner { flex-direction: column; align-items: stretch; padding: 40px 24px; }
  .ma-grid--4, .ma-grid--3 { grid-template-columns: 1fr; }
  .ma-grid--5 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 759px) {
  .ma-cta-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HERO (conditions index, partners)
   ============================================================ */
.ma-pagehero { background: var(--ma-bg); }
.ma-pagehero__inner { max-width: 880px; margin: 0 auto; padding: 60px 24px 50px; text-align: center; }
.ma-pagehero__eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .13em; color: var(--ma-red-dark); background: var(--ma-red-tint); padding: 6px 12px; border-radius: 100px; margin-bottom: 20px; }
.ma-pagehero__title { font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(28px,3.6vw,44px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; color: var(--ma-ink-strong); }
.ma-pagehero__intro { font-size: clamp(17px,1.6vw,19.5px); color: #4A5158; margin: 0 auto; max-width: 580px; }

/* Optional header background image (set per page in MedicAlert → Pages).
   A dark scrim is baked into the inline background so text stays readable. */
.ma-pagehero--image { background-size: cover; background-position: center; }
.ma-pagehero--image .ma-pagehero__inner { padding-top: 92px; padding-bottom: 84px; }
.ma-pagehero--image .ma-pagehero__title { color: #fff; }
.ma-pagehero--image .ma-pagehero__intro { color: rgba(255,255,255,.92); }
.ma-pagehero--image .ma-pagehero__eyebrow { background: rgba(255,255,255,.18); color: #fff; }
/* Contact top header with an image */
.ma-contact-top.ma-pagehero--image { background-size: cover; background-position: center; }
.ma-contact-top.ma-pagehero--image .ma-h2,
.ma-contact-top.ma-pagehero--image .ma-contact-top__intro { color: #fff; }
.ma-contact-top.ma-pagehero--image .ma-wrap { padding-top: 30px; padding-bottom: 30px; }
/* Membership split header with an image: keep the left text readable */
.ma-pagehero--split.ma-pagehero--image .ma-pagehero__title,
.ma-pagehero--split.ma-pagehero--image .ma-pagehero__eyebrow { color: #fff; }

.ma-condsearch { position: relative; max-width: 440px; margin: 28px auto 0; }
.ma-condsearch input { width: 100%; padding: 14px 16px 14px 44px; border: 1.5px solid var(--ma-line-4); border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff; }
.ma-condsearch input:focus { border-color: var(--ma-azure); outline: none; }
.ma-condsearch__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 2px solid #9298A0; border-radius: 50%; }

.ma-grid--cond { grid-template-columns: repeat(3,1fr); gap: 20px; }
.ma-grid--cond .ma-cond { padding: 28px; border-radius: 14px; }
.ma-grid--cond .ma-cond__name { font-size: 21px; margin-bottom: 10px; }
.ma-grid--cond .ma-cond__rule { margin-bottom: 18px; }
.ma-cond[hidden] { display: none; }
.ma-cond-empty { text-align: center; padding: 40px 0; color: var(--ma-muted); font-size: 17px; }

/* ============================================================
   SINGLE CONDITION
   ============================================================ */
.ma-hero--page .ma-hero__inner { padding: 48px 24px 56px; }
.ma-condprose { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.ma-condprose p { font-size: 17px; color: var(--ma-text-2); margin: 0 0 16px; line-height: 1.7; }
.ma-condprose p:last-child { margin: 0; }
.ma-flow__num { width: 40px; height: 40px; border-radius: 50%; background: var(--ma-red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--ma-font-head); font-weight: 700; font-size: 18px; margin-bottom: 16px; }

.ma-checkwrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.ma-center-text { text-align: center; margin-bottom: 28px; }
.ma-checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ma-check { display: flex; gap: 12px; align-items: flex-start; background: var(--ma-bg); border: 1px solid var(--ma-line-3); border-radius: 10px; padding: 16px 18px; }
.ma-check__tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ma-red-tint); color: var(--ma-red); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; margin-top: 1px; }
.ma-check__text { font-size: 15px; color: var(--ma-slate); }

.ma-condcta { max-width: 640px; margin: 0 auto; padding: 0 24px; text-align: center; }
.ma-condcta .ma-h2 { margin-bottom: 20px; }

.ma-relcond__head { font-family: var(--ma-font-head); font-weight: 700; font-size: 20px; margin: 0 0 22px; color: var(--ma-ink-strong); }
.ma-relcond__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ma-relcond { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ma-line-3); border-radius: 10px; padding: 18px 20px; background: #fff; }
.ma-relcond:hover { border-color: var(--ma-red); }
.ma-relcond:hover .ma-relcond__name { color: var(--ma-red); }
.ma-relcond__name { font-weight: 700; font-size: 16px; color: var(--ma-ink-strong); }
.ma-relcond__arrow { color: var(--ma-red-dark); font-weight: 700; }

/* ============================================================
   PARTNERS
   ============================================================ */
.ma-partnercard { border: 1px solid var(--ma-line-3); border-radius: 14px; padding: 24px; background: #fff; display: flex; flex-direction: column; }
.ma-partnercard__logo { width: 100%; max-width: 180px; aspect-ratio: 1 / 1; border-radius: 8px; background: #fff; border: 1px solid var(--ma-line-3); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; padding: 16px; overflow: hidden; }
.ma-partnercard__logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.ma-partnercard__ph { font-family: ui-monospace,Menlo,monospace; font-size: 11px; color: #8A929A; }
/* Single partner page */
.ma-partner-single { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.ma-partner-single__media { position: sticky; top: 90px; }
.ma-partner-single__logo { width: 100%; aspect-ratio: 1/1; border: 1px solid var(--ma-line-3); border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 22px; margin-bottom: 16px; }
.ma-partner-single__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ma-partner-single__body { max-width: 680px; }
.ma-partner-single__back { margin-top: 24px; }
.ma-partner-single__back a { color: var(--ma-red-dark); font-weight: 600; }
@media (max-width: 820px) { .ma-partner-single { grid-template-columns: 1fr; gap: 24px; } .ma-partner-single__media { position: static; max-width: 280px; } }

.ma-partnercard__name { font-family: var(--ma-font-head); font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--ma-ink-strong); }
.ma-partnercard__body { font-size: 14.5px; color: var(--ma-text); margin: 0 0 16px; flex: 1; }
.ma-partnercard__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ma-partnercard__more { font-size: 14.5px; font-weight: 700; color: var(--ma-navy); position: relative; z-index: 2; }
.ma-partnercard__link { font-size: 14.5px; font-weight: 700; color: var(--ma-red-dark); position: relative; z-index: 2; }
.ma-partnercard__link:hover { color: var(--ma-red); }
/* Whole card links to the on-site partner page; the external "Visit website"
   button sits above the cover so it still opens the partner's own site. */
.ma-partnercard--link { position: relative; cursor: pointer; }
.ma-partnercard__cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; text-indent: -9999px; overflow: hidden; }
.ma-partnercard__cover:focus-visible { outline: 3px solid var(--ma-azure); outline-offset: 2px; }
body:not(.ma-motion-off) .ma-partnercard--link:hover .ma-partnercard__more { color: var(--ma-red-dark); }

.ma-navycta { max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; }
.ma-navycta__text { font-size: 17.5px; color: var(--ma-footer-text); margin: 0 auto 28px; max-width: 560px; }

@media (max-width: 979px) {
  .ma-grid--cond { grid-template-columns: repeat(2,1fr); }
  .ma-relcond__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 639px) {
  .ma-grid--cond { grid-template-columns: 1fr; }
  .ma-checkgrid { grid-template-columns: 1fr; }
  .ma-relcond__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CART
   ============================================================ */
.ma-cart { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 30px; align-items: start; }
.ma-cart__items { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ma-cartline { display: flex; gap: 18px; border: 1px solid var(--ma-line-3); border-radius: 12px; padding: 16px; background: #fff; }
.ma-cartline__img { position: relative; width: 96px; height: 96px; flex: none; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(135deg,#EEF2F6,#EEF2F6 10px,#E6ECF2 10px,#E6ECF2 20px); }
.ma-cartline__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-cartline__body { flex: 1; min-width: 0; }
.ma-cartline__top { display: flex; justify-content: space-between; gap: 12px; }
.ma-cartline__name { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--ma-ink-strong); }
.ma-cartline__remove { border: none; background: none; color: #9298A0; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ma-cartline__remove:hover { color: var(--ma-red); }
.ma-cartline__variation { font-size: 13.5px; color: var(--ma-muted); margin: 0 0 12px; }
.ma-cartline__variation dl, .ma-cartline__variation p { margin: 0; }
.ma-cartline__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ma-cartqty { display: flex; align-items: center; border: 1.5px solid var(--ma-line-4); border-radius: 8px; overflow: hidden; }
.ma-cartqty__btn { width: 36px; height: 38px; border: none; background: #fff; font-size: 18px; color: var(--ma-slate); cursor: pointer; }
.ma-cartqty__input { width: 44px; height: 38px; text-align: center; font-size: 15px; font-weight: 700; border: none; background: #fff; color: var(--ma-ink); font-family: inherit; -moz-appearance: textfield; }
.ma-cartqty__input::-webkit-outer-spin-button, .ma-cartqty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Sold-individually / donation lines: show a plain "Qty 1", not an empty editable box. */
.ma-cartqty--fixed { border: none; border-radius: 0; overflow: visible; height: 38px; padding: 0; font-size: 14px; font-weight: 600; color: var(--ma-slate); background: none; }
.ma-cartline__total { font-weight: 700; font-size: 16.5px; color: var(--ma-ink-strong); }

.ma-cart__nudge { background: #FBF3E9; border: 1px solid #EBD9C2; border-radius: 12px; padding: 20px 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.ma-cart__nudge-text strong { font-family: var(--ma-font-head); font-size: 16px; color: #8A5A1A; display: block; margin-bottom: 2px; }
.ma-cart__nudge-text span { font-size: 14.5px; color: #7A6242; }
.ma-cart__nudge-btn { padding: 11px 20px; background: var(--ma-red); color: #fff; font-weight: 700; font-size: 14.5px; border: none; border-radius: 8px; cursor: pointer; }
.ma-cart__nudge-btn:hover { background: var(--ma-red-dark); }

/* Update cart — always visible; commits quantity changes (including qty 0 to remove). */
.ma-cart-update { margin-top: 8px; align-self: flex-start; padding: 11px 20px; background: var(--ma-navy); color: #fff; border: 0; border-radius: 8px; font-weight: 700; font-size: 14.5px; font-family: var(--ma-font-head); cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.ma-cart-update:hover { background: var(--ma-azure); }
.ma-cart-update[disabled] { opacity: .5; cursor: default; }

.ma-cart__summary { border: 1px solid var(--ma-line); border-radius: 14px; padding: 26px; background: #FAFBFC; position: sticky; top: 90px; }
.ma-cart__summary-title { font-family: var(--ma-font-head); font-weight: 700; font-size: 19px; margin: 0 0 18px; color: var(--ma-ink-strong); }
.ma-cart__summary-rows { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ma-text-2); }
.ma-cart__summary-row { display: flex; justify-content: space-between; }
.ma-cart__summary-row span:last-child { font-weight: 600; }
.ma-cart__save { color: var(--ma-green) !important; }
.ma-cart__summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; padding-top: 18px; border-top: 1px solid var(--ma-line); }
.ma-cart__summary-total > span:first-child { font-weight: 700; font-size: 17px; }
.ma-cart__total-val { font-family: var(--ma-font-head); font-weight: 800; font-size: 24px; color: var(--ma-ink-strong); }
.ma-cart__checkout { display: block; text-align: center; padding: 15px; background: var(--ma-red); color: #fff; font-weight: 700; font-size: 16.5px; border-radius: 9px; margin-bottom: 12px; }
.ma-cart__checkout:hover { background: var(--ma-red-dark); }
.ma-cart__continue { display: block; text-align: center; font-size: 14.5px; color: var(--ma-muted-2); font-weight: 600; }
.ma-cart__continue:hover { color: var(--ma-red); }
.ma-cart__secure { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 18px; font-size: 13px; color: var(--ma-muted-3); }
.ma-cart__secure-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ma-green); }

.ma-cart-empty { border: 1px dashed var(--ma-line-4); border-radius: 12px; padding: 40px; text-align: center; color: var(--ma-muted); }
.ma-cart-empty p { margin: 0 0 16px; font-size: 16px; }
.ma-cart-empty a { font-weight: 700; color: var(--ma-red-dark); }

@media (max-width: 899px) {
  .ma-cart { grid-template-columns: 1fr; }
  .ma-cart__summary { position: static; }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.ma-heroslider { position: relative; overflow: hidden; }
.ma-hero__slide { display: none; }
.ma-hero__slide.is-active { display: block; animation: ma-fade .5s ease; }
@keyframes ma-fade { from { opacity: 0; } to { opacity: 1; } }
.ma-heroslider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ma-line-4);
  background: rgba(255,255,255,.92); color: var(--ma-ink-strong); font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(20,30,40,.12);
}
.ma-heroslider__arrow:hover { background: #fff; color: var(--ma-red); }
.ma-heroslider__arrow--prev { left: 18px; }
.ma-heroslider__arrow--next { right: 18px; }
.ma-heroslider__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; gap: 9px; justify-content: center; z-index: 3; }
.ma-heroslider__dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(27,30,34,.25); cursor: pointer; padding: 0; }
.ma-heroslider__dot.is-active { background: var(--ma-red); }
@media (max-width: 899px) {
  .ma-heroslider__arrow { display: none; }
}

/* ============================================================
   WOOCOMMERCE — shared width + buttons + notices
   ============================================================ */
.ma-wc { padding-top: 32px; padding-bottom: 56px; }
.woocommerce .button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button, .woocommerce #place_order, .woocommerce button.button.alt {
  background: var(--ma-red); color: #fff; border: none; border-radius: 8px;
  font-weight: 700; padding: 11px 18px; cursor: pointer; font-family: inherit;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button:hover, .woocommerce #place_order:hover, .woocommerce button.button.alt:hover { background: var(--ma-red-dark); color: #fff; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
  border-top-color: var(--ma-red); border-radius: 8px;
}
.woocommerce .woocommerce-message a.button, .woocommerce .woocommerce-info a.button { padding: 8px 14px; }

/* Shop archive */
.woocommerce-products-header__title, .woocommerce .page-title {
  font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(26px,3vw,36px);
  letter-spacing: -.02em; color: var(--ma-ink-strong); margin: 0 0 16px;
}
.woocommerce .woocommerce-result-count { color: var(--ma-muted); font-size: 14.5px; }
.woocommerce .woocommerce-ordering select { padding: 8px 10px; border: 1.5px solid var(--ma-line-4); border-radius: 8px; }
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 24px 0 0; padding: 0;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto; float: none; margin: 0; border: 1px solid var(--ma-line-3); border-radius: 12px;
  overflow: hidden; background: #fff; padding: 0 0 16px; text-align: left;
}
.woocommerce ul.products li.product:hover { border-color: #CDD4DA; box-shadow: 0 6px 18px rgba(20,30,40,.08); }
.woocommerce ul.products li.product a img { margin: 0 0 12px; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15.5px; font-weight: 600; color: var(--ma-ink); padding: 0 16px; margin: 0 0 8px; line-height: 1.35;
}
.woocommerce ul.products li.product .price { color: var(--ma-red-dark); font-weight: 700; font-size: 16.5px; padding: 0 16px; display: block; }
.woocommerce ul.products li.product .price del { color: var(--ma-strike); font-weight: 400; font-size: 14px; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin: 12px 16px 0; display: inline-block; }
.woocommerce span.onsale {
  background: var(--ma-red); color: #fff; border-radius: 5px; font-weight: 700; font-size: 12px;
  min-height: auto; min-width: auto; padding: 4px 9px; top: 12px; left: 12px; margin: 0; line-height: 1.4;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.ma-checkout-head h1 { margin: 0 0 6px; }
.ma-checkout-back { font-size: 16px; color: var(--ma-muted-2); margin: 0 0 28px; }
.ma-checkout-back a { color: var(--ma-red-dark); font-weight: 600; }
.woocommerce-checkout .ma-wc { max-width: 1080px; }
@media (min-width: 920px) {
  /* Two columns via floats so the order summary stacks on the right
     independently of the (taller) billing column — no grid empty-row gaps. */
  .woocommerce form.checkout.woocommerce-checkout { display: block; }
  .woocommerce form.checkout.woocommerce-checkout::after { content: ""; display: block; clear: both; }
  /* MedicAlert details: full width, very top, above everything. */
  .woocommerce form.checkout .ma-checkout-extra { width: 100%; margin: 0 0 28px; }
  .woocommerce form.checkout #customer_details { float: left; width: calc(100% - 454px); }
  .woocommerce form.checkout #order_review_heading { float: right; width: 420px; clear: right; margin: 0 0 14px; }
  .woocommerce form.checkout #order_review { float: right; width: 420px; clear: right; }
  .woocommerce form.checkout .ma-checkout-next { float: right; width: 420px; clear: right; }
}
.woocommerce #customer_details { display: block; }
.woocommerce #customer_details .col-1, .woocommerce #customer_details .col-2 { width: 100%; float: none; max-width: none; margin: 0 0 18px; }
.woocommerce #customer_details .col-2:last-child { margin-bottom: 0; }

/* Cards: billing, order notes, order review */
.woocommerce .woocommerce-billing-fields, .woocommerce .woocommerce-additional-fields, .woocommerce #order_review {
  border: 1px solid var(--ma-line); border-radius: 14px; padding: 26px; background: #fff; box-shadow: var(--ma-shadow-1);
}
.woocommerce .woocommerce-billing-fields h3, .woocommerce .woocommerce-additional-fields h3,
.woocommerce #order_review_heading {
  font-family: var(--ma-font-head); font-weight: 700; font-size: 19px; color: var(--ma-ink-strong); margin: 0 0 18px;
}
.woocommerce form .form-row label { font-size: 13.5px; font-weight: 600; color: var(--ma-slate); margin-bottom: 6px; }
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .woocommerce .select2-container .select2-selection {
  border: 1.5px solid var(--ma-line-4); border-radius: 8px; padding: 11px 13px; font-size: 15px; font-family: inherit;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 28px; }

/* Order review card */
.woocommerce #order_review { padding-top: 22px; }
.woocommerce table.shop_table { border: none; margin: 0; }
.woocommerce #order_review .shop_table th, .woocommerce #order_review .shop_table td { border-top: 1px solid var(--ma-line-5); padding: 12px 0; font-size: 14.5px; }
.woocommerce #order_review .shop_table .order-total th, .woocommerce #order_review .shop_table .order-total td { border-top: 2px solid var(--ma-line-3); padding-top: 16px; }
.woocommerce #order_review .shop_table .order-total .amount { font-family: var(--ma-font-head); font-size: 22px; color: var(--ma-ink-strong); }
.woocommerce #payment { background: transparent; border-radius: 0; padding: 0; margin-top: 18px; }
.woocommerce #payment ul.payment_methods { border: 1px solid var(--ma-line-4); border-radius: 10px; background: #FAFBFC; padding: 14px 16px; margin: 0 0 16px; }
.woocommerce #payment div.payment_box { background: #fff; border: 1px solid var(--ma-line-4); }
.woocommerce #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce #place_order { width: 100%; padding: 16px; font-size: 17px; border-radius: 10px; box-shadow: 0 2px 6px rgba(200,22,29,.25); }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text p { font-size: 12.5px; color: var(--ma-muted-2); }

/* "What happens after payment" reassurance — sits under the order summary (right column) */
.ma-checkout-next { border: 1px solid #CFE0CF; border-radius: 14px; padding: 22px; background: #F1F8F3; margin-top: 18px; }
.ma-checkout-next h3 { font-family: var(--ma-font-head); font-weight: 700; font-size: 16px; margin: 0 0 12px; color: #1F5B3A; }
.ma-checkout-next__step { display: flex; gap: 9px; font-size: 14px; color: #3A5A47; margin-bottom: 10px; }
.ma-checkout-next__step:last-child { margin-bottom: 0; }
.ma-checkout-next__step span { color: var(--ma-green); font-weight: 700; }

/* Custom checkout fields (e.g. Membership Number) — own block, top of checkout */
.ma-checkout-extra { border: 1px solid var(--ma-line-3); border-left: 4px solid var(--ma-red); border-radius: 14px; padding: 22px 24px; background: #fff; margin: 0 0 8px; box-shadow: var(--ma-shadow-1); }
.ma-checkout-extra h3 { font-family: var(--ma-font-head); font-weight: 700; font-size: 17px; margin: 0 0 6px; color: var(--ma-ink-strong); }
.ma-checkout-extra__intro { font-size: 14px; color: var(--ma-muted-2); margin: 0 0 16px; }
@media (min-width: 920px) { .ma-checkout-extra .form-row { max-width: 460px; } }
.ma-checkout-extra .form-row { margin-bottom: 0; }
/* MedicAlert details on the order/thank-you view */
.ma-order-fields-table th { text-align: left; white-space: nowrap; padding-right: 16px; }

/* ============================================================
   MY ACCOUNT
   ============================================================ */
@media (min-width: 760px) {
  .woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
  .woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  .woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: 2; }
  .woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; grid-row: 2; }
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ma-line); border-radius: 12px; overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--ma-line-5); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; font-weight: 600; color: var(--ma-slate); }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--ma-bg); color: var(--ma-red); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--ma-red); background: var(--ma-red-tint); }
.woocommerce-account .woocommerce-MyAccount-content { font-size: 15.5px; color: var(--ma-text-2); }
.woocommerce-account .woocommerce-MyAccount-content h2, .woocommerce-account .woocommerce-MyAccount-content h3 {
  font-family: var(--ma-font-head); color: var(--ma-ink-strong);
}
.woocommerce-account table.account-orders-table, .woocommerce table.shop_table { border-radius: 10px; }
/* Addresses (My Account → Addresses): two tidy cards instead of WooCommerce's
   floated columns. */
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 6px 0 0; }
/* WooCommerce adds clearfix ::before/::after that become stray grid cells and
   stagger the columns — remove them. */
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { content: none; display: none; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .woocommerce-Addresses > div { width: auto; float: none; }
.woocommerce-account .woocommerce-Address { border: 1px solid var(--ma-line); border-radius: 12px; padding: 20px 22px; background: #fff; }
.woocommerce-account .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.woocommerce-account .woocommerce-Address-title h3 { margin: 0; font-size: 18px; }
.woocommerce-account .woocommerce-Address-title .edit { font-weight: 700; font-size: 14px; color: var(--ma-red-dark); white-space: nowrap; }
.woocommerce-account .woocommerce-Address-title .edit:hover { color: var(--ma-red); }
.woocommerce-account .woocommerce-Address address { font-style: normal; color: var(--ma-text-2); line-height: 1.7; margin: 0; }
@media (max-width: 640px) { .woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; } }

/* ============================================================
   HERO SLIDER v7 — full-bleed image slides + overlay + effects
   ============================================================ */
.ma-hero__slide--image {
  position: relative; min-height: 520px; align-items: center;
  background-image: var(--hero-img);
  background-size: cover; background-position: var(--hero-pos, center center); background-repeat: no-repeat; color: #fff;
}
/* Only the active image slide shows (base .ma-hero__slide is display:none).
   Keep it display:block — making the slide a flex container turned the inner
   into a flex item that shrank to its content and centred itself, pushing the
   copy far to the right. As a block, the inner keeps max-width + margin:auto,
   so the copy lines up with the rest of the page. Vertical centring is done by
   the inner (it is display:flex with min-height + align-items:center). */
.ma-hero__slide--image.is-active { display: block; }
.ma-hero__overlay { position: absolute; inset: 0; z-index: 1; }
.ma-hero__slide--image .ma-hero__inner { position: relative; z-index: 2; min-height: 520px; align-items: center; }
/* Keep every homepage slide the same height (the product-showcase card is the
   tallest) so the slider doesn't resize/jump when it changes slide — applies to
   all slide types (manual, image and product). */
.ma-heroslider .ma-hero__slide,
.ma-heroslider .ma-hero__inner { min-height: 780px; }
@media (max-width: 700px) {
  .ma-heroslider .ma-hero__slide,
  .ma-heroslider .ma-hero__inner { min-height: 460px; }
  /* Use the mobile image + mobile focal point when set; otherwise fall back to
     the desktop image (and its focal) so nothing breaks on older slides. */
  .ma-hero__slide--image {
    background-image: var(--hero-img-mobile, var(--hero-img));
    background-position: var(--hero-pos-mobile, var(--hero-pos, center center));
  }
  /* A gentle top scrim so the headline stays legible over a subject-filled
     mobile image (the horizontal desktop overlay barely darkens the right). */
  .ma-hero__slide--image::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(14,76,132,.5) 0%, rgba(14,76,132,.16) 40%, rgba(0,0,0,0) 68%);
  }
}
.ma-hero__slide--image .ma-hero__copy { max-width: 600px; }
.ma-hero__slide--image .ma-hero__title { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.ma-hero__slide--image .ma-hero__lead { color: rgba(255,255,255,.94); }
.ma-hero__slide--image .ma-hero__eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.ma-hero__slide--image .ma-hero__note { color: rgba(255,255,255,.82); }

.ma-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.ma-btn--ghost-light:hover { background: #fff; color: var(--ma-ink); border-color: #fff; }

/* Transition effects */
.ma-heroslider--slide .ma-hero__slide.is-active { animation: ma-slidein .5s ease; }
@keyframes ma-slidein { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 899px) {
  .ma-hero__slide--image, .ma-hero__slide--image .ma-hero__inner { min-height: 440px; }
}

/* ---- Hero "Product showcase" slide (designed; image never stretched) ---- */
.ma-hero__slide--product { background: radial-gradient(120% 120% at 0% 0%, #14538f 0%, var(--ma-navy) 55%, var(--ma-navy-dark) 100%); position: relative; overflow: hidden; }
.ma-hero__slide--product::before { content: ""; position: absolute; right: -60px; top: -40px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,255,255,.07) 1.5px, transparent 1.6px) 0 0/22px 22px; opacity: .6; pointer-events: none; }
/* With a background image set, drop the dot texture and let the photo + scrim show. */
.ma-hero__slide--product.ma-hero__slide--image::before { display: none; }
/* When the product slide has a background image, the --product `background`
   gradient shorthand replaces background-image with the navy gradient — so
   re-apply the photo (and restore cover/no-repeat), otherwise the slide shows
   only the blue gradient instead of the image. */
.ma-hero__slide--product.ma-hero__slide--image { background-image: var(--hero-img); background-size: cover; background-position: var(--hero-pos, center); background-repeat: no-repeat; }
@media (max-width: 700px) {
  .ma-hero__slide--product.ma-hero__slide--image { background-image: var(--hero-img-mobile, var(--hero-img)); background-position: var(--hero-pos-mobile, var(--hero-pos, center)); }
}
.ma-hero__slide--product .ma-hero__copy { max-width: 560px; }
.ma-hero__slide--product .ma-hero__eyebrow { background: var(--ma-red); color: #fff; }
.ma-hero__slide--product .ma-hero__title { color: #fff; }
.ma-hero__slide--product .ma-hero__lead { color: rgba(255,255,255,.9); }
.ma-hero__slide--product .ma-hero__note { color: rgba(255,255,255,.78); }
.ma-hero__slide--product .ma-hero__media { display: flex; justify-content: flex-end; }

/* White product card on the right */
.ma-hero__product { position: relative; display: block; width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 26px 26px 24px; box-shadow: 0 24px 60px rgba(5,20,40,.32); text-decoration: none; }
.ma-hero__save { position: absolute; top: -14px; left: -14px; width: 76px; height: 76px; border-radius: 50%; background: var(--ma-red); color: #fff; font-family: var(--ma-font-head); font-weight: 800; font-size: 14px; line-height: 1.05; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 6px 16px rgba(150,15,20,.4); }
.ma-hero__product-img { aspect-ratio: 16/11; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ma-hero__product-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; } /* contained — never stretched */
.ma-hero__product-eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--ma-navy); opacity: .7; margin-bottom: 4px; }
.ma-hero__product-name { display: block; font-family: var(--ma-font-head); font-weight: 800; font-size: 22px; color: var(--ma-ink-strong); line-height: 1.15; margin-bottom: 10px; }
.ma-hero__product-price { display: block; font-size: 18px; margin-bottom: 16px; }
.ma-hero__product-price del { color: var(--ma-muted-3); font-size: 15px; margin-right: 6px; }
.ma-hero__product-price ins { text-decoration: none; color: var(--ma-red-dark); font-weight: 800; }
.ma-hero__product-price .amount { color: var(--ma-red-dark); font-weight: 800; }
.ma-hero__product-btn { margin: 0; }

/* ---- Hero product carousel (slider-within-a-slider): a few cards at a time ---- */
.ma-hero__slide--carousel .ma-hero__media { display: block; width: 100%; }
.ma-hero__pcar { position: relative; }
.ma-hero__pcar-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px 2px 14px; scrollbar-width: none; -ms-overflow-style: none; }
.ma-hero__pcar-track::-webkit-scrollbar { display: none; }
.ma-hero__pcard { flex: 0 0 auto; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; padding: 14px 14px 16px; box-shadow: 0 16px 40px rgba(5,20,40,.28);
  text-decoration: none; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.ma-hero__pcard:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(5,20,40,.34); }
.ma-hero__pcard-save { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--ma-red); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; line-height: 1; }
.ma-hero__pcard-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ma-hero__pcard-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ma-hero__pcard-name { font-family: var(--ma-font-head); font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--ma-ink-strong);
  margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-hero__pcard-price { font-size: 14px; margin: auto 0 10px; }
.ma-hero__pcard-price del { color: var(--ma-muted-3); font-size: 12.5px; margin-right: 5px; }
.ma-hero__pcard-price ins, .ma-hero__pcard-price .amount { text-decoration: none; color: var(--ma-red-dark); font-weight: 800; }
.ma-hero__pcard-cta { font-size: 12.5px; font-weight: 700; color: var(--ma-navy); }
.ma-hero__pcard:hover .ma-hero__pcard-cta { color: var(--ma-red); }
/* Small-cards style: three compact cards at a time. */
.ma-hero__pcar--cards .ma-hero__pcard { flex-basis: calc((100% - 32px) / 3); }
/* Single style (default): one large product card at a time, rotating. */
.ma-hero__pcar--single .ma-hero__pcard { flex-basis: 100%; max-width: 470px; margin: 0 auto; padding: 24px 24px 22px; }
.ma-hero__pcar--single .ma-hero__pcard-img { aspect-ratio: 16 / 11; margin-bottom: 16px; }
.ma-hero__pcar--single .ma-hero__pcard-name { font-size: 23px; }
.ma-hero__pcar--single .ma-hero__pcard-price { font-size: 18px; margin-bottom: 16px; }
.ma-hero__pcar--single .ma-hero__pcard-save { top: 14px; left: 14px; font-size: 11.5px; padding: 5px 10px; }
.ma-hero__pcar--single .ma-hero__pcard-cta { display: block; text-align: center; background: var(--ma-red); color: #fff;
  padding: 13px 16px; border-radius: 8px; font-size: 15px; box-shadow: 0 2px 6px rgba(200,22,29,.25); }
.ma-hero__pcar--single .ma-hero__pcard:hover .ma-hero__pcard-cta { background: var(--ma-red-dark); color: #fff; }
.ma-hero__pcar--single .ma-hero__pcar-arrow { top: 42%; }
.ma-hero__pcar-arrow { position: absolute; top: 40%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer; background: #fff; color: var(--ma-navy); font-size: 22px; line-height: 1; box-shadow: 0 6px 18px rgba(5,20,40,.3);
  display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.ma-hero__pcar-arrow:hover { background: var(--ma-red); color: #fff; }
.ma-hero__pcar-arrow--prev { left: 2px; }
.ma-hero__pcar-arrow--next { right: 2px; }
.ma-hero__pcar-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.ma-hero__pcar-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,.4); transition: background .15s; }
.ma-hero__pcar-dot.is-active { background: #fff; }
@media (max-width: 1024px) { .ma-hero__pcar--cards .ma-hero__pcard { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 700px) {
  .ma-hero__slide--carousel .ma-hero__media { margin-top: 16px; }
  .ma-hero__pcar--cards .ma-hero__pcard { flex-basis: 82%; }
  .ma-hero__pcar--single .ma-hero__pcard { flex-basis: 90%; max-width: none; }
  .ma-hero__pcar-arrow { display: none; }
}

/* ---------------------------------------------------------------------------
 * Specials carousel band + Shop-by-category tiles (below the hero, light bg).
 * Reuses the .ma-hero__pcar carousel component; overrides the dot colour and
 * gives the cards a lighter shadow + a red block CTA to suit the light band.
 * ------------------------------------------------------------------------- */
/* The band renders the shared shop card (.ma-pcard) so it matches the rest of
   the site; it just needs flex sizing to sit in the carousel track. */
.ma-specband__car .ma-hero__pcar-track { align-items: stretch; padding: 4px 2px 14px; }
.ma-hero__pcar--cards .ma-pcard { flex: 0 0 auto; min-width: 0; scroll-snap-align: start;
  flex-basis: calc((100% - 32px) / 3); }
@media (max-width: 1024px) { .ma-hero__pcar--cards .ma-pcard { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 700px) { .ma-hero__pcar--cards .ma-pcard { flex-basis: 82%; } }
.ma-specband__car .ma-hero__pcar-dot { background: rgba(14,76,132,.22); }
.ma-specband__car .ma-hero__pcar-dot.is-active { background: var(--ma-navy); }

.ma-catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ma-cattile { display: block; text-decoration: none; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(5,20,40,.10); border: 1px solid rgba(5,20,40,.06);
  transition: transform .2s ease, box-shadow .2s ease; }
.ma-cattile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(5,20,40,.15); }
.ma-cattile__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
  background-color: #eef3f8; background-size: cover; background-position: center; }
.ma-cattile__img--empty .ma-pph { opacity: .5; }
.ma-cattile__name { display: block; padding: 14px 18px; font-family: var(--ma-font-head); font-weight: 700;
  font-size: 16px; color: var(--ma-navy); }
@media (max-width: 900px) { .ma-catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ma-catgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ma-cattile__name { font-size: 14px; padding: 12px 14px; } }
@media (max-width: 899px) {
  .ma-hero__slide--product .ma-hero__media { justify-content: center; margin-top: 22px; }
  .ma-hero__product { max-width: 420px; margin: 0 auto; }
}
/* Mobile hero: tighter stacking + keep the SAVE badge on-screen and inside. */
@media (max-width: 640px) {
  .ma-hero__inner { gap: 22px; padding: 32px 20px; }
  .ma-hero__slide--product .ma-hero__media { margin-top: 14px; }
  .ma-hero__product { max-width: 100%; padding: 20px 18px 18px; }
  .ma-hero__save { top: 10px; left: auto; right: 12px; width: 60px; height: 60px; font-size: 12px; }
  .ma-hero__product-img { aspect-ratio: 16/12; margin-bottom: 12px; }
  .ma-hero__product-name { font-size: 19px; }
  .ma-hero__title { font-size: clamp(28px, 8vw, 38px); }
}

/* ============================================================
   MEMBER STORIES (testimonials)
   ============================================================ */
.ma-story { background: #fff; border: 1px solid var(--ma-line-3); border-radius: 14px; padding: 26px; margin: 0; box-shadow: 0 6px 18px rgba(20,30,40,.05); display: flex; flex-direction: column; height: 100%; }
.ma-story__by { margin-top: auto; } /* pin the name + avatar to the bottom of the card */
.ma-story__avatar--emblem { background-color: var(--ma-red-tint, #F7E9EA); background-size: 66%; background-repeat: no-repeat; background-position: center; }
.ma-story__quote { font-size: 16.5px; color: var(--ma-text-2); line-height: 1.6; margin: 0 0 18px; quotes: "“" "”"; }
.ma-story__quote::before { content: open-quote; color: var(--ma-red); font-weight: 700; }
.ma-story__quote::after { content: close-quote; color: var(--ma-red); font-weight: 700; }
.ma-story__by { display: flex; align-items: center; gap: 12px; }
.ma-story__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ma-bg) center/cover no-repeat; flex: none; }
.ma-story__avatar--blank { background: var(--ma-red-tint); }
.ma-story__meta { display: flex; flex-direction: column; line-height: 1.3; }
.ma-story__meta strong { color: var(--ma-ink-strong); font-size: 15.5px; }
.ma-story__meta span { color: var(--ma-muted); font-size: 13.5px; }
/* Clickable quote cards (linking to the full Member Story). */
.ma-story--link { display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.ma-story--link:hover { box-shadow: 0 16px 34px rgba(20,30,40,.12); border-color: var(--ma-red-tint, #F3D6D7); }
body:not(.ma-motion-off) .ma-story--link:hover { transform: translateY(-3px); }
.ma-story--link .ma-story__by { margin-top: auto; }
.ma-story__read { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--ma-red-dark, #A6131A); }
.ma-story--link:hover .ma-story__read { color: var(--ma-red, #C8161D); }

/* ============================================================
   v7.4 — DEPTH + MOTION
   Depth (shadows/lift) is always on; the amount of movement is
   driven by body.ma-motion-{off|subtle|standard} (MedicAlert →
   Settings → Motion & depth). Scroll-reveal only runs when JS is
   present (html.ma-js) and motion isn't Off; reduce-motion users
   always get the static version.
   ============================================================ */
:root {
  --ma-shadow-1: 0 1px 2px rgba(16,28,40,.05), 0 2px 6px rgba(16,28,40,.05);
  --ma-shadow-2: 0 6px 16px rgba(16,28,40,.07), 0 14px 30px rgba(16,28,40,.06);
  --ma-shadow-3: 0 12px 26px rgba(16,28,40,.10), 0 22px 46px rgba(16,28,40,.12);
}
/* Motion intensity tokens */
body.ma-motion-subtle   { --ma-rise: 14px; --ma-lift: -3px; --ma-zoom: 1.035; --ma-dur: .6s; }
body.ma-motion-standard { --ma-rise: 22px; --ma-lift: -5px; --ma-zoom: 1.06;  --ma-dur: .7s; }
body.ma-motion-off      { --ma-rise: 0px;  --ma-lift: 0px;  --ma-zoom: 1;     --ma-dur: 0s; }

/* --- Elevation on cards/surfaces --- */
.ma-estep, .ma-card, .ma-cond, .ma-mstep, .ma-news, .ma-donate, .ma-story {
  box-shadow: var(--ma-shadow-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.ma-partner__logo { transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }

/* Hover lift (no movement when motion Off → --ma-lift:0) */
.ma-card:hover, .ma-cond:hover, .ma-estep:hover, .ma-story:hover {
  transform: translateY(var(--ma-lift, -3px));
  box-shadow: var(--ma-shadow-3);
}
a.ma-partner:hover .ma-partner__logo {
  transform: translateY(var(--ma-lift, -3px));
  box-shadow: var(--ma-shadow-2);
}

/* Gentle image zoom inside product cards */
.ma-card__media { overflow: hidden; }
.ma-card__media img { transition: transform .5s ease; }
.ma-card:hover .ma-card__media img { transform: scale(var(--ma-zoom, 1.035)); }

/* Numbered emergency chips read as physical chips */
.ma-estep__num {
  background: linear-gradient(160deg, var(--ma-red) 0%, var(--ma-red-dark) 100%);
  box-shadow: 0 4px 10px rgba(200,22,29,.28), inset 0 1px 0 rgba(255,255,255,.25);
}

/* Condition cards: accent edge that grows on hover */
.ma-cond { position: relative; overflow: hidden; }
.ma-cond::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--ma-red); transition: width .3s ease;
}
.ma-cond:hover::after { width: 100%; }

/* --- Scroll reveal --- */
html.ma-js body:not(.ma-motion-off) [data-ma-reveal] > * {
  opacity: 0;
  transform: translateY(var(--ma-rise, 14px));
  transition: opacity var(--ma-dur, .6s) ease, transform var(--ma-dur, .6s) ease;
  will-change: opacity, transform;
}
html.ma-js body:not(.ma-motion-off) [data-ma-reveal] > .is-visible {
  opacity: 1;
  transform: none;
}

/* Hero copy: soft fade-up on load */
body:not(.ma-motion-off) .ma-hero__slide.is-active .ma-hero__copy {
  animation: ma-rise-in var(--ma-dur, .6s) ease both;
}
@keyframes ma-rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Accessibility: never animate for reduce-motion visitors */
@media (prefers-reduced-motion: reduce) {
  html.ma-js [data-ma-reveal] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ma-card, .ma-cond, .ma-estep, .ma-story, .ma-partner__logo, .ma-card__media img,
  .ma-hero__slide.is-active .ma-hero__copy { transition: none !important; animation: none !important; }
  .ma-card:hover, .ma-cond:hover, .ma-estep:hover, .ma-story:hover,
  a.ma-partner:hover .ma-partner__logo, .ma-card:hover .ma-card__media img { transform: none !important; }
}

/* ============================================================
   MARKETING PAGES (About / How It Works / Membership / Contact / Donate)
   ============================================================ */
.ma-grid--2 { grid-template-columns: repeat(2,1fr); }

/* Shared page bits */
.ma-pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.ma-pg-frame { position: relative; width: 100%; aspect-ratio: 4/3; border: 1px solid var(--ma-line-4); border-radius: 14px; overflow: hidden; background: var(--ma-bg); display: flex; align-items: center; justify-content: center; }
.ma-pg-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-pg-lead { font-size: 16.5px; color: var(--ma-text-2); margin: 0 0 16px; line-height: 1.7; }
.ma-pg-lead:last-child { margin-bottom: 0; }

.ma-pg-band { background: var(--ma-navy); color: #fff; padding: 56px 0; text-align: center; }
.ma-pg-band--center { background: var(--ma-navy); }
.ma-pg-band__inner { max-width: 760px; margin: 0 auto; }
.ma-pg-band__inner p { font-size: clamp(18px,2vw,23px); font-weight: 600; margin: 0; line-height: 1.5; color: #EAF2F9; }
.ma-pg-band--center .ma-pg-band__inner p { font-size: 17.5px; font-weight: 400; color: var(--ma-footer-text); margin-top: 14px; }

.ma-pg-cta { text-align: center; max-width: 640px; margin: 0 auto; }
.ma-pg-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.ma-stat { text-align: center; border: 1px solid var(--ma-line-3); border-radius: 14px; padding: 30px 20px; background: #FAFBFC; }
.ma-stat__num { font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(30px,3.2vw,42px); color: var(--ma-red); line-height: 1; margin-bottom: 8px; }
.ma-stat__label { font-size: 15px; color: var(--ma-text); }

/* How It Works — record cards (navy) + scenarios + numbered steps */
.ma-reccard { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 24px; }
.ma-reccard__rule { width: 30px; height: 4px; background: #7FB3DD; border-radius: 3px; display: block; margin-bottom: 14px; }
.ma-reccard__title { font-family: var(--ma-font-head); font-weight: 700; font-size: 18px; margin: 0 0 6px; color: #fff; }
.ma-reccard__body { font-size: 14.5px; color: var(--ma-footer-text); margin: 0; }

.ma-scenario { border: 1px solid var(--ma-line-3); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ma-scenario__head { background: var(--ma-red-tint); padding: 18px 24px; border-bottom: 1px solid #F3CFD2; }
.ma-scenario__tag { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--ma-red-dark); }
.ma-scenario__title { font-family: var(--ma-font-head); font-weight: 700; font-size: 19px; margin: 6px 0 0; color: var(--ma-ink-strong); }
.ma-scenario__body { padding: 24px; }
.ma-scenario__body p { font-size: 15.5px; color: var(--ma-text); margin: 0 0 14px; }
.ma-scenario__outcome { font-size: 15px; color: var(--ma-green) !important; font-weight: 600; margin: 0 !important; }

.ma-numstep { background: #fff; border: 1px solid var(--ma-line-3); border-radius: 12px; padding: 28px; box-shadow: var(--ma-shadow-1); }
.ma-numstep__num { font-family: var(--ma-font-head); font-weight: 800; font-size: 36px; color: var(--ma-red); line-height: 1; margin-bottom: 12px; }
.ma-numstep__title { font-family: var(--ma-font-head); font-weight: 700; font-size: 20px; margin: 0 0 8px; color: var(--ma-ink-strong); }
.ma-numstep__body { font-size: 15px; color: var(--ma-text); margin: 0; }

/* Membership */
.ma-pagehero--split { padding: 56px 0; }
.ma-mem-hero { display: flex; gap: 44px; align-items: center; }
.ma-mem-hero__copy { flex: 1; }
.ma-mem-hero__card { flex: 1; width: 100%; }
.ma-mem-hero__title { text-align: left; }
.ma-mem-hero__intro { margin-left: 0; margin-right: 0; max-width: 540px; }
.ma-inclcard { background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; padding: 30px; }
.ma-inclcard__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ma-muted-3); margin-bottom: 18px; }
.ma-inclcard__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ma-line-5); }
.ma-inclcard__item:last-child { border-bottom: 0; }
.ma-inclcard__tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ma-red-tint); color: var(--ma-red); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; margin-top: 2px; }
.ma-inclcard__item strong { color: var(--ma-ink-strong); font-size: 15.5px; }
.ma-inclcard__sub { font-size: 14px; color: var(--ma-muted-2); }

.ma-tiers { align-items: stretch; }
.ma-tier { position: relative; background: #fff; border: 1.5px solid var(--ma-line); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; box-shadow: var(--ma-shadow-1); }
.ma-tier--popular { border: 2px solid var(--ma-red); box-shadow: 0 10px 28px rgba(200,22,29,.12); }
.ma-tier__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ma-red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 100px; white-space: nowrap; }
.ma-tier__name { font-family: var(--ma-font-head); font-weight: 700; font-size: 21px; margin: 0 0 6px; color: var(--ma-ink-strong); }
.ma-tier__who { font-size: 14.5px; color: var(--ma-muted-2); margin: 0 0 18px; min-height: 40px; }
.ma-tier__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; }
.ma-tier__amount { font-family: var(--ma-font-head); font-weight: 800; font-size: 38px; color: var(--ma-ink-strong); }
.ma-tier__per { font-size: 15px; color: var(--ma-muted); }
.ma-tier__feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.ma-tier__feat { display: flex; gap: 9px; font-size: 14.5px; color: var(--ma-text-2); }
.ma-tier__feat span { color: var(--ma-green); font-weight: 700; }

.ma-jgrid { grid-template-columns: repeat(5,1fr); gap: 16px; }
.ma-jstep { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 22px; }
.ma-jstep__num { font-family: var(--ma-font-head); font-weight: 800; font-size: 26px; color: #7FB3DD; line-height: 1; margin-bottom: 10px; }
.ma-jstep__text { font-size: 14.5px; color: #EAF2F9; margin: 0; font-weight: 600; }

.ma-apply { max-width: 920px; }
.ma-apply__card { background: #fff; border: 1px solid var(--ma-line); border-radius: 16px; padding: 34px; }
.ma-apply__lead { font-size: 16px; color: var(--ma-text); margin: 0 0 20px; }
.ma-apply__steps { margin: 0; padding-left: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.ma-apply__steps li { font-size: 15.5px; color: var(--ma-text-2); font-weight: 600; padding: 4px 0; }
.ma-apply__trust { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 22px; font-size: 14px; color: var(--ma-muted-2); text-align: center; flex-wrap: wrap; }
.ma-apply__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ma-green); flex: none; }

/* Contact */
.ma-contact-top__intro { max-width: 560px; }
.ma-contact-cards { margin-top: 24px; }
.ma-contactcard { background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; padding: 28px; }
.ma-contactcard--emergency { background: var(--ma-red); color: #fff; border-color: var(--ma-red); }
.ma-contactcard__label { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; margin-bottom: 10px; color: #FBD3D5; }
.ma-contactcard__label--muted { color: var(--ma-muted-3); }
.ma-contactcard__num { font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(24px,3vw,32px); color: #fff; display: block; margin-bottom: 8px; }
.ma-contactcard__num--dark { color: var(--ma-ink-strong); font-size: clamp(22px,2.6vw,28px); }
.ma-contactcard--emergency p { font-size: 15px; color: #FCE3E4; margin: 0; }
.ma-contactcard p { font-size: 15px; color: var(--ma-text); margin: 0 0 4px; }
.ma-contactcard__muted { color: var(--ma-muted-3) !important; font-size: 14px !important; }

.ma-contact-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 36px; align-items: start; }
.ma-cform { border: 1px solid var(--ma-line); border-radius: 16px; padding: 30px; background: #fff; }
.ma-cform__sub { font-size: 14px; color: var(--ma-muted-3); margin: 0 0 22px; }
.ma-cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ma-cform__full { grid-column: 1 / -1; }
.ma-cform label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ma-slate); margin-bottom: 6px; }
.ma-cform input, .ma-cform select, .ma-cform textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--ma-line-4); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.ma-cform textarea { resize: vertical; }
.ma-cform__consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 400; }
.ma-cform__consent input { width: 17px; height: 17px; accent-color: var(--ma-red); flex: none; margin-top: 3px; }
.ma-cform__consent span { font-size: 13.5px; color: var(--ma-text); }
.ma-cform .ma-btn { margin-top: 22px; }
.ma-cform__note { font-size: 12.5px; color: var(--ma-muted-3); margin: 12px 0 0; }

.ma-contact-aside { display: flex; flex-direction: column; gap: 16px; }
.ma-infocard { border: 1px solid var(--ma-line); border-radius: 14px; padding: 24px; background: #FAFBFC; }
.ma-infocard h3 { font-family: var(--ma-font-head); font-weight: 700; font-size: 16px; margin: 0 0 14px; color: var(--ma-ink-strong); }
.ma-infocard p { font-size: 14.5px; color: var(--ma-text); margin: 0; line-height: 1.7; }
.ma-hours__row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ma-text); padding: 3px 0; }
.ma-hours__row strong { color: var(--ma-ink); font-weight: 600; }
.ma-hours__row--accent { color: var(--ma-red-dark); }
.ma-hours__row--accent strong { color: var(--ma-red-dark); font-weight: 700; }

.ma-faqwrap { max-width: 820px; }
.ma-faq { display: flex; flex-direction: column; gap: 12px; }
.ma-faq__item { background: #fff; border: 1px solid var(--ma-line); border-radius: 12px; overflow: hidden; }
.ma-faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border: none; background: none; cursor: pointer; font-family: inherit; text-align: left; }
.ma-faq__q span:first-child { font-size: 16.5px; font-weight: 700; color: var(--ma-ink-strong); }
.ma-faq__icon { font-size: 24px; font-weight: 400; color: var(--ma-red); flex: none; transition: transform .15s ease; }
.ma-faq__item.is-open .ma-faq__icon { transform: rotate(45deg); }
.ma-faq__a { padding: 0 22px; max-height: 0; overflow: hidden; font-size: 15.5px; color: var(--ma-text); line-height: 1.65; transition: max-height .3s ease, padding .3s ease; }
.ma-faq__item.is-open .ma-faq__a { padding: 0 22px 20px; max-height: 6000px; }
.ma-faq__a > div { margin: 0; }
.ma-faq__a p { margin: 0 0 12px; }
.ma-faq__a p:last-child { margin-bottom: 0; }
.ma-faq__a ul, .ma-faq__a ol { margin: 0 0 12px; padding-left: 20px; }
.ma-faq__a li { margin-bottom: 6px; }
.ma-faq__a a { color: var(--ma-red-dark); text-decoration: underline; font-weight: 600; }
.ma-faq__a a:hover { color: var(--ma-red); }
.ma-faq__a blockquote { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--ma-line-4); color: var(--ma-text-2); }

/* Donate */
.ma-donate-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 36px; align-items: start; }
.ma-donate-impact__list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.ma-impact { display: flex; gap: 16px; border: 1px solid var(--ma-line-3); border-radius: 12px; padding: 20px; background: #FAFBFC; }
.ma-impact__amount { font-family: var(--ma-font-head); font-weight: 800; font-size: 22px; color: var(--ma-red); flex: none; min-width: 78px; }
.ma-impact__body strong { font-size: 16px; color: var(--ma-ink-strong); display: block; margin-bottom: 2px; }
.ma-impact__body span { font-size: 14.5px; color: var(--ma-muted-2); }

.ma-donatebox { border: 1px solid var(--ma-line); border-radius: 16px; padding: 30px; background: #fff; position: sticky; top: 90px; box-shadow: var(--ma-shadow-1); }
.ma-donatebox__freq { display: flex; gap: 8px; background: var(--ma-bg); border-radius: 10px; padding: 5px; margin: 0 0 22px; }
.ma-freq { flex: 1; padding: 11px; border: none; border-radius: 7px; font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit; background: transparent; color: var(--ma-muted); }
.ma-freq.is-active { background: #fff; color: var(--ma-red); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ma-donatebox__amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ma-amt { padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; border: 1.5px solid var(--ma-line-4); background: #fff; color: var(--ma-slate); }
.ma-amt.is-active { border-color: var(--ma-red); background: var(--ma-red-tint); color: var(--ma-red-dark); }
.ma-donatebox__label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ma-slate); margin-bottom: 6px; }
.ma-donatebox__custom { position: relative; margin-bottom: 24px; }
.ma-donatebox__custom span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ma-muted); }
.ma-donatebox__custom input { width: 100%; padding: 13px 14px 13px 30px; border: 1.5px solid var(--ma-line-4); border-radius: 8px; font-size: 16px; font-family: inherit; }
.ma-donatebox__trust { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--ma-muted-3); }
.ma-donatebox__trust span { width: 7px; height: 7px; border-radius: 50%; background: var(--ma-green); }

/* Responsive */
@media (max-width: 900px) {
  .ma-pg-split, .ma-mem-hero, .ma-contact-grid, .ma-donate-grid { grid-template-columns: 1fr; display: grid; }
  .ma-mem-hero { gap: 32px; }
  .ma-jgrid { grid-template-columns: repeat(3,1fr); }
  .ma-donatebox { position: static; }
}
@media (max-width: 680px) {
  .ma-grid--2, .ma-contact-cards, .ma-cform__grid { grid-template-columns: 1fr; }
  .ma-jgrid { grid-template-columns: 1fr 1fr; }
  .ma-apply__steps { grid-template-columns: 1fr; }
}

/* ============================================================
   SHOP LANDING + CATEGORY PAGES
   ============================================================ */
.ma-shop-hero { padding: 48px 0 0; }
.ma-shop-crumb { font-size: 13.5px; color: var(--ma-muted-3); margin-bottom: 16px; }
.ma-shop-crumb a { color: var(--ma-muted-3); }
.ma-shop-crumb a:hover { color: var(--ma-red); }
.ma-shop-crumb span { color: var(--ma-slate); font-weight: 600; }
.ma-shop-hero__head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.ma-shop-hero__intro { font-size: 18px; color: #4A5158; margin: 12px 0 0; }
.ma-shop-xsell { background: var(--ma-navy); color: #fff; border-radius: 14px; padding: 24px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.ma-shop-xsell strong { font-family: var(--ma-font-head); font-size: 19px; display: block; margin-bottom: 4px; }
.ma-shop-xsell span { font-size: 15px; color: var(--ma-footer-text); }
.ma-shop-xsell__btn { padding: 13px 24px; background: #fff; color: var(--ma-navy); font-weight: 700; font-size: 15.5px; border-radius: 8px; white-space: nowrap; }
.ma-shop-xsell__btn:hover { background: var(--ma-red); color: #fff; }

.ma-catgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.ma-catcard { display: block; border: 1px solid var(--ma-line-3); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--ma-shadow-1); transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
.ma-catcard:hover { border-color: #CDD4DA; transform: translateY(var(--ma-lift, -3px)); box-shadow: var(--ma-shadow-3); }
.ma-catcard__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.ma-catcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ma-catcard:hover .ma-catcard__media img { transform: scale(var(--ma-zoom, 1.035)); }
.ma-catcard__ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg,#EEF2F6,#EEF2F6 12px,#E6ECF2 12px,#E6ECF2 24px); display: block; }
.ma-catcard__body { display: block; padding: 14px 16px; }
.ma-catcard__name { display: block; font-size: 16px; font-weight: 700; margin: 0 0 2px; color: var(--ma-ink); }
.ma-catcard__count { display: block; font-size: 13px; color: var(--ma-muted-3); }

.ma-shophelp { border: 1px solid var(--ma-line); border-radius: 16px; padding: 40px; background: #FAFBFC; }

/* Category hero */
.ma-cat-hero { padding: 44px 0; }
.ma-cat-hero__inner { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.ma-cat-hero__intro { font-size: 17px; color: #4A5158; margin: 12px 0 0; max-width: 620px; }
.ma-cat-hero__intro p { margin: 0 0 10px; }
.ma-cat-hero .ma-shop-crumb, .ma-cat-hero .woocommerce-breadcrumb { margin-bottom: 14px; font-size: 13.5px; color: var(--ma-muted-3); }
/* Full-width banner hero when the category has an image. */
.ma-cat-hero--banner { position: relative; padding: 76px 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.ma-cat-hero--banner .ma-cat-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,54,96,.90) 0%, rgba(14,76,132,.72) 45%, rgba(14,76,132,.42) 100%); }
.ma-cat-hero--banner .ma-cat-hero__inner { position: relative; z-index: 2; }
.ma-cat-hero--banner .ma-h2 { color: #fff; }
.ma-cat-hero--banner .ma-cat-hero__intro { color: rgba(255,255,255,.92); }
.ma-cat-hero--banner .ma-shop-crumb, .ma-cat-hero--banner .ma-shop-crumb a { color: rgba(255,255,255,.85); }
.ma-cat-hero--banner .ma-shop-crumb a:hover { color: #fff; }

@media (max-width: 980px) { .ma-catgrid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .ma-cat-hero--banner { padding: 52px 0; } }
@media (max-width: 600px) { .ma-catgrid { grid-template-columns: 1fr 1fr; } .ma-shophelp { padding: 26px; } }

/* ============================================================
   BLOG / ARTICLE / FAQ
   ============================================================ */
.ma-blog-top { padding-bottom: 8px; }
.ma-blog-top__intro { max-width: 900px; margin-top: 10px; }

/* Featured */
.ma-bfeature { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--ma-line-3); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--ma-shadow-1); transition: box-shadow .25s ease; }
.ma-bfeature:hover { box-shadow: var(--ma-shadow-3); }
.ma-bfeature__media { position: relative; min-height: 260px; overflow: hidden; }
.ma-bfeature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-bfeature__body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.ma-bfeature__title { font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(22px,2.4vw,30px); letter-spacing: -.02em; line-height: 1.18; margin: 10px 0 12px; color: var(--ma-ink-strong); }
.ma-bfeature__excerpt { font-size: 16px; color: var(--ma-text); margin: 0 0 16px; }

/* Chips */
.ma-bchips { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-bchip { padding: 9px 18px; border-radius: 100px; font-size: 14.5px; font-weight: 600; border: 1.5px solid var(--ma-line-4); background: #fff; color: var(--ma-slate); }
.ma-bchip:hover { border-color: var(--ma-red); color: var(--ma-red); }
.ma-bchip.is-active { border-color: var(--ma-red); background: var(--ma-red-tint); color: var(--ma-red-dark); }

/* Grid + cards */
.ma-bgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ma-bcard { display: flex; flex-direction: column; border: 1px solid var(--ma-line-3); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--ma-shadow-1); transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
.ma-bcard:hover { border-color: #CDD4DA; transform: translateY(var(--ma-lift, -3px)); box-shadow: var(--ma-shadow-3); }
.ma-bcard__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.ma-bcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ma-bcard:hover .ma-bcard__media img { transform: scale(var(--ma-zoom, 1.035)); }
.ma-bcard__ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg,#EEF2F6,#EEF2F6 12px,#E6ECF2 12px,#E6ECF2 24px); display: block; }
/* Branded story media — clean panel + cross badge + category label, shown when a
   post has no opted-in photo (replaces the old imported title-banner graphics). */
.ma-bmedia { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(150deg, var(--ma-bm-1, #0E4C84), var(--ma-bm-2, #0B3A66)); overflow: hidden; }
.ma-bmedia::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.06); }
.ma-bmedia--navy  { --ma-bm-1: #0E4C84; --ma-bm-2: #0B3A66; }
.ma-bmedia--azure { --ma-bm-1: #2F80C4; --ma-bm-2: #226299; }
.ma-bmedia--red   { --ma-bm-1: #C8161D; --ma-bm-2: #9E1017; }
.ma-bmedia__badge { position: relative; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.55); }
.ma-bmedia__cross { position: relative; width: 26px; height: 26px; }
.ma-bmedia__cross::before, .ma-bmedia__cross::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.ma-bmedia__cross::before { left: 9px; top: 0; width: 8px; height: 26px; }
.ma-bmedia__cross::after { top: 9px; left: 0; width: 26px; height: 8px; }
.ma-bmedia__tag { position: relative; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .95;
  padding: 0 16px; text-align: center; line-height: 1.3; }
/* Larger badge for the big feature + article lead frames. */
.ma-bfeature__media .ma-bmedia__badge, .ma-article__leadframe .ma-bmedia__badge { width: 84px; height: 84px; }
.ma-bfeature__media .ma-bmedia__cross, .ma-article__leadframe .ma-bmedia__cross { width: 38px; height: 38px; }
.ma-bfeature__media .ma-bmedia__cross::before, .ma-article__leadframe .ma-bmedia__cross::before { left: 13px; width: 12px; height: 38px; }
.ma-bfeature__media .ma-bmedia__cross::after, .ma-article__leadframe .ma-bmedia__cross::after { top: 13px; width: 38px; height: 12px; }
.ma-bfeature__media .ma-bmedia__tag, .ma-article__leadframe .ma-bmedia__tag { font-size: 13px; }
.ma-bcard__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.ma-bcard__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--ma-red-dark); margin-bottom: 10px; }
.ma-bcard__title { font-family: var(--ma-font-head); font-weight: 700; font-size: 18.5px; line-height: 1.25; margin: 0 0 10px; color: var(--ma-ink-strong); }
.ma-bcard__excerpt { font-size: 14.5px; color: var(--ma-text); margin: 0 0 16px; flex: 1; }
.ma-bcard__meta { font-size: 13px; color: var(--ma-muted-3); }

.ma-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.ma-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1.5px solid var(--ma-line-4); border-radius: 8px; font-weight: 600; color: var(--ma-slate); }
.ma-pagination .page-numbers.current { background: var(--ma-red); border-color: var(--ma-red); color: #fff; }
.ma-pagination a.page-numbers:hover { border-color: var(--ma-red); color: var(--ma-red); }
.ma-blog-empty { text-align: center; color: var(--ma-muted-2); font-size: 16px; padding: 30px 0; }

/* Newsletter band */
.ma-blog-news { background: var(--ma-navy); color: #fff; text-align: center; }
.ma-blog-news__inner { max-width: 760px; margin: 0 auto; }
.ma-blog-news__text { font-size: 16.5px; color: var(--ma-footer-text); margin: 12px 0 24px; }
.ma-blog-news__form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 auto; }
.ma-blog-news__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-blog-news__row input { flex: 1; min-width: 140px; padding: 14px 16px; border: none; border-radius: 8px; font-size: 15.5px; font-family: inherit; }
.ma-blog-news__form .ma-btn { width: 100%; }
.ma-blog-news__note { font-size: 12.5px; color: var(--ma-footer-accent); margin: 14px 0 0; }
@media (max-width: 520px) { .ma-blog-news__row { flex-direction: column; } }
.ma-blog-news__embed { max-width: 460px; margin: 0 auto; }
.ma-blog-archhero { padding: 44px 0; }

/* Article */
.ma-article__head { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; }
.ma-article__crumb { font-size: 13.5px; color: var(--ma-muted-3); display: flex; gap: 7px; margin-bottom: 24px; }
.ma-article__crumb a { color: var(--ma-muted-3); }
.ma-article__crumb a:hover { color: var(--ma-red); }
.ma-article__crumb-cur { color: var(--ma-slate); font-weight: 600; }
.ma-article__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--ma-red-dark); }
.ma-article__title { font-family: var(--ma-font-head); font-weight: 800; font-size: clamp(28px,3.6vw,44px); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 18px; color: var(--ma-ink-strong); }
.ma-article__by { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--ma-line-5); font-size: 14px; color: var(--ma-text); }
.ma-article__by strong { color: var(--ma-ink); }
.ma-article__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ma-red-tint); flex: none; }
.ma-article__byline { font-size: 15px; color: var(--ma-muted-2, #5E666D); margin: 0; font-weight: 600; }
/* Pull-quote on Member Story pages. */
.ma-article__pull { max-width: 720px; margin: 34px auto 0; padding: 0 24px; text-align: center; }
.ma-article__pull blockquote { font-family: var(--ma-font-head, serif); font-weight: 700; font-size: clamp(21px,2.6vw,30px); line-height: 1.32;
  color: var(--ma-navy, #0E4C84); margin: 0; position: relative; }
.ma-article__pull blockquote::before { content: "\201C"; color: var(--ma-red, #C8161D); font-size: 1.1em; line-height: 0; vertical-align: -.15em; margin-right: 2px; }
.ma-article__pull blockquote::after { content: "\201D"; color: var(--ma-red, #C8161D); font-size: 1.1em; line-height: 0; vertical-align: -.35em; margin-left: 2px; }
.ma-article__pull figcaption { margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ma-muted-2, #5E666D); text-transform: uppercase; }
.ma-article__lead { max-width: 920px; margin: 28px auto 0; padding: 0 24px; }
.ma-article__leadframe { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; }
.ma-article__leadframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ma-article__body { max-width: 680px; margin: 0 auto; padding: 40px 24px 8px; font-size: 18px; color: #33383E; line-height: 1.75; }
.ma-article__body p { margin: 0 0 22px; }
.ma-article__body h2 { font-family: var(--ma-font-head); font-weight: 700; font-size: 24px; letter-spacing: -.01em; margin: 34px 0 14px; color: var(--ma-ink-strong); }
.ma-article__body h3 { font-family: var(--ma-font-head); font-weight: 700; font-size: 20px; margin: 28px 0 12px; color: var(--ma-ink-strong); }
.ma-article__body ul, .ma-article__body ol { margin: 0 0 22px; padding-left: 22px; }
.ma-article__body li { margin-bottom: 8px; }
.ma-article__body img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; display: block; }
.ma-article__body .wp-caption, .ma-article__body figure { max-width: 100% !important; height: auto; margin: 18px 0; }
.ma-article__body figure img { width: 100%; }
.ma-article__body blockquote { margin: 30px 0; padding: 20px 26px; border-left: 4px solid var(--ma-red); background: #FBF4F4; font-family: var(--ma-font-head); font-size: 20px; font-weight: 600; color: var(--ma-ink-strong); line-height: 1.45; }
.ma-article__body a { color: var(--ma-red-dark); text-decoration: underline; }
.ma-article__cta-wrap { max-width: 680px; margin: 36px auto 56px; padding: 0 24px; }
.ma-article__cta { background: var(--ma-navy); color: #fff; border-radius: 14px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ma-article__cta span { font-family: var(--ma-font-head); font-size: 18px; font-weight: 600; flex: 1; min-width: 220px; }

/* FAQ page groups */
.ma-faqgroup { margin: 36px 0 16px; }
.ma-faqgroup:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .ma-bfeature { grid-template-columns: 1fr; }
  .ma-bgrid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .ma-bgrid { grid-template-columns: 1fr; }
}

/* ============================================================
   SHOP — branded product grid, cards, placeholder, load more (v8.8)
   ============================================================ */
/* Product grid columns. Change "repeat(3,1fr)" to repeat(4,1fr) for 4 per row. */
.ma-pgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
/* Homepage "Featured products" row stays 4-up (a curated row of four). */
.ma-pgrid--home { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1100px) { .ma-pgrid--home { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .ma-pgrid--home { grid-template-columns: 1fr; } }
.ma-pcard { display: flex; flex-direction: column; border: 1px solid var(--ma-line-3); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--ma-shadow-1); transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
.ma-pcard:hover { border-color: #CDD4DA; transform: translateY(var(--ma-lift, -3px)); box-shadow: var(--ma-shadow-3); }
.ma-pcard__media { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: #fff; }
.ma-pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ma-pcard:hover .ma-pcard__media img { transform: scale(var(--ma-zoom, 1.035)); }
.ma-pcard__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.ma-pcard__name { font-size: 15.5px; font-weight: 600; line-height: 1.35; margin: 0 0 10px; color: var(--ma-ink); }
.ma-pcard__name a { color: inherit; }
.ma-pcard__name a:hover { color: var(--ma-red); }
.ma-pcard__colours { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.ma-pcard__colour { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 0 0 1px rgba(20,30,40,.18); }
.ma-pcard__price { font-weight: 700; font-size: 16.5px; color: var(--ma-red-dark); margin: 0 0 14px; margin-top: auto; }
.ma-pcard__price del { color: var(--ma-strike); font-weight: 400; font-size: 14px; margin-right: 6px; }
.ma-pcard__price ins { text-decoration: none; }
.ma-pcard__price .woocommerce-Price-amount { white-space: nowrap; }
.ma-pcard__btn { margin-top: 0; }

/* Clean branded placeholder (no stripes) */
.ma-pph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg,#F4F6F8,#EAEFF3); }
.ma-pph--lg { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 14px; }
.ma-pph__cross { position: relative; width: 40px; height: 40px; opacity: .5; }
.ma-pph__cross::before, .ma-pph__cross::after { content: ""; position: absolute; background: #C4CDD6; border-radius: 2px; }
.ma-pph__cross::before { left: 15px; top: 0; width: 10px; height: 40px; }
.ma-pph__cross::after { top: 15px; left: 0; width: 40px; height: 10px; }
.ma-pph--lg .ma-pph__cross { width: 84px; height: 84px; }
.ma-pph--lg .ma-pph__cross::before { left: 32px; width: 20px; height: 84px; }
.ma-pph--lg .ma-pph__cross::after { top: 32px; width: 84px; height: 20px; }

/* Lazy load (infinite scroll) — sentinel + spinner, no button */
.ma-shop-sentinel { display: flex; justify-content: center; align-items: center; min-height: 60px; margin-top: 28px; }
.ma-shop-sentinel__spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--ma-line-3); border-top-color: var(--ma-red); opacity: 0; transition: opacity .15s ease; }
.ma-shop-sentinel.is-loading .ma-shop-sentinel__spinner { opacity: 1; animation: ma-spin .7s linear infinite; }
@keyframes ma-spin { to { transform: rotate(360deg); } }
/* Gentle fade-in for lazy-loaded cards */
.ma-pcard--in { animation: ma-card-in .45s ease both; }
@keyframes ma-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.ma-motion-off .ma-pcard--in { animation: none; }

@media (max-width: 900px) { .ma-pgrid { grid-template-columns: repeat(2,1fr); gap: 16px; } }
@media (max-width: 420px) { .ma-pgrid { grid-template-columns: 1fr; } }

/* ============================================================
   SINGLE PRODUCT — WooCommerce add-to-cart re-skin (v8.9)
   Native variation form is used (real add-to-cart + validation +
   variation price/image); our JS turns the dropdowns into swatches/chips.
   ============================================================ */
.ma-atc { margin-top: 6px; }
.ma-atc table.variations,
.ma-atc table.variations tbody,
.ma-atc table.variations tr,
.ma-atc table.variations td { display: block; width: 100%; border: 0; padding: 0; margin: 0; }
.ma-atc table.variations th { display: none; } /* our group renders its own label */
.ma-atc table.variations tr { margin-bottom: 22px; }
.ma-hidden-select { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.ma-vargroup--wc { margin-bottom: 4px; }
.ma-swatch.is-unavailable, .ma-chip.is-unavailable { opacity: .35; }

.ma-atc .reset_variations { display: inline-block; font-size: 13px; color: var(--ma-muted-2); margin: 2px 0 14px; }
.ma-atc .reset_variations:hover { color: var(--ma-red); }
.ma-atc .woocommerce-variation-price { margin: 4px 0 18px; }
.ma-atc .woocommerce-variation-price .price { font-family: var(--ma-font-head); font-weight: 800; font-size: 26px; color: var(--ma-ink-strong); }
.ma-atc .woocommerce-variation-availability { font-size: 14px; color: var(--ma-muted-2); margin-bottom: 10px; }

.ma-atc .woocommerce-variation-add-to-cart,
.ma-atc form.cart:not(.variations_form) { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-top: 8px; }
.ma-atc .quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--ma-line-4); border-radius: 8px; overflow: hidden; }
.ma-atc .quantity input.qty { width: 64px; height: 52px; border: 0; text-align: center; font-size: 16px; font-family: inherit; -moz-appearance: textfield; }
.ma-atc .quantity input.qty::-webkit-outer-spin-button,
.ma-atc .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ma-atc .single_add_to_cart_button {
  flex: 1; min-width: 200px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--ma-red); color: #fff; font-family: var(--ma-font-head); font-weight: 700;
  font-size: 16.5px; padding: 0 26px; min-height: 52px; box-shadow: 0 2px 6px rgba(200,22,29,.25);
  transition: background .15s ease;
}
.ma-atc .single_add_to_cart_button:hover { background: var(--ma-red-dark); }
.ma-atc .stock { font-size: 14px; color: var(--ma-green); margin: 10px 0 0; }
.ma-atc .wc-no-matching-variations { font-size: 14px; color: var(--ma-red-dark); }

/* ============================================================
   v9.0 — ribbon, nav submenu, search, cart count, account, polish
   ============================================================ */
/* Sale ribbon — TWO separate red pills across the top of the card, with a gap
   down the middle: "25% off" left, "Save R110.00" right. */
.ma-ribbon { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 14px; pointer-events: none; }
.ma-ribbon__pct,
.ma-ribbon__save { background: var(--ma-red); color: #fff; border-radius: 6px; padding: 7px 12px; box-shadow: 0 3px 10px rgba(150,15,20,.28); letter-spacing: .01em; white-space: nowrap; }
.ma-ribbon__pct { font-weight: 800; font-size: 14px; }
.ma-ribbon__save { font-weight: 700; font-size: 13.5px; }
/* When there is no saved value, just show the single pill on the left. */
.ma-ribbon:not(:has(.ma-ribbon__save)) { justify-content: flex-start; }

/* Sale ribbon on the single-product gallery image (same two-pill style). */
.ma-gallery__main { position: relative; }
.ma-gallery__main .ma-ribbon { top: 14px; left: 14px; right: 14px; }

/* Saving shown in the product summary, under the price (two red pills). */
.ma-price__badges { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 4px; }
.ma-price__pct,
.ma-price__savechip { background: var(--ma-red); color: #fff; border-radius: 6px; padding: 6px 12px; font-weight: 700; font-size: 14px; letter-spacing: .01em; white-space: nowrap; }
.ma-price__pct { font-weight: 800; }

/* Add-to-cart: ONE consistent solid brand red in every state — no grey,
   no dusty/translucent red, no theme/plugin accent bleeding through. */
.ma-atc .single_add_to_cart_button,
.ma-atc .single_add_to_cart_button.button,
.ma-atc .single_add_to_cart_button.alt,
.ma-atc .single_add_to_cart_button.disabled,
.ma-atc .single_add_to_cart_button.wc-variation-selection-needed,
.ma-atc .single_add_to_cart_button:disabled {
  background: var(--ma-red) !important; color: #fff !important; opacity: 1 !important;
}
.ma-atc .single_add_to_cart_button:hover { background: var(--ma-red-dark) !important; }
.ma-atc .single_add_to_cart_button.disabled,
.ma-atc .single_add_to_cart_button.wc-variation-selection-needed,
.ma-atc .single_add_to_cart_button:disabled { cursor: not-allowed; box-shadow: none; }

/* Header: icon button reset + cart count badge */
button.ma-nav__icon { border: 0; background: transparent; cursor: pointer; }
.ma-nav__cart { position: relative; }
.ma-cart-count { position: absolute; top: -2px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ma-red); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.ma-cart-count.is-empty { display: none; }

/* Shop categories dropdown */
.ma-nav__item { position: relative; display: inline-flex; align-items: center; }
.ma-nav__caret { font-size: 10px; opacity: .55; margin-left: 2px; }
.ma-subnav { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--ma-line-3); border-radius: 10px; box-shadow: var(--ma-shadow-3); padding: 8px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 70; }
.ma-nav__item--has-sub:hover .ma-subnav, .ma-nav__item--has-sub:focus-within .ma-subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.ma-subnav__link { padding: 9px 12px; border-radius: 6px; font-size: 14.5px; font-weight: 600; color: var(--ma-slate); white-space: nowrap; }
.ma-subnav__link:hover { background: var(--ma-red-tint); color: var(--ma-red); }
.ma-subnav__link--all { color: var(--ma-red-dark); border-bottom: 1px solid var(--ma-line-5); margin-bottom: 4px; padding-bottom: 11px; }

/* Search panel */
.ma-search { border-top: 1px solid var(--ma-line); background: #fff; padding: 14px 0; box-shadow: 0 10px 20px rgba(20,30,40,.06); }
.ma-search__form { display: flex; gap: 10px; align-items: stretch; }
.ma-search__input { flex: 1; padding: 13px 16px; border: 1.5px solid var(--ma-line-4); border-radius: 8px; font-size: 16px; font-family: inherit; }
.ma-search__input:focus { border-color: var(--ma-red); outline: none; box-shadow: 0 0 0 1px var(--ma-red); }
.ma-search__submit { min-width: 130px; }
.ma-search__wrap { position: relative; }

/* Live results dropdown */
.ma-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--ma-line-3); border-radius: 12px; box-shadow: var(--ma-shadow-3); max-height: 70vh; overflow-y: auto; z-index: 80; padding: 6px; }
.ma-search__loading, .ma-search__empty { padding: 18px; text-align: center; color: var(--ma-muted-2); font-size: 14.5px; }
.ma-search__group { padding: 4px 0; }
.ma-search__group + .ma-search__group { border-top: 1px solid var(--ma-line-5); }
.ma-search__grouphead { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ma-muted-3); padding: 8px 12px 4px; }
.ma-search__result { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.ma-search__result:hover { background: var(--ma-red-tint); }
.ma-search__thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex: 0 0 44px; background: #EFF3F6; display: flex; align-items: center; justify-content: center; }
.ma-search__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ma-search__thumb--ph { background: repeating-linear-gradient(135deg,#F6F8FA,#F6F8FA 6px,#EFF3F6 6px,#EFF3F6 12px); }
.ma-search__rinfo { display: flex; flex-direction: column; min-width: 0; }
.ma-search__rtitle { font-weight: 600; font-size: 14.5px; color: var(--ma-ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-search__rmeta { font-size: 13px; color: var(--ma-muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-search__all { display: block; text-align: center; padding: 11px; font-weight: 700; font-size: 14px; color: var(--ma-red-dark); border-top: 1px solid var(--ma-line-5); margin-top: 4px; }
.ma-search__all:hover { color: var(--ma-red); }

/* Search results page */
.ma-searchpage { max-width: 860px; }
.ma-searchpage__head { margin-bottom: 26px; }
.ma-searchpage__count { color: var(--ma-muted-2); margin: 6px 0 18px; }
.ma-searchpage__form { display: flex; gap: 10px; max-width: 520px; }
.ma-searchpage__input { flex: 1; padding: 12px 15px; border: 1.5px solid var(--ma-line-4); border-radius: 8px; font-size: 15px; font-family: inherit; }
.ma-searchpage__list { display: flex; flex-direction: column; gap: 12px; }
.ma-sresult { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--ma-line-3); border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ma-sresult:hover { border-color: #CDD4DA; box-shadow: var(--ma-shadow-2); transform: translateY(-2px); }
.ma-sresult__media { position: relative; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 8px; overflow: hidden; background: #EFF3F6; display: flex; align-items: center; justify-content: center; }
.ma-sresult__media img { width: 100%; height: 100%; object-fit: cover; }
.ma-sresult__media .ma-pph__cross { transform: scale(.5); }
.ma-sresult__body { flex: 1; min-width: 0; }
.ma-sresult__type { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ma-red-dark); background: var(--ma-red-tint); padding: 3px 9px; border-radius: 100px; margin-bottom: 6px; }
.ma-sresult__title { display: block; font-family: var(--ma-font-head); font-weight: 700; font-size: 17px; color: var(--ma-ink-strong); margin-bottom: 4px; }
.ma-sresult__price { font-weight: 700; color: var(--ma-red-dark); }
.ma-sresult__excerpt { font-size: 14px; color: var(--ma-text); }
.ma-sresult__go { color: var(--ma-muted-3); font-size: 20px; flex: 0 0 auto; }
.ma-sresult:hover .ma-sresult__go { color: var(--ma-red); }
.ma-searchpage__pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.ma-searchpage__pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--ma-line-3); border-radius: 8px; text-decoration: none; color: var(--ma-slate); font-weight: 600; }
.ma-searchpage__pagination .page-numbers.current { background: var(--ma-red); color: #fff; border-color: var(--ma-red); }
.ma-searchpage__empty { text-align: center; padding: 40px 0; }
.ma-searchpage__empty p { color: var(--ma-muted-2); margin-bottom: 18px; }
[hidden] { display: none !important; }

/* FAQ "see more" */
.ma-faq-more { text-align: center; margin-top: 26px; }

/* Contact cards — more flavour */
.ma-contactcard { position: relative; overflow: hidden; box-shadow: var(--ma-shadow-1); }
.ma-contactcard--emergency { background: linear-gradient(135deg, #D21A22 0%, var(--ma-red-dark) 100%); border-color: transparent; box-shadow: 0 12px 30px rgba(200,22,29,.22); }
.ma-contactcard--emergency::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.08); }
.ma-contactcard__label { display: inline-flex; align-items: center; gap: 8px; }
.ma-contactcard--emergency .ma-contactcard__label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: ma-pulse 2s infinite; }
@keyframes ma-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.ma-contactcard__num { position: relative; z-index: 1; }

/* ============================================================
   MY ACCOUNT — branded
   ============================================================ */
.woocommerce-account .ma-wc { display: block; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }
.woocommerce-MyAccount-navigation { width: 100%; float: none; background: #fff; border: 1px solid var(--ma-line-3); border-radius: 14px; padding: 12px; box-shadow: var(--ma-shadow-1); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 11px 14px; border-radius: 8px; font-weight: 600; color: var(--ma-slate); font-size: 15px; }
.woocommerce-MyAccount-navigation li a:hover { background: var(--ma-bg); color: var(--ma-red); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ma-red-tint); color: var(--ma-red-dark); }
.woocommerce-MyAccount-content { width: 100%; float: none; background: #fff; border: 1px solid var(--ma-line-3); border-radius: 14px; padding: 28px 30px; box-shadow: var(--ma-shadow-1); }
.woocommerce-MyAccount-content p { color: var(--ma-text); }
.woocommerce-account .woocommerce-MyAccount-content a { color: var(--ma-red-dark); font-weight: 600; }
.woocommerce-account form .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content .button { background: var(--ma-red); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font-weight: 700; font-family: var(--ma-font-head); cursor: pointer; }
.woocommerce-account form .woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover { background: var(--ma-red-dark); }
.woocommerce-account .woocommerce-form-row input,
.woocommerce-account .woocommerce-MyAccount-content input[type=text],
.woocommerce-account .woocommerce-MyAccount-content input[type=email],
.woocommerce-account .woocommerce-MyAccount-content input[type=password],
.woocommerce-account .woocommerce-MyAccount-content input[type=tel] { border: 1.5px solid var(--ma-line-4); border-radius: 8px; padding: 11px 13px; font-size: 15px; width: 100%; }
.woocommerce-account .woocommerce-MyAccount-content table { border-radius: 10px; overflow: hidden; }
.woocommerce-account .login, .woocommerce-account .register { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--ma-line-3); border-radius: 14px; padding: 30px; box-shadow: var(--ma-shadow-1); }
.woocommerce-account .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .woocommerce-account .col2-set { grid-template-columns: 1fr; } }

/* ============================================================
   DESIGN DEPTH & POLISH (v10.3) — refined & premium
   Layered depth + tasteful motion. All motion gated by
   body:not(.ma-motion-off) and prefers-reduced-motion.
   ============================================================ */

/* --- Section depth: gradient grounds + soft band separation --- */
.ma-section--grey { background: linear-gradient(180deg, #F4F7FA 0%, #EEF2F6 100%); }
.ma-section--white + .ma-section--white { position: relative; }

/* Navy bands get depth: radial sheen + faint star-of-life dot motif */
.ma-section--navy, .ma-pg-band, .ma-navycta, .ma-partners { position: relative; overflow: hidden; }
.ma-section--navy { background: radial-gradient(120% 120% at 100% 0%, #14538f 0%, var(--ma-navy) 60%, var(--ma-navy-dark) 100%); }
.ma-section--navy::after, .ma-pg-band::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.06) 1.5px, transparent 1.6px) 0 0 / 24px 24px;
  opacity: .5; mask-image: radial-gradient(circle at center, #000 40%, transparent 72%);
}

/* --- Cards: deeper layering + lift on hover --- */
.ma-pcard, .ma-card, .ma-bcard, .ma-cond, .ma-story, .ma-infocard, .ma-partnercard, .ma-impact, .ma-contactcard, .ma-bfeature {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .25s ease;
}
body:not(.ma-motion-off) .ma-pcard:hover,
body:not(.ma-motion-off) .ma-card:hover,
body:not(.ma-motion-off) .ma-bcard:hover,
body:not(.ma-motion-off) .ma-cond:hover,
body:not(.ma-motion-off) .ma-story:hover,
body:not(.ma-motion-off) .ma-partnercard:hover {
  transform: translateY(-6px);
  box-shadow: var(--ma-shadow-3);
}

/* Image zoom inside card media on hover (media must clip) */
.ma-pcard__media, .ma-card__media, .ma-bcard__media { overflow: hidden; }
.ma-pcard__media img, .ma-card__media img, .ma-bcard__media img,
.ma-pcard__media .ma-pph, .ma-card__media .ma-imgph {
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
body:not(.ma-motion-off) .ma-pcard:hover .ma-pcard__media img,
body:not(.ma-motion-off) .ma-card:hover .ma-card__media img,
body:not(.ma-motion-off) .ma-bcard:hover .ma-bcard__media img { transform: scale(1.06); }

/* --- Buttons: subtle sheen sweep on hover --- */
.ma-btn--primary { position: relative; overflow: hidden; }
.ma-btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
body:not(.ma-motion-off) .ma-btn--primary:hover::after { animation: ma-sheen .7s ease; }
@keyframes ma-sheen { from { left: -120%; } to { left: 130%; } }

/* --- Text links nudge on hover (labels already include their own arrow) --- */
.ma-rowhead__link, .ma-membership__link { display: inline-block; transition: color .15s ease, transform .25s ease; }
body:not(.ma-motion-off) .ma-rowhead__link:hover,
body:not(.ma-motion-off) .ma-membership__link:hover { transform: translateX(3px); }

/* --- Eyebrow chips: a touch more presence --- */
.ma-sectionhead__eyebrow, .ma-pagehero__eyebrow, .ma-rowhead .ma-eyebrow {
  box-shadow: 0 2px 8px rgba(200,22,29,.12);
}

/* --- Richer scroll reveal: deeper rise + gentle ease (subtle/standard only) --- */
html.ma-js body.ma-motion-standard [data-ma-reveal] > * { transform: translateY(28px) scale(.99); }
html.ma-js body:not(.ma-motion-off) [data-ma-reveal] > * {
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}

/* --- Animated stat counters --- */
.ma-stat__num, [data-ma-count] { font-variant-numeric: tabular-nums; }

/* --- Hero: gentle float on the product card --- */
body.ma-motion-standard .ma-hero__product { animation: ma-float 6s ease-in-out infinite; }
@keyframes ma-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .ma-pcard, .ma-card, .ma-bcard, .ma-cond, .ma-story, .ma-partnercard,
  .ma-pcard__media img, .ma-card__media img, .ma-bcard__media img, .ma-hero__product {
    transition: none !important; animation: none !important; transform: none !important;
  }
  .ma-btn--primary::after { display: none; }
}

/* ============================================================
   NAVY SECTION DEPTH (v10.4) — de-flatten the blue bands
   ============================================================ */
/* Richer "spotlight" gradient instead of one flat navy */
.ma-section--navy,
.ma-pg-band:not(.ma-pg-band--center),
.ma-pg-band--center {
  background: radial-gradient(110% 140% at 50% -12%, #1C63A4 0%, #0E4C84 44%, #0B3D6B 100%);
}
/* Soft dot motif, larger + a second corner, kept faint */
.ma-section--navy::after, .ma-pg-band::after {
  width: 520px; height: 520px; opacity: .45;
}
.ma-section--navy::before {
  content: ""; position: absolute; left: -90px; bottom: -90px; width: 380px; height: 380px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,.05) 1.5px, transparent 1.6px) 0 0 / 26px 26px;
  mask-image: radial-gradient(circle at center, #000 38%, transparent 72%);
}
.ma-section--navy > .ma-wrap, .ma-pg-band > * { position: relative; z-index: 1; }

/* Membership step cards → glass, with a red accent + depth */
.ma-mstep {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(4,18,38,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .25s ease;
}
.ma-mstep::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--ma-red), #ff5a61);
}
body:not(.ma-motion-off) .ma-mstep:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 22px 48px rgba(4,18,38,.4);
}
.ma-mstep__num {
  font-size: 46px;
  background: linear-gradient(180deg, #BFE0FF 0%, #6FA8DC 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #BFE0FF;
}

/* ============================================================
   SITE-WIDE DEPTH PASS (v10.5) — make every section "pop"
   ============================================================ */

/* --- Navy step cards unified: membership journey gets the glass look too --- */
.ma-jstep {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(4,18,38,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .25s ease;
}
.ma-jstep::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--ma-red), #ff5a61); }
body:not(.ma-motion-off) .ma-jstep:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.34); box-shadow: 0 22px 48px rgba(4,18,38,.4); }
.ma-jstep__num {
  font-size: 30px;
  background: linear-gradient(180deg, #BFE0FF 0%, #6FA8DC 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #BFE0FF;
}

/* --- Light page headers: subtle premium ground + faint motif (no longer plain) --- */
.ma-pagehero:not(.ma-pagehero--image),
.ma-contact-top:not(.ma-pagehero--image),
.ma-searchpage__head {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 50% -30%, #ffffff 0%, #EAF0F6 100%);
}
.ma-pagehero:not(.ma-pagehero--image)::after,
.ma-contact-top:not(.ma-pagehero--image)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: radial-gradient(circle, rgba(14,76,132,.06) 1.4px, transparent 1.5px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.ma-pagehero__inner, .ma-contact-top .ma-wrap { position: relative; z-index: 1; }

/* --- White cards everywhere: consistent gradient ground + depth --- */
.ma-contactcard:not(.ma-contactcard--emergency),
.ma-infocard, .ma-cform, .ma-apply__card, .ma-faq__item,
.ma-membership, .ma-checkout-extra {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFE 100%);
  border: 1px solid var(--ma-line-3);
  box-shadow: var(--ma-shadow-2);
}

/* --- Contact EMERGENCY block: fix contrast + make it pop --- */
.ma-contactcard--emergency {
  background: linear-gradient(135deg, #D21A22 0%, #C8161D 45%, #A6131A 100%);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(166,19,26,.34);
}
.ma-contactcard--emergency::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); pointer-events: none;
}
.ma-contactcard--emergency .ma-contactcard__label { color: rgba(255,255,255,.9); }
.ma-contactcard--emergency .ma-contactcard__num { color: #fff; }
.ma-contactcard--emergency p { color: rgba(255,255,255,.94); } /* was low-contrast pink */

/* --- FAQ accordions: depth + interactive accent --- */
.ma-faq__item { position: relative; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
body:not(.ma-motion-off) .ma-faq__item:hover { box-shadow: var(--ma-shadow-3); transform: translateY(-2px); }
.ma-faq__item.is-open { border-left: 3px solid var(--ma-red); box-shadow: var(--ma-shadow-3); }
.ma-faq__item.is-open .ma-faq__q span:first-child { color: var(--ma-red-dark); }
.ma-faq__icon { color: var(--ma-red); font-weight: 700; }

/* --- FAQ group headings (Contact) get a small accent --- */
.ma-faqgroup { position: relative; padding-left: 14px; }
.ma-faqgroup::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--ma-red); }

/* --- Info/contact cards: gentle hover lift (tie in with the card system) --- */
body:not(.ma-motion-off) .ma-infocard:hover,
body:not(.ma-motion-off) .ma-apply__card:hover { transform: translateY(-3px); box-shadow: var(--ma-shadow-3); }

/* ============================================================
   PALETTE v10.6 — introduce GOLD accent, retire the pink
   ============================================================ */
:root{
  --ma-gold: #D99A2B;
  --ma-gold-deep: #B97E16;
  --ma-gold-dark: #8F620F;
  --ma-gold-tint: #FAF1DD;
  --ma-gold-line: #ECD9AE;
  --ma-soft: #F2F5F8;        /* neutral soft-hover, replaces pink washes */
}

/* --- Active nav: clean red underline instead of the pink pill --- */
.ma-nav__link { position: relative; }
.ma-nav__link.is-active { background: transparent; color: var(--ma-red); }
.ma-nav__link.is-active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--ma-red);
}

/* --- 24-hour emergency pill: crisp white + red border (no pink fill) --- */
.ma-emergency-pill {
  background: #fff; border: 1.5px solid var(--ma-red); color: var(--ma-red-dark); font-weight: 700;
  box-shadow: 0 6px 16px rgba(200,22,29,.10);
}
.ma-emergency-pill__dot { background: var(--ma-red) !important; box-shadow: 0 0 0 4px rgba(200,22,29,.16); }

/* --- Eyebrow chips: soft gold instead of pink --- */
.ma-hero__eyebrow, .ma-pagehero__eyebrow, .ma-eyebrow:not(.ma-eyebrow--light),
.ma-sectionhead__eyebrow {
  background: var(--ma-gold-tint) !important; color: var(--ma-gold-dark) !important;
  box-shadow: 0 2px 8px rgba(217,154,43,.18);
}

/* --- Sale badges → GOLD (so they stop competing with the red CTAs) --- */
.ma-ribbon__pct, .ma-ribbon__save,
.ma-price__pct, .ma-price__savechip,
.ma-badge {
  background: var(--ma-gold) !important; color: #fff !important;
  box-shadow: 0 3px 10px rgba(140,98,15,.30);
}
.ma-ribbon::after { border-color: var(--ma-gold-deep) transparent transparent transparent !important; } /* folded-corner shadow */
.ma-price__save { background: var(--ma-gold-tint); color: var(--ma-gold-dark); } /* single-product inline save */

/* --- Replace remaining pink washes with neutral / gold tints --- */
.ma-subnav__link:hover, .ma-search__result:hover { background: var(--ma-soft); color: var(--ma-red); }
.ma-sresult__type { background: var(--ma-gold-tint); color: var(--ma-gold-dark); }
.ma-scenario__head { background: var(--ma-gold-tint); border-bottom-color: var(--ma-gold-line); }

/* ============================================================
   PALETTE v10.7 — badges back to RED; product CARD buttons → AZURE
   (single-product add-to-cart stays red; emergency stays as-is)
   ============================================================ */
:root{ --ma-blue: #2F80C4; --ma-blue-dark: #225F93; --ma-blue-tint: #E7F1FA; }

/* Sale badges: revert to brand red */
.ma-ribbon__pct, .ma-ribbon__save,
.ma-price__pct, .ma-price__savechip, .ma-badge {
  background: var(--ma-red) !important; color: #fff !important;
  box-shadow: 0 3px 10px rgba(150,15,20,.28);
}
.ma-ribbon::after { border-color: var(--ma-red-dark) transparent transparent transparent !important; }
.ma-price__save { background: var(--ma-red) !important; color: #fff !important; }

/* Product CARD call-to-action buttons → azure (shop, category, homepage,
   related). The single-product page add-to-cart stays red (.ma-atc rule). */
.ma-pcard__btn, .ma-card__btn {
  background: var(--ma-blue) !important; color: #fff !important;
  box-shadow: 0 2px 8px rgba(47,128,196,.30) !important;
}
.ma-pcard__btn:hover, .ma-card__btn:hover { background: var(--ma-blue-dark) !important; }

/* Soft accents move from gold → azure (keeps the palette to red + navy + azure) */
.ma-hero__eyebrow, .ma-pagehero__eyebrow, .ma-eyebrow:not(.ma-eyebrow--light),
.ma-sectionhead__eyebrow {
  background: var(--ma-blue-tint) !important; color: var(--ma-blue-dark) !important;
  box-shadow: 0 2px 8px rgba(47,128,196,.16);
}
.ma-sresult__type { background: var(--ma-blue-tint) !important; color: var(--ma-blue-dark) !important; }
.ma-scenario__head { background: var(--ma-blue-tint) !important; border-bottom-color: #CFE0F2 !important; }

/* =========================================================================
   v10.8 — MedicAlert Forms (built-in form builder)
   Front-end form styling. Reuses the .ma-cform grid tokens; adds states for
   AJAX submit, validation errors, choices, consent, headings and messages.
   ========================================================================= */
.ma-form { max-width: 100%; }
.ma-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ma-cform__full { grid-column: 1 / -1; }
.ma-cform__half { grid-column: auto; }
.ma-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ma-slate); margin-bottom: 6px; }
.ma-form input[type="text"], .ma-form input[type="email"], .ma-form input[type="tel"],
.ma-form input[type="number"], .ma-form input[type="date"], .ma-form select, .ma-form textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--ma-line-4); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.ma-form input:focus, .ma-form select:focus, .ma-form textarea:focus {
  outline: none; border-color: var(--ma-blue); box-shadow: 0 0 0 3px rgba(47,128,196,.15);
}
.ma-form textarea { resize: vertical; }
.ma-form__req { color: var(--ma-red); font-weight: 700; }
.ma-form__help { display: block; font-size: 12.5px; color: var(--ma-muted, #6b7480); margin-top: 5px; font-weight: 400; }
.ma-form__grouplabel { display: block; font-size: 13.5px; font-weight: 600; color: var(--ma-slate); margin-bottom: 8px; }
.ma-form__choices { display: flex; flex-direction: column; gap: 8px; }
.ma-form__choice { display: flex; gap: 9px; align-items: center; font-weight: 400; margin: 0; cursor: pointer; }
.ma-form__choice input { width: 17px; height: 17px; accent-color: var(--ma-blue); flex: none; }
.ma-form__consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 400; margin: 0; }
.ma-form__consent input { width: 17px; height: 17px; accent-color: var(--ma-red); flex: none; margin-top: 3px; }
.ma-form__consent span { font-size: 13.5px; color: var(--ma-text); }
.ma-form__heading h3 { margin: 8px 0 2px; font-size: 17px; color: var(--ma-navy); border-bottom: 2px solid var(--ma-line); padding-bottom: 8px; }
/* Honeypot — visually gone but present for bots. */
.ma-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* Error state */
.ma-form__field.is-error input, .ma-form__field.is-error select, .ma-form__field.is-error textarea {
  border-color: var(--ma-red); background: #FEF5F5;
}
/* Footer + spinner */
.ma-form__foot { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.ma-form__submit { margin-top: 0 !important; }
.ma-form.is-loading .ma-form__submit { opacity: .7; pointer-events: none; }
.ma-form__spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(47,128,196,.25);
  border-top-color: var(--ma-blue); display: none; }
.ma-form.is-loading .ma-form__spinner { display: inline-block; animation: ma-spin .7s linear infinite; }
@keyframes ma-spin { to { transform: rotate(360deg); } }
/* Messages */
.ma-form__msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.ma-form__msg.is-success { background: #E9F7EF; border: 1px solid #BFE6CD; color: #1B7A43; }
.ma-form__msg.is-error { background: #FDECEC; border: 1px solid #F5C2C2; color: var(--ma-red-dark); }
.ma-form__admin-note { padding: 14px; background: #FFF7E6; border: 1px solid #F0D9A6; border-radius: 8px; color: #7a5c00; }
@media (max-width: 640px) {
  .ma-form__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   v10.9 — Single product summary: tighter, sharper (TODO #2)
   Trims the oversized title / description / price block so it reads crisp.
   ========================================================================= */
.ma-summary__eyebrow { font-size: 11.5px; letter-spacing: .14em; margin-bottom: 8px; }
.ma-summary__title { font-size: clamp(23px, 2.5vw, 29px); line-height: 1.1; margin: 0 0 10px; }
.ma-summary__lead { font-size: 15px; line-height: 1.5; color: var(--ma-muted-2); margin: 0 0 16px; max-width: 480px; }
.ma-price { gap: 10px; margin-bottom: 5px; }
.ma-price__now { font-size: 25px; }
.ma-price__was { font-size: 16px; }
.ma-price__save { font-size: 12px; padding: 2px 8px; }
.ma-price__note { font-size: 12.5px; margin: 0 0 18px; }
.ma-variations { gap: 16px; }
.ma-vargroup__head { margin-bottom: 8px; }
.ma-vargroup__label { font-size: 12.5px; }
.ma-vargroup__value { font-size: 13px; }
.ma-swatch { width: 32px; height: 32px; }
.ma-atc { margin-top: 2px; }
.ma-atc table.variations tr { margin-bottom: 16px; }

/* =========================================================================
   v10.10 — Swatch names + image swatches + screen-reader fix
   ========================================================================= */
/* Standard accessibility helper — hides WooCommerce's "Price range: … through …"
   and other screen-reader-only text that must never render visibly. */
.screen-reader-text {
  border: 0 !important; clip: rect(1px,1px,1px,1px) !important; clip-path: inset(50%) !important;
  height: 1px !important; width: 1px !important; margin: -1px !important; padding: 0 !important;
  overflow: hidden !important; position: absolute !important; white-space: nowrap !important;
}
/* Swatches now sit in a labelled cell (swatch above, colour name below). */
.ma-swatches { gap: 14px 16px; align-items: flex-start; }
.ma-swatchwrap { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; text-align: center; }
.ma-swatch__name { font-size: 11.5px; line-height: 1.2; color: var(--ma-slate); font-weight: 600; }
.ma-swatchwrap .ma-swatch.is-active + .ma-swatch__name,
.ma-swatchwrap:hover .ma-swatch__name { color: var(--ma-red-dark); }
/* Image-based swatch for patterned / woven / camo straps. */
.ma-swatch--img { background-size: cover !important; background-position: center; background-repeat: no-repeat; }

/* =========================================================================
   v10.13 — Shop filter bar, redesigned: dropdown menus + active chips
   ========================================================================= */
.ma-filters { margin: 0 0 26px; }
.ma-filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 12px 14px; background: #fff; border: 1px solid var(--ma-line, #E3E8EE); border-radius: 14px; box-shadow: 0 4px 14px rgba(16,28,40,.05); }
.ma-filters__drops { display: flex; flex-wrap: wrap; gap: 10px; }
.ma-filters__sort { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ma-filters__sort label { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ma-muted-3, #6b7480); }
.ma-filters__sort select { padding: 9px 12px; border: 1.5px solid var(--ma-line-4, #D5DCE4); border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; cursor: pointer; }

/* Dropdown */
.ma-fdrop { position: relative; }
.ma-fdrop__btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: #fff;
  border: 1.5px solid var(--ma-line-4, #D5DCE4); border-radius: 9px; font-size: 14px; font-weight: 600; font-family: inherit;
  color: var(--ma-slate, #33404d); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ma-fdrop__btn:hover { border-color: var(--ma-blue, #2F80C4); }
.ma-fdrop.is-open .ma-fdrop__btn, .ma-fdrop__btn.is-active { border-color: var(--ma-blue, #2F80C4); box-shadow: 0 0 0 3px rgba(47,128,196,.12); }
.ma-fdrop__chev { font-size: 11px; color: var(--ma-muted-3, #6b7480); transition: transform .15s; }
.ma-fdrop.is-open .ma-fdrop__chev { transform: rotate(180deg); }
.ma-fdrop__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--ma-blue, #2F80C4); color: #fff; border-radius: 100px; font-size: 11.5px; font-weight: 800; }
.ma-fdrop__panel { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 230px; max-width: 320px;
  background: #fff; border: 1px solid var(--ma-line, #E3E8EE); border-radius: 12px; box-shadow: 0 16px 40px rgba(16,28,40,.16); padding: 8px; }
.ma-fdrop__scroll { max-height: 280px; overflow-y: auto; padding: 2px; }
.ma-fdrop__opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ma-slate, #33404d); cursor: pointer; }
.ma-fdrop__opt:hover { background: var(--ma-blue-tint, #E7F1FA); }
.ma-fdrop__opt input { accent-color: var(--ma-blue, #2F80C4); width: 16px; height: 16px; flex: none; }
.ma-fdrop__dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.ma-fdrop__price { display: flex; gap: 12px; padding: 6px 8px; }
.ma-fdrop__price label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ma-muted-3, #6b7480); }
.ma-fdrop__price input { width: 110px; padding: 8px 10px; border: 1.5px solid var(--ma-line-4, #D5DCE4); border-radius: 8px; font-size: 14px; font-family: inherit; }
.ma-fdrop__foot { border-top: 1px solid var(--ma-line, #E3E8EE); margin-top: 6px; padding: 10px 8px 4px; display: flex; justify-content: flex-end; }
.ma-btn--sm { padding: 8px 18px; font-size: 13.5px; }

/* Active filter chips */
.ma-filters__active { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.ma-filters__chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: var(--ma-blue-tint, #E7F1FA);
  border: 1px solid #CFE0F2; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--ma-blue-dark, #225F93); text-decoration: none; transition: background .12s; }
.ma-filters__chip:hover { background: #d9e8f7; }
.ma-filters__x { font-size: 15px; line-height: 1; opacity: .7; }
.ma-filters__clear { font-size: 13px; font-weight: 600; color: var(--ma-red, #C8161D); text-decoration: underline; margin-left: 4px; }

@media (max-width: 640px) {
  .ma-filters__bar { padding: 10px; }
  .ma-filters__drops { width: 100%; }
  .ma-fdrop { flex: 1 1 44%; }
  .ma-fdrop__btn { width: 100%; justify-content: space-between; }
  .ma-filters__sort { width: 100%; margin-left: 0; justify-content: space-between; }
  .ma-fdrop__panel { min-width: 200px; }
}

/* =========================================================================
   v10.15 — Multi-step forms (wizard) — progress nav + step panels
   ========================================================================= */
.ma-fstep-nav { display: flex; flex-wrap: wrap; gap: 6px 4px; list-style: none; margin: 0 0 26px; padding: 0 0 16px; border-bottom: 1px solid var(--ma-line, #E3E8EE); counter-reset: step; }
.ma-fstep-nav__item { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; color: var(--ma-muted-3, #8a929b); font-size: 13.5px; font-weight: 600; border-radius: 100px; }
.ma-fstep-nav__num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #E3E8EE; color: #6b7480; font-size: 13px; font-weight: 800; flex: none; transition: background .15s, color .15s; }
.ma-fstep-nav__item.is-active { color: var(--ma-navy, #0E4C84); }
.ma-fstep-nav__item.is-active .ma-fstep-nav__num { background: var(--ma-red, #C8161D); color: #fff; }
.ma-fstep-nav__item.is-done { color: var(--ma-slate, #33404d); }
.ma-fstep-nav__item.is-done .ma-fstep-nav__num { background: #1B7A43; color: #fff; }
.ma-fstep-nav__item.is-done .ma-fstep-nav__num::after { content: "✓"; }
.ma-fstep-nav__item.is-done .ma-fstep-nav__num { font-size: 0; }
.ma-fstep-nav__item.is-done .ma-fstep-nav__num::after { font-size: 14px; }
/* Step panels */
.ma-fstep { display: none; animation: ma-fstep-in .25s ease; }
.ma-fstep.is-active { display: block; }
@keyframes ma-fstep-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ma-fstep__title { font-family: var(--ma-font-head, inherit); font-weight: 800; font-size: 18px; color: var(--ma-navy, #0E4C84); margin: 0 0 16px; }
.ma-fstep__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ma-line, #E3E8EE); }
.ma-fstep__prev { background: none; border: none; color: var(--ma-red, #C8161D); font-weight: 700; font-size: 14.5px; font-family: inherit; cursor: pointer; padding: 8px 4px; }
.ma-fstep__prev:hover { text-decoration: underline; }
.ma-fstep__submit-wrap { display: inline-flex; align-items: center; gap: 12px; }
@media (max-width: 640px) {
  .ma-fstep-nav { gap: 4px 2px; }
  .ma-fstep-nav__label { display: none; }               /* numbers only on phones */
  .ma-fstep-nav__item.is-active .ma-fstep-nav__label { display: inline; } /* except current */
}

/* =========================================================================
   v10.18 — Membership monthly-fee card (replaces annual tiers)
   ========================================================================= */
.ma-feecard { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--ma-line, #E3E8EE); border-radius: 18px; padding: 32px 30px; text-align: center; box-shadow: 0 10px 30px rgba(16,28,40,.08); }
.ma-feecard__eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ma-blue-dark, #225F93); background: var(--ma-blue-tint, #E7F1FA); padding: 6px 14px; border-radius: 100px; margin-bottom: 14px; }
.ma-feecard__price { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.ma-feecard__amount { font-family: var(--ma-font-head, inherit); font-weight: 800; font-size: clamp(44px, 7vw, 60px); line-height: 1; color: var(--ma-red-dark, #A6131A); }
.ma-feecard__per { font-size: 18px; font-weight: 600; color: var(--ma-muted-2, #6b7480); }
.ma-feecard__note { font-size: 13.5px; color: var(--ma-muted-2, #6b7480); margin: 10px 0 22px; }
.ma-feecard__feats { text-align: left; max-width: 420px; margin: 0 auto 26px; display: grid; gap: 12px; }
.ma-feecard__feat { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ma-text, #333); }
.ma-feecard__feat span { color: #1B7A43; font-weight: 800; flex: none; }
.ma-feecard__cta { max-width: 320px; margin: 0 auto; }

/* =========================================================================
   v10.19 — Style the Brevo newsletter form to match the footer
   Targets the Brevo plugin's form markup ([sibwp_form]) inside the footer +
   blog newsletter wrappers so it inherits the site look (dark inputs, red
   button, white labels) instead of Brevo's plain default.
   ========================================================================= */
.ma-footer__brevo .sib-form, .ma-footer__brevo form,
.ma-blog-news__embed .sib-form, .ma-blog-news__embed form { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.ma-footer__brevo .sib-form-block, .ma-footer__brevo p,
.ma-footer__brevo label, .ma-blog-news__embed p, .ma-blog-news__embed label {
  color: #fff !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .07em !important;
  text-transform: uppercase !important; margin: 0 0 6px !important; padding: 0 !important; background: transparent !important;
}
.ma-footer__brevo input[type="text"], .ma-footer__brevo input[type="email"],
.ma-blog-news__embed input[type="text"], .ma-blog-news__embed input[type="email"] {
  width: 100% !important; padding: 12px 14px !important; margin: 4px 0 16px !important;
  border: 1px solid rgba(255,255,255,.35) !important; border-radius: 8px !important;
  background: #fff !important; color: #17324D !important; font-size: 15px !important; font-family: inherit !important; box-shadow: none !important;
}
.ma-footer__brevo input::placeholder, .ma-blog-news__embed input::placeholder { color: #7C8A99 !important; }
/* Blog band form: a clean centred column of consistent-width fields. */
.ma-blog-news__embed { max-width: 380px !important; }
.ma-blog-news__embed input[type="text"], .ma-blog-news__embed input[type="email"] { max-width: 380px !important; margin-left: auto !important; margin-right: auto !important; display: block !important; }
.ma-blog-news__embed label, .ma-blog-news__embed p { text-align: center !important; }
.ma-footer__brevo input[type="submit"], .ma-footer__brevo .sib-default-btn,
.ma-blog-news__embed input[type="submit"], .ma-blog-news__embed .sib-default-btn {
  background: var(--ma-red, #C8161D) !important; color: #fff !important; border: none !important;
  padding: 12px 26px !important; border-radius: 8px !important; font-weight: 700 !important; font-size: 15px !important;
  cursor: pointer !important; box-shadow: none !important; width: auto !important; text-transform: none !important;
}
.ma-footer__brevo input[type="submit"]:hover, .ma-blog-news__embed input[type="submit"]:hover { background: var(--ma-red-dark, #A6131A) !important; }
/* Brevo success / error message readability on the navy footer */
.ma-footer__brevo .sib-form-message-panel { color: #fff !important; }
/* Contain Brevo's own loading spinner / captcha / logo images so a stray asset
   can never balloon into a giant circle in the footer band. */
.ma-footer__brevo img,
.ma-footer__brevo svg,
.ma-footer__brevo [class*="loader"],
.ma-footer__brevo [class*="spinner"],
.ma-blog-news__embed img,
.ma-blog-news__embed [class*="loader"] { max-width: 40px !important; max-height: 40px !important; }
.ma-footer__brevo iframe,
.ma-blog-news__embed iframe { max-width: 100% !important; }

/* =========================================================================
   v10.20 — Native newsletter forms (footer + homepage) → Brevo
   Honeypot + inline success/error message that reads on navy or white.
   ========================================================================= */
.ma-news__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ma-news__msg { margin-top: 12px; font-size: 13.5px; line-height: 1.45; padding: 9px 13px; border-radius: 8px; }
.ma-news__msg.is-success { background: #E9F7EF; color: #1B7A43; border: 1px solid #BFE6CD; }
.ma-news__msg.is-error { background: #FDECEC; color: #A6131A; border: 1px solid #F5C2C2; }

/* =========================================================================
   v10.21 — Shop mega-menu (category rail + live product preview)
   ========================================================================= */
.ma-nav__item--mega { position: static; }
.ma-mega { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #EEF1F4;
  box-shadow: 0 26px 50px -20px rgba(20,40,60,.35); z-index: 60;
  visibility: hidden; opacity: 0; transition: opacity .16s ease, visibility .16s; }
.ma-mega.is-open { visibility: visible; opacity: 1; }
.ma-mega__inner { max-width: var(--ma-wrap); margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; }
.ma-mega__rail { background: #FAFBFC; border-right: 1px solid #EEF1F4; padding: 12px 10px; display: flex; flex-direction: column; gap: 1px;
  max-height: min(72vh, 540px); overflow-y: auto; overscroll-behavior: contain; }
/* slim "slider" scrollbar so a long category list stays compact */
.ma-mega__rail { scrollbar-width: thin; scrollbar-color: #C7D0D8 transparent; }
.ma-mega__rail::-webkit-scrollbar { width: 8px; }
.ma-mega__rail::-webkit-scrollbar-thumb { background: #C7D0D8; border-radius: 8px; border: 2px solid #FAFBFC; }
.ma-mega__rail::-webkit-scrollbar-thumb:hover { background: #AEBAC4; }
.ma-mega__cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left;
  padding: 7px 12px; border: none; background: none; border-radius: 8px; font-family: inherit; font-weight: 700; font-size: 13.5px; line-height: 1.25;
  color: var(--ma-slate, #3A3F45); cursor: pointer; text-decoration: none; transition: background .12s, color .12s; }
.ma-mega__cat:hover { background: #EEF2F6; }
.ma-mega__cat.is-active, .ma-mega__cat.is-active:hover { color: #fff; }
.ma-mega__cat.is-active { background: var(--ma-red, #C8161D); color: #fff; }
.ma-mega__cat > span:first-child { flex: 1 1 auto; }
.ma-mega__chev { flex: none; font-size: 15px; opacity: .5; }
.ma-mega__cat.is-active .ma-mega__chev { opacity: .9; }
.ma-mega__all { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; margin-top: 5px;
  border-top: 1px solid #EEF1F4; font-weight: 700; font-size: 13.5px; color: var(--ma-red-dark, #A6131A); text-decoration: none; flex: none; }
.ma-mega__all:hover { color: var(--ma-red, #C8161D); }
/* Panels size to their (max 3) product cards — no scrollbar here. Only the
   category rail on the left scrolls when the list is long. */
.ma-mega__panels { padding: 26px 32px; min-height: 260px; }
.ma-mega__panel { display: none; }
.ma-mega__panel.is-active { display: block; }
@keyframes ma-mega-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ma-mega__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ma-mega__title { font-family: var(--ma-font-head, serif); font-weight: 700; font-size: 22px; margin: 0; color: var(--ma-ink-strong, #1B1E22); }
.ma-mega__viewall { font-size: 14.5px; font-weight: 700; color: var(--ma-red-dark, #A6131A); text-decoration: none; white-space: nowrap; }
.ma-mega__viewall:hover { color: var(--ma-red, #C8161D); }
.ma-mega__blurb { font-size: 15px; color: var(--ma-muted-2, #5E666D); margin: 0 0 20px; max-width: 520px; line-height: 1.5; }
/* Mega-menu previews now use the site's real product cards (.ma-pcard) so they
   match the shop exactly — badges, colour dots and buttons included. */
.ma-mega__tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ma-mega__tiles .ma-pcard { font-size: 14px; }
.ma-mega__tile { text-decoration: none; display: block; }
.ma-mega__tile:hover { opacity: .9; }
.ma-mega__thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(135deg,#E4E9EE 0 12px,#EDF1F5 12px 24px); margin-bottom: 8px; }
.ma-mega__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ma-mega__tname { display: block; font-size: 14px; font-weight: 700; color: #2C3237; line-height: 1.25; }
.ma-mega__tprice { display: block; font-size: 13.5px; color: var(--ma-navy, #0E4C84); font-weight: 700; }
.ma-mega__tprice del { color: #9aa3ac; font-weight: 400; margin-right: 5px; }
.ma-mega__tprice ins { text-decoration: none; }
.ma-nav__item--mega .ma-nav__caret { transition: transform .15s; }
.ma-mega.is-open ~ .ma-header__inner .ma-nav__item--mega .ma-nav__caret { transform: rotate(180deg); }
@media (max-width: 900px) { .ma-mega { display: none; } }

/* ---------------------------------------------------------------------------
 * Thank-you page (/thank-you/) - shown after form submissions. Simple, warm,
 * and points people onward to the shop, FAQs and how-it-works.
 * ------------------------------------------------------------------------- */
.ma-ty { max-width: 900px; margin: 0 auto; padding: 56px 20px 72px; text-align: center; }
.ma-ty__badge { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px;
  border-radius: 50%; background: #EAF3EC; color: #2E7D46; margin-bottom: 22px; }
.ma-ty__title { font-family: var(--ma-font-head); font-size: clamp(32px, 5vw, 46px); font-weight: 800;
  color: var(--ma-navy, #0E4C84); margin: 0 0 14px; line-height: 1.1; }
.ma-ty__lead { font-size: 17px; line-height: 1.65; color: var(--ma-ink-strong, #1E1E1E); margin: 0 auto 10px; max-width: 620px; }
.ma-ty__note { font-size: 14px; color: var(--ma-muted-3, #5A6B7D); margin: 0 auto 40px; max-width: 620px; }
.ma-ty__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; margin-bottom: 40px; }
.ma-ty__card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(5,20,40,.08);
  border-radius: 14px; padding: 22px 22px 20px; text-decoration: none; box-shadow: 0 8px 22px rgba(5,20,40,.06);
  transition: transform .2s ease, box-shadow .2s ease; }
.ma-ty__card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(5,20,40,.13); }
.ma-ty__card-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ma-red, #C8161D); margin-bottom: 8px; }
.ma-ty__card-title { font-family: var(--ma-font-head); font-weight: 700; font-size: 18px;
  color: var(--ma-navy, #0E4C84); margin-bottom: 8px; }
.ma-ty__card-text { font-size: 14px; line-height: 1.6; color: var(--ma-ink-strong, #1E1E1E); margin-bottom: 14px; flex: 1 1 auto; }
.ma-ty__card-cta { font-size: 13.5px; font-weight: 700; color: var(--ma-navy, #0E4C84); }
.ma-ty__card:hover .ma-ty__card-cta { color: var(--ma-red, #C8161D); }
.ma-ty__back { margin: 0; }
@media (max-width: 860px) { .ma-ty__cards { grid-template-columns: 1fr; } .ma-ty { padding: 40px 18px 56px; } }
/* The thank-you page supplies its own centred heading, so hide the theme's
   default page title there (matched two ways so it survives a page rebuild). */
body.page-id-365162 .ma-product > h1.ma-h2 { display: none; }
body:has(.ma-ty) .ma-product > h1.ma-h2 { display: none; }
/* The theme's .ma-prose wrapper is a fixed 760px with no auto margins, so it
   sits left of centre. The thank-you page is a centred layout, so centre its
   wrapper (and let it breathe a little wider). */
body.page-id-365162 .ma-prose,
body:has(.ma-ty) .ma-prose { max-width: 940px; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------------------
 * Multi-step form: balanced step nav + higher-contrast inputs.
 * The nav was flex-wrap, so 8 steps broke 5/3. A 4-column grid gives an even
 * 4 + 4 and lets the labels breathe at a larger size.
 * ------------------------------------------------------------------------- */
.ma-fstep-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; align-items: start;
  padding-bottom: 20px; margin-bottom: 28px; }
.ma-fstep-nav__item { font-size: 15px; line-height: 1.3; padding: 4px 8px 4px 4px; align-items: center; }
.ma-fstep-nav__num { width: 30px; height: 30px; font-size: 14px; }
.ma-fstep-nav__item.is-done .ma-fstep-nav__num::after { font-size: 15px; }
@media (max-width: 900px) { .ma-fstep-nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .ma-fstep-nav { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px; }
  .ma-fstep-nav__item { font-size: 14px; }
}

/* Inputs were #fff on a white card with a very light border - hard to see where
   to type. Give them a tinted field colour and a stronger edge, then flip to
   white on focus so the active field stands out. */
.ma-form input[type="text"], .ma-form input[type="email"], .ma-form input[type="tel"],
.ma-form input[type="number"], .ma-form input[type="date"], .ma-form input[type="url"],
.ma-form input[type="password"], .ma-form select, .ma-form textarea {
  background: #F5F8FC;
  border: 1.5px solid #C3D0DF;
  color: var(--ma-ink-strong, #1E1E1E);
}
.ma-form input::placeholder, .ma-form textarea::placeholder { color: #8a929b; opacity: 1; }
.ma-form input[type="text"]:hover, .ma-form input[type="email"]:hover, .ma-form input[type="tel"]:hover,
.ma-form input[type="number"]:hover, .ma-form select:hover, .ma-form textarea:hover { border-color: #9FB3C8; }
.ma-form input:focus, .ma-form select:focus, .ma-form textarea:focus {
  background: #fff; border-color: var(--ma-blue, #2F80C4); box-shadow: 0 0 0 3px rgba(47,128,196,.18);
}
.ma-form label { font-size: 14px; color: var(--ma-slate, #33404d); }

/* ---------------------------------------------------------------------------
 * Shop filter bar sticks below the (already sticky, 89px) site header so
 * Category / Colour / Price / Availability / Sort stay reachable while
 * scrolling a long product grid. White backing + a little padding so products
 * scrolling underneath don't show through the bar's rounded corners.
 * ------------------------------------------------------------------------- */
.ma-filters { position: sticky; top: 89px; z-index: 40; background: #fff; padding-top: 10px; }
.ma-filters::after { content: ""; display: block; height: 10px; }
.ma-filters__bar { box-shadow: 0 6px 18px rgba(16,28,40,.10); }
/* Phones: the header is shorter and screen space is tight, so let the bar
   scroll away rather than eat a third of the viewport. */
@media (max-width: 782px) { .ma-filters { position: static; padding-top: 0; } .ma-filters::after { display: none; } }

/* Category description was capped at 620px, which squeezed a short promo line
   into three cramped lines. Widen to ~900px: about three-quarters of the wrap,
   so it reads as one or two lines while staying within a comfortable measure
   (full width would push past 140 characters a line, which is hard to read). */
.ma-cat-hero__intro { max-width: 900px; }
@media (max-width: 960px) { .ma-cat-hero__intro { max-width: 100%; } }
