.mbl-app {
  --ink: #171714;
  --muted: #77746e;
  --surface: #fffdfb;
  --line: #e8ddd3;
  --accent: #28ad68;
  --accent-dark: #16864d;
  --green: #28ad68;
  --orange: #ff7a2f;
  --orange-dark: #db5b12;
  --mbl-ink: var(--ink);
  --mbl-muted: var(--muted);
  --mbl-surface: var(--surface);
  --mbl-line: var(--line);
  --mbl-green: var(--green);
  --mbl-green-dark: var(--accent-dark);
  --mbl-orange: var(--orange);
  --mbl-orange-dark: var(--orange-dark);
  --mbl-danger: #b94d38;
  --mbl-danger-dark: #9e3e2d;
  --mbl-white: #ffffff;
  --mbl-glow: #fff8ed;
  --mbl-nav-active: #fff0e6;
  --mbl-green-soft: #e3f5e9;
  --mbl-orange-soft: #fff0e7;
  --mbl-empty: #fff9f6;
  --mbl-empty-line: #dfb09f;
  --mbl-danger-soft: #fdeae5;
  --mbl-input: #f9f6f3;
  --mbl-progress-track: #eee8e2;
  --mbl-placeholder: #817a74;
  --mbl-shadow: 0 10px 30px rgba(72, 54, 39, 0.08);
  --mbl-radius-card: 25px;
  --mbl-radius-button: 12px;
  --mbl-radius-field: 12px;
  --mbl-radius-chip: 8px;
  --mbl-radius-round: 50%;
  --mbl-radius: var(--mbl-radius-card);
  --mbl-button-padding: 14px 20px;
  --mbl-bp-desktop: 768px;
  --mbl-bp-mobile: 767px;
  --mbl-motion: 125ms;
  --mbl-motion-ease: ease-out;
  --mbl-font-size: 15px;
  --mbl-font-caption: 11px;
  --mbl-font-meta: 12px;
  --mbl-font-small: 13px;
  --mbl-font-h1: 24px;
  --mbl-font-h2: 17px;
  --mbl-plus-size: 47px;
  --mbl-plus-glyph: 24px;
  --mbl-control-height: 47px;
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 48px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: var(--mbl-font-size);
  font-weight: 400;
  color: var(--mbl-ink);
  line-height: 1.45;
  background: transparent;
}

.mbl-app *,
.mbl-app *::before,
.mbl-app *::after {
  box-sizing: border-box;
}

.mbl-app input {
  font: inherit;
  color: inherit;
}

.mbl-app button {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  transition: background-color var(--mbl-motion) var(--mbl-motion-ease);
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  color: inherit;
  margin: 0;
  min-height: 0;
  min-width: 0;
  background: none;
  box-shadow: none;
}

.mbl-app a {
  color: var(--green);
  font-weight: 400;
  text-decoration: underline;
}

.mbl-app a:hover {
  color: var(--accent-dark);
}

.mbl-app button.primary {
  border: 0;
  border-radius: var(--mbl-radius-button);
  background: var(--accent);
  color: white;
  min-height: var(--mbl-control-height);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
}

.mbl-app button.primary:hover {
  background: var(--accent-dark);
}

/* Eén maat en gewicht voor elk plusje: nieuwe lijst en product toevoegen. */
.mbl-app button.primary > span,
.mbl-app .quick-add button.mbl-plus > span {
  font-size: var(--mbl-plus-glyph);
  font-weight: 600;
  line-height: 1;
}

.mbl-app button.primary > span {
  margin-right: 5px;
}

.mbl-app button.cancel {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--mbl-radius-button);
  min-height: var(--mbl-control-height);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mbl-app button.danger-button {
  border: 0;
  border-radius: var(--mbl-radius-button);
  background: #b94d38;
  color: white;
  min-height: var(--mbl-control-height);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.mbl-app button.danger-button:hover {
  background: #9e3e2d;
}

.mbl-app .empty-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d88770;
  background: #fff2ed;
  color: #a53e2b;
  border-radius: var(--mbl-radius-button);
  padding: var(--mbl-button-padding);
  cursor: pointer;
}

.mbl-app .empty-list button:hover {
  background: #ffe9e1;
}

