/* MD Food Order – Frontend. Heller Apple-Stil, CI-Farben über Variablen aus den Einstellungen. */
:root {
	--mdfo-primary: #A9223B;
	--mdfo-primary-dark: #8A1B30;
	--mdfo-accent: #F7B035;
	--mdfo-bg: #FFFFFF;
	--mdfo-surface: #F5F5F7;
	--mdfo-card: #FFFFFF;
	--mdfo-text: #1D1D1F;
	--mdfo-muted: #6E6E73;
	--mdfo-line: rgba(0, 0, 0, .08);
	--mdfo-ok: #1F9D55;
	--mdfo-font-h: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--mdfo-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--mdfo-h-transform: none;
	--mdfo-font-p: DK, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--mdfo-p-transform: none;
	--mdfo-r: 20px;
	--mdfo-r-sm: 14px;
	--mdfo-ease: cubic-bezier(.2, .8, .2, 1);
	/* Tiefe */
	--mdfo-elev-1: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04);
	--mdfo-elev-2: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.07);
	--mdfo-elev-3: 0 10px 30px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
}
html.mdfo-lock, html.mdfo-lock body { overflow: hidden !important; }

:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate), :is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) * { box-sizing: border-box; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-i { width: 20px; height: 20px; flex: none; }

/* Theme-Stile innerhalb des Plugins neutralisieren */
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) :is(button, input, select, textarea) {
	margin: 0; font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; box-shadow: none; min-width: 0; width: auto; max-width: 100%;
}
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) button { background: none; border: 0; border-radius: 0; color: inherit; padding: 0; min-height: 0; height: auto; max-height: none; text-transform: none; letter-spacing: normal; line-height: inherit; cursor: pointer; text-decoration: none; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) button:focus { outline: none; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) button:focus-visible { outline: 3px solid color-mix(in srgb, var(--mdfo-primary) 35%, transparent); outline-offset: 2px; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) :is(h2, h3, p, ul, li) { margin: 0; padding: 0; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) img { max-width: 100%; height: auto; }

/* ---------- Overlay / Panel ---------- */
#mdfo-root .mdfo-overlay {
	position: fixed; inset: 0; z-index: 999990;
	background: rgba(0, 0, 0, .32); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
	display: flex; align-items: flex-end; justify-content: center;
	opacity: 0; transition: opacity .25s var(--mdfo-ease);
	font-family: var(--mdfo-font); color: var(--mdfo-text);
}
#mdfo-root .mdfo-overlay.is-open { opacity: 1; }
#mdfo-root .mdfo-panel {
	position: relative; width: 100%; max-height: 92vh; max-height: 92dvh;
	background: var(--mdfo-bg); color: var(--mdfo-text);
	border-radius: 28px 28px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.18);
	display: flex; flex-direction: column; overflow: hidden;
	transform: translateY(100%); transition: transform .34s var(--mdfo-ease);
	padding-bottom: env(safe-area-inset-bottom);
}
#mdfo-root .mdfo-overlay.is-open .mdfo-panel { transform: none; }
#mdfo-root .mdfo-handle { width: 40px; height: 5px; border-radius: 9px; background: rgba(0,0,0,.15); margin: 9px auto 2px; flex: none; cursor: grab; }
#mdfo-root .mdfo-handle::before { content: ''; display: block; height: 30px; margin-top: -12px; }
#mdfo-root .mdfo-x {
	position: absolute; top: 14px; right: 14px; z-index: 3;
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	background: var(--mdfo-surface); color: var(--mdfo-muted);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
	transition: background .2s, color .2s;
}
#mdfo-root .mdfo-x .mdfo-i { width: 16px; height: 16px; stroke-width: 2.5; }
#mdfo-root .mdfo-x:hover { background: #E8E8ED; color: var(--mdfo-text); }
@media (min-width: 768px) {
	#mdfo-root .mdfo-overlay { align-items: center; padding: 24px; }
	#mdfo-root .mdfo-panel { max-width: 500px; border-radius: 28px; transform: translateY(20px) scale(.98); opacity: 0; transition: transform .32s var(--mdfo-ease), opacity .25s; box-shadow: 0 40px 100px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04); max-height: 88vh; }
	#mdfo-root .mdfo-overlay.is-open .mdfo-panel { opacity: 1; }
	#mdfo-root .mdfo-panel--wide { max-width: 560px; }
	#mdfo-root .mdfo-handle { display: none; }
}

/* ---------- Typo & Basics ---------- */
/* Eine cleane Schrift für alle Plugin-Flächen – Theme-Schriften (z. B. DK für Überschriften/fett) greifen hier nicht.
   Die Marken-Schrift gibt es nur für Produkttitel (--mdfo-font-p). */
