:root {
  --mf-bg: #f6f3ec;
  --mf-card: #faf8f3;
  --mf-card-2: #eee9de;
  --mf-line: #ded7c8;
  --mf-ink: #1b3a2b;
  --mf-text: #4f5b55;
  --mf-accent: #e18c70;
  --mf-accent-soft: #f3ddd4;
  --mf-white: #fff;
}

body.postid-1953 #main {
  background: var(--mf-bg);
}

body.postid-1953 .product-main > .row.content-row,
body.postid-1953 .product-footer,
body.postid-1953 .woocommerce-notices-wrapper,
body.postid-1953 #product-sidebar {
  position: absolute !important;
  left: -100000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.postid-1953 .product-main {
  padding: 18px 0 60px;
}

.mf-configurator-shell {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  color: var(--mf-text);
}

.mf-progress-wrap {
  margin: 0 0 18px;
}

.mf-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #657069;
  margin-bottom: 8px;
}

.mf-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #ded9ce;
  overflow: hidden;
}

.mf-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--mf-accent);
  transition: width .25s ease;
}

.mf-step-tabs-shell {
  position: relative;
  display: block;
  margin: 0 0 12px;
  overflow: hidden;
}

.mf-step-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  padding: 0 56px 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* A subtle fade keeps the final visible tab partially obscured, signalling that
   the navigation continues horizontally without adding arrow controls. */
.mf-step-tabs-shell::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246,243,236,0), var(--mf-bg) 88%);
}

.mf-step-tabs::-webkit-scrollbar {
  display: none;
}

.mf-step-tab {
  appearance: none;
  border: 0;
  background: #e9e5dc;
  color: #44514b;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
}

.mf-step-tab .mf-step-no {
  font-family: Georgia, serif;
  margin-right: 8px;
}

.mf-step-tab.is-active {
  background: var(--mf-ink);
  color: #fff;
}

.mf-step-tab.is-complete {
  color: var(--mf-accent);
}

.mf-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(390px, .9fr);
  gap: 34px;
  align-items: start;
}

.mf-visual-card,
.mf-panel {
  border: 1px solid var(--mf-line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--mf-card);
}

.mf-visual-image-wrap {
  position: relative;
  min-height: 620px;
  background: #e6e8e2;
  overflow: hidden;
}

.mf-visual-image {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
  transition: opacity .2s ease, transform .35s ease;
}

.mf-visual-card.is-changing .mf-visual-image {
  opacity: .55;
  transform: scale(1.01);
}

.mf-visual-badge {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: #fff;
  font: 400 34px/1.1 Georgia, serif;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.mf-visual-footer {
  background: #ece7dc;
  padding: 26px 28px 28px;
}

.mf-selected-heading {
  margin: 0 0 10px;
  color: var(--mf-ink);
  font: 400 17px/1.2 Georgia, serif;
}

.mf-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.mf-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(38,65,52,.10);
  border-radius: 999px;
  font-size: 13px;
}

.mf-selected-empty {
  color: #66716c;
  font-size: 15px;
}

.mf-panel {
  padding: 38px 38px 30px;
  min-height: 686px;
  display: flex;
  flex-direction: column;
}

.mf-kicker {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 13px;
  color: #5d6863;
  margin-bottom: 10px;
}

.mf-title {
  margin: 0;
  color: var(--mf-ink);
  font: 400 31px/1.1 Georgia, serif;
}

.mf-subtitle {
  margin: 9px 0 28px;
  font-size: 16px;
  color: #5b6661;
}

.mf-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mf-choice {
  position: relative;
  width: 100%;
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  background: var(--mf-card);
  color: inherit;
  text-align: left;
  padding: 24px 26px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mf-choice:hover {
  border-color: #a9b1aa;
  transform: translateY(-1px);
}

.mf-choice.is-selected {
  border: 2px solid var(--mf-accent);
  padding: 23px 25px;
  box-shadow: 0 0 0 3px rgba(225,140,112,.06);
}

.mf-choice-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid #d9d3c8;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  background: transparent;
}

.mf-choice.is-selected .mf-check {
  border-color: var(--mf-accent);
  background: var(--mf-accent);
}

.mf-check::after {
  content: '✓';
  opacity: 0;
}

.mf-choice.is-selected .mf-check::after {
  opacity: 1;
}

.mf-choice-copy {
  min-width: 0;
  flex: 1;
}

.mf-choice-title {
  color: var(--mf-ink);
  font: 400 22px/1.15 Georgia, serif;
}

.mf-choice-sub {
  margin-top: 7px;
  color: #5d6863;
  font-size: 15px;
}

.mf-choice-price {
  flex: 0 0 auto;
  color: var(--mf-accent);
  font-size: 14px;
  margin-left: 12px;
}

.mf-error {
  display: none;
  margin: 12px 0 0;
  color: #a74635;
  font-size: 13px;
}