.mbl-app .quick-add button.mbl-plus {
  flex: 0 0 var(--mbl-plus-size);
  width: var(--mbl-plus-size);
  height: var(--mbl-plus-size);
  padding: 0;
  border: 0;
  border-radius: var(--mbl-radius-button);
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mbl-app .quick-add button.mbl-plus:hover {
  background: var(--accent-dark);
}

.mbl-app .actions button {
  border: 0;
  background: transparent;
  width: 37px;
  height: 37px;
  border-radius: var(--mbl-radius-button);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #67615c;
}

.mbl-app .actions button:hover {
  background: #f5eee8;
}

.mbl-app button.new-card {
  width: 100%;
  min-height: 145px;
  border: 1.5px dashed #d3c8be;
  border-radius: var(--mbl-radius);
  background: rgba(255, 253, 251, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--muted);
}

.mbl-app button.new-card:hover {
  background: var(--surface);
  border-color: #64c48e;
  color: var(--ink);
}

.mbl-app button.new-card > span {
  width: 37px;
  height: 37px;
  border-radius: var(--mbl-radius-button);
  background: #fff0e7;
  color: var(--orange-dark);
  font-size: 22px;
  display: grid;
  place-items: center;
}

.mbl-app button.new-card strong {
  font-size: 14px;
}

.mbl-app .quick-add {
  display: flex;
  gap: 9px;
}

.mbl-app .quick-add input {
  flex: 1;
  min-width: 0;
  height: var(--mbl-plus-size);
  border: 1px solid var(--line);
  background: #f9f6f3;
  border-radius: var(--mbl-radius-field);
  padding: 0 14px;
  outline: 0;
}

.mbl-app .quick-add input::placeholder {
  font-size: 14px;
  color: #817a74;
  opacity: 1;
}

.mbl-app .quick-add input:focus {
  border-color: #75cb9c;
  box-shadow: 0 0 0 3px rgba(40, 173, 104, 0.12);
}

.mbl-app .quick-add .product-input {
  flex: 1;
}

.mbl-app .quick-add .quantity-input {
  flex: 0 0 130px;
  width: 130px;
}

.mbl-app.mbl-status-bar {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}

.mbl-status-bar .sync {
  color: var(--mbl-muted);
  font-size: var(--mbl-font-small);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  white-space: nowrap;
}

.mbl-status-bar .sync-dot {
  display: block;
  width: 7px;
  height: 7px;
  flex: none;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  border-radius: var(--mbl-radius-round);
  background: var(--mbl-green);
}

.mbl-status-bar .sync.offline {
  color: #a83e2d;
  font-weight: 600;
}

.mbl-status-bar .sync.offline .sync-dot {
  background: #d65338;
}

.mbl-status-bar .sync.restored .sync-dot {
  background: var(--mbl-orange);
}

.mbl-app.mbl-lists,
.mbl-app.mbl-cards {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mbl-lists .page-heading,
.mbl-cards .page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.mbl-lists .page-heading h1,
.mbl-cards .page-heading h1 {
  margin: 0;
  min-width: 0;
  font-size: var(--mbl-font-h1);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.mbl-lists .list-summary,
.mbl-cards .list-summary {
  margin: 8px 0 0;
  color: var(--mbl-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.mbl-lists .list-summary strong {
  color: var(--mbl-orange-dark);
  font-weight: 600;
}

.mbl-cards .cards-eyebrow {
  color: var(--mbl-orange-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mbl-card-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  max-width: 1120px;
  padding: 0 14px;
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-field);
  background: var(--mbl-input);
}

.mbl-card-search[hidden] {
  display: none;
}

.mbl-card-search__icon {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--mbl-placeholder);
}

.mbl-card-search__icon svg {
  width: 18px;
  height: 18px;
}

.mbl-card-search__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: var(--mbl-font-size);
  color: var(--mbl-ink);
  outline: 0;
}

.mbl-card-search__input::placeholder {
  color: var(--mbl-placeholder);
  opacity: 1;
}

.mbl-card-search__input::-webkit-search-decoration,
.mbl-card-search__input::-webkit-search-cancel-button,
.mbl-card-search__input::-webkit-search-results-button,
.mbl-card-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.mbl-card-search:focus-within {
  border-color: #75cb9c;
  box-shadow: 0 0 0 3px rgba(40, 173, 104, 0.12);
}

.mbl-card-search__clear {
  flex: none;
  width: 36px;
  height: 36px;
  margin-right: -6px;
  border: 0;
  border-radius: var(--mbl-radius-chip);
  background: transparent;
  color: var(--mbl-danger);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mbl-card-search__clear[hidden] {
  display: none;
}

.mbl-card-search__clear:hover {
  color: var(--mbl-danger-dark);
  background: var(--mbl-danger-soft);
}

.mbl-card-search-empty {
  margin: 14px 0 0;
  color: var(--mbl-muted);
  font-size: var(--mbl-font-small);
  line-height: 1.4;
}

.mbl-card-search-empty[hidden] {
  display: none;
}

.mbl-cards:has(.mbl-card-search:not([hidden])) .mbl-loyalty-grid {
  margin-top: 16px;
}

.mbl-lists .page-heading .primary,
.mbl-cards .page-heading .primary {
  flex: none;
}

.mbl-lists .list-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.mbl-app .list-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.mbl-store {
  width: 44px;
  height: 44px;
  border-radius: var(--mbl-radius-field);
  display: grid;
  place-items: center;
  background: var(--mbl-green-soft);
  font-size: 19px;
}

.mbl-list-title {
  display: flex;
  gap: 13px;
  align-items: center;
}

.mbl-list-title h2,
.mbl-list-title h3 {
  font-size: var(--mbl-font-h2);
  font-weight: 700;
  margin: 0 0 5px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mbl-list-title p {
  font-size: 12px;
  color: var(--mbl-muted);
  margin: 0;
}

.mbl-items {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.mbl-items li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 3px;
  border-bottom: 1px solid #f0ebe6;
  min-height: 49px;
}

.mbl-items li:last-child {
  border-bottom: 0;
}

.mbl-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1.5px solid #bbb5ae;
  border-radius: 7px;
  background: var(--mbl-white);
  cursor: pointer;
}

.mbl-item.is-checked .mbl-check,
.mbl-check.is-on {
  background: var(--mbl-green);
  border-color: var(--mbl-green);
}

.mbl-item.is-checked .mbl-check::after,
.mbl-check.is-on::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--mbl-white);
  font-size: 14px;
  line-height: 1;
}

.mbl-item-name {
  font-size: var(--mbl-font-size);
}

.mbl-item-qty {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--mbl-orange-dark);
}

.mbl-progress {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mbl-progress__track {
  height: 5px;
  background: var(--mbl-progress-track);
  border-radius: var(--mbl-radius-chip);
  overflow: hidden;
  flex: 1;
}

.mbl-progress__fill {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--mbl-orange);
  border-radius: var(--mbl-radius-chip);
}

.mbl-progress__fill.is-complete {
  width: 100%;
  background: var(--mbl-green);
}

.mbl-progress small {
  font-size: var(--mbl-font-caption);
  color: var(--mbl-muted);
}

.mbl-app .empty-list {
  margin: 16px 0 4px;
  padding: 22px;
  text-align: center;
  border: 1px dashed #dfb09f;
  border-radius: var(--mbl-radius-card);
  background: #fff9f6;
}

.mbl-app .empty-list p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: var(--mbl-font-small);
}