:is(#mdfo-root, #mdfo-checkout-box, #mdfo-gate, #mdfo-sc, #mdfo-hd, #mdfo-ft) :is(h1, h2, h3, h4, h5, h6, strong, b, label, small, legend) { font-family: var(--mdfo-font); }
:is(.mdfo-inline-config, .mdfo-ty, .mdfo-menu) :is(h1, h2, h3, h4, h5, h6, strong, b, label, small, legend) { font-family: var(--mdfo-font); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-h {
	font-family: var(--mdfo-font-h); font-weight: 700; text-transform: var(--mdfo-h-transform); letter-spacing: -.022em;
	font-size: clamp(24px, 6vw, 28px); line-height: 1.12; margin: 0 0 6px; color: var(--mdfo-text);
}
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-h--sm { font-size: 20px; margin: 0; padding-right: 44px; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) :is(.mdfo-sub, .mdfo-muted) { color: var(--mdfo-muted); font-size: 14px; line-height: 1.45; margin: 0; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-center { text-align: center; display: block; margin-left: auto; margin-right: auto; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-label { display: block; font-family: var(--mdfo-font-h); font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 10px; color: var(--mdfo-text); text-transform: var(--mdfo-h-transform); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-link { padding: 4px 0; color: var(--mdfo-primary); font-weight: 600; font-size: 15px; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-link:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-input {
	width: 100%; min-height: 50px; padding: 13px 16px; border-radius: var(--mdfo-r-sm);
	border: 0; background: var(--mdfo-surface); color: var(--mdfo-text);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), inset 0 1px 2px rgba(0,0,0,.05);
	font: 400 17px/1.3 var(--mdfo-font); outline: none; transition: box-shadow .2s, background .2s;
}
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-input:focus { background: #fff; box-shadow: 0 0 0 1.5px var(--mdfo-primary), 0 0 0 5px color-mix(in srgb, var(--mdfo-primary) 14%, transparent); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-input::placeholder { color: #A1A1A6; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) textarea.mdfo-input { resize: vertical; min-height: 76px; font-size: 16px; }

/* ---------- Buttons (3D) ---------- */
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 22px; border-radius: 16px; cursor: pointer;
	font-family: var(--mdfo-font); font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1;
	transition: transform .12s var(--mdfo-ease), box-shadow .18s, filter .18s, background .2s; text-decoration: none;
	-webkit-tap-highlight-color: transparent; user-select: none;
}
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn:active { transform: translateY(2px); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--primary {
	color: #fff;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff) 0%, var(--mdfo-primary) 55%, var(--mdfo-primary-dark) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.35),
		inset 0 -1px 0 rgba(0,0,0,.18),
		0 3px 0 var(--mdfo-primary-dark),
		0 8px 18px color-mix(in srgb, var(--mdfo-primary) 38%, transparent);
	text-shadow: 0 1px 0 rgba(0,0,0,.18);
}
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--primary:hover { filter: brightness(1.05); color: #fff; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--primary:active {
	box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 0 var(--mdfo-primary-dark), 0 3px 8px color-mix(in srgb, var(--mdfo-primary) 30%, transparent);
}
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--primary[disabled] { filter: grayscale(.6); opacity: .45; cursor: not-allowed; transform: none; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--primary.is-soft { filter: saturate(.55) brightness(1.08); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--ghost {
	color: var(--mdfo-text);
	background: linear-gradient(180deg, #FFFFFF 0%, #F4F4F6 100%);
	box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.06);
}
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--ghost:hover { color: var(--mdfo-text); background: linear-gradient(180deg, #FFFFFF 0%, #EFEFF2 100%); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--ghost:active { box-shadow: inset 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.08), 0 1px 0 rgba(0,0,0,.06); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--ghost .mdfo-i { color: var(--mdfo-primary); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--block { width: 100%; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--grow { flex: 1; justify-content: space-between; min-width: 0; padding: 0 8px 0 20px; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--icon { width: 52px; padding: 0; flex: none; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn__price { flex: none; font-weight: 700; font-size: 16px; background: rgba(0,0,0,.16); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); padding: 8px 12px; border-radius: 11px; text-shadow: none; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn.is-loading { color: transparent !important; text-shadow: none; pointer-events: none; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn.is-loading > * { visibility: hidden; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn.is-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: mdfo-spin .7s linear infinite; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-btn--ghost.is-loading::after { border-color: rgba(0,0,0,.12); border-top-color: var(--mdfo-primary); }
@keyframes mdfo-spin { to { transform: rotate(360deg); } }

/* ---------- Check-in / Einstellungen ---------- */
#mdfo-root .mdfo-settings { padding: 6px 22px 22px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 20px; }
#mdfo-root .mdfo-head { text-align: center; padding: 10px 34px 0; }
#mdfo-root .mdfo-logo { display: block; max-height: 64px; width: auto; margin: 0 auto 12px; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-seg {
	position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 0; padding: 4px; border-radius: 14px;
	background: #EDEDF0; box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
#mdfo-root .mdfo-seg--big::before {
	content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2));
	background: #fff; border-radius: 11px; transition: transform .32s var(--mdfo-ease);
	box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
}
#mdfo-root .mdfo-seg--big.is-second::before { transform: translateX(100%); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-seg__opt {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 44px; border-radius: 11px; cursor: pointer; color: var(--mdfo-muted);
	font-family: var(--mdfo-font); font-weight: 600; font-size: 16px; transition: color .2s;
}
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-seg__opt.is-active { color: var(--mdfo-text); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-seg__opt.is-active .mdfo-i { color: var(--mdfo-primary); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-seg__opt small { font-size: 11px; opacity: .8; font-weight: 500; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-seg__opt.is-disabled { opacity: .45; }
#mdfo-root .mdfo-block { display: flex; flex-direction: column; gap: 10px; }
#mdfo-root .mdfo-field { position: relative; }
#mdfo-root .mdfo-field .mdfo-input { padding-left: 44px; }
#mdfo-root .mdfo-field__ico { position: absolute; left: 14px; top: 15px; color: #A1A1A6; pointer-events: none; }
#mdfo-root .mdfo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#mdfo-root .mdfo-row .mdfo-btn { font-size: 16px; padding: 0 12px; min-height: 48px; }
#mdfo-root .mdfo-suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; list-style: none; margin: 0; padding: 6px;
	background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	border-radius: var(--mdfo-r-sm); box-shadow: var(--mdfo-elev-3), 0 0 0 1px rgba(0,0,0,.05);
	max-height: 280px; overflow-y: auto;
}
#mdfo-root .mdfo-suggest__item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; cursor: pointer; color: var(--mdfo-text); }
#mdfo-root .mdfo-suggest__item span { display: flex; flex-direction: column; min-width: 0; }
#mdfo-root .mdfo-suggest__item small { color: var(--mdfo-muted); font-size: 13px; }
#mdfo-root .mdfo-suggest__item:hover, #mdfo-root .mdfo-suggest__item.is-active { background: var(--mdfo-surface); }
#mdfo-root .mdfo-suggest__item .mdfo-i { color: var(--mdfo-primary); }
#mdfo-root :is(.mdfo-ok, .mdfo-err) { border-radius: var(--mdfo-r-sm); padding: 14px; font-size: 15px; line-height: 1.4; animation: mdfo-pop .3s var(--mdfo-ease); }
#mdfo-root .mdfo-ok { background: #fff; box-shadow: var(--mdfo-elev-2), 0 0 0 1px color-mix(in srgb, var(--mdfo-ok) 25%, transparent); }
#mdfo-root .mdfo-ok__top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
#mdfo-root .mdfo-ok__top .mdfo-i { color: #fff; background: var(--mdfo-ok); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; }
#mdfo-root .mdfo-err { background: color-mix(in srgb, var(--mdfo-primary) 7%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--mdfo-primary) 25%, transparent); color: var(--mdfo-text); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@keyframes mdfo-pop { from { transform: translateY(6px); opacity: 0; } }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--mdfo-surface); font-size: 13px; font-weight: 600; color: var(--mdfo-text); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-chip .mdfo-i { width: 15px; height: 15px; color: var(--mdfo-muted); }
:is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) .mdfo-chip--accent { background: color-mix(in srgb, var(--mdfo-accent) 22%, #fff); color: #7A4E00; }
#mdfo-root .mdfo-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--mdfo-r); background: #fff; box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.04); }
#mdfo-root .mdfo-card .mdfo-i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--mdfo-primary); background: color-mix(in srgb, var(--mdfo-primary) 9%, #fff); }
#mdfo-root .mdfo-card div { display: flex; flex-direction: column; gap: 2px; }
#mdfo-root .mdfo-card small { color: var(--mdfo-muted); font-size: 13.5px; }
#mdfo-root .mdfo-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#mdfo-root .mdfo-when__opt {
	display: flex; gap: 10px; align-items: center; text-align: left; padding: 13px; min-height: 64px;
	border-radius: var(--mdfo-r-sm); background: #fff; color: var(--mdfo-text); cursor: pointer;
	box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.05); transition: box-shadow .2s, transform .12s;
}
#mdfo-root .mdfo-when__opt:active { transform: scale(.98); }
#mdfo-root .mdfo-when__opt span { display: flex; flex-direction: column; min-width: 0; }
#mdfo-root .mdfo-when__opt strong { font-size: 14.5px; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; }
#mdfo-root .mdfo-when__opt small { color: var(--mdfo-muted); font-size: 12.5px; margin-top: 2px; }
#mdfo-root .mdfo-when__opt .mdfo-i { color: var(--mdfo-muted); }
#mdfo-root .mdfo-when__opt.is-active { box-shadow: 0 0 0 2px var(--mdfo-primary), 0 6px 16px color-mix(in srgb, var(--mdfo-primary) 16%, transparent); }
#mdfo-root .mdfo-when__opt.is-active .mdfo-i { color: var(--mdfo-primary); }
#mdfo-root .mdfo-note { grid-column: 1 / -1; display: flex; gap: 10px; padding: 12px; border-radius: var(--mdfo-r-sm); background: color-mix(in srgb, var(--mdfo-accent) 16%, #fff); font-size: 14px; }
#mdfo-root .mdfo-slots { margin-top: 12px; }
#mdfo-root .mdfo-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
#mdfo-root .mdfo-days::-webkit-scrollbar { display: none; }
#mdfo-root .mdfo-day { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--mdfo-surface); color: var(--mdfo-text); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
#mdfo-root .mdfo-day.is-active { background: var(--mdfo-text); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
#mdfo-root .mdfo-slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 196px; overflow-y: auto; padding: 3px; }
#mdfo-root .mdfo-slot { padding: 11px 6px; border-radius: 12px; background: #fff; color: var(--mdfo-text); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: var(--mdfo-elev-1), 0 0 0 1px rgba(0,0,0,.07); transition: all .15s; }
#mdfo-root .mdfo-slot:hover { box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.1); }
#mdfo-root .mdfo-slot.is-active { background: var(--mdfo-primary); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 var(--mdfo-primary-dark), 0 6px 14px color-mix(in srgb, var(--mdfo-primary) 35%, transparent); }
#mdfo-root .mdfo-foot { display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: -22px; margin: 0 -22px -22px; padding: 16px 22px 22px; background: linear-gradient(to top, var(--mdfo-bg) 78%, rgba(255,255,255,0)); }

/* ---------- Widget ---------- */
#mdfo-root .mdfo-widget {
	position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 99990;
	display: flex; align-items: center; gap: 12px; width: auto; max-width: min(400px, calc(100vw - 32px));
	height: auto; min-height: 0; margin: 0; padding: 8px 16px 8px 8px; border: 0; border-radius: 999px;
	line-height: 1.25; white-space: normal; text-transform: none; letter-spacing: normal; font-size: 14px;
	background: rgba(255,255,255,.86); color: var(--mdfo-text);
	backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
	box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06);
	cursor: pointer; text-align: left; font-family: var(--mdfo-font);
	animation: mdfo-float-in .5s var(--mdfo-ease) both; transition: transform .2s, box-shadow .2s, border-radius .2s;
}
#mdfo-root .mdfo-widget.has-min { border-radius: 24px; padding: 10px 16px 10px 10px; }
#mdfo-root .mdfo-widget:hover { transform: translateY(-2px); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.2); }
#mdfo-root .mdfo-widget--left { left: 16px; }
#mdfo-root .mdfo-widget--right { right: 16px; }
#mdfo-root .mdfo-widget--center { left: 50%; transform: translateX(-50%); }
@keyframes mdfo-float-in { from { opacity: 0; transform: translateY(20px); } }
#mdfo-root .mdfo-widget__ico {
	position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 80%, #fff), var(--mdfo-primary));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 8px color-mix(in srgb, var(--mdfo-primary) 35%, transparent);
}
#mdfo-root .mdfo-widget__ico .mdfo-i { width: 20px; height: 20px; }
#mdfo-root .mdfo-widget.has-min .mdfo-widget__ico { width: 34px; height: 34px; margin: 4px; }
#mdfo-root .mdfo-widget__ring { position: absolute; inset: -5px; width: 44px; height: 44px; transform: rotate(-90deg); overflow: visible; }
#mdfo-root .mdfo-widget__ring circle { fill: none; stroke: rgba(0,0,0,.09); stroke-width: 3.5; }
#mdfo-root .mdfo-widget__ring circle.is-val { stroke: var(--mdfo-accent); stroke-linecap: round; stroke-dasharray: 131.9; transition: stroke-dashoffset .5s var(--mdfo-ease); }
#mdfo-root .mdfo-widget.is-warn .mdfo-widget__ico { background: linear-gradient(180deg, #FFD27A, var(--mdfo-accent)); color: #3D2A00; animation: mdfo-pulse 2s infinite; }
@keyframes mdfo-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--mdfo-accent) 25%, transparent); } }
#mdfo-root .mdfo-widget__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
#mdfo-root .mdfo-widget__txt strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mdfo-root .mdfo-widget__txt small { display: block; font-size: 12.5px; line-height: 1.25; color: var(--mdfo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mdfo-root .mdfo-widget__hint { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--mdfo-text); white-space: normal; }
#mdfo-root .mdfo-widget__hint b { font-weight: 700; color: var(--mdfo-primary); }
#mdfo-root .mdfo-widget__edit { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.05); color: var(--mdfo-muted); }
#mdfo-root .mdfo-widget__edit .mdfo-i { width: 15px; height: 15px; }
body.woocommerce-checkout #mdfo-root .mdfo-widget { display: none; }

