/* Max Markt klantenkaart, in the Max Markt design system as the Odoo portal on staging (mm_portal): its colour
   tokens, Golos Text for headings and figures, Onest for text, Bitter capitals for labels; buttons ink on
   orange, links plum, orange never a text colour; corners 8 px, 20 px for cards, pills for buttons and labels;
   spacing 4 · 8 · 16 · 24 · 40 · 64. */
:root {
  --papier: #fffcf7;
  --vlak: #faf4ea;
  --terrazzo: #f2ede4;
  --lijn: #e7dcce;
  --inkt: #221b18;
  --walnoot: #6b4a32;
  --gedempt: #6b5f57;
  --oranje: #fa5a16;
  --amber: #fdb515;
  --pruim: #77286a;
  --g200: #dbe3d7;
  --g800: #4c6252;
  --a100: #fdf3dd;
  --wit: #ffffff;
  --kaart: #f5682c; /* the wallet card's own orange (approved for the passes) */
  --display: "Golos Text", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --label: "Bitter", Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  color: var(--inkt);
  font: 16px/1.55 var(--body);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--inkt);
  margin: 0;
}

a { color: var(--pruim); text-underline-offset: 4px; }

button { font: inherit; cursor: pointer; }

.mm-kicker, .mm-wallet-label, .mm-lang-code {
  font-family: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--walnoot);
  font-size: 12px;
}

.mm-muted { color: var(--gedempt); margin: 0 0 16px; }

/* ---------------------------------------------------------------- buttons */
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.mm-btn-primary { background: var(--oranje); border-color: var(--oranje); color: var(--inkt); }
.mm-btn-primary:hover { border-color: var(--inkt); }
.mm-btn-secondary { background: var(--papier); border-color: var(--inkt); color: var(--inkt); }
.mm-btn-secondary:hover { background: var(--terrazzo); }
.mm-btn-big { padding: 12px 24px; font-size: 17px; }
.mm-btn-block { width: 100%; }

.mm-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pruim);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------------- forms */
.mm-form { display: flex; flex-direction: column; gap: 16px; }

.mm-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }

.mm-field > span { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--inkt); }

.mm-field small { color: var(--gedempt); font-size: 13px; }

.mm-field input, .mm-field select {
  width: 100%;
  padding: 8px 16px;
  border: 1.5px solid var(--lijn);
  border-radius: 8px;
  background: var(--papier);
  color: var(--inkt);
  font: 16px/1.5 var(--body);
}

.mm-field input:focus, .mm-field select:focus { outline: none; border-color: var(--inkt); }

.mm-field input[aria-invalid], .mm-field select[aria-invalid] { border-color: #b42318; }

.mm-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; }

.mm-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--oranje); flex: none; }

.mm-error, .mm-field small.mm-error { color: #b42318; font-size: 14px; margin: 0; }

.mm-form-row { display: flex; justify-content: flex-end; font-size: 14px; margin-top: -8px; }

.mm-inline-form { margin-top: 16px; text-align: center; }

/* ---------------------------------------------------------------- header */
.mm-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--papier);
  border-bottom: 1px solid var(--lijn);
}

.mm-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
}

.mm-logo img { display: block; width: 48px; height: auto; }

.mm-nav { display: flex; gap: 8px; }

.mm-nav-link {
  position: relative;
  padding: 8px 16px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--inkt) !important;
  text-decoration: none;
  white-space: nowrap;
}

.mm-nav-link:hover { text-decoration: underline; }

.mm-nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--oranje);
}

.mm-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }

.mm-lang, .mm-user { position: relative; }

.mm-lang summary, .mm-user summary { list-style: none; cursor: pointer; }

.mm-lang summary::-webkit-details-marker, .mm-user summary::-webkit-details-marker { display: none; }

.mm-lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid var(--lijn);
  border-radius: 999px;
  font-family: var(--label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.mm-lang[open] summary { border-color: var(--inkt); }

.mm-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 216px;
  padding: 8px;
  border-radius: 20px;
  background: var(--papier);
  border: 1px solid var(--lijn);
  box-shadow: 0 16px 40px -24px rgba(34, 27, 24, 0.4);
}

.mm-menu a, .mm-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--inkt);
  text-align: left;
  text-decoration: none;
}

.mm-menu a:hover, .mm-menu button:hover { background: var(--vlak); }

.mm-menu a.active, .mm-menu button.active { background: var(--terrazzo); font-weight: 500; }

.mm-lang-code { width: 24px; font-size: 11px; }

.mm-user summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  font-weight: 500;
}