.mbl-toast {
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  max-width: 100%;
  background: #242320;
  color: var(--mbl-white);
  border-radius: var(--mbl-radius-button);
  padding: 13px 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  position: fixed;
  right: 28px;
  bottom: calc(28px + var(--mbl-toast-keyboard, 0px));
  z-index: 10001;
  opacity: 0;
  transition: opacity var(--mbl-motion) var(--mbl-motion-ease);
  pointer-events: none;
}

.mbl-toast__badge {
  width: 36px;
  height: 36px;
  border-radius: var(--mbl-radius-round);
  background: var(--mbl-green);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-toast.is-saving .mbl-toast__badge {
  background: var(--mbl-orange);
}

.mbl-toast.is-info .mbl-toast__badge {
  background: var(--mbl-orange);
}

.mbl-toast.is-error .mbl-toast__badge {
  background: var(--mbl-danger);
}

.mbl-toast__svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mbl-toast__ring,
.mbl-toast__check,
.mbl-toast__cross,
.mbl-toast__info {
  stroke: var(--mbl-white);
  transition: stroke-dashoffset 180ms var(--mbl-motion-ease), opacity var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-toast__ring {
  stroke-dasharray: 50;
  stroke-dashoffset: 14;
  transform-origin: 14px 14px;
}

.mbl-toast.is-saving .mbl-toast__ring {
  animation: mbl-toast-spin 0.7s linear infinite;
  opacity: 1;
}

.mbl-toast:not(.is-saving) .mbl-toast__ring {
  opacity: 0;
  animation: none;
}

.mbl-toast__check {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  opacity: 0;
}

.mbl-toast.is-done .mbl-toast__check,
.mbl-toast:not(.is-saving):not(.is-info):not(.is-error) .mbl-toast__check {
  stroke-dashoffset: 0;
  opacity: 1;
}

.mbl-toast.is-saving .mbl-toast__check,
.mbl-toast.is-info .mbl-toast__check,
.mbl-toast.is-error .mbl-toast__check {
  stroke-dashoffset: 24;
  opacity: 0;
}

.mbl-toast__info {
  fill: none;
  opacity: 0;
}

.mbl-toast.is-info .mbl-toast__info {
  opacity: 1;
}

.mbl-toast__cross {
  opacity: 0;
}

.mbl-toast.is-error .mbl-toast__cross {
  opacity: 1;
}

@keyframes mbl-toast-spin {
  to {
    transform: rotate(360deg);
  }
}

.mbl-toast small {
  display: block;
  color: #bbb;
  margin-top: 2px;
}

.mbl-toast[hidden] {
  display: none;
}

.mbl-toast.is-visible {
  opacity: 1;
}

.mbl-list-card {
  background: var(--mbl-surface);
  border: 1px solid rgba(225, 215, 207, 0.9);
  border-radius: var(--mbl-radius-card);
  padding: 24px;
  box-shadow: var(--mbl-shadow);
}

.mbl-list-card.is-list-ghost {
  opacity: 0.45;
}

.mbl-list-card .list-head > .mbl-list-title {
  margin-right: auto;
  min-width: 0;
}

.mbl-list-card .mbl-list-heading {
  min-width: 0;
}

.mbl-list-card .quick-add {
  margin-top: 18px;
}

.mbl-app .list-drag-handle,
.mbl-app .drag-handle {
  border: 0;
  background: none;
  box-sizing: content-box;
  display: grid;
  place-items: center;
  color: #c1b9b1;
  font-size: 17px;
  letter-spacing: -1px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}

/* Hit area 44×44; padding + negative margin houden de layout ongewijzigd. */
.mbl-app .drag-handle {
  width: 18px;
  height: 18px;
  padding: 13px;
  margin: -13px;
}

.mbl-app .list-drag-handle {
  align-self: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #b8afa7;
  padding: 12px;
  margin: -12px;
}

/* Sortable zet de kloon op body, buiten .mbl-app — daarom ook onge-scooped.
   Productregels: compacte dashed ghost. Lijst-/loyaltykaarten: volle kaartstyling via .mbl-app op de kloon. */
li.mbl-sortable-fallback,
.mbl-item.mbl-sortable-fallback,
li.sortable-fallback,
.mbl-item.sortable-fallback {
  list-style: none;
  background: var(--mbl-surface, #fffdfb);
  border: 1px dashed var(--mbl-orange, #ff7a2f);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(72, 54, 39, 0.12);
}

.mbl-list-card.mbl-sortable-fallback,
.mbl-loyalty-card.mbl-sortable-fallback,
.mbl-list-card.sortable-fallback,
.mbl-loyalty-card.sortable-fallback {
  max-width: min(1120px, calc(100vw - 24px));
  margin: 0;
  padding: 24px;
  background: var(--mbl-surface, #fffdfb);
  border: 1px solid rgba(225, 215, 207, 0.9);
  border-radius: var(--mbl-radius-card, 25px);
  box-shadow: 0 18px 45px rgba(72, 54, 39, 0.22);
  opacity: 0.98;
  z-index: 10003;
  pointer-events: none;
}

.mbl-list-card.mbl-sortable-fallback .mbl-list-card__collapse,
.mbl-list-card.mbl-sortable-fallback .list-menu,
.mbl-list-card.mbl-sortable-fallback .mbl-progress,
.mbl-loyalty-card.mbl-sortable-fallback .mbl-loyalty-menu {
  display: none !important;
}

.mbl-sortable-fallback .drag-handle,
.mbl-sortable-fallback .list-drag-handle,
.sortable-fallback .drag-handle,
.sortable-fallback .list-drag-handle {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 18px;
  height: auto;
  padding: 0 !important;
  margin: 0 !important;
  color: #c1b9b1;
}

.mbl-loyalty-card.mbl-sortable-fallback,
.mbl-loyalty-card.sortable-fallback {
  padding: 18px;
}

@media (max-width: 767px) {
  .mbl-list-card.mbl-sortable-fallback,
  .mbl-list-card.sortable-fallback {
    padding: 18px;
  }

  .mbl-loyalty-card.mbl-sortable-fallback,
  .mbl-loyalty-card.sortable-fallback {
    padding: 12px;
  }
}

.mbl-app .drag-handle:active,
.mbl-app .list-drag-handle:active {
  cursor: grabbing;
}

.mbl-app .store-image-button {
  position: relative;
  border: 0;
  background: none;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.store-image-wrap {
  position: relative;
  flex: 0 0 auto;
}

.mbl-app .store-image-menu {
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  min-width: 180px;
}

.mbl-store {
  overflow: hidden;
}

.mbl-store img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mbl-store.is-nav {
  background: var(--mbl-nav-active);
}

.mbl-app .store-image-button i {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: var(--mbl-radius-round);
  display: grid;
  place-items: center;
  background: var(--mbl-orange);
  color: var(--mbl-white);
  border: 2px solid var(--mbl-surface);
}

.mbl-app .store-image-button i svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mbl-list-card .collapsed-status {
  display: none;
  margin-top: 4px;
  color: var(--mbl-orange-dark);
  font-weight: 700;
}

.mbl-list-card.is-collapsed .collapsed-status {
  display: block;
}

.mbl-list-card.is-collapsed .list-updated {
  display: none;
}

.mbl-list-card__collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-list-card.is-collapsed .mbl-list-card__collapse {
  grid-template-rows: 0fr;
}

.mbl-list-card__collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.mbl-list-card.is-collapsed .mbl-progress {
  margin-top: 14px;
}

.mbl-app .actions button.collapse-button {
  width: 42px;
  height: 42px;
}

.mbl-app .collapse-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-list-card.is-collapsed .collapse-button svg {
  transform: rotate(180deg);
}

.mbl-app .actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mbl-app .list-menu {
  display: grid;
  position: absolute;
  right: 0;
  top: 42px;
  width: max-content;
  min-width: 210px;
  max-width: calc(100vw - 40px);
  padding: 7px;
  background: var(--mbl-surface);
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-button);
  box-shadow: 0 14px 35px rgba(48, 34, 24, 0.16);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--mbl-motion) var(--mbl-motion-ease), visibility var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-app .list-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Als blok tonen, want als flexbox centreert het thema het tekstblok
   en blijven afgebroken regels links staan. */
.mbl-app .list-menu button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: var(--mbl-radius-chip);
  background: none;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.mbl-app .list-menu button:hover {
  background: #f5eee8;
}

.mbl-app .list-menu .danger-link {
  color: var(--mbl-danger);
}

.mbl-items .item-content {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 2px;
}

.mbl-item-name {
  overflow-wrap: anywhere;
  cursor: text;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.mbl-item.is-checked .mbl-item-name {
  color: #9a9691;
  text-decoration: line-through;
}

.mbl-item.is-checked {
  animation: mbl-pop var(--mbl-motion) var(--mbl-motion-ease);
}

@keyframes mbl-pop {
  50% {
    background: #f1f7f2;
  }
}

.mbl-items .mbl-item.is-dragging {
  opacity: 0.5;
}

.mbl-items .mbl-item.is-drag-ghost {
  background: #fff5ed;
  border: 1px dashed var(--mbl-orange);
  border-radius: 10px;
}

/* Tijdens slepen verdwijnen camera en kruisje uit de kloon, anders zie je
   op touch een leeg grijs vierkant van het raakvlak. */
.mbl-items .mbl-item.is-dragging .mbl-item-actions,
.mbl-items .mbl-item.is-drag-ghost .mbl-item-actions,
.mbl-sortable-fallback .mbl-item-actions,
.sortable-fallback .mbl-item-actions {
  visibility: hidden;
}

.mbl-item-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.mbl-app .photo-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #918a84;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mbl-app .photo-button:hover {
  background: var(--mbl-nav-active);
  color: var(--mbl-orange-dark);
}

.mbl-app .photo-button.is-busy,
.mbl-app .store-image-button.is-busy {
  opacity: 0.45;
  pointer-events: none;
}

.mbl-loyalty-menu[hidden] {
  display: grid;
}

.mbl-app .photo-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Met foto blijft hetzelfde icoon staan, maar gevuld. De foto zelf zit in de modal. */
.mbl-app .photo-button.has-photo {
  background: var(--mbl-nav-active);
  color: var(--mbl-orange-dark);
}

.mbl-app .photo-button.has-photo svg path {
  fill: currentColor;
  stroke: currentColor;
}

.mbl-app .photo-button.has-photo svg circle {
  fill: var(--mbl-surface);
  stroke: var(--mbl-surface);
}

.mbl-app .mbl-item .remove {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #aaa29a;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mbl-app .mbl-item .remove:hover {
  background: var(--mbl-danger-soft);
  color: var(--mbl-danger);
}

.mbl-app .mbl-inline-edit {
  flex: 1 1 150px;
  min-width: 90px;
  height: 36px;
  max-height: 36px;
  box-sizing: border-box;
  border: 1px solid var(--mbl-green);
  border-radius: 9px;
  background: var(--mbl-white);
  padding: 6px 9px;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(40, 173, 104, 0.12);
  font-size: 15px;
}

.mbl-inline-edit-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.mbl-app .mbl-inline-edit--qty {
  flex: 0 1 120px;
  min-width: 72px;
  max-width: 140px;
  color: var(--mbl-orange-dark);
  font-size: 12px;
}

.mbl-item.is-editing .drag-handle {
  pointer-events: none;
  opacity: 0.35;
}

/* Overlaylaag op body: geen viewport-shell, zodat Sortable de pagina kan scrollen.
   Alleen de modals/menu/toast zijn zelf position:fixed. */
.mbl-app.mbl-modal-layer {
  max-width: none;
  margin: 0;
  padding: 0;
}

html.mbl-modal-open {
  overflow: hidden;
}

.mbl-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(28, 23, 19, 0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-modal[hidden] {
  display: none;
}

.mbl-modal.is-open {
  opacity: 1;
}

.mbl-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  max-width: 100%;
  max-height: min(94vh, 94dvh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 31px;
  border-radius: var(--mbl-radius-card);
  background: var(--mbl-surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.mbl-modal__panel.is-photo {
  width: min(520px, 100%);
}

.mbl-app .mbl-modal__close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--mbl-radius-field);
  background: none;
  color: var(--mbl-muted);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mbl-app .mbl-modal__close:hover {
  background: var(--mbl-danger-soft);
  color: var(--mbl-danger);
}

.mbl-modal__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mbl-orange-soft);
  color: var(--mbl-orange-dark);
  font-size: 20px;
}

.mbl-modal__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.mbl-modal__icon[hidden],
.mbl-app .new-list-image[hidden] {
  display: none !important;
}

.mbl-modal__icon.is-danger {
  background: var(--mbl-danger-soft);
  color: #ac402f;
  font-weight: 700;
}

.mbl-modal__panel h2 {
  margin: 17px 0 20px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.mbl-modal__panel h2 + p {
  margin-top: -15px;
}

.mbl-confirm-name {
  color: var(--mbl-orange-dark);
  font-weight: 600;
}

.mbl-app .new-list-image {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: var(--mbl-radius-field);
  background: var(--mbl-green-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mbl-app .new-list-image > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 25px;
  line-height: 1;
}

.mbl-app .new-list-image > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--mbl-radius-field);
}

.mbl-app .new-list-image i {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 21px;
  height: 21px;
  border-radius: var(--mbl-radius-round);
  display: grid;
  place-items: center;
  background: var(--mbl-orange);
  color: var(--mbl-white);
  border: 2px solid var(--mbl-surface);
}

.mbl-app .new-list-image i svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mbl-list-name,
.mbl-item-qty {
  cursor: text;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.mbl-item-qty.is-empty {
  display: inline-block;
  min-width: 1.25em;
  min-height: 1em;
}

.mbl-modal__panel > p {
  margin: 0 0 25px;
  color: var(--mbl-muted);
  font-size: 14px;
}

.mbl-modal__panel label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.mbl-modal__panel input[type="text"] {
  width: 100%;
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-field);
  background: var(--mbl-white);
  padding: 13px 14px;
  outline: 0;
}

.mbl-modal__panel input[type="text"]::placeholder {
  color: var(--mbl-placeholder);
  opacity: 1;
}

.mbl-store-combo {
  position: relative;
  margin: 0 0 16px;
}

.mbl-store-combo__field {
  position: relative;
  display: flex;
  align-items: stretch;
}

.mbl-store-combo__field input[type="text"] {
  margin: 0;
  padding-right: 46px;
}

.mbl-app .mbl-store-combo__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--mbl-radius-button);
  background: transparent;
  color: var(--mbl-muted);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  cursor: pointer;
}

.mbl-app .mbl-store-combo__toggle:hover {
  background: #f5eee8;
  color: var(--mbl-ink);
}

.mbl-app .mbl-store-combo__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-store-combo.is-open .mbl-store-combo__toggle svg {
  transform: rotate(180deg);
}

.mbl-store-combo__list {
  --mbl-store-combo-row: 44px;
  --mbl-store-combo-rows: 6;
  position: static;
  z-index: auto;
  box-sizing: border-box;
  height: calc(
    (var(--mbl-store-combo-rows) * var(--mbl-store-combo-row)) + 12px
  );
  margin: 8px 0 0;
  padding: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  list-style: none;
  background: var(--mbl-surface);
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-button);
  box-shadow: none;
}

.mbl-store-combo__list[hidden] {
  display: none !important;
}

.mbl-store-combo__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.mbl-store-combo__option.is-active,
.mbl-store-combo__option:hover {
  background: #f5eee8;
}

.mbl-store-combo__thumb {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}

[data-card-store-combo] .mbl-store-combo__thumb {
  flex: 0 0 48px;
  width: 48px;
  height: auto;
  aspect-ratio: 1.586 / 1;
}

.mbl-store-combo__thumb.is-empty {
  background: var(--mbl-nav-active);
}

.mbl-app .mbl-store-combo__thumb img {
  position: absolute !important;
  inset: -1px !important;
  display: block !important;
  width: calc(100% + 2px) !important;
  height: calc(100% + 2px) !important;
  min-width: calc(100% + 2px) !important;
  min-height: calc(100% + 2px) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

.mbl-store-combo__name {
  min-width: 0;
  font-size: var(--mbl-font-size);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mbl-store-combo__empty {
  padding: 12px 10px;
  color: var(--mbl-muted);
  font-size: var(--mbl-font-small);
}

.mbl-product-menu {
  position: fixed;
  z-index: 10002;
  width: 190px;
  padding: 6px;
  background: var(--mbl-surface);
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-field);
  box-shadow: 0 14px 35px rgba(48, 34, 24, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--mbl-motion) var(--mbl-motion-ease), visibility var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-product-menu[hidden] {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mbl-product-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mbl-app .mbl-product-menu button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: var(--mbl-radius-chip);
  background: transparent;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.mbl-app .mbl-product-menu button[hidden] {
  display: none;
}

.mbl-app .mbl-product-menu button:hover {
  background: #f2f8f4;
  color: var(--mbl-green-dark);
}

.mbl-modal__panel input[type="text"]:focus {
  border-color: #75cb9c;
  box-shadow: 0 0 0 3px rgba(40, 173, 104, 0.12);
}

.mbl-photo-preview {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 14px;
  background: #f4eee9;
  margin: 18px 0;
}

.mbl-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .mbl-modal__actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-top: auto;
    padding-top: 24px;
    background: var(--mbl-surface);
  }
}

.mbl-move-lead {
  margin: 0 0 14px;
  color: var(--mbl-muted);
  font-size: var(--mbl-font-size);
  line-height: 1.4;
}

.mbl-move-targets {
  display: grid;
  gap: 9px;
}

.mbl-app .mbl-move-targets .mbl-move-target {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-field);
  background: #fffaf6;
  color: var(--mbl-ink);
  font-size: var(--mbl-font-size);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mbl-app .mbl-move-targets .mbl-move-target:hover,
.mbl-app .mbl-move-targets .mbl-move-target:focus {
  border-color: var(--mbl-green);
  background: #f3fbf6;
  outline: none;
}

@media (max-width: 767px) {
  .mbl-list-card {
    padding: 18px;
  }

  .mbl-items li {
    gap: 8px;
  }

  .mbl-toast {
    left: 50%;
    right: auto;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px) + var(--mbl-toast-keyboard, 0px));
    width: calc(100% - 40px);
    max-width: 360px;
    transform: translateX(-50%);
  }

  .mbl-modal {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }

  .mbl-modal__panel {
    width: 100%;
    max-width: none;
    max-height: min(94vh, 94dvh, var(--mbl-vv-height, 94dvh));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 22px 18px calc(22px + 48px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  }

  .mbl-modal__panel.is-photo {
    width: 100%;
  }

  .mbl-app .mbl-modal__close {
    width: 44px;
    height: 44px;
    right: 8px;
    top: 8px;
  }

  .mbl-item-actions {
    gap: 0;
  }

  .mbl-app .photo-button,
  .mbl-app .mbl-item .remove {
    width: 28px;
    height: 28px;
  }

  .mbl-app .photo-button svg {
    width: 16px;
    height: 16px;
  }

  .mbl-app .mbl-item .remove {
    margin-right: -4px;
    font-size: 20px;
  }

  .mbl-inline-edit-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .mbl-inline-edit-wrap .mbl-inline-edit,
  .mbl-inline-edit-wrap .mbl-inline-edit--qty {
    flex: none;
    width: 100%;
    max-width: none;
    height: 36px;
    max-height: 36px;
  }

  .mbl-app .actions button.collapse-button {
    width: 40px;
    height: 40px;
  }

  .mbl-app .collapse-button svg {
    width: 24px;
    height: 24px;
  }

  .mbl-app {
    --mbl-font-size: 14px;
    --mbl-radius-card: 20px;
    --mbl-plus-size: 40px;
    padding-bottom: 32px;
  }

  /* iOS Safari: inputs < 16px trigger auto-zoom die niet netjes terugdraait. */
  .mbl-app input,
  .mbl-app textarea,
  .mbl-app select {
    font-size: 16px;
  }

  /* Breakdance-menubalk ~75px: ruimte zodat onderste kaarten + menu boven de balk blijven. */
  .mbl-app.mbl-cards {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  .mbl-app .quick-add {
    gap: 7px;
  }

  .mbl-app .quick-add .quantity-input {
    flex: 0 0 84px;
    width: 84px;
  }

  .mbl-lists .page-heading .primary,
  .mbl-cards .page-heading .primary {
    width: var(--mbl-plus-size);
    height: var(--mbl-plus-size);
    min-height: 0;
    padding: 0;
    font-size: 0;
    flex: none;
  }

  .mbl-lists .list-grid {
    gap: 16px;
    margin-top: 18px;
  }

  .mbl-app button.new-card {
    min-height: 120px;
  }

  .mbl-lists .page-heading .primary > span,
  .mbl-cards .page-heading .primary > span {
    margin: 0;
  }
}

@media (min-width: 480px) {
  .mbl-app {
    --mbl-font-h1: 24px;
  }
}

@media (min-width: 768px) {
  .mbl-app {
    --mbl-font-h1: 26px;
    --mbl-font-h2: 20px;
  }
}

@media (min-width: 1024px) {
  .mbl-app {
    --mbl-font-h1: 30px;
  }
}

@media (min-width: 1280px) {
  .mbl-app {
    --mbl-font-h1: 32px;
  }
}

/* Klantenkaarten */
.mbl-loyalty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  max-width: 1120px;
}

.mbl-loyalty-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-card);
  background: var(--mbl-surface);
  box-shadow: var(--mbl-shadow);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.mbl-loyalty-card[hidden] {
  display: none !important;
}

.mbl-loyalty-card.is-loyalty-ghost {
  opacity: 0.45;
}

.mbl-loyalty-card__media-wrap {
  position: relative;
}

.mbl-app .mbl-loyalty-card__media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.mbl-loyalty-card__image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
}

