/* Maison Renée – Borduur personalisatie */
.mrb-panel, .mrb-modal, .mrb-maattabel-knop { --mrb-accent: var(--wpex-accent, #6b3a26); --mrb-border: var(--wpex-main-border-color, #e6e2dc); --mrb-muted: var(--wpex-text-3, #7a7570); --mrb-bg: var(--wpex-surface-2, #faf8f5); }

/* Overlay op de galerijfoto */
.mrb-has-overlay { position: relative; }
.mrb-overlay { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 5; display: none; }

/* Paneel */
.mrb-panel { margin: 20px 0 8px; }
.mrb-panel__title { margin: 0 0 12px; font-family: inherit; font-size: .8em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mrb-muted); }

.mrb-positie { border: 1px solid var(--mrb-border); border-radius: 10px; background: #fff; margin: 0 0 10px; overflow: hidden; }
.mrb-positie__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--mrb-bg); border-bottom: 1px solid var(--mrb-border); }
.mrb-positie__label { font-weight: 600; flex: 1; }
.mrb-positie__prijs { font-size: .85em; color: var(--mrb-muted); white-space: nowrap; }
.mrb-positie__body { padding: 12px 14px 14px; }
.mrb-positie.is-uit .mrb-positie__body { display: none; }
.mrb-positie__vast { margin: 0; color: #444; }

/* Velden */
.mrb-field { position: relative; }
.mrb-input { width: 100%; box-sizing: border-box; padding: 10px 56px 10px 12px; border: 1px solid #d6d2cc; border-radius: 8px; font: inherit; background: #fff; }
.mrb-input:focus { outline: none; border-color: var(--mrb-accent); box-shadow: 0 0 0 3px rgba(107,58,38,.12); }
.mrb-input--namen { padding-right: 12px; resize: vertical; min-height: 72px; }
.mrb-field__count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .8em; color: var(--mrb-muted); }
.mrb-field__hint { display: block; margin-top: 6px; font-size: .8em; color: var(--mrb-muted); }

.mrb-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.mrb-row__label { font-size: .85em; color: var(--mrb-muted); min-width: 72px; }
.mrb-row__label strong { color: #222; font-weight: 600; }

/* Aan/uit */
.mrb-switch { display: inline-flex; align-items: center; cursor: pointer; margin: 0; }
.mrb-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.mrb-switch__track { width: 38px; height: 22px; border-radius: 22px; background: #cfcac3; position: relative; transition: background .2s; }
.mrb-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .2s; }
.mrb-switch input:checked + .mrb-switch__track { background: var(--mrb-accent); }
.mrb-switch input:checked + .mrb-switch__track::after { left: 18px; }

/* Lettertypes */
.mrb-fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.mrb-font { position: relative; width: 48px; height: 44px; border: 1px solid #d6d2cc; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; line-height: 1; background: #fff; margin: 0; transition: border-color .15s, box-shadow .15s; }
.mrb-font:hover { border-color: #999; }
.mrb-font input { position: absolute; opacity: 0; width: 0; height: 0; }
.mrb-font:has(input:checked) { border-color: var(--mrb-accent); box-shadow: 0 0 0 2px var(--mrb-accent) inset; }

/* Garen */
.mrb-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.mrb-swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 2px; margin: 0; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.mrb-swatch:hover { transform: scale(1.08); }
.mrb-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.mrb-swatch img, .mrb-swatch__dot { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.mrb-swatch:has(input:checked) { border-color: var(--mrb-accent); }
.mrb-kleur-vast { margin: 10px 0 0; font-size: .9em; display: flex; align-items: center; gap: 8px; color: var(--mrb-muted); }
.mrb-kleur-vast .mrb-swatch__dot { width: 18px; height: 18px; display: inline-block; }

/* Spelling */
.mrb-spelling { display: flex; gap: 10px; align-items: flex-start; font-size: .88em; margin: 14px 0 0; padding: 12px 14px; background: #fff7e8; border: 1px solid #f0dcb4; border-radius: 10px; line-height: 1.4; }
.mrb-spelling input { margin-top: 3px; flex-shrink: 0; }

.mrb-levertijd { font-size: .85em; color: var(--mrb-muted); margin: 10px 0 0; }
.single_add_to_cart_button.is-busy { opacity: .6; pointer-events: none; }

/* Maattabel */
.mrb-maattabel-knop { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; margin: 0 0 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .9em; color: inherit; }
.mrb-modal { display: none; position: fixed; inset: 0; z-index: 99999; }
.mrb-modal.is-open { display: block; }
.mrb-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.mrb-modal__box { position: relative; background: #fff; max-width: 760px; width: calc(100% - 32px); max-height: 85vh; overflow: auto; margin: 7vh auto 0; padding: 32px; border-radius: 12px; }
.mrb-modal__close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; }
.mrb-modal__content table { width: 100%; border-collapse: collapse; }
.mrb-modal__content th, .mrb-modal__content td { border: 1px solid #ddd; padding: 6px 10px; text-align: center; }

.mrb-cart-preview { max-width: 100%; height: auto; }
