/*
 * Mijn account (redesign 2026) — ported 1:1 from tasks/myaccount-redesign/foodsandgoods-mijn-account.html.
 * Everything is scoped under .fg-ma (the account page content wrapper); the mockup's :root tokens are
 * --fgma-* custom properties. Header/footer/USP CSS of the mockup is intentionally not here.
 * Loaded only on the account page (wp_footer <link> block in functions.php, after style.css). Keep the mockup section comments so a
 * side-by-side diff with the mockup stays easy.
 */
/* ---------- Foods & Goods tokens (uit de live huisstijl) ---------- */
.fg-ma {

  --fgma-teal: var(--color-1, #004b60);
  --fgma-teal-700: #00384a;
  --fgma-teal-100: #e3eef1;
  --fgma-teal-050: #f2f6f7;
  --fgma-yellow: var(--color-7, #ffbb00);
  --fgma-yellow-300: var(--color-7_1, #ffd668);
  --fgma-yellow-700: #b07a00;
  --fgma-ground: #ffffff;
  --fgma-panel: var(--color-14, #f2f6f7);
  --fgma-line: var(--color-33, #d8e0e3);
  --fgma-line-strong: #aebcc3;
  --fgma-ink: var(--color-43, #212529);
  --fgma-muted: #5a6b72;
  --fgma-link: #1b7ca6;
  --fgma-mint: var(--color-17, #50d3a3);
  --fgma-ok: #1a7f57;
  --fgma-ok-bg: #e4f5ec;
  --fgma-warn: #8f5400;
  --fgma-warn-bg: #fff3d1;
  --fgma-crit: #b3261e;
  --fgma-crit-bg: #fceceb;
  --fgma-info: #155f87;
  --fgma-info-bg: #e6f2fa;
  --fgma-neutral: #5a6b72;
  --fgma-neutral-bg: #eceff1;
  --fgma-r: 6px;
  --fgma-shadow: 0 1px 2px rgba(0, 75, 96, .10), 0 6px 16px rgba(0, 75, 96, .07);
  --fgma-font: 'Lato', Arial, Helvetica, sans-serif;
  --fgma-gutter: 16px;
  --fgma-maxw: 1200px;
}

.fg-ma *,
.fg-ma *::before,
.fg-ma *::after {
  box-sizing: border-box;
}

.fg-ma img,
.fg-ma svg {

  max-width: 100%;
  display: block;
}

.fg-ma h1,
.fg-ma h2,
.fg-ma h3,
.fg-ma h4 {

  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--fgma-ink);
}

.fg-ma h1 {

  font-size: 28px;
  font-weight: 900;
}

.fg-ma h2 {

  font-size: 20px;
  font-weight: 700;
}

.fg-ma h3 {

  font-size: 17px;
  font-weight: 700;
}

.fg-ma p {
  margin: 0;
}

.fg-ma a {

  color: var(--fgma-link);
  text-underline-offset: 2px;
}

.fg-ma a:hover {
  color: var(--fgma-teal);
}

.fg-ma button {

  font: inherit;
  color: inherit;
}

.fg-ma :focus-visible {

  outline: 3px solid var(--fgma-teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff;
}

.fg-ma .sr {

  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fg-ma .wrap {

  max-width: var(--fgma-maxw);
  margin: 0 auto;
  padding-inline: var(--fgma-gutter);
}

.fg-ma .num {
  font-variant-numeric: tabular-nums;
}

.fg-ma .muted {
  color: var(--fgma-muted);
}

.fg-ma .small {
  font-size: 14px;
}

.fg-ma .tiny {
  font-size: 13px;
}

.fg-ma .bold {
  font-weight: 700;
}

.fg-ma .stack {

  display: grid;
  gap: 12px;
}

.fg-ma .row {

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.fg-ma .mt8 {
  margin-top: 8px;
}

.fg-ma .mt16 {
  margin-top: 16px;
}

.fg-ma .mt24 {
  margin-top: 24px;
}

/* ---------- Site chrome ---------- */
/* ---------- Page frame ---------- */
.fg-ma {
  padding-block: 20px 48px;
}

.fg-ma .crumbs {

  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--fgma-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fg-ma .crumbs a {
  color: var(--fgma-muted);
}

.fg-ma .crumbs svg {

  width: 14px;
  height: 14px;
}

.fg-ma .page-head {

  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fg-ma .page-head .sub {
  color: var(--fgma-muted);
}

.fg-ma .acct {

  display: grid;
  gap: 20px;
}

.fg-ma .acct-main {

  min-width: 0;
  display: grid;
  gap: 24px;
  align-content: start;
}

@media(min-width:960px) {
  .fg-ma {
    padding-block: 24px 64px;
  }

  .fg-ma .acct {

    grid-template-columns: 236px minmax(0, 1fr);
    gap: 32px;
  }

  .fg-ma h1 {
    font-size: 32px;
  }
}

/* Account navigation: strip on mobile, sidebar on desktop */
.fg-ma .acct-nav {

  margin-inline: calc(var(--fgma-gutter) * -1);
  padding-inline: var(--fgma-gutter);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--fgma-line);
}

.fg-ma .acct-nav::-webkit-scrollbar {
  display: none;
}

.fg-ma .acct-nav ul {

  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  width: max-content;
}

.fg-ma .acct-nav .grp {
  display: none;
}

.fg-ma .acct-nav a {

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  min-height: 44px;
  white-space: nowrap;
  color: var(--fgma-teal);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
}

.fg-ma .acct-nav a svg {

  width: 18px;
  height: 18px;
  flex: none;
}

.fg-ma .acct-nav a[aria-current="page"] {

  border-bottom-color: var(--fgma-yellow);
  color: var(--fgma-teal-700);
}

.fg-ma .acct-nav a:hover {
  background: var(--fgma-teal-050);
}

.fg-ma .acct-nav .logout {
  color: var(--fgma-muted);
}

@media(min-width:960px) {
  .fg-ma .acct-nav {

    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    align-self: start;
    position: sticky;
    top: 16px;
  }

  .fg-ma .acct-nav ul {

    flex-direction: column;
    width: auto;
    gap: 2px;
  }

  .fg-ma .acct-nav .grp {

    display: block;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fgma-muted);
    font-weight: 700;
    padding: 14px 12px 6px;
  }

  .fg-ma .acct-nav li:first-child .grp {
    padding-top: 0;
  }

  .fg-ma .acct-nav a {

    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 0 var(--fgma-r) var(--fgma-r) 0;
    padding: 11px 12px;
  }

  .fg-ma .acct-nav a[aria-current="page"] {

    border-left-color: var(--fgma-yellow);
    background: var(--fgma-teal-100);
  }

  .fg-ma .acct-nav .logout {

    margin-top: 14px;
    border-top: 1px solid var(--fgma-line);
    padding-top: 14px;
    border-radius: 0;
  }
}

/* ---------- Components ---------- */
.fg-ma .card {

  background: var(--fgma-ground);
  border: 1px solid var(--fgma-line);
  border-radius: 8px;
  padding: 18px;
}

.fg-ma .card.panel {

  background: var(--fgma-panel);
  border-color: transparent;
}

.fg-ma .card.lift {
  box-shadow: var(--fgma-shadow);
}

.fg-ma .card-h {

  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.fg-ma .card-h h2,
.fg-ma .card-h h3 {
  margin: 0;
}

@media(min-width:760px) {
  .fg-ma .card {
    padding: 22px;
  }
}

.fg-ma .btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--fgma-r);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  line-height: 1.2;
  text-align: center;
}

.fg-ma .btn svg {
  display: none;
}

.fg-ma .btn-primary {

  background: var(--fgma-yellow);
  color: var(--fgma-teal);
  border-color: var(--fgma-yellow);
}

.fg-ma .btn-primary:hover {

  background: var(--fgma-yellow-300);
  border-color: var(--fgma-yellow-300);
  color: var(--fgma-teal-700);
}

.fg-ma .btn-secondary {

  background: #fff;
  color: var(--fgma-teal);
  border-color: var(--fgma-teal);
}

.fg-ma .btn-secondary:hover {

  background: var(--fgma-teal-100);
  color: var(--fgma-teal-700);
}

.fg-ma .btn-quiet {

  color: var(--fgma-teal);
  text-transform: none;
  letter-spacing: 0;
  padding-inline: 10px;
}

.fg-ma .btn-quiet:hover {
  background: var(--fgma-teal-050);
}

.fg-ma .btn-danger {

  color: var(--fgma-crit);
  border-color: var(--fgma-crit);
  background: #fff;
}

.fg-ma .btn-danger:hover {
  background: var(--fgma-crit-bg);
}

.fg-ma .btn-sm {

  min-height: 38px;
  padding: 6px 12px;
  font-size: 14px;
}

.fg-ma .btn-block {
  width: 100%;
}

.fg-ma .btn[disabled],
.fg-ma .btn[aria-disabled="true"] {

  opacity: .55;
  cursor: not-allowed;
}

.fg-ma .link-btn {

  background: none;
  border: 0;
  padding: 0;
  color: var(--fgma-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
}

.fg-ma .link-btn:hover {
  color: var(--fgma-teal);
}

.fg-ma .actions {

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Statuslabel: licht vlak, kleine radius, geen bolletje */
.fg-ma .chip {

  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.fg-ma .chip.ok {

  background: var(--fgma-ok-bg);
  color: var(--fgma-ok);
}

.fg-ma .chip.warn {

  background: var(--fgma-warn-bg);
  color: var(--fgma-warn);
}

.fg-ma .chip.crit {

  background: var(--fgma-crit-bg);
  color: var(--fgma-crit);
}

.fg-ma .chip.info {

  background: var(--fgma-info-bg);
  color: var(--fgma-info);
}

.fg-ma .chip.neutral {

  background: var(--fgma-neutral-bg);
  color: var(--fgma-neutral);
}

.fg-ma .alert {

  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid;
  align-items: flex-start;
}

.fg-ma .alert svg {

  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
}

.fg-ma .alert.warn {

  background: var(--fgma-warn-bg);
  border-color: #f0d58a;
  color: #4a2c00;
}

.fg-ma .alert.warn svg {
  color: var(--fgma-warn);
}

.fg-ma .alert.crit {

  background: var(--fgma-crit-bg);
  border-color: #efb8b3;
  color: #5c1712;
}

.fg-ma .alert.crit svg {
  color: var(--fgma-crit);
}

.fg-ma .alert.ok {

  background: var(--fgma-ok-bg);
  border-color: #a9dfc4;
  color: #0f4d34;
}

.fg-ma .alert.ok svg {
  color: var(--fgma-ok);
}

.fg-ma .alert.info {

  background: var(--fgma-info-bg);
  border-color: #b7d6ea;
  color: #0e3e58;
}

.fg-ma .alert.info svg {
  color: var(--fgma-info);
}

.fg-ma .alert .body {

  flex: 1;
  min-width: 0;
}

.fg-ma .alert .body p+p {
  margin-top: 4px;
}

.fg-ma .alert .body .actions {
  margin-top: 10px;
}

.fg-ma .tile {

  display: grid;
  place-items: center;
  border-radius: 8px;
  flex: none;
  background: var(--fgma-tint, #eef2f4);
  color: var(--fgma-tone, var(--fgma-teal));
}

.fg-ma .tile svg {

  width: 56%;
  height: 56%;
}

.fg-ma .tile.photo {

  position: relative;
  background: #fff;
  border: 1px solid var(--fgma-line);
  overflow: hidden;
}

.fg-ma .tile.photo img {

  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.fg-ma .thumbs {

  display: flex;
  gap: 6px;
  align-items: center;
}

.fg-ma .thumbs .tile {

  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.fg-ma .thumbs .more {

  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--fgma-muted);
  background: var(--fgma-panel);
}

/* Forms */
.fg-ma .form {

  display: grid;
  gap: 18px;
}

.fg-ma [hidden] {
  display: none !important;
}

.fg-ma .field {

  display: grid;
  gap: 6px;
  align-content: start;
}

.fg-ma .field label,
.fg-ma .field .lbl {

  font-weight: 700;
  font-size: 15px;
}

.fg-ma .field .hint {

  font-size: 14px;
  color: var(--fgma-muted);
}

.fg-ma .field .pc-hint.loading { color: #888; }
.fg-ma .field .pc-hint.found { color: #2e7d32; }
.fg-ma .field .pc-hint.notfound { color: #c62828; }

.fg-ma .field .req {

  color: var(--fgma-crit);
  font-weight: 700;
}

.fg-ma .inp {

  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--fgma-line-strong);
  border-radius: var(--fgma-r);
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--fgma-ink);
}

.fg-ma textarea.inp {

  min-height: 96px;
  resize: vertical;
}

.fg-ma select.inp {

  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23004b60' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 40px;
}

.fg-ma .inp:hover {
  border-color: var(--fgma-teal);
}

.fg-ma .inp:focus-visible {

  outline: 3px solid var(--fgma-teal);
  outline-offset: 1px;
  box-shadow: none;
  border-color: var(--fgma-teal);
}

.fg-ma .field.err .inp {

  border-color: var(--fgma-crit);
  box-shadow: inset 0 0 0 1px var(--fgma-crit);
}

.fg-ma .field .msg {

  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--fgma-crit);
  font-size: 14px;
  font-weight: 700;
}

.fg-ma .field .msg svg {

  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
}

.fg-ma .pw {
  position: relative;
}

.fg-ma .pw .inp {
  padding-right: 52px;
}

.fg-ma .pw .toggle {

  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--fgma-teal);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 4px;
}

.fg-ma .pw .toggle:hover {
  background: var(--fgma-teal-050);
}

.fg-ma .check {

  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 15px;
  min-height: 44px;
  padding-block: 10px;
}

.fg-ma .check input {

  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--fgma-teal);
  flex: none;
}

.fg-ma .grid2 {

  display: grid;
  gap: 18px;
}

@media(min-width:620px) {
  .fg-ma .grid2 {
    grid-template-columns: 1fr 1fr;
  }

  .fg-ma .grid2 .span {
    grid-column: 1 / -1;
  }
}

.fg-ma .form-foot {

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.fg-ma fieldset {

  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.fg-ma legend {

  font-weight: 700;
  font-size: 17px;
  padding: 0;
  margin-bottom: 12px;
}

/* Auth layout */
.fg-ma .auth {

  display: grid;
  gap: 20px;
  max-width: 1040px;
}

@media(min-width:860px) {
  .fg-ma .auth {

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
}

.fg-ma .auth .card {
  padding: 22px;
}

@media(min-width:760px) {
  .fg-ma .auth .card {
    padding: 28px;
  }
}

.fg-ma .benefits {

  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fg-ma .benefits li {

  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fg-ma .benefits svg {

  width: 20px;
  height: 20px;
  color: var(--fgma-ok);
  flex: none;
  margin-top: 2px;
}

/* Dashboard */
.fg-ma .dash-grid {

  display: grid;
  gap: 16px;
}

@media(min-width:760px) {
  .fg-ma .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fg-ma .dash-grid .span {
    grid-column: 1 / -1;
  }
}

.fg-ma .help-line {

  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}

.fg-ma .help-line svg {

  width: 20px;
  height: 20px;
  color: var(--fgma-teal);
  flex: none;
  margin-top: 2px;
}

/* Order list (rustige regels) */
.fg-ma .olist {

  border: 1px solid var(--fgma-line);
  border-radius: 8px;
  background: #fff;
}

.fg-ma .orow {

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "main total" "acts acts";
  gap: 10px 16px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--fgma-line);
}

.fg-ma .orow:first-child {
  border-top: 0;
}

.fg-ma .orow:hover {
  background: var(--fgma-teal-050);
}

.fg-ma .orow .thumbs {

  display: none;
  grid-area: th;
}

.fg-ma .orow .thumbs .tile,
.fg-ma .orow .thumbs .more {

  width: 40px;
  height: 40px;
}

.fg-ma .orow .main {

  grid-area: main;
  min-width: 0;
}

.fg-ma .orow .oid {

  font-weight: 900;
  color: var(--fgma-ink);
  text-decoration: none;
}

.fg-ma .orow .oid::after {

  content: "";
  position: absolute;
  inset: 0;
}

.fg-ma .orow .oid:hover {
  text-decoration: underline;
}

.fg-ma .orow .desc {

  font-size: 15px;
  color: var(--fgma-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fg-ma .orow .desc b {

  color: var(--fgma-ink);
  font-weight: 400;
}

.fg-ma .orow .st {

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 6px;
}

.fg-ma .orow .st {
  gap: 4px 10px;
}

.fg-ma .orow .acts .btn-quiet {
  padding-left: 0;
}

@media(min-width:760px) {
  .fg-ma .orow .acts .btn-quiet {
    padding-left: 10px;
  }
}

.fg-ma .orow .total {

  grid-area: total;
  font-weight: 700;
  font-size: 16px;
  align-self: start;
  text-align: right;
}

.fg-ma .orow .acts {

  grid-area: acts;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.fg-ma .orow .acts {
  gap: 2px;
}

.fg-ma .orow .acts .icon-btn {

  width: 40px;
  height: 40px;
  border-color: transparent;
  background: transparent;
}

.fg-ma .orow .acts .icon-btn:hover {

  border-color: var(--fgma-line);
  background: #fff;
}

.fg-ma .orow .acts .btn-quiet:hover {
  background: #fff;
}

.fg-ma .codes {

  display: grid;
  gap: 8px;
}

.fg-ma .code-row {

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--fgma-line);
  border-radius: 8px;
  background: var(--fgma-panel);
}

.fg-ma .code {

  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--fgma-teal);
}

.fg-ma .rsteps {

  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.fg-ma .btn[target=_blank] svg {

  display: inline-block;
  width: 16px;
  height: 16px;
}

.fg-ma .orow.dim .oid,
.fg-ma .orow.dim .total,
.fg-ma .orow.dim .desc b {
  color: var(--fgma-muted);
}

.fg-ma .orow.dim .thumbs {
  opacity: .5;
}

@media(min-width:760px) {
  .fg-ma .orow {

    grid-template-columns: 96px minmax(0, 1fr) 100px 250px;
    grid-template-areas: "th main total acts";
    gap: 20px;
    padding: 16px 20px;
  }

  .fg-ma .orow .thumbs {
    display: flex;
  }

  .fg-ma .orow .total {
    align-self: center;
  }

  .fg-ma .orow .acts {
    justify-content: flex-end;
  }
}

/* Kaartvariant (bestellijsten) */
.fg-ma .orders {

  display: grid;
  gap: 12px;
}

.fg-ma .order {

  border: 1px solid var(--fgma-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.fg-ma .order.dim {
  background: #fafbfc;
}

.fg-ma .order.dim .o-head {
  background: #eef1f2;
}

.fg-ma .order.dim .thumbs {
  opacity: .65;
}

.fg-ma .order.dim .total,
.fg-ma .order.dim .desc b {
  color: var(--fgma-muted);
}

.fg-ma .o-head {

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 16px;
  background: var(--fgma-panel);
  border-bottom: 1px solid var(--fgma-line);
  font-size: 14px;
  color: var(--fgma-muted);
}

.fg-ma .o-head .oid {

  font-weight: 900;
  font-size: 16px;
  color: var(--fgma-ink);
}

.fg-ma .o-head .oid a {

  color: inherit;
  text-decoration: none;
}

.fg-ma .o-head .oid a:hover {
  text-decoration: underline;
}

.fg-ma .o-head .chip {
  margin-left: auto;
}

.fg-ma .o-body {

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px 16px;
  align-items: center;
}

.fg-ma .o-body .thumbs {

  grid-column: 1;
  grid-row: 1;
}

.fg-ma .o-body .desc {

  grid-column: 1;
  grid-row: 2;
  font-size: 15px;
  color: var(--fgma-muted);
  min-width: 0;
  line-height: 1.4;
}

.fg-ma .o-body .desc b {
  color: var(--fgma-ink);
}

.fg-ma .o-body .desc .tiny {

  display: block;
  margin-top: 3px;
}

.fg-ma .o-body .total {

  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 900;
  font-size: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--fgma-line);
}

.fg-ma .o-body .total .lbl {

  font-size: 12px;
  font-weight: 700;
  color: var(--fgma-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fg-ma .o-actions {

  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.fg-ma .o-actions .btn {

  width: 100%;
  font-size: 14px;
  letter-spacing: .01em;
  padding-inline: 12px;
  white-space: nowrap;
}

.fg-ma .o-actions .links {

  display: flex;
  gap: 4px 12px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.fg-ma .o-actions .links a,
.fg-ma .o-actions .links button {

  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--fgma-teal);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.fg-ma .o-actions .links a:hover,
.fg-ma .o-actions .links button:hover {

  background: var(--fgma-teal-050);
  text-decoration: underline;
}

.fg-ma .o-actions .links svg {

  width: 16px;
  height: 16px;
}

.fg-ma .o-actions .links .danger {
  color: var(--fgma-crit);
}

.fg-ma .o-actions .links .danger:hover {
  background: var(--fgma-crit-bg);
}

@media(min-width:900px) {
  .fg-ma .o-body {

    grid-template-columns: 194px minmax(0, 1fr) 110px 236px;
    gap: 24px;
    padding: 16px 20px;
  }

  .fg-ma .o-body .thumbs {
    width: 194px;
  }

  .fg-ma .o-body .desc {

    grid-column: 2;
    grid-row: 1;
  }

  .fg-ma .o-body .total {

    grid-column: 3;
    grid-row: 1;
    display: block;
    text-align: right;
    padding: 0;
    border: 0;
    font-size: 17px;
  }

  .fg-ma .o-body .total .lbl {
    display: none;
  }

  .fg-ma .o-actions {

    grid-column: 4;
    grid-row: 1;
  }
}

.fg-ma .empty {

  padding: 32px 20px;
  text-align: center;
  color: var(--fgma-muted);
  border: 1px dashed var(--fgma-line-strong);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.fg-ma .empty svg {

  width: 36px;
  height: 36px;
  color: var(--fgma-line-strong);
}

.fg-ma .empty .btn {
  margin-top: 4px;
}

/* Order detail */
.fg-ma .steps {

  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: s;
}

.fg-ma .steps li {

  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.fg-ma .steps .dot {

  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--fgma-line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}

.fg-ma .steps .dot svg {

  width: 16px;
  height: 16px;
}

.fg-ma .steps li.done .dot {

  background: var(--fgma-teal);
  border-color: var(--fgma-teal);
}

.fg-ma .steps li.now .dot {

  border-color: var(--fgma-teal);
  background: var(--fgma-teal);
}

.fg-ma .steps li.next .dot {

  border-color: var(--fgma-yellow-700);
  border-style: dashed;
}

.fg-ma .steps .t {

  font-weight: 700;
  font-size: 15px;
}

.fg-ma .steps li:not(.done):not(.now) .t {

  color: var(--fgma-muted);
  font-weight: 400;
}

.fg-ma .steps li.next .t {

  color: var(--fgma-ink);
  font-weight: 700;
}

.fg-ma .steps .d {

  font-size: 13px;
  color: var(--fgma-muted);
}

.fg-ma .steps li::after {

  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -14px;
  width: 2px;
  background: var(--fgma-line);
}

.fg-ma .steps li:last-child::after {
  display: none;
}

.fg-ma .steps li.done::after {
  background: var(--fgma-teal);
}

@media(min-width:760px) {
  .fg-ma .steps {

    grid-template-columns: repeat(var(--fgma-n, 4), minmax(0, 1fr));
    gap: 8px;
  }

  .fg-ma .steps li {

    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .fg-ma .steps li::after {

    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    top: 13px;
    bottom: auto;
    height: 2px;
    width: auto;
  }
}

.fg-ma .items {

  display: grid;
  gap: 0;
}

.fg-ma .item {

  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--fgma-line);
}

.fg-ma .item:first-child {

  border-top: 0;
  padding-top: 0;
}

.fg-ma .item .tile {

  width: 56px;
  height: 56px;
}

.fg-ma .item .n {
  font-weight: 700;
}

.fg-ma .item .u {

  font-size: 13px;
  color: var(--fgma-muted);
}

.fg-ma .item .q {

  font-size: 14px;
  color: var(--fgma-muted);
}

.fg-ma .item .p {

  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.fg-ma .item .line-actions {
  grid-column: 2 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.fg-ma .item .line-actions .btn-quiet {
  padding-left: 0;
}

/* Sterren (productreviews) */
.fg-ma .rating {
  display: inline-flex;
  gap: 1px;
  color: var(--fgma-yellow);
  vertical-align: middle;
}

.fg-ma .rating svg {
  width: 18px;
  height: 18px;
}

.fg-ma .rating .off {
  color: var(--fgma-line);
}

.fg-ma .qstars {
  display: inline-flex;
  gap: 0;
}

.fg-ma .qstars button {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--fgma-line-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 4px;
  padding: 0;
}

.fg-ma .qstars button svg {
  width: 24px;
  height: 24px;
}

.fg-ma .qstars:hover button {
  color: var(--fgma-yellow);
}

.fg-ma .qstars button:hover~button {
  color: var(--fgma-line-strong);
}

.fg-ma .rv-list {
  display: grid;
}

.fg-ma .rv-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--fgma-line);
}

.fg-ma .rv-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.fg-ma .rv-row .tile {
  width: 56px;
  height: 56px;
}

.fg-ma .rv-row .n {
  font-weight: 700;
}

.fg-ma .rv-row .u {
  font-size: 13px;
  color: var(--fgma-muted);
}

.fg-ma .rv-row .act {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

@media(min-width:700px) {
  .fg-ma .rv-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .fg-ma .rv-row .act {
    grid-column: 3;
  }
}

.fg-ma .rv {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--fgma-line);
}

.fg-ma .rv:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.fg-ma .rv .t {
  font-weight: 700;
}

.fg-ma .rv .who {
  font-size: 13px;
  color: var(--fgma-muted);
}

.fg-ma .verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fgma-ok);
}

.fg-ma .verified svg {
  width: 14px;
  height: 14px;
}

.fg-ma .rv-prod {
  display: flex;
  gap: 12px;
  align-items: center;
}

.fg-ma .rv-prod .tile {
  width: 48px;
  height: 48px;
}

.fg-ma .totals {

  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fgma-line);
  max-width: 360px;
  margin-left: auto;
}

.fg-ma .totals div {

  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.fg-ma .totals .grand {

  font-weight: 900;
  font-size: 18px;
  padding-top: 6px;
  border-top: 1px solid var(--fgma-line);
  margin-top: 4px;
}

.fg-ma .kv {

  display: grid;
  gap: 4px;
  font-size: 15px;
}

.fg-ma .kv dt {

  color: var(--fgma-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}

.fg-ma .kv dd {
  margin: 0 0 8px;
}

.fg-ma .addr {
  white-space: pre-line;
}

.fg-ma .dl {

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fg-ma .dl a,
.fg-ma .dl button {

  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--fgma-line);
  border-radius: var(--fgma-r);
  text-decoration: none;
  color: var(--fgma-teal);
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  min-height: 44px;
}

.fg-ma .dl a:hover,
.fg-ma .dl button:hover {

  border-color: var(--fgma-teal);
  background: var(--fgma-teal-050);
}

.fg-ma .dl svg {

  width: 18px;
  height: 18px;
}

.fg-ma .detail-grid {

  display: grid;
  gap: 16px;
}

@media(min-width:900px) {
  .fg-ma .detail-grid {

    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    align-items: start;
  }
}

.fg-ma .track {

  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--fgma-info-bg);
  border-radius: 8px;
}

.fg-ma .track svg {

  width: 22px;
  height: 22px;
  color: var(--fgma-info);
}

.fg-ma .track code {

  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.fg-ma .dash-grid>*,
.fg-ma .acct-main>* {
  min-width: 0;
}

.fg-ma .add-btn {

  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: var(--fgma-r);
  background: var(--fgma-yellow);
  color: var(--fgma-teal);
  cursor: pointer;
}

.fg-ma .add-btn:hover {
  background: var(--fgma-yellow-300);
}

.fg-ma .add-btn svg {

  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.fg-ma .qty {

  display: inline-flex;
  align-items: center;
  border: 1px solid var(--fgma-line-strong);
  border-radius: var(--fgma-r);
  overflow: hidden;
  height: 40px;
}

.fg-ma .qty button {

  width: 40px;
  height: 100%;
  border: 0;
  background: #fff;
  color: var(--fgma-teal);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.fg-ma .qty button:hover {
  background: var(--fgma-teal-050);
}

.fg-ma .qty button svg {

  width: 16px;
  height: 16px;
}

.fg-ma .qty input {

  width: 44px;
  height: 100%;
  border: 0;
  border-inline: 1px solid var(--fgma-line);
  text-align: center;
  font: inherit;
  font-weight: 700;
  -moz-appearance: textfield;
}

.fg-ma .qty input::-webkit-outer-spin-button,
.fg-ma .qty input::-webkit-inner-spin-button {

  -webkit-appearance: none;
  margin: 0;
}

.fg-ma .icon-btn {

  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fgma-line);
  border-radius: var(--fgma-r);
  background: #fff;
  color: var(--fgma-teal);
  cursor: pointer;
}

.fg-ma .icon-btn:hover {

  border-color: var(--fgma-teal);
  background: var(--fgma-teal-050);
}

.fg-ma .icon-btn.danger {
  color: var(--fgma-crit);
}

.fg-ma .icon-btn.danger:hover {

  background: var(--fgma-crit-bg);
  border-color: var(--fgma-crit);
}

.fg-ma .icon-btn svg {

  width: 18px;
  height: 18px;
}

/* Address cards */
.fg-ma .addr-grid {

  display: grid;
  gap: 12px;
}

@media(min-width:700px) {
  .fg-ma .addr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fg-ma .acard {

  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--fgma-line);
  border-radius: 8px;
  background: #fff;
  grid-template-rows: auto 1fr auto;
}

.fg-ma .acard .lbl {

  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fgma-muted);
  font-weight: 700;
}

.fg-ma .acard .who {
  font-weight: 700;
}

/* Tables */
.fg-ma .tbl-wrap {

  overflow-x: auto;
  margin-inline: calc(var(--fgma-gutter) * -1);
  padding-inline: var(--fgma-gutter);
}

.fg-ma table.tbl {

  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.fg-ma .tbl th {

  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fgma-muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--fgma-line);
}

.fg-ma .tbl td {

  padding: 12px 10px;
  border-bottom: 1px solid var(--fgma-line);
  vertical-align: middle;
}

.fg-ma .tbl td.r,
.fg-ma .tbl th.r {
  text-align: right;
}

.fg-ma .tbl tr:hover td {
  background: var(--fgma-teal-050);
}

/* Section headings */
.fg-ma .sec {

  display: grid;
  gap: 12px;
}

.fg-ma .sec-h {

  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
}

.fg-ma .sec-h h2 {
  font-size: 20px;
}

.fg-ma .sec-h a {

  font-weight: 700;
  font-size: 15px;
}

/* Segmented control (facturen per maand / kwartaal) */
.fg-ma .seg {

  display: inline-flex;
  border: 1px solid var(--fgma-line-strong);
  border-radius: var(--fgma-r);
  overflow: hidden;
  background: #fff;
}

.fg-ma .seg button {

  min-height: 40px;
  padding: 6px 14px;
  border: 0;
  background: #fff;
  color: var(--fgma-teal);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.fg-ma .seg button+button {
  border-left: 1px solid var(--fgma-line-strong);
}

.fg-ma .seg button[aria-pressed="true"] {

  background: var(--fgma-teal);
  color: #fff;
}

.fg-ma .seg button:not([aria-pressed="true"]):hover {
  background: var(--fgma-teal-050);
}

.fg-ma .inv-grp+.inv-grp {

  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--fgma-line);
}

.fg-ma .inv-grp .card-h {
  margin-bottom: 6px;
}

.fg-ma .inv-grp h3 {
  font-size: 17px;
}

.fg-ma .inv-grp .tbl .icon-btn {

  width: 40px;
  height: 40px;
  border-color: transparent;
  background: transparent;
}

.fg-ma .inv-grp .tbl .icon-btn:hover {

  border-color: var(--fgma-line);
  background: #fff;
}

.fg-ma .inv-grp .tbl td {
  padding-block: 8px;
}

.fg-ma .rv-prod {

  display: flex;
  gap: 12px;
  align-items: center;
}

.fg-ma .rv-prod .tile {

  width: 48px;
  height: 48px;
}

/* Dialog */
.fg-ma dialog {

  border: 0;
  border-radius: 10px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  color: var(--fgma-ink);
}

.fg-ma dialog.wide {
  width: min(660px, calc(100vw - 32px));
}

.fg-ma dialog::backdrop {
  background: rgba(0, 40, 52, .55);
}

.fg-ma .dlg {

  padding: 22px;
  display: grid;
  gap: 14px;
}

.fg-ma .dlg h2 {
  font-size: 20px;
}

.fg-ma .dlg .actions {

  justify-content: flex-end;
  margin-top: 6px;
}

.fg-ma .dlg .close {

  position: absolute;
  right: 8px;
  top: 8px;
}

@media(max-width:559px) {
  .fg-ma .dlg .actions {

    flex-direction: column-reverse;
    align-items: stretch;
  }

  .fg-ma .dlg .actions .btn {
    width: 100%;
  }
}

/* Reorder dialog */
.fg-ma .ro-top {

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fg-ma .ro-all {

  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  min-height: 36px;
  cursor: pointer;
}

.fg-ma .ro-all input,
.fg-ma .ro-line input[type=checkbox] {

  width: 22px;
  height: 22px;
  accent-color: var(--fgma-teal);
  margin: 0;
  flex: none;
  cursor: pointer;
}

.fg-ma .ro-list {

  max-height: min(56vh, 470px);
  overflow: auto;
  border: 1px solid var(--fgma-line);
  border-radius: 8px;
}

.fg-ma .ro-line {

  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr) auto;
  grid-template-areas: "c t n n" "c q q s";
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--fgma-line);
}

.fg-ma .ro-line:first-child {
  border-top: 0;
}

.fg-ma .ro-line input[type=checkbox] {
  grid-area: c;
}

.fg-ma .ro-line .tile {

  grid-area: t;
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.fg-ma .ro-line .info {

  grid-area: n;
  min-width: 0;
}

.fg-ma .ro-line .qty {

  grid-area: q;
  justify-self: start;
}

.fg-ma .ro-line .sub {

  grid-area: s;
  font-weight: 700;
  text-align: right;
  align-self: center;
}

.fg-ma .ro-line .n {

  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}

.fg-ma .ro-line .tier {

  display: grid;
  gap: 3px;
  font-size: 13px;
  margin-top: 2px;
}

.fg-ma .ro-line .tier s {

  color: var(--fgma-muted);
  font-weight: 400;
  margin-left: 2px;
}

.fg-ma .disc {

  color: var(--fgma-ok);
  font-weight: 700;
}

.fg-ma .ro-line .sub .disc {

  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.fg-ma .nudge {

  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--fgma-teal);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
  font-family: inherit;
  border-radius: 4px;
}

.fg-ma .nudge svg {

  width: 14px;
  height: 14px;
  flex: none;
}

.fg-ma .nudge:hover {
  text-decoration: underline;
}

.fg-ma .nudge.best {

  color: var(--fgma-ok);
  cursor: default;
}

.fg-ma .nudge.best:hover {
  text-decoration: none;
}

.fg-ma .ro-line.off .nudge {
  color: var(--fgma-muted);
}

@media(max-width:559px) {
  .fg-ma .ro-line .tier s {
    display: none;
  }
}

.fg-ma .ro-line .u {

  font-size: 13px;
  color: var(--fgma-muted);
}

.fg-ma .ro-line.off {
  background: #fafbfc;
}

.fg-ma .ro-line.off .n,
.fg-ma .ro-line.off .sub {
  color: var(--fgma-muted);
}

.fg-ma .ro-line.off .tile,
.fg-ma .ro-line.off .qty {
  opacity: .5;
}

@media(min-width:560px) {
  .fg-ma .ro-line {

    grid-template-columns: auto 44px minmax(0, 1fr) auto 84px;
    grid-template-areas: "c t n q s";
  }

  .fg-ma .ro-line .sub {
    min-width: 84px;
  }
}

.fg-ma .pl-list {
  max-height: none;
}

.fg-ma .ro-sum .fl {
  display: block;
}

.fg-ma .ro-sum .fl:empty {
  display: none;
}

.fg-ma .ro-line.nochk {

  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: "t n n" "q q s" "a a a";
}

.fg-ma .ro-line .act {

  grid-area: a;
  display: flex;
  gap: 2px;
  align-items: center;
  justify-self: end;
}

.fg-ma .ro-line .act .icon-btn {

  width: 40px;
  height: 40px;
  border-color: transparent;
  background: transparent;
}

.fg-ma .ro-line .act .icon-btn:hover {

  border-color: var(--fgma-line);
  background: #fff;
}

.fg-ma .ro-line .act .add-btn {

  width: 40px;
  height: 40px;
}

.fg-ma .add-btn:disabled {

  background: var(--fgma-neutral-bg);
  color: var(--fgma-line-strong);
  cursor: not-allowed;
}

.fg-ma .ro-line.soldout .qty {
  opacity: .4;
}

.fg-ma .ro-line.soldout .tile {
  opacity: .5;
}

.fg-ma .qty button:disabled,
.fg-ma .qty input:disabled {

  cursor: not-allowed;
  background: #fafbfc;
}

.fg-ma .stock {

  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.fg-ma .stock.in {
  color: var(--fgma-ok);
}

.fg-ma .stock.out {
  color: var(--fgma-crit);
}

.fg-ma .stock.back {
  color: var(--fgma-warn);
}

@media(min-width:560px) {
  .fg-ma .ro-line.nochk {

    grid-template-columns: 44px minmax(0, 1fr) auto 84px auto;
    grid-template-areas: "t n q s a";
  }
}

.fg-ma .ro-foot {

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--fgma-line);
}

.fg-ma .ro-sum {
  font-size: 15px;
}

.fg-ma .ro-sum b {

  font-size: 18px;
  font-weight: 900;
}

.fg-ma .ro-foot .actions {
  margin: 0;
}

@media(max-width:559px) {
  .fg-ma .ro-foot .actions {
    width: 100%;
  }
}

/* Drawer (mobile category menu) */
/* Toasts */
.fg-ma #toasts {

  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  z-index: 60;
  pointer-events: none;
}

@media(min-width:620px) {
  .fg-ma #toasts {

    left: auto;
    width: 380px;
  }
}

.fg-ma .toast {

  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--fgma-teal);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 15px;
}

.fg-ma .toast svg {

  width: 22px;
  height: 22px;
  flex: none;
  color: var(--fgma-mint);
}

.fg-ma .toast .b {
  flex: 1;
}

.fg-ma .toast a {

  color: #fff;
  font-weight: 700;
}

.fg-ma .toast .x {

  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  margin: -6px -8px -6px 0;
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.fg-ma .toast .x:focus-visible {

  outline-color: var(--fgma-yellow);
  box-shadow: none;
}

@media(prefers-reduced-motion:no-preference) {
  .fg-ma .toast {
    animation: up .25s ease-out;
  }

  @keyframes up {
    from {
      transform: translateY(8px);
      opacity: 0
    }

    to {
      transform: none;
      opacity: 1
    }
  }
}

/* Footer */
/* ======================================================================
 * Theme neutralisation + additions (not in the mockup)
 * ====================================================================== */
.fg-ma {

  font: 400 16px/1.5 var(--fgma-font);
  color: var(--fgma-ink);
  background: var(--fgma-ground);
  -webkit-text-size-adjust: 100%;
}

.fg-ma .fg-ma-main {
  padding-block: 20px 48px;
}

@media(min-width:960px) {
  .fg-ma .fg-ma-main {
    padding-block: 24px 64px;
  }
}

.fg-ma input,
.fg-ma select,
.fg-ma textarea,
.fg-ma button {

  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  box-shadow: none;
}

.fg-ma input[type=checkbox],
.fg-ma input[type=radio] {

  width: 20px;
  height: 20px;
  appearance: auto;
  -webkit-appearance: auto;
  position: static;
  opacity: 1;
}

.fg-ma .inp,
.fg-ma input.inp,
.fg-ma select.inp,
.fg-ma textarea.inp {

  height: auto;
  line-height: 1.4;
  box-shadow: none;
  margin: 0;
  max-width: none;
  border: 1px solid var(--fgma-line-strong);
  border-radius: var(--fgma-r);
}

.fg-ma .field.err .inp {

  border-color: var(--fgma-crit);
  box-shadow: inset 0 0 0 1px var(--fgma-crit);
}

.fg-ma .btn,
.fg-ma a.btn,
.fg-ma button.btn,
.fg-ma .icon-btn,
.fg-ma .add-btn,
.fg-ma .link-btn,
.fg-ma .qty button,
.fg-ma .seg button,
.fg-ma .nudge,
.fg-ma .toast .x,
.fg-ma .pw .toggle {

  box-shadow: none;
  text-shadow: none;
  transition: none;
  margin: 0;
}

.fg-ma a.btn:hover,
.fg-ma a.btn:focus {
  text-decoration: none;
}

.fg-ma .btn-primary,
.fg-ma a.btn-primary {
  color: var(--fgma-teal);
}

.fg-ma ul,
.fg-ma ol {
  margin-bottom: 0;
}

.fg-ma .rsteps {
  padding-left: 20px;
}

.fg-ma .rsteps li {
  list-style: decimal;
}

.fg-ma table.tbl,
.fg-ma table.tbl th,
.fg-ma table.tbl td {

  border: 0;
  background: transparent;
}

.fg-ma table.tbl th {
  border-bottom: 2px solid var(--fgma-line);
}

.fg-ma table.tbl td {
  border-bottom: 1px solid var(--fgma-line);
}

.fg-ma dl,
.fg-ma dd {
  margin: 0;
}

.fg-ma .kv dd {
  margin: 0 0 8px;
}

.fg-ma .acct-nav a,
.fg-ma .crumbs a,
.fg-ma .dl a,
.fg-ma .orow .oid,
.fg-ma .o-head .oid a {
  text-decoration: none;
}

.fg-ma .acct-nav a:hover,
.fg-ma .crumbs a:hover {
  text-decoration: none;
}

.fg-ma .orow .oid:hover,
.fg-ma .o-head .oid a:hover {
  text-decoration: underline;
}

.fg-ma .tile img {
  margin: 0;
}

.fg-ma .sr {

  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fg-ma .mt12 {
  margin-top: 12px;
}

/* dialogs: native <dialog> inside the wrapper */
.fg-ma dialog:not([open]) {
  display: none;
}

.fg-ma dialog[open] {

  display: block;
  margin: auto;
  max-height: calc(100vh - 32px);
  overflow: auto;
  position: fixed;
  inset: 0;
}

.fg-ma .dlg {
  position: relative;
}

/* Cloudflare Turnstile widget sits where the mockup's placeholder was */
.fg-ma .cf-turnstile,
.fg-ma .cf-turnstile-lazy {

  margin: 0 !important;
  min-height: 65px;
}

/* WooCommerce notices rendered as .alert (templates/woocommerce/notices) */
.fg-ma .alert ul {

  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.fg-ma .alert a {

  color: inherit;
  font-weight: 700;
}

.fg-ma .alert .wc-forward {
  margin-left: 6px;
}

/* theme header/entry wrappers around the shortcode output */
.fg-ma .entry-content,
.fg-ma .entry-header,
.fg-ma .entry-footer {

  margin: 0;
  padding: 0;
}

.fg-ma .woocommerce,
.fg-ma .woocommerce-notices-wrapper {
  display: contents;
}

.fg-ma .woocommerce-notices-wrapper:empty {
  display: none;
}

/* price tiers: strike-through old price */
.fg-ma s.num {
  text-decoration: line-through;
}

/* body_show_excl_price: the shop-wide excl/incl switch; prices are rendered server-side per cookie */
/* pagination (orders) */
.fg-ma .pager {

  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

/* read-only address/company blocks for sub-users */
/* theme icon-font rule [class^="icon-"]::before also matches our .icon-btn -> kill the pseudo square */
.fg-ma .icon-btn::before,
.fg-ma .icon-btn::after {

  content: none;
  display: none;
}

/* qty stepper: .qty has overflow:hidden, so the focus outline of the number input was clipped to a thin
   dark sliver at the left edge. Use an inset ring instead. */
.fg-ma .qty input:focus,
.fg-ma .qty input:focus-visible {

  outline: none;
  box-shadow: inset 0 0 0 2px var(--fgma-teal);
  border-color: var(--fgma-line);
}

/* review round 1: track & trace box background #e3eef1 (teal-100) instead of info-bg */
.fg-ma .track {
  background: var(--fgma-teal-100);
}

.fg-ma .track svg {
  color: var(--fgma-teal);
}

/* Facturen table v4 (updated mockup): document type + credit rows */
.fg-ma table.tbl.inv {

  table-layout: fixed;
  min-width: 720px;
}

.fg-ma .doctype {

  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--fgma-ink);
}

.fg-ma .doctype svg {

  width: 16px;
  height: 16px;
  color: var(--fgma-muted);
}

.fg-ma .doctype.credit,
.fg-ma .doctype.credit svg {
  color: var(--fgma-info);
}

/* credit rows: same background as invoice rows (review round 2, item 3); the doctype label tells them apart */


/* Retourformulier in a dialog (review round 2, item 4): Returnless portal in an iframe, order number prefilled */
.fg-ma dialog.ret {
  width: min(760px, calc(100vw - 32px));
}

/* Returnless iframe: height follows the app (postMessage onAppResize, js/myaccount.js); the dialog scrolls, not the iframe */
.fg-ma .ret-frame {
  display: block;
  width: 100%;
  min-height: 480px;
  height: min(70vh, 720px);
  border: 1px solid var(--fgma-line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  overflow: hidden;
}

/* buttons stay in view while the (long) Returnless form scrolls */
.fg-ma dialog.ret .dlg > .actions {
  position: sticky;
  bottom: 0;
  margin: 0 -22px -22px;
  padding: 12px 22px 16px;
  background: #fff;
  border-top: 1px solid var(--fgma-line);
  box-shadow: 0 -8px 16px rgba(0, 40, 52, .06);
}

/* thin light scrollbar on the return dialog */
.fg-ma dialog.ret {
  scrollbar-width: thin;
  scrollbar-color: #c9d6db transparent;
}

.fg-ma dialog.ret::-webkit-scrollbar {
  width: 6px;
}

.fg-ma dialog.ret::-webkit-scrollbar-track {
  background: transparent;
}

.fg-ma dialog.ret::-webkit-scrollbar-thumb {
  background: #c9d6db;
  border-radius: 6px;
}

.fg-ma dialog.ret::-webkit-scrollbar-thumb:hover {
  background: #aebcc3;
}

/*
*/

/* Productzoeker bestellijst: eigen keuzelijst i.p.v. browser-datalist (mockup v4, review round 2 item 5) */
.fg-ma .searchbox {
  position: relative;
}

.fg-ma .searchbox>svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--fgma-muted);
  pointer-events: none;
}

.fg-ma .searchbox .inp {
  padding-left: 40px;
  padding-right: 44px;
}

.fg-ma .combo {
  position: relative;
}

.fg-ma .combo .inp::-webkit-search-cancel-button {
  display: none;
}

.fg-ma .searchbox .clr {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 4px;
  color: var(--fgma-muted);
  cursor: pointer;
  padding: 0;
}

.fg-ma .searchbox .clr[hidden] {
  display: none;
}

.fg-ma .searchbox .clr:hover {
  background: var(--fgma-teal-050);
  color: var(--fgma-teal);
}

.fg-ma .searchbox .clr svg {
  width: 16px;
  height: 16px;
}

.fg-ma .combo-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--fgma-line);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 75, 96, .08), 0 14px 32px rgba(0, 75, 96, .14);
  overflow: hidden;
}

.fg-ma .combo-pop[hidden] {
  display: none;
}

.fg-ma .combo-h {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fgma-muted);
  background: var(--fgma-teal-050);
  border-bottom: 1px solid var(--fgma-line);
}

.fg-ma .combo-lb {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: min(372px, 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fg-ma .combo-opt {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
}

.fg-ma .combo-opt:hover {
  background: var(--fgma-teal-050);
}

.fg-ma .combo-opt.active {
  background: var(--fgma-teal-100);
  outline: 2px solid var(--fgma-teal);
  outline-offset: -2px;
}

.fg-ma .combo-opt .tile {
  width: 44px;
  height: 44px;
}

.fg-ma .combo-opt .i {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fg-ma .combo-opt .n {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--fgma-ink);
}

.fg-ma .combo-opt .m {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  font-size: 13px;
  color: var(--fgma-muted);
  line-height: 1.4;
}

.fg-ma .combo-opt .sku {
  font-weight: 700;
  color: var(--fgma-teal);
  font-variant-numeric: tabular-nums;
}

.fg-ma .combo-opt .on {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--fgma-ok);
  font-weight: 700;
}

.fg-ma .combo-opt .on svg {
  width: 14px;
  height: 14px;
}

.fg-ma .combo-opt mark {
  background: var(--fgma-yellow-300);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.fg-ma .combo-opt .pr {
  display: grid;
  justify-items: end;
  text-align: right;
}

.fg-ma .combo-opt .pr b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fg-ma .combo-opt .pr .stock {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.fg-ma .combo-opt.off .tile,
.fg-ma .combo-opt.off .n {
  opacity: .6;
}

.fg-ma .combo-empty {
  padding: 16px;
  font-size: 14px;
  color: var(--fgma-muted);
  display: grid;
  gap: 4px;
}

.fg-ma .combo-empty b {
  color: var(--fgma-ink);
}

@media (max-width: 440px) {
  .fg-ma .combo-opt {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    row-gap: 2px;
  }

  .fg-ma .combo-opt .tile {
    width: 40px;
    height: 40px;
  }

  .fg-ma .combo-opt .pr {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    align-items: baseline;
    text-align: left;
  }
}