.mbl-app .mbl-loyalty-card__image img {
  position: absolute !important;
  inset: -1px !important;
  display: block !important;
  width: calc(100% + 2px) !important;
  height: calc(100% + 2px) !important;
  min-width: calc(100% + 2px) !important;
  min-height: calc(100% + 2px) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  -webkit-user-drag: none;
  pointer-events: none;
}

.mbl-loyalty-card__image.is-empty {
  background: var(--mbl-green-soft);
}

.mbl-loyalty-card__image.is-empty.is-nav {
  background: var(--mbl-nav-active);
}

.mbl-loyalty-card .mbl-loyalty-card__image.is-empty {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px 16px;
}

/* Glans: lichtere tint rechtsboven, gebogen snede zoals het kaarten-icoon. */
.mbl-loyalty-card .mbl-loyalty-card__image.is-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: color-mix(in srgb, #fff 42%, transparent);
  clip-path: ellipse(62% 78% at 108% -8%);
}

.mbl-loyalty-card__label {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--mbl-green-dark);
  font-size: var(--mbl-font-size);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  pointer-events: none;
}

.mbl-loyalty-card__image.is-empty.is-nav .mbl-loyalty-card__label {
  color: var(--mbl-orange-dark);
}

.mbl-app .mbl-loyalty-card__pencil {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--mbl-surface);
  border-radius: var(--mbl-radius-round);
  display: grid;
  place-items: center;
  background: var(--mbl-orange);
  color: var(--mbl-white);
  cursor: pointer;
  z-index: 2;
}