.mf-error.is-visible {
  display: block;
}

.mf-panel-bottom {
  margin-top: auto;
  padding-top: 32px;
}

.mf-price-block {
  border-top: 1px solid var(--mf-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.mf-price-label {
  font-size: 13px;
  color: #657069;
  margin-bottom: 6px;
}

.mf-price {
  color: var(--mf-ink);
  font: 400 38px/1 Georgia, serif;
}

.mf-price-type {
  font-size: 13px;
  color: #5f6964;
  padding-bottom: 4px;
}

.mf-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.mf-btn {
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  padding: 14px 25px;
  min-width: 130px;
  background: transparent;
  color: #606a65;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: .18s ease;
}

.mf-btn:hover {
  transform: translateY(-1px);
}

.mf-btn-primary {
  margin-left: auto;
  background: var(--mf-ink);
  color: #fff;
  border-color: var(--mf-ink);
}

.mf-btn[disabled] {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
}

.mf-summary {
  display: grid;
  gap: 10px;
}

.mf-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mf-line);
}

.mf-summary-label {
  color: #67716c;
  font-size: 13px;
}

.mf-summary-value {
  color: var(--mf-ink);
  text-align: right;
  font-size: 15px;
}

@media (max-width: 980px) {
  .mf-configurator-shell {
    width: min(100% - 28px, 760px);
  }
  .mf-config-grid {
    grid-template-columns: 1fr;
  }
  .mf-visual-image-wrap,
  .mf-visual-image {
    min-height: 420px;
    height: 420px;
  }
  .mf-panel {
    min-height: 0;
  }
}

@media (max-width: 549px) {
  .mf-configurator-shell {
    width: min(100% - 20px, 560px);
  }
  .mf-step-tabs {
    padding-right: 44px;
    gap: 8px;
  }
  .mf-step-tabs-shell::after {
    width: 46px;
  }
  .mf-visual-image-wrap,
  .mf-visual-image {
    min-height: 300px;
    height: 300px;
  }
  .mf-visual-badge {
    left: 20px;
    bottom: 18px;
    font-size: 26px;
  }
  .mf-panel {
    padding: 27px 22px 24px;
    border-radius: 22px;
  }
  .mf-choice {
    padding: 20px;
  }
  .mf-choice.is-selected {
    padding: 19px;
  }
  .mf-choice-title {
    font-size: 20px;
  }
  .mf-price {
    font-size: 32px;
  }
}

/* Grouped Afwerking step */
.mf-substeps-wrap:empty {
  display: none;
}

.mf-substeps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
}

.mf-substep {
  appearance: none;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  background: transparent;
  color: var(--mf-text);
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: .18s ease;
}

.mf-substep:hover {
  border-color: #a9b1aa;
}

.mf-substep.is-active {
  background: var(--mf-ink);
  border-color: var(--mf-ink);
  color: #fff;
}

.mf-substep.is-complete:not(.is-active) {
  color: var(--mf-accent);
}

.mf-substep-no {
  opacity: .72;
  margin-right: 5px;
}

.mf-subsection-head {
  margin: 0 0 14px;
}

.mf-subsection-title {
  color: var(--mf-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.mf-subsection-desc {
  margin-top: 4px;
  color: #5b6661;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 549px) {
  .mf-substeps {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .mf-substep {
    flex: 0 0 auto;
  }
}

/* v0.1.7 — Afwerking als één doorlopende configuratiestap */
@media (min-width: 981px) {
  body.postid-1953 .mf-visual-card {
    position: sticky;
    top: 118px;
    align-self: start;
  }
}

body.postid-1953 .mf-options.mf-options-grouped {
  display: block;
}

body.postid-1953 .mf-group-section {
  padding: 0 0 30px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--mf-line);
}

body.postid-1953 .mf-group-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

body.postid-1953 .mf-group-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
  margin-bottom: 14px;
}

body.postid-1953 .mf-group-section-eyebrow {
  color: var(--mf-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

body.postid-1953 .mf-group-section-title {
  color: var(--mf-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

body.postid-1953 .mf-group-section-desc {
  grid-column: 2;
  margin-top: 4px;
  color: #5b6661;
  font-size: 14px;
  line-height: 1.45;
}

body.postid-1953 .mf-group-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.postid-1953 .mf-options-grouped .mf-choice {
  padding-top: 18px;
  padding-bottom: 18px;
}

body.postid-1953 .mf-options-grouped .mf-choice.is-selected {
  padding-top: 17px;
  padding-bottom: 17px;
}

@media (max-width: 980px) {
  body.postid-1953 .mf-visual-card {
    position: static;
  }
}

/* Offerteonderdelen: de getoonde richtprijs bevat alleen bekende prijzen. */
.mf-quote-note {
  margin-top: 10px;
  color: #657069;
  font-size: 12px;
  line-height: 1.5;
}