.mm-user summary:hover, .mm-user[open] summary { background: var(--vlak); }

.mm-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pruim);
  color: var(--wit);
  font-family: var(--display);
  font-weight: 800;
}

.mm-user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- page */
.mm-main { flex: 1 0 auto; }

.mm-container { max-width: 904px; margin: 0 auto; padding: 40px 24px 24px; }

.mm-back { display: inline-flex; margin-bottom: 16px; font-weight: 500; }

.mm-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.mm-hero .mm-kicker { margin-bottom: 8px; }

.mm-display { font-weight: 900; letter-spacing: -0.03em; font-size: clamp(32px, 4vw, 48px); line-height: 0.95; }

.mm-lead { margin: 16px 0 0; max-width: 56ch; color: var(--gedempt); font-size: 17px; }

.mm-panel { background: var(--vlak); border: 1px solid var(--lijn); border-radius: 20px; padding: 24px; }

.mm-panel-narrow { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }

.mm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.mm-wide { grid-column: 1 / -1; }

.mm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }

.mm-panel-narrow .mm-actions { margin-top: 8px; }

.mm-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 20px;
  color: var(--inkt);
}

.mm-notice svg { flex: none; margin-top: 2px; }

.mm-notice-success { background: var(--g200); }

.mm-notice-warn { background: var(--a100); margin-bottom: 0; }

.mm-message { font-size: 17px; }

/* ---------------------------------------------------------------- the card at the top of My account */
.mm-wallet-home {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px 40px;
  align-items: center;
  margin: 8px 0 32px;
}

.mm-wallet-card {
  width: 100%;
  background: var(--kaart);
  color: var(--wit);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(34, 27, 24, 0.55);
}

.mm-wallet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }

.mm-wallet-logo { height: 46px; width: auto; }

.mm-wallet-points { display: flex; flex-direction: column; align-items: flex-end; }

.mm-wallet-card .mm-wallet-label { color: var(--wit); font-family: var(--display); letter-spacing: 0.06em; font-size: 12px; }

.mm-wallet-value { font-family: var(--display); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }

.mm-wallet-strip { display: block; width: 100%; }

.mm-wallet-field { display: flex; flex-direction: column; gap: 2px; padding: 16px; }

.mm-wallet-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 16px 20px;
  padding: 12px;
  border-radius: 8px;
  background: var(--wit);
  color: var(--inkt);
  font-size: 14px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.mm-wallet-barcode svg { display: block; width: 100%; height: 80px; }

.mm-balance { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }

.mm-balance-value {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mm-balance-label { font-family: var(--display); font-weight: 700; }

a.mm-balance { color: var(--inkt); text-decoration: none; }

a.mm-balance:hover .mm-balance-label { text-decoration: underline; }

/* the last three points changes, under the balance beside the card */
.mm-recent { list-style: none; margin: 4px 0 8px; padding: 0; max-width: 380px; }

.mm-recent { font-size: 15px; }

.mm-recent li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--lijn);
}

.mm-recent li:last-child { border-bottom: 0; }

.mm-recent-points { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }

.mm-recent-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mm-recent-what a { color: inherit; text-decoration: none; }

.mm-recent-what a:hover { text-decoration: underline; }

.mm-recent-date { color: var(--gedempt); font-size: 14px; font-variant-numeric: tabular-nums; }

.mm-recent-all { display: flex; gap: 16px; margin: 0 0 16px; font-weight: 500; }

.mm-wallet-side .mm-recent-all { justify-content: inherit; }

.mm-plus { color: #3f6b48; }

.mm-minus { color: #b42318; }

.mm-plus + .mm-minus { margin-left: 8px; }

.mm-hint { margin: 0 0 8px; color: var(--gedempt); }

.mm-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }

.mm-badges img { display: block; height: 50px; width: auto; }

/* ---------------------------------------------------------------- profile banner, tiles */
.mm-profile-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 16px 24px;
  border: 1px solid var(--lijn);
  border-radius: 20px;
  background: var(--a100);
}

.mm-profile-banner .mm-btn { margin-left: auto; flex: none; }

/* the points on an orange disc, ink on orange as the buttons */
.mm-disc {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--oranje);
  color: var(--inkt);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.mm-disc-points { font-family: var(--display); font-size: 22px; font-weight: 900; letter-spacing: -0.02em; text-transform: none; }

.mm-banner-text { color: var(--gedempt); }

.mm-banner-text strong { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--inkt); }

.mm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.mm-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid var(--lijn);
  border-radius: 20px;
  background: var(--vlak);
  color: var(--inkt);
  text-decoration: none;
}