.mbl-app .mbl-loyalty-card__pencil svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mbl-loyalty-menu {
  display: grid;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: max-content;
  min-width: 160px;
  padding: 7px;
  background: var(--mbl-surface);
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-button);
  box-shadow: 0 14px 35px rgba(48, 34, 24, 0.16);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--mbl-motion) var(--mbl-motion-ease), visibility var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-loyalty-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mbl-loyalty-menu.is-above {
  top: auto;
  /* Relatief t.o.v. potlood (~28px), niet de hele media-wrap. */
  bottom: calc(28px + 8px);
}

.mbl-app .mbl-loyalty-menu button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: var(--mbl-radius-chip);
  background: none;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.mbl-app .mbl-loyalty-menu button:hover {
  background: #f5eee8;
}

.mbl-app .mbl-loyalty-menu .danger-link {
  color: var(--mbl-danger);
}

.mbl-loyalty-card__foot {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.mbl-app .mbl-loyalty-card__name {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mbl-ink);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.mbl-app button.new-card.mbl-loyalty-add {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  height: auto;
  min-height: 0;
  padding: 14px;
  text-align: center;
}

.mbl-loyalty-add__visual {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px dashed var(--mbl-empty-line);
  color: var(--mbl-orange-dark);
  font-size: 28px;
  font-weight: 400;
}

.mbl-app button.new-card.mbl-loyalty-add > span.mbl-loyalty-card__image {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 17px;
  background: transparent;
}

.mbl-app button.new-card.mbl-loyalty-add strong {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--mbl-ink);
  text-align: center;
}