/* ---------- Toast ---------- */
#mdfo-root .mdfo-toast {
	position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 999999; transform: translate(-50%, -30px); opacity: 0;
	padding: 12px 18px; border-radius: 999px; background: rgba(29,29,31,.92); color: #fff; font: 600 14px var(--mdfo-font);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: all .3s var(--mdfo-ease); max-width: calc(100vw - 32px); text-align: center;
}
#mdfo-root .mdfo-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
#mdfo-root .mdfo-toast--ok { background: rgba(31,157,85,.95); }
#mdfo-root .mdfo-toast--warn { background: rgba(255,214,120,.97); color: #3D2A00; }
#mdfo-root .mdfo-toast--error { background: var(--mdfo-primary); }

/* ---------- Konfigurator ---------- */
:is(#mdfo-root, .mdfo-inline-config) .mdfo-cfg { display: flex; flex-direction: column; min-height: 0; flex: 1; background: var(--mdfo-bg); color: var(--mdfo-text); font-family: var(--mdfo-font); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-cfg__title { padding: 14px 0 2px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-cfg__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 22px; flex: 1; scroll-behavior: smooth; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-progress { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; padding: 12px 0 14px; background: var(--mdfo-bg); overflow-x: auto; scrollbar-width: none; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-progress::-webkit-scrollbar { display: none; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-progress__dot { flex: 1 0 auto; min-width: 60px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; color: #A1A1A6; font-size: 11.5px; font-weight: 600; text-align: left; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-progress__dot::before { content: ''; display: block; height: 4px; border-radius: 4px; background: #E5E5EA; transition: background .3s; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-progress__dot.is-done::before { background: color-mix(in srgb, var(--mdfo-primary) 45%, #fff); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-progress__dot.is-cur::before { background: var(--mdfo-primary); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-progress__dot.is-cur { color: var(--mdfo-text); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-progress__dot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-step { animation: mdfo-slide .28s var(--mdfo-ease); padding-top: 4px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-cfg.is-onepage .mdfo-step { animation: none; padding: 16px 0; border-bottom: 1px solid var(--mdfo-line); }
@keyframes mdfo-slide { from { opacity: 0; transform: translateX(16px); } }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-step__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-step__title { margin: 0; font-family: var(--mdfo-font-h); font-weight: 700; text-transform: var(--mdfo-h-transform); font-size: 22px; letter-spacing: -.02em; color: var(--mdfo-text); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-badge { flex: none; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--mdfo-surface); color: var(--mdfo-muted); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-badge.is-req { background: color-mix(in srgb, var(--mdfo-primary) 10%, #fff); color: var(--mdfo-primary); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-badge.is-ok { background: color-mix(in srgb, var(--mdfo-ok) 12%, #fff); color: var(--mdfo-ok); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-badge.shake { animation: mdfo-shake .4s; }
@keyframes mdfo-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-list { display: flex; flex-direction: column; gap: 10px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt {
	position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 58px;
	border-radius: var(--mdfo-r-sm); background: var(--mdfo-card); cursor: pointer;
	box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.05);
	transition: box-shadow .18s, transform .12s; user-select: none; -webkit-tap-highlight-color: transparent;
}
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt:hover { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 10px 22px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.06); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt:active { transform: scale(.985); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt:focus-visible { outline: 3px solid color-mix(in srgb, var(--mdfo-primary) 35%, transparent); outline-offset: 2px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt.is-sel { box-shadow: 0 0 0 2px var(--mdfo-primary), 0 8px 20px color-mix(in srgb, var(--mdfo-primary) 14%, transparent); background: color-mix(in srgb, var(--mdfo-primary) 3%, #fff); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt.is-out { opacity: .45; cursor: not-allowed; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt__mark { width: 24px; height: 24px; flex: none; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px #C7C7CC, inset 0 1px 2px rgba(0,0,0,.06); display: grid; place-items: center; color: transparent; transition: all .18s; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt.is-radio .mdfo-opt__mark { border-radius: 50%; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt__mark .mdfo-i { width: 15px; height: 15px; stroke-width: 3; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt.is-sel .mdfo-opt__mark { background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 80%, #fff), var(--mdfo-primary)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 5px color-mix(in srgb, var(--mdfo-primary) 35%, transparent); color: #fff; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt__thumb { width: 48px; height: 48px; flex: none; border-radius: 11px; object-fit: cover; background: var(--mdfo-surface); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; color: var(--mdfo-text); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt__txt strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt__txt small { color: var(--mdfo-muted); font-size: 13px; line-height: 1.35; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-out { color: var(--mdfo-primary) !important; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt__price { flex: none; font-weight: 600; font-size: 14.5px; color: var(--mdfo-muted); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-opt.is-sel .mdfo-opt__price { color: var(--mdfo-primary); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--mdfo-surface); border-radius: 999px; padding: 3px; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-stepper button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mdfo-text); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.06); transition: transform .1s; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-stepper button:active { transform: scale(.92); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-stepper button .mdfo-i { width: 16px; height: 16px; stroke-width: 2.5; color: var(--mdfo-primary); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-stepper span { min-width: 22px; text-align: center; font-weight: 700; color: var(--mdfo-text); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-stepper--lg button { width: 40px; height: 40px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-cfg__foot { display: flex; gap: 8px; align-items: center; padding: 12px 20px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--mdfo-line); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-sumlist { display: flex; flex-direction: column; margin-bottom: 18px; background: #fff; border-radius: var(--mdfo-r-sm); box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.05); padding: 0 14px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-sumrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--mdfo-line); }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-sumrow:last-child { border-bottom: 0; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-sumrow .mdfo-muted { grid-column: 1; font-size: 12.5px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-sumrow strong { grid-column: 1; color: var(--mdfo-text); font-weight: 600; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-sumrow .mdfo-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; }
:is(#mdfo-root, .mdfo-inline-config) .mdfo-summary .mdfo-step__title { margin-bottom: 12px; }
@media (max-width: 420px) {
	:is(#mdfo-root, .mdfo-inline-config) .mdfo-stepper--lg button { width: 36px; height: 36px; }
	:is(#mdfo-root, .mdfo-inline-config) .mdfo-cfg__foot { padding: 10px 14px 14px; }
	:is(#mdfo-root, .mdfo-inline-config) .mdfo-btn--icon { width: 46px; }
	:is(#mdfo-root, .mdfo-inline-config) .mdfo-cfg__foot.is-last .mdfo-btn--icon { display: none; }
}

/* Inline-Konfigurator auf der Produktseite */
.mdfo-inline-config { margin: 16px 0; }
.mdfo-inline-config .mdfo-cfg { border-radius: var(--mdfo-r); overflow: hidden; box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.05); }
.mdfo-inline-config .mdfo-cfg__body { max-height: none; padding-top: 4px; }
.mdfo-skeleton { height: 260px; border-radius: var(--mdfo-r); background: linear-gradient(90deg, #f2f2f4, #e8e8ec, #f2f2f4); background-size: 200% 100%; animation: mdfo-sk 1.2s infinite; }
@keyframes mdfo-sk { to { background-position: -200% 0; } }

/* ---------- Kasse ---------- */
#mdfo-checkout-box { margin: 0 0 24px; font-family: var(--mdfo-font); }
#mdfo-checkout-box .mdfo-cbox { background: #fff; color: var(--mdfo-text); border-radius: var(--mdfo-r); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.05); }
#mdfo-checkout-box .mdfo-cbox__head { display: flex; justify-content: space-between; align-items: center; }
#mdfo-checkout-box .mdfo-cbox__title { font-family: var(--mdfo-font-h); font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-transform: var(--mdfo-h-transform); }
#mdfo-checkout-box .mdfo-seg { --n: 2; }
#mdfo-checkout-box .mdfo-seg__opt { cursor: pointer; margin: 0; }
#mdfo-checkout-box .mdfo-seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
#mdfo-checkout-box .mdfo-seg__opt.is-active { background: #fff; color: var(--mdfo-text); box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.12); }
#mdfo-checkout-box .mdfo-cbox__row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
#mdfo-checkout-box .mdfo-cbox__row small { color: var(--mdfo-muted); }
#mdfo-checkout-box .mdfo-ico { font-size: 18px; line-height: 1.3; }
#mdfo-checkout-box .mdfo-select { flex: 1; }
#mdfo-checkout-box .mdfo-select select { width: 100%; min-height: 48px; border-radius: var(--mdfo-r-sm); border: 0; background: var(--mdfo-surface); color: var(--mdfo-text); padding: 0 12px; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
#mdfo-checkout-box .mdfo-hint { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: var(--mdfo-r-sm); background: color-mix(in srgb, var(--mdfo-accent) 16%, #fff); }
#mdfo-checkout-box .mdfo-hint--warn { background: color-mix(in srgb, var(--mdfo-primary) 8%, #fff); }
body.mdfo-type-pickup .woocommerce-checkout .mdfo-address-field { display: none !important; }
#mdfo-checkout-box .mdfo-select select {
	font-family: var(--mdfo-font) !important; text-transform: none !important; letter-spacing: normal !important; line-height: 1.3;
	-webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2.2' 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 14px center; background-size: 16px;
}
#mdfo-checkout-box .mdfo-select optgroup, #mdfo-checkout-box .mdfo-select option { font-family: var(--mdfo-font); text-transform: none; }

/* Fluid Checkout: Box sitzt in ihrem eigenen Schritt – ohne zweite Karte */
#mdfo-checkout-box.mdfo-checkout-box--fc { margin: 0; }
#mdfo-checkout-box.mdfo-checkout-box--fc .mdfo-cbox { padding: 0; background: none; box-shadow: none; }
#mdfo-checkout-box.mdfo-checkout-box--fc .mdfo-cbox__head { display: none; }
body.mdfo-fc.mdfo-type-pickup .fc-step__substep[data-substep-id="mdfo_address"] { display: none; }
.mdfo-fc-address .mdfo-fc-note { color: var(--mdfo-muted); font-size: 14px; margin: 0; }
body.mdfo-has-gate .fc-contact-login { display: none !important; }

/* ---------- Kassen-Einstieg: Gast / Anmelden / Registrieren (mobile first) ---------- */
#mdfo-gate { margin: 0 0 20px; font-family: var(--mdfo-font); color: var(--mdfo-text); -webkit-font-smoothing: antialiased; }
#mdfo-gate .mdfo-gate__card { background: #fff; border-radius: 22px; padding: 22px 16px 18px; box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.05); max-width: 520px; margin: 0 auto; }
#mdfo-gate .mdfo-gate__title { font-family: var(--mdfo-font-h); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; text-align: center; text-transform: var(--mdfo-h-transform); color: var(--mdfo-text); }
#mdfo-gate .mdfo-gate__lead { margin: 6px 0 18px; text-align: center; font-size: 14.5px; line-height: 1.4; color: var(--mdfo-muted); }
#mdfo-gate .mdfo-gate__choose.is-no-guest .mdfo-gate__title { margin-bottom: 18px; }

/* Knöpfe: Theme-Stile (feste Höhe, Großbuchstaben, nowrap …) vollständig zurücksetzen */
#mdfo-gate button.mdfo-gate__opt {
	all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
	height: auto !important; min-height: 64px; max-height: none !important; margin: 0; padding: 12px 14px 12px 12px; border-radius: 16px;
	font-family: var(--mdfo-font); text-align: left; white-space: normal; line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent;
	color: var(--mdfo-text); background: linear-gradient(180deg, #FFFFFF 0%, #F6F6F8 100%);
	box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.06), 0 6px 14px rgba(0,0,0,.05);
	transition: transform .12s, box-shadow .12s, filter .12s;
}
#mdfo-gate button.mdfo-gate__opt:focus-visible { outline: 3px solid color-mix(in srgb, var(--mdfo-primary) 35%, transparent); outline-offset: 2px; }
#mdfo-gate button.mdfo-gate__opt:active { transform: translateY(2px) scale(.99); box-shadow: inset 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.08); }
@media (hover: hover) { #mdfo-gate button.mdfo-gate__opt:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.1), 0 2px 0 rgba(0,0,0,.07), 0 10px 22px rgba(0,0,0,.08); } }
#mdfo-gate .mdfo-gate__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--mdfo-primary) 10%, #fff); color: var(--mdfo-primary); }
#mdfo-gate .mdfo-gate__ico .mdfo-i { width: 21px; height: 21px; }
#mdfo-gate .mdfo-gate__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
#mdfo-gate .mdfo-gate__txt strong { display: block; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; text-transform: none; color: inherit; }
#mdfo-gate .mdfo-gate__txt small { display: block; font-size: 13px; line-height: 1.35; color: var(--mdfo-muted); text-transform: none; letter-spacing: 0; }
#mdfo-gate .mdfo-gate__chev { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); }
#mdfo-gate .mdfo-gate__chev .mdfo-i { width: 18px; height: 18px; }

/* Hauptknopf „Als Gast fortfahren“ */
#mdfo-gate button.mdfo-gate__opt--primary {
	min-height: 72px; color: #fff;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff), var(--mdfo-primary) 55%, var(--mdfo-primary-dark));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 var(--mdfo-primary-dark), 0 8px 18px color-mix(in srgb, var(--mdfo-primary) 34%, transparent);
}
#mdfo-gate button.mdfo-gate__opt--primary:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 var(--mdfo-primary-dark), 0 3px 8px color-mix(in srgb, var(--mdfo-primary) 28%, transparent); }
@media (hover: hover) { #mdfo-gate button.mdfo-gate__opt--primary:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 var(--mdfo-primary-dark), 0 10px 22px color-mix(in srgb, var(--mdfo-primary) 40%, transparent); } }
#mdfo-gate .mdfo-gate__opt--primary .mdfo-gate__ico { background: rgba(255,255,255,.2); color: #fff; }
#mdfo-gate .mdfo-gate__opt--primary .mdfo-gate__txt strong { font-size: 17.5px; }
#mdfo-gate .mdfo-gate__opt--primary .mdfo-gate__txt small { color: rgba(255,255,255,.88); }

#mdfo-gate .mdfo-gate__or { display: flex; align-items: center; gap: 12px; margin: 18px 2px 12px; font-size: 13px; font-weight: 600; color: var(--mdfo-muted); white-space: nowrap; }
#mdfo-gate .mdfo-gate__or::before, #mdfo-gate .mdfo-gate__or::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.09); }

/* Konto-Kacheln: zwei nebeneinander wie in einer App */
#mdfo-gate .mdfo-gate__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#mdfo-gate .mdfo-gate__opts.is-single { grid-template-columns: 1fr; }
#mdfo-gate button.mdfo-gate__opt--tile { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; }
#mdfo-gate .mdfo-gate__opts.is-single button.mdfo-gate__opt--tile { flex-direction: row; align-items: center; }
#mdfo-gate .mdfo-gate__choose.is-no-guest .mdfo-gate__opts { grid-template-columns: 1fr; }
#mdfo-gate .mdfo-gate__choose.is-no-guest button.mdfo-gate__opt--tile { flex-direction: row; align-items: center; min-height: 64px; }
@media (max-width: 339px) {
	#mdfo-gate .mdfo-gate__opts { grid-template-columns: 1fr; }
	#mdfo-gate button.mdfo-gate__opt--tile { flex-direction: row; align-items: center; }
}

/* Anmeldeformular */
#mdfo-gate .mdfo-gate__login .mdfo-gate__title { margin-bottom: 18px; }
#mdfo-gate .mdfo-gate__login .form-row { display: block; margin: 0 0 14px; padding: 0; float: none; width: 100%; }
#mdfo-gate .mdfo-gate__login label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--mdfo-text); }
#mdfo-gate .mdfo-gate__login .input-text {
	display: block; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 12px; font-size: 16px; color: var(--mdfo-text);
	background: var(--mdfo-surface); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
#mdfo-gate .mdfo-gate__login .input-text:focus { outline: none; background: #fff; box-shadow: 0 0 0 1.5px var(--mdfo-primary), 0 0 0 5px color-mix(in srgb, var(--mdfo-primary) 14%, transparent); }
#mdfo-gate .mdfo-gate__login label.mdfo-gate__remember { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0 0 18px; }
#mdfo-gate .mdfo-gate__login label.mdfo-gate__remember input { width: 18px; height: 18px; accent-color: var(--mdfo-primary); }
#mdfo-gate .mdfo-gate__actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#mdfo-gate .mdfo-gate__done { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; margin: 0 auto; padding: 12px 16px; border-radius: 14px; background: #fff; font-size: 15px; box-shadow: var(--mdfo-elev-1), 0 0 0 1px rgba(0,0,0,.05); }
#mdfo-gate [hidden] { display: none !important; }
body.mdfo-gate-open form.woocommerce-checkout, body.mdfo-gate-open .fc-progress-bar, body.mdfo-gate-open .woocommerce-form-coupon-toggle, body.mdfo-gate-open form.checkout_coupon { display: none !important; }
@media (min-width: 720px) {
	#mdfo-gate { margin-bottom: 28px; }
	#mdfo-gate .mdfo-gate__card { padding: 30px 28px 26px; }
	#mdfo-gate .mdfo-gate__title { font-size: 25px; }
	#mdfo-gate .mdfo-gate__login { max-width: 400px; margin: 0 auto; }
}

/* ---------- Embeds / Shortcodes ---------- */
.mdfo-embed .mdfo-btn, .mdfo-btn.mdfo-btn--primary:not(#mdfo-root *) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 16px; cursor: pointer;
	font: 600 17px -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif; color: #fff;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff), var(--mdfo-primary) 55%, var(--mdfo-primary-dark));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 var(--mdfo-primary-dark), 0 8px 18px color-mix(in srgb, var(--mdfo-primary) 38%, transparent);
}

/* Warenkorb: Menü-Komponenten eingerückt */
.mdfo-child td.product-name, .woocommerce-mini-cart-item.mdfo-child { padding-left: 2.2em !important; opacity: .9; }
.mdfo-child .product-thumbnail img, .woocommerce-mini-cart-item.mdfo-child img { max-width: 36px; }
.mdfo-child-step { color: #888; font-size: .9em; }
.mdfo-thankyou { padding: 12px 14px; border-left: 3px solid var(--mdfo-primary); background: rgba(0,0,0,.03); border-radius: 8px; }
.mdfo-form-options fieldset { border: 1px solid rgba(0,0,0,.1); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.mdfo-form-options label { display: block; margin: 4px 0; }
.mdfo-hours th { text-align: left; padding-right: 16px; }

/* ---------- Dunkles Design (optional) ---------- */
.mdfo-theme-dark :is(#mdfo-root, #mdfo-checkout-box, .mdfo-inline-config, #mdfo-gate) {
	--mdfo-bg: #1C1C1E; --mdfo-surface: #2C2C2E; --mdfo-card: #2C2C2E; --mdfo-text: #F5F5F7; --mdfo-muted: #A1A1A6; --mdfo-line: rgba(255,255,255,.1);
}
.mdfo-theme-dark #mdfo-root :is(.mdfo-opt, .mdfo-when__opt, .mdfo-slot, .mdfo-card, .mdfo-ok, .mdfo-sumlist),
.mdfo-theme-dark #mdfo-checkout-box .mdfo-cbox { background: #2C2C2E; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.mdfo-theme-dark #mdfo-root :is(.mdfo-cfg__foot) { background: rgba(28,28,30,.92); }
.mdfo-theme-dark #mdfo-root .mdfo-foot { background: linear-gradient(to top, #1C1C1E 78%, rgba(28,28,30,0)); }
.mdfo-theme-dark #mdfo-root .mdfo-widget { background: rgba(44,44,46,.85); }
.mdfo-theme-dark :is(#mdfo-root, #mdfo-checkout-box) .mdfo-seg { background: #3A3A3C; }
.mdfo-theme-dark #mdfo-root .mdfo-seg--big::before, .mdfo-theme-dark #mdfo-checkout-box .mdfo-seg__opt.is-active { background: #636366; }
.mdfo-theme-dark #mdfo-root .mdfo-btn--ghost { background: linear-gradient(180deg, #3A3A3C, #2C2C2E); color: #F5F5F7; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 rgba(0,0,0,.4); }

@media (prefers-reduced-motion: reduce) {
	#mdfo-root :is(.mdfo-overlay, .mdfo-panel, .mdfo-step, .mdfo-widget, .mdfo-toast) { transition: none !important; animation: none !important; }
}

/* Konfigurator-Button immer in CI-Farbe (statt WooCommerce-Lila des Themes) */
body .button.mdfo-config-btn, body button.mdfo-config-btn.button {
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff), var(--mdfo-primary) 55%, var(--mdfo-primary-dark)) !important;
	color: #fff !important; border-color: transparent !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 var(--mdfo-primary-dark), 0 8px 18px color-mix(in srgb, var(--mdfo-primary) 35%, transparent) !important;
}
#mdfo-root .mdfo-slotgrid__sep { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--mdfo-muted, #6b7280); padding: 6px 2px 0; }