a.mm-tile:hover { border-color: var(--inkt); }

.mm-tile img { flex: none; width: 64px; height: 64px; }

.mm-tile strong { display: block; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

.mm-tile span { display: block; color: var(--gedempt); font-size: 15px; }

.mm-tile-done { opacity: 0.8; }

/* ---------------------------------------------------------------- footer */
.mm-footer { margin-top: 64px; background: var(--g800); color: var(--wit); }

.mm-footer-row { display: flex; align-items: center; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 24px; }

.mm-footer-row img { width: 40px; height: auto; }

.mm-tagline { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }

.mm-footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; font-size: 14px; }

.mm-footer-links a { color: var(--wit) !important; }

.mm-auth-legal { margin: 24px 0 0; font-size: 14px; }

/* ---------------------------------------------------------------- receipts, invoices: the design system's tables */
.mm-panel-flush { padding: 0; overflow-x: auto; }

.mm-table { width: 100%; border-collapse: collapse; }

.mm-table th {
  padding: 16px 24px;
  border-bottom: 1.5px solid var(--inkt);
  font-family: var(--label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--walnoot);
  text-align: left;
  white-space: nowrap;
}

.mm-table td { padding: 14px 24px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }

.mm-table tbody tr:last-child td { border-bottom: 0; }

.mm-table tfoot td { border-top: 1.5px solid var(--inkt); border-bottom: 0; font-weight: 700; }

.mm-table tfoot tr + tr td { border-top: 0; padding-top: 4px; }

.mm-table .mm-muted-row td { color: var(--gedempt); font-weight: 400; }

.mm-table th.mm-num, .mm-num { text-align: right; white-space: nowrap; }

.mm-amount { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }

.mm-row-link { position: relative; cursor: pointer; }

.mm-row-link:hover td { background: var(--terrazzo); }

.mm-row-ref { font-family: var(--display); font-weight: 700; color: var(--inkt); text-decoration: none; }

/* the whole row opens the receipt */
.mm-row-ref::after { content: ""; position: absolute; inset: 0; }

.mm-discount { color: var(--gedempt); font-size: 14px; }

.mm-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px 2px 10px;
  border-radius: 999px;
  background: var(--terrazzo);
  font-family: var(--label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mm-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--walnoot); }

.mm-state-paid { background: var(--g200); }

.mm-state-paid::before { background: #566e5b; }

.mm-state-open { background: var(--a100); }

.mm-state-open::before { background: var(--amber); }

.mm-empty {
  padding: 64px 24px;
  border: 1px solid var(--lijn);
  border-radius: 20px;
  background: var(--vlak);
  color: var(--gedempt);
  text-align: center;
}

.mm-empty img { display: block; margin: 0 auto 16px; }

.mm-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

.mm-pager-pos { color: var(--gedempt); }

/* general terms, privacy statement: reading width */
.mm-text { max-width: 720px; }

.mm-text h1 { font-weight: 900; letter-spacing: -0.03em; font-size: clamp(32px, 4vw, 48px); margin: 0 0 24px; }

.mm-text h2 { margin: 40px 0 8px; font-size: 22px; }

.mm-text li + li { margin-top: 4px; }

/* ---------------------------------------------------------------- log in, register */
.mm-auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }

.mm-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(24px, 6vw, 96px);
}

.mm-auth-brand > .mm-lang { position: absolute; top: 24px; right: 24px; }

.mm-auth-logo { width: 96px; height: auto; margin-bottom: 40px; }

.mm-auth-brand .mm-kicker { margin-bottom: 16px; }

.mm-auth-title { max-width: 11ch; margin: 0 0 24px; font-weight: 900; letter-spacing: -0.03em; font-size: clamp(40px, 5.5vw, 84px); line-height: 0.95; }

.mm-auth-lead { max-width: 34ch; margin: 0; font-size: 18px; font-weight: 300; color: var(--gedempt); }

.mm-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--papier) url("/img/pattern-oranje.jpg") center / cover;
}

.mm-auth-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 40px 24px;
  border-radius: 20px;
  background: var(--papier);
  border: 1px solid var(--lijn);
}

.mm-card-title { font-size: 28px; margin-bottom: 16px; }

.mm-auth-card .mm-form { margin-top: 8px; }

.mm-auth-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--lijn); text-align: center; font-size: 14px; }

/* ---------------------------------------------------------------- tablet, phone */
@media (max-width: 991.98px) {
  .mm-auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .mm-auth-brand { padding: 40px 24px; }
}