.mbl-card-viewer__code {
  display: grid;
  place-items: center;
  min-height: min(280px, 42vh, 42dvh);
  margin: 18px 0 10px;
  padding: 28px 20px;
  border-radius: 14px;
  background: #fff;
}

.mbl-card-viewer__code svg,
.mbl-card-viewer__code [data-qr-viewer] {
  max-width: 100%;
  opacity: 0;
  transition: opacity var(--mbl-motion) var(--mbl-motion-ease);
}

.mbl-card-viewer__code svg.is-visible,
.mbl-card-viewer__code [data-qr-viewer].is-visible {
  opacity: 1;
}

.mbl-card-viewer__number {
  margin: 0;
  text-align: center;
  font-size: var(--mbl-font-meta);
  color: var(--mbl-muted);
  word-break: break-all;
}

.mbl-choice-buttons {
  display: grid;
  gap: 11px;
  margin-top: 8px;
}

.mbl-app .mbl-choice-buttons > button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--mbl-line);
  border-radius: 14px;
  background: #fffaf6;
  color: var(--mbl-ink);
  text-align: left;
  cursor: pointer;
}

.mbl-app .mbl-choice-buttons > button:hover {
  border-color: var(--mbl-green);
  background: #f3fbf6;
}

.mbl-app .mbl-choice-buttons > button > span {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mbl-green-soft);
  color: var(--mbl-green-dark);
  font-size: 18px;
}

