/* MBX Winkelbeheer: rustig, licht, Polaris-achtig met MBX-accent. */
:root {
	--mbx-wb-bg: #f3f4f7;
	--mbx-wb-card: #fff;
	--mbx-wb-line: #e3e6ee;
	--mbx-wb-text: #1a1f2e;
	--mbx-wb-muted: #5f677a;
	--mbx-wb-accent: #2f4be0;
	--mbx-wb-accent-soft: #eef1fd;
	--mbx-wb-nav: #ebedf2;
	--mbx-wb-radius: 12px;
	--mbx-wb-shadow: 0 1px 0 rgba(26, 31, 46, .06), 0 1px 3px rgba(26, 31, 46, .08);
	--mbx-wb-navw: 232px;
}

/* --- Schil: alleen voor de winkelier (body.mbx-wb) --- */
body.mbx-wb { background: var(--mbx-wb-bg); color: var(--mbx-wb-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body.mbx-wb #adminmenumain { display: none; }
body.mbx-wb #wpcontent, body.mbx-wb #wpfooter { margin-left: var(--mbx-wb-navw); }
body.mbx-wb #wpcontent { padding-left: 24px; padding-right: 24px; }
body.mbx-wb #wpbody-content { padding-bottom: 40px; }
body.mbx-wb .wrap { max-width: 1080px; margin-left: auto; margin-right: auto; }
body.mbx-wb #screen-meta-links, body.mbx-wb #contextual-help-link-wrap { display: none; }
body.mbx-wb #wpfooter { display: none; }
/* WooCommerce-kop (React-schermen) naast onze zijbalk */
body.mbx-wb .woocommerce-layout__header { width: auto !important; left: var(--mbx-wb-navw) !important; right: 0 !important; }
body.mbx-wb .woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab[id$="setup"],
body.mbx-wb .woocommerce-layout__activity-panel-tab.is-setup-task,
body.mbx-wb .woocommerce-marketing-overview, body.mbx-wb .woocommerce-store-alerts { display: none !important; }
body.mbx-wb .woocommerce-embed-page #wpbody .woocommerce-layout, body.mbx-wb .woocommerce-embed-page .woocommerce-layout__header { left: var(--mbx-wb-navw); }

.mbx-wb-ico { width: 20px; height: 20px; flex: none; }

.mbx-wb-nav {
	position: fixed; z-index: 9990; top: 32px; bottom: 0; left: 0; width: var(--mbx-wb-navw);
	background: var(--mbx-wb-nav); border-right: 1px solid var(--mbx-wb-line);
	display: flex; flex-direction: column; padding: 12px 10px; box-sizing: border-box; overflow-y: auto;
}
.mbx-wb-nav ul { margin: 0; padding: 0; list-style: none; }
.mbx-wb-nav li { margin: 0 0 2px; }
.mbx-wb-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #303746; text-decoration: none; font-size: 14px; font-weight: 500; }
.mbx-wb-nav a:hover { background: rgba(255, 255, 255, .65); color: var(--mbx-wb-text); }
.mbx-wb-nav a:focus { box-shadow: 0 0 0 2px var(--mbx-wb-accent); outline: none; }
.mbx-wb-nav li.is-active > a { background: #fff; color: var(--mbx-wb-text); box-shadow: var(--mbx-wb-shadow); }
.mbx-wb-nav li.is-active > a .mbx-wb-ico { color: var(--mbx-wb-accent); }
.mbx-wb-sub { margin: 2px 0 6px 30px !important; }
.mbx-wb-sub a { padding: 5px 10px; font-weight: 400; color: var(--mbx-wb-muted); }
.mbx-wb-sub li.is-active a { color: var(--mbx-wb-text); font-weight: 600; background: none; box-shadow: none; }
.mbx-wb-bottom { margin-top: auto !important; padding-top: 10px !important; border-top: 1px solid var(--mbx-wb-line) !important; }
.mbx-wb-store { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.mbx-wb-store img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; }
.mbx-wb-avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--mbx-wb-accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.mbx-wb-storename { font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mbx-wb-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--mbx-wb-accent); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }

.mbx-wb-tabbar, .mbx-wb-sheet { display: none; }

/* --- Pagina's van het winkelbeheer (ook voor de beheerder) --- */
.mbx-wb-page { color: var(--mbx-wb-text); }
.mbx-wb-page h1 { font-size: 22px; font-weight: 650; margin: 0; padding: 0; }
.mbx-wb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 16px; }
.mbx-wb-page h2 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.mbx-wb-h2 { margin-top: 28px !important; }
.mbx-wb-page h3 { font-size: 14px; margin: 10px 0 4px; display: flex; align-items: center; gap: 8px; }
.mbx-wb-page p { font-size: 14px; }
.mbx-wb-muted { color: var(--mbx-wb-muted); font-size: 13px; }
.mbx-wb-small { color: var(--mbx-wb-muted); font-size: 12.5px; display: block; }
.mbx-wb-card { background: var(--mbx-wb-card); border-radius: var(--mbx-wb-radius); box-shadow: var(--mbx-wb-shadow); padding: 16px 18px; margin: 0 0 16px; box-sizing: border-box; }
.mbx-wb-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mbx-wb-card-head h2 { margin: 0; }
.mbx-wb-page a { color: var(--mbx-wb-accent); }
.mbx-wb-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid #c9cfdc; background: #fff; color: var(--mbx-wb-text) !important; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 1px 0 rgba(26, 31, 46, .05); box-sizing: border-box; }
.mbx-wb-btn:hover { background: #f6f7fa; }
.mbx-wb-btn:focus { outline: 2px solid var(--mbx-wb-accent); outline-offset: 1px; }
.mbx-wb-btn.is-primary { background: var(--mbx-wb-text); border-color: var(--mbx-wb-text); color: #fff !important; }
.mbx-wb-btn.is-primary:hover { background: #2c3347; }
.mbx-wb-btn .mbx-wb-ico { width: 16px; height: 16px; }
.mbx-wb-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mbx-wb-actions form { margin: 0; }

.mbx-wb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 0; }
.mbx-wb-stat strong { display: block; font-size: 24px; font-weight: 650; margin: 4px 0 2px; letter-spacing: -.01em; }
.mbx-wb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mbx-wb-steps ol { list-style: none; margin: 10px 0 0; padding: 0; }
.mbx-wb-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--mbx-wb-line); font-size: 14px; }
.mbx-wb-steps li.is-done a { color: var(--mbx-wb-muted); text-decoration: line-through; }
.mbx-wb-check { width: 18px; height: 18px; border-radius: 50%; border: 2px dashed #a9b0c0; box-sizing: border-box; flex: none; }
.is-done .mbx-wb-check { border: 0; background: var(--mbx-wb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.mbx-wb-progress { height: 6px; border-radius: 3px; background: var(--mbx-wb-line); overflow: hidden; }
.mbx-wb-progress span { display: block; height: 100%; background: var(--mbx-wb-accent); }

.mbx-wb-list { list-style: none; margin: 0; padding: 0; }
.mbx-wb-list li { border-top: 1px solid var(--mbx-wb-line); margin: 0; }
.mbx-wb-list li:first-child { border-top: 0; }
.mbx-wb-list li > a, .mbx-wb-list li > span:first-child { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--mbx-wb-text) !important; text-decoration: none; }
.mbx-wb-list li:not(:has(> a)) { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.mbx-wb-list li > a:hover { background: #f7f8fb; }
.mbx-wb-li-main { flex: 1; min-width: 0; font-size: 14px; }
.mbx-wb-li-main strong { margin-right: 4px; }
.mbx-wb-li-amount { font-weight: 600; font-size: 14px; white-space: nowrap; }
.mbx-wb-empty { color: var(--mbx-wb-muted); padding: 10px 2px; }
.mbx-wb-pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #eceef3; color: #3d4455; white-space: nowrap; }
.mbx-wb-pill.is-processing { background: #fff1c2; color: #6b4e00; }
.mbx-wb-pill.is-completed { background: #d9f2e3; color: #105c33; }
.mbx-wb-pill.is-on-hold, .mbx-wb-pill.is-pending { background: #fde4d4; color: #7a3410; }
.mbx-wb-pill.is-cancelled, .mbx-wb-pill.is-refunded, .mbx-wb-pill.is-failed { background: #eceef3; color: #5f677a; }
.mbx-wb-quick { list-style: none; margin: 0; padding: 0; }
.mbx-wb-quick a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; font-weight: 500; }

.mbx-wb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--mbx-wb-line); margin: 0 0 16px; overflow-x: auto; }
.mbx-wb-tabs a { padding: 9px 12px; font-size: 14px; color: var(--mbx-wb-muted) !important; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mbx-wb-tabs a.is-active { color: var(--mbx-wb-text) !important; border-bottom-color: var(--mbx-wb-text); font-weight: 600; }

/* Thema */
.mbx-wb-theme { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: center; }
.mbx-wb-frame { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; border: 1px solid var(--mbx-wb-line); background: #f7f7f7; }
.mbx-wb-frame iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
.mbx-wb-frame.is-small { aspect-ratio: 4 / 3; }
.mbx-wb-frame.is-small iframe { height: 1080px; }
.mbx-wb-theme-info h2 { font-size: 20px; margin: 4px 0 4px; }
.mbx-wb-designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mbx-wb-design { padding: 12px; }
.mbx-wb-design p { margin: 0 0 10px; }
.mbx-wb-swatches { display: flex; gap: 4px; margin-top: 10px; }
.mbx-wb-swatches span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }

/* Formulieren */
.mbx-wb-form label { display: block; font-size: 13.5px; font-weight: 500; margin: 0 0 12px; }
.mbx-wb-form input[type=text], .mbx-wb-form input[type=email] { display: block; width: 100%; max-width: 520px; margin-top: 4px; min-height: 38px; border-radius: 8px; border-color: #c9cfdc; font-size: 15px; }
.mbx-wb-form h2 { margin-top: 18px; }
.mbx-wb-form h2:first-of-type { margin-top: 0; }
.mbx-wb-inline { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.mbx-wb-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.mbx-wb-custom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.mbx-wb-side .mbx-wb-frame { margin-bottom: 10px; }
.mbx-wb-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mbx-wb-logo-prev { width: 120px; height: 64px; border: 1px dashed #c9cfdc; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.mbx-wb-logo-prev img { max-width: 100%; max-height: 100%; }
.mbx-wb-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mbx-wb-color { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mbx-wb-color input { width: 44px; height: 36px; padding: 2px; border: 1px solid #c9cfdc; border-radius: 8px; background: #fff; }
.mbx-wb-fonts { display: flex; gap: 10px; flex-wrap: wrap; }
.mbx-wb-font { display: flex !important; flex-direction: column; align-items: center; gap: 2px; width: 104px; padding: 10px; border: 1px solid #c9cfdc; border-radius: 10px; cursor: pointer; }
.mbx-wb-font span { font-size: 26px; }
.mbx-wb-font input { position: absolute; opacity: 0; }
.mbx-wb-font:has(input:checked) { border-color: var(--mbx-wb-accent); box-shadow: 0 0 0 1px var(--mbx-wb-accent); background: var(--mbx-wb-accent-soft); }
.mbx-wb-font:has(input:focus-visible) { outline: 2px solid var(--mbx-wb-accent); }
.mbx-wb-domain { font-size: 18px !important; }

/* Bevestiging */
.mbx-wb-dialog { border: 0; border-radius: 14px; padding: 20px; max-width: 420px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.mbx-wb-dialog::backdrop { background: rgba(20, 24, 36, .45); }
.mbx-wb-dialog p { font-size: 15px; margin: 0 0 16px; }

/* --- Telefoon en smalle schermen --- */
@media (max-width: 960px) {
	.mbx-wb-stats, .mbx-wb-designs { grid-template-columns: 1fr 1fr; }
	.mbx-wb-theme, .mbx-wb-custom { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	body.mbx-wb #wpcontent { margin-left: 0 !important; padding-left: 12px; padding-right: 12px; }
	body.mbx-wb #wpbody-content { padding-bottom: 96px; }
	body.mbx-wb .woocommerce-layout__header { width: 100% !important; left: 0 !important; }
	body.mbx-wb .woocommerce-embed-page #wpbody .woocommerce-layout { left: 0; }
	body.mbx-wb #wp-admin-bar-menu-toggle { display: none !important; }
	.mbx-wb-nav { display: none; }
	.mbx-wb-tabbar {
		display: flex; position: fixed; z-index: 99990; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--mbx-wb-line);
		padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(26, 31, 46, .06);
	}
	.mbx-wb-tabbar a, .mbx-wb-tabbar button {
		position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
		background: none; border: 0; color: var(--mbx-wb-muted); font-size: 11.5px; font-weight: 500; text-decoration: none; cursor: pointer; border-radius: 10px;
	}
	.mbx-wb-tabbar .is-active { color: var(--mbx-wb-accent); }
	.mbx-wb-tabbar .mbx-wb-ico { width: 22px; height: 22px; }
	.mbx-wb-tabbar .mbx-wb-badge { position: absolute; top: 3px; left: calc(50% + 4px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; }
	.mbx-wb-sheet:not([hidden]) { display: block; position: fixed; z-index: 99989; inset: 0; background: rgba(20, 24, 36, .4); }
	.mbx-wb-sheet-in { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 10px 12px calc(76px + env(safe-area-inset-bottom)); }
	.mbx-wb-sheet ul { margin: 0; padding: 0; list-style: none; }
	.mbx-wb-sheet a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; color: var(--mbx-wb-text); font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--mbx-wb-line); }
	.mbx-wb-sheet li:last-child a { border-bottom: 0; color: var(--mbx-wb-muted); }
	.mbx-wb-head { margin-top: 10px; }
	.mbx-wb-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mbx-wb-stats .mbx-wb-stat:last-child { grid-column: 1 / -1; }
	.mbx-wb-stat strong { font-size: 20px; }
	.mbx-wb-grid2, .mbx-wb-designs, .mbx-wb-row, .mbx-wb-colors { grid-template-columns: 1fr; }
	.mbx-wb-card { padding: 14px; }
	.mbx-wb-btn { min-height: 44px; }
	.mbx-wb-form input[type=text], .mbx-wb-form input[type=email] { font-size: 16px; min-height: 44px; }
	.mbx-wb-list li > a { min-height: 44px; }
	.mbx-wb-li-main .mbx-wb-small { display: block; }
}
.mbx-wb-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 18px; }
@media (max-width: 782px) {
	.mbx-wb-steps-grid { grid-template-columns: 1fr; }
	/* Op de telefoon alleen de eerstvolgende 3 open stappen */
	.mbx-wb-steps-grid li.is-done, .mbx-wb-steps-grid li:not(.is-done) ~ li:not(.is-done) ~ li:not(.is-done) ~ li:not(.is-done) { display: none; }
}
/* Op klassieke schermen staat de kopbalk van WooCommerce niet vast maar in de pagina: geen eigen verschuiving. */
body.mbx-wb .woocommerce-layout__header.is-chrome-only { left: 0 !important; right: auto !important; width: 100% !important; }

/* Productscherm */
.mbx-wb-page [hidden] { display: none !important; }
.mbx-wb-varrij label { display: block; margin: 0; font-weight: 400; }
.mbx-wb-varrij label span { display: none; }
.mbx-wb-product { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.mbx-wb-product-save { grid-column: 1 / -1; display: flex; justify-content: flex-end; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--mbx-wb-bg) 35%); }
.mbx-wb-product-save .mbx-wb-btn { min-height: 44px; padding: 0 28px; font-size: 15px; }
.mbx-wb-label { font-size: 13.5px; font-weight: 500; margin: 0 0 4px; }
.mbx-wb-product .wp-editor-wrap { border-radius: 8px; overflow: hidden; }
.mbx-wb-product select, .mbx-wb-product input[type=number] { display: block; width: 100%; max-width: 520px; margin-top: 4px; min-height: 38px; border-radius: 8px; border-color: #c9cfdc; font-size: 15px; }
.mbx-wb-euro { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.mbx-wb-euro input { margin-top: 0 !important; }
.mbx-wb-fotos { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 10px; padding: 0; }
.mbx-wb-fotos li { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--mbx-wb-line); margin: 0; }
.mbx-wb-fotos li:first-child { outline: 2px solid var(--mbx-wb-accent); outline-offset: 1px; }
.mbx-wb-fotos img { width: 100%; height: 100%; object-fit: cover; }
.mbx-wb-foto-weg { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(20, 24, 36, .7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.mbx-wb-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 16px; border: 2px dashed #c9cfdc; border-radius: 12px; text-align: center; cursor: pointer; font-size: 14px; }
.mbx-wb-drop.is-over, .mbx-wb-drop:hover { border-color: var(--mbx-wb-accent); background: var(--mbx-wb-accent-soft); }
.mbx-wb-drop:focus-within { outline: 2px solid var(--mbx-wb-accent); }
.mbx-wb-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mbx-wb-optie { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.mbx-wb-varrij { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--mbx-wb-line); }
.mbx-wb-varrij.is-kop { font-size: 12.5px; color: var(--mbx-wb-muted); border-top: 0; }
.mbx-wb-varrij input { width: 100%; min-height: 36px; border-radius: 8px; border-color: #c9cfdc; }
.mbx-wb-meer summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.mbx-wb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mbx-wb-cats { max-height: 220px; overflow: auto; margin-bottom: 10px; }
.mbx-wb-cats .mbx-wb-inline { min-height: 32px; align-items: center; margin-bottom: 2px; }
.mbx-wb-danger { color: #a4262c !important; }
@media (max-width: 960px) { .mbx-wb-product { grid-template-columns: 1fr; } }
@media (max-width: 782px) {
	.mbx-wb-product-save { bottom: 64px; }
	.mbx-wb-optie, .mbx-wb-row2 { grid-template-columns: 1fr; gap: 0; }
	.mbx-wb-varrij { grid-template-columns: 1fr 1fr; }
	.mbx-wb-varrij strong { grid-column: 1 / -1; }
	.mbx-wb-varrij.is-kop { display: none; }
	.mbx-wb-varrij label span { display: block; font-size: 12.5px; color: var(--mbx-wb-muted); margin-bottom: 2px; }
	.mbx-wb-varrij input, .mbx-wb-product select, .mbx-wb-product input[type=number] { min-height: 44px; font-size: 16px; }
	.mbx-wb-product .mbx-wb-inline { min-height: 44px; align-items: center; }
	.mbx-wb-product input[type=checkbox] { width: 22px; height: 22px; }
	.mbx-wb-fotos li { width: 84px; height: 84px; }
	.mbx-wb-foto-weg { width: 32px; height: 32px; }
}

/* Lijsten: Bestellingen en Producten */
.mbx-wb-filters { margin-bottom: 12px; }
.mbx-wb-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #e7e9f0; font-size: 12px; color: var(--mbx-wb-muted); }
.mbx-wb-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.mbx-wb-search input[type=search] { flex: 1 1 260px; min-height: 38px; border-radius: 8px; border-color: #c9cfdc; font-size: 15px; padding: 0 12px; }
.mbx-wb-search select { min-height: 38px; border-radius: 8px; border-color: #c9cfdc; font-size: 14px; }
.mbx-wb-tabel { padding: 0; overflow: hidden; }
.mbx-wb-tabel .mbx-wb-empty { padding: 18px; }
.mbx-wb-rijen { list-style: none; margin: 0; padding: 0; }
.mbx-wb-rijen li { margin: 0; border-top: 1px solid var(--mbx-wb-line); }
.mbx-wb-rij { display: grid; grid-template-columns: 0.9fr 1.3fr 2fr 1fr 1fr; gap: 12px; align-items: center; padding: 12px 18px; color: var(--mbx-wb-text) !important; text-decoration: none; font-size: 14px; }
.mbx-wb-rij.is-product { grid-template-columns: 48px 3fr 1.6fr 1fr; }
a.mbx-wb-rij:hover { background: #f7f8fb; }
a.mbx-wb-rij:focus { outline: 2px solid var(--mbx-wb-accent); outline-offset: -2px; }
.mbx-wb-rij.is-kop { padding-top: 10px; padding-bottom: 10px; font-size: 12.5px; color: var(--mbx-wb-muted); background: #fafbfc; }
.mbx-wb-rij .is-rechts { text-align: right; }
.mbx-wb-rij img, .mbx-wb-noimg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #eef0f4; border: 1px solid var(--mbx-wb-line); display: block; }
.mbx-wb-voorraad { font-size: 13.5px; }
.mbx-wb-voorraad.is-op { color: #a4262c; font-weight: 600; }
.mbx-wb-voorraad.is-laag { color: #8a5a00; font-weight: 600; }
.mbx-wb-pill.is-nieuw { background: #dfe6ff; color: #1f3bb3; }
.mbx-wb-pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; border-top: 1px solid var(--mbx-wb-line); }

/* Bestellingsdetail */
.mbx-wb-order { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.mbx-wb-items { list-style: none; margin: 0; padding: 0; }
.mbx-wb-items li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--mbx-wb-line); margin: 0; }
.mbx-wb-items li:first-child { border-top: 0; }
.mbx-wb-items img, .mbx-wb-items .mbx-wb-noimg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.mbx-wb-totaal { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 12px 0 8px; padding-top: 12px; border-top: 1px solid var(--mbx-wb-line); font-size: 14px; }
.mbx-wb-totaal dt, .mbx-wb-totaal dd { margin: 0; }
.mbx-wb-totaal dd { text-align: right; }
.mbx-wb-totaal .is-totaal { font-weight: 700; font-size: 15px; }
.mbx-wb-order-side p { margin: 4px 0; font-size: 14px; }
.mbx-wb-order-side h3 { margin-top: 14px; }
.mbx-wb-head .mbx-wb-pill { font-size: 13px; padding: 4px 12px; }
.mbx-wb-order form { margin: 0; }

@media (max-width: 960px) { .mbx-wb-order { grid-template-columns: 1fr; } }
@media (max-width: 782px) {
	.mbx-wb-rij.is-kop { display: none; }
	.mbx-wb-rij { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; min-height: 64px; }
	.mbx-wb-rij > strong:first-child { grid-column: 1; }
	.mbx-wb-rij > span:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
	.mbx-wb-rij > span:nth-child(3) { grid-column: 1; }
	.mbx-wb-rij > span:nth-child(4) { grid-column: 1; }
	.mbx-wb-rij > span:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
	.mbx-wb-rij.is-product { grid-template-columns: 56px 1fr auto; gap: 2px 12px; }
	.mbx-wb-rij.is-product img, .mbx-wb-rij.is-product .mbx-wb-noimg { grid-row: 1 / span 2; width: 56px; height: 56px; }
	.mbx-wb-rij.is-product > span:nth-child(2) { grid-column: 2; grid-row: 1; text-align: left; }
	.mbx-wb-rij.is-product .mbx-wb-voorraad { grid-column: 2; grid-row: 2; }
	.mbx-wb-rij.is-product > span:last-child { grid-column: 3; grid-row: 1 / span 2; }
	.mbx-wb-search input[type=search], .mbx-wb-search select, .mbx-wb-search .mbx-wb-btn { min-height: 44px; font-size: 16px; }
	.mbx-wb-search select { flex: 1 1 100%; }
	.mbx-wb-filters a { padding: 12px 10px; }
	.mbx-wb-pager .mbx-wb-btn { min-height: 44px; }
	.mbx-wb-order-side a { display: inline-block; min-height: 32px; line-height: 32px; }
}
.mbx-wb-form select { display: block; width: 100%; max-width: 520px; margin-top: 4px; min-height: 38px; border-radius: 8px; border-color: #c9cfdc; font-size: 15px; }
@media (max-width: 782px) { .mbx-wb-form select { min-height: 44px; font-size: 16px; } }

/* Telefoon: één compacte regel voor proef en voortgang; wizardvelden groot genoeg */
.mbx-wb-mini { display: none; }
@media (max-width: 782px) {
	body.mbx-wb .mbx-proefbalk, body.mbx-wb .mbx-voortgang { display: none !important; }
	.mbx-wb-mini { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 0 -12px; padding: 4px 10px; background: #eef1fd; border-bottom: 1px solid var(--mbx-wb-line); font-size: 13.5px; }
	.mbx-wb-mini a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px; color: #1f3bb3; font-weight: 600; text-decoration: none; }
	body.mbx-wb .form-table input[type=text], body.mbx-wb .form-table input[type=email], body.mbx-wb .form-table input[type=tel], body.mbx-wb .form-table input[type=number],
	body.mbx-wb .form-table input:not([type]), body.mbx-wb .form-table select, body.mbx-wb .form-table textarea { min-height: 44px; font-size: 16px; width: 100%; max-width: 100%; box-sizing: border-box; }
	body.mbx-wb .form-table label { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
	body.mbx-wb .form-table input[type=radio], body.mbx-wb .form-table input[type=checkbox] { width: 22px; height: 22px; }
	body.mbx-wb .wrap .button, body.mbx-wb .wrap .button-primary { min-height: 44px; line-height: 42px; }
}
@media (max-width: 782px) {
	/* Wizard: stappen als één scrollbare rij, zodat het formulier meteen in beeld is */
	body.mbx-wb .mbx-wiz-stappen { display: flex; gap: 6px; overflow-x: auto; min-width: 0 !important; width: 100%; padding-bottom: 4px !important; scrollbar-width: thin; }
	body.mbx-wb .mbx-wiz-stappen li { flex: none; margin: 0 !important; }
	body.mbx-wb .mbx-wiz-stappen a { display: flex !important; align-items: center; min-height: 44px; white-space: nowrap; padding: 0 12px !important; box-sizing: border-box; }
}
@media (max-width: 782px) {
	/* WordPress zet op de telefoon de ruimte voor de beheerbalk op #wpbody; de compacte regel staat daarvóór. */
	.mbx-wb-mini { position: relative; top: 46px; z-index: 1; }
}
.mbx-wb-pill.is-test { background: #ede4fb; color: #5b2c9e; }
.mbx-wb-testuitleg { background: #f6f1fe; box-shadow: none; border: 1px solid #e0d2f7; }
@media (max-width: 782px) {
	/* Tekstlinks groot genoeg om op te tikken (44 px) */
	.mbx-wb-steps a, .mbx-wb-card-head a, .mbx-wb-stat a, .mbx-wb-quick a, .mbx-wb-tik, .mbx-wb-side .mbx-wb-small a,
	body.mbx-wb .mbx-wiz-paginas a { display: inline-flex; align-items: center; min-height: 44px; }
	body.mbx-wb .mbx-wiz-paginas li { margin-bottom: 4px; }
	/* Kleurkiezers */
	body.mbx-wb input[type=color] { width: 52px; height: 44px; min-height: 44px; padding: 2px; vertical-align: middle; }
}
@media (max-width: 782px) {
	.mbx-wb-mini a { min-height: 44px; }
	.mbx-wb-tabs a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
}