@media (max-width: 767.98px) {
  .mm-bar { gap: 8px 16px; padding: 8px 16px; }
  .mm-logo img { width: 40px; }
  .mm-nav, .mm-user-name { display: none; }
  .mm-footer-row { flex-wrap: wrap; }
  .mm-footer-links { margin-left: 0; }
  .mm-table th, .mm-table td { padding: 12px 16px; }
  .mm-container { padding: 24px 16px 16px; }
  .mm-auth-brand { padding: 24px 24px 32px; }
  .mm-auth-logo { width: 64px; margin-bottom: 16px; }
  .mm-auth-brand .mm-kicker { margin-bottom: 8px; font-size: 11px; }
  .mm-auth-title { max-width: none; margin-bottom: 8px; font-size: 36px; }
  .mm-auth-lead { font-size: 16px; }
  .mm-auth-panel { align-items: flex-start; padding: 24px 16px 40px; }
  .mm-auth-card { padding: 24px; }
}

@media (max-width: 599.98px) {
  .mm-wallet-home { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; margin-top: 0; }
  .mm-wallet-side { text-align: center; }
  .mm-balance, .mm-badges, .mm-recent-all { justify-content: center; }
  .mm-recent { margin-left: auto; margin-right: auto; text-align: left; }
  .mm-balance-value { font-size: 44px; }
  .mm-profile-banner { flex-wrap: wrap; }
  .mm-profile-banner .mm-btn { width: 100%; }
  .mm-tiles, .mm-grid { grid-template-columns: minmax(0, 1fr); }
  .mm-actions { flex-direction: column-reverse; }
  .mm-actions .mm-btn { width: 100%; }
}