.mbl-app .mbl-choice-buttons b {
  display: block;
  font-size: 15px;
}

.mbl-app .mbl-choice-buttons small {
  display: block;
  margin-top: 2px;
  color: var(--mbl-muted);
  font-size: 12px;
}

.mbl-card-scanner {
  width: 100%;
  min-height: 220px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
}

.mbl-card-scanner video {
  width: 100% !important;
}

.mbl-scan-status {
  margin: 0;
  color: var(--mbl-muted);
  font-size: var(--mbl-font-small);
  text-align: center;
}

.mbl-card-image-picker {
  position: relative;
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.mbl-card-image-picker .mbl-loyalty-card__image {
  border: 1px dashed var(--mbl-line);
}

.mbl-card-image-picker i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: var(--mbl-radius-round);
  display: grid;
  place-items: center;
  background: var(--mbl-orange);
  color: var(--mbl-white);
  border: 2px solid var(--mbl-surface);
}

.mbl-card-image-picker i svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mbl-crop-panel {
  max-width: 520px;
}

.mbl-crop-stage {
  margin: 14px 0 10px;
  padding: 12px;
  border-radius: 14px;
  background: #1a1816;
}

.mbl-crop-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #0f0e0d;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.mbl-crop-viewport.is-square {
  aspect-ratio: 1 / 1;
}