/* platform additions */
[hidden] { display: none !important; }
.mm-loading { padding: 48px 24px; text-align: center; color: var(--inkt); }
.mm-card-title + .mm-panel { margin-top: 12px; }
.mm-container > .mm-card-title { margin-top: 32px; }
/* the pages render inside #app: it is the column that pushes the footer to the bottom of a short page */
#app { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
#app > .mm-auth { flex: 1 0 auto; }
/* a page that is still loading keeps what was shown, a little faded, instead of jumping to an empty one */
#app[aria-busy="true"] .mm-main, #app[aria-busy="true"] .mm-auth-card { opacity: .6; transition: opacity .15s .3s; }
/* a button that can't be used yet (passwords not matching, a request running) */
.mm-btn:disabled, .mm-btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
/* the password rules under a new-password field: grey until met, then green with a check */
.mm-pw-rules { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--gedempt); }
.mm-pw-rules li::before { content: "○ "; }
.mm-pw-rules li.ok { color: #3f6b48; }
.mm-pw-rules li.ok::before { content: "✓ "; }
/* a field shown for information only (the login e-mail) */
.mm-field input:disabled { background: var(--terrazzo); color: var(--gedempt); cursor: default; }

/* ---------------------------------------------------------------- two-step login */
.mm-status { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; }
.mm-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lijn); border: 1px solid var(--gedempt); }
.mm-dot-on { background: #3f6b48; border-color: #3f6b48; }
.mm-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.mm-steps p { margin: 8px 0 0; }
.mm-qr { width: 200px; max-width: 100%; margin-top: 12px; padding: 8px; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; }
.mm-qr svg { display: block; width: 100%; height: auto; }
.mm-key, .mm-codes code { font: 500 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.mm-key { word-break: break-all; color: var(--inkt); }
.mm-codes { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; }
.mm-auth-card .mm-notice { padding: 12px 16px; margin-bottom: 16px; }

/* ---------------------------------------------------------------- Acties: folders and actions of a store */
.mm-stores { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.mm-store { padding: 6px 16px; border: 1px solid var(--inkt); border-radius: 999px; color: var(--inkt); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px; }
.mm-store:hover { background: var(--terrazzo); }
.mm-store.active { background: var(--inkt); color: var(--papier); }
.mm-promo { margin-top: 32px; }
.mm-promo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 16px 24px; border-radius: 20px; background: var(--oranje); }
.mm-promo-head .mm-kicker { color: var(--inkt); }
.mm-promo-name { font-size: 28px; font-weight: 900; }
.mm-promo-until { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.mm-promo-notes { list-style: none; margin: 12px 0 0; padding: 12px 24px; border-radius: 20px; background: var(--a100); font-weight: 500; }
.mm-acties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.mm-actie { display: flex; flex-direction: column; border: 1px solid var(--lijn); border-radius: 20px; background: var(--wit); overflow: hidden; }
.mm-actie-img { position: relative; aspect-ratio: 4 / 3; background: var(--wit) url("/img/tiles/crate.svg") center / 64px no-repeat; }
.mm-actie-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--wit); }
.mm-actie-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px; border-top: 1px solid var(--lijn); }
.mm-actie-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.mm-deals { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-deal { padding: 2px 10px; border-radius: 999px; background: var(--amber); font-family: var(--display); font-weight: 700; font-size: 14px; }
.mm-actie-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.mm-actie-price strong { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; }
.mm-actie-price s, .mm-actie-unit, .mm-actie-content { color: var(--gedempt); font-size: 14px; }
.mm-actie-pct { color: #b42318; font-family: var(--display); font-weight: 700; font-size: 14px; }
@media (max-width: 767.98px) { .mm-acties { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .mm-actie-body { padding: 12px; } .mm-promo-head { padding: 12px 16px; } .mm-promo-name { font-size: 22px; } }
@media (max-width: 359.98px) { .mm-acties, .mm-codes { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- tables on a phone: each row a two-line block */
/* (the columns no longer fit: the amount, the part people look for, ended up cut off at the right) */
@media (max-width: 767.98px) {
  .mm-panel-flush:has(.mm-stack) { overflow-x: visible; }
  .mm-stack, .mm-stack tbody, .mm-stack tfoot { display: block; }
  .mm-stack thead { display: none; }
  .mm-stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--lijn); }
  .mm-stack tbody tr:last-child { border-bottom: 0; }
  .mm-stack td, .mm-table.mm-stack td { display: block; padding: 0; border: 0; min-width: 0; }
  .mm-stack .mm-row-link:hover { background: var(--terrazzo); }
  .mm-stack .mm-row-link:hover td { background: none; }
  .mm-stack tfoot tr { border-bottom: 0; padding-top: 4px; padding-bottom: 4px; }
  .mm-stack tfoot tr:first-child { border-top: 1.5px solid var(--inkt); padding-top: 12px; }
  .mm-stack tfoot tr:last-child { padding-bottom: 12px; }
  .mm-stack td[data-label]::before { content: attr(data-label) " "; }
  /* receipts: date · total / store · items */
  .mm-stack-orders td:nth-child(1) { grid-area: 1 / 1; }
  .mm-stack-orders td:nth-child(4) { grid-area: 1 / 2; }
  .mm-stack-orders td:nth-child(2), .mm-stack-orders td:nth-child(3) { color: var(--gedempt); font-size: 14px; }
  /* points: what · points / date · amount of the receipt */
  .mm-stack-points td:nth-child(2) { grid-area: 1 / 1; overflow-wrap: anywhere; }
  .mm-stack-points td:nth-child(4) { grid-area: 1 / 2; }
  .mm-stack-points td:nth-child(1), .mm-stack-points td:nth-child(3) { color: var(--gedempt); font-size: 14px; }
  /* receipt lines: product · total / quantity × price */
  .mm-stack-lines tbody tr { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 4px; }
  .mm-stack-lines tbody td:nth-child(1) { grid-area: 1 / 1 / 2 / 3; overflow-wrap: anywhere; }
  .mm-stack-lines tbody td:nth-child(4) { grid-area: 1 / 3; padding-left: 12px; }
  .mm-stack-lines tbody td:nth-child(2), .mm-stack-lines tbody td:nth-child(3) { text-align: left; color: var(--gedempt); font-size: 14px; }
  .mm-stack-lines tbody td:nth-child(3)::before { content: "× "; }
  /* invoices: number · total / date, state, PDF */
  .mm-stack-invoices tr { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
  .mm-stack-invoices td:nth-child(1) { grid-area: 1 / 1 / 2 / 3; overflow-wrap: anywhere; }
  .mm-stack-invoices td:nth-child(4) { grid-area: 1 / 3; }
  .mm-stack-invoices td:nth-child(2) { color: var(--gedempt); font-size: 14px; white-space: nowrap; }
  .mm-stack-invoices td:nth-child(3) { justify-self: start; }
}

/* the header's menus (language, account) stay on the screen: the header stays at the top, so a menu longer than
   the screen scrolls itself, and on a phone it hangs from the header's right edge, not from its button */
.mm-header .mm-menu { max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 767.98px) {
  .mm-header .mm-bar { position: relative; }
  .mm-header .mm-lang, .mm-header .mm-user { position: static; }
  .mm-header .mm-menu { right: 16px; top: calc(100% + 4px); max-width: calc(100vw - 32px); }
}