.mbl-crop-viewport.is-dragging {
  cursor: grabbing;
}

.mbl-crop-viewport img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: none;
  transform-origin: center center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.mbl-crop-zoom {
  display: grid;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--mbl-muted);
  font-size: var(--mbl-font-small);
}

.mbl-crop-zoom input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--mbl-green);
}

.mbl-modal__panel select {
  width: 100%;
  border: 1px solid var(--mbl-line);
  border-radius: var(--mbl-radius-field);
  background: var(--mbl-white);
  padding: 13px 14px;
  margin: 0 0 14px;
  outline: 0;
  font: inherit;
  color: var(--mbl-ink);
}

@media (max-width: 767px) {
  .mbl-loyalty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
  }

  .mbl-loyalty-card,
  .mbl-app button.new-card.mbl-loyalty-add {
    padding: 12px;
  }

  .mbl-loyalty-card__image,
  .mbl-app button.new-card.mbl-loyalty-add > span.mbl-loyalty-card__image {
    border-radius: 13px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .mbl-app,
  .mbl-app *,
  .mbl-app *::before,
  .mbl-app *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Account: gebruikersnaam */
.mbl-username-form-wrap {
  width: 100%;
}

.mbl-app .mbl-username-form-wrap .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mbl-username-title {
  margin: 0 0 14px;
  font-size: var(--mbl-font-size);
  font-weight: 600;
  color: var(--mbl-ink);
}

.mbl-username-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.mbl-username-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid #e9e2db;
  background: #fffdfb;
  border-radius: 12px;
  padding: 0 20px;
  outline: 0;
  font: inherit;
  box-sizing: border-box;
}

.mbl-username-input:focus {
  border-color: #75cb9c;
  box-shadow: 0 0 0 3px rgba(40, 173, 104, 0.12);
}

.mbl-app .mbl-username-submit {
  flex: 0 0 auto;
  padding: 14px 20px;
  background-color: #fff0e6;
  border: 1px solid #e8ddd3;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--mbl-ink);
}

.mbl-app .mbl-username-submit:hover {
  background-color: var(--mbl-orange-soft);
}

.mbl-username-message-wrap {
  margin-top: 12px;
}

.mbl-username-message {
  padding: 10px 12px;
  border-radius: var(--mbl-radius-chip);
  font-size: var(--mbl-font-small);
  line-height: 1.35;
}

.mbl-username-message-success {
  background: var(--mbl-green-soft);
  color: var(--mbl-green-dark);
}

.mbl-username-message-error {
  background: var(--mbl-danger-soft);
  color: var(--mbl-danger-dark);
}

/* Portrait / landscape voor dit formulier (bewust 480px, niet 767). */
@media (max-width: 480px) {
  .mbl-username-form {
    flex-wrap: wrap;
  }

  .mbl-username-input {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
  }

  .mbl-app .mbl-username-submit {
    margin-left: auto;
    margin-right: auto;
  }
}
