/* PRODUCTCONFIGURATOR-2026 begin
 * De Oprit: compacte productpagina (alle breedtes). Wordt alleen op productpaginas geladen.
 * Alles staat onder body.dpc (die klasse zet config.js pas als het script draait); zonder JavaScript blijft de
 * oorspronkelijke pagina onveranderd. Tokens als in het INTERFACE-2026-blok: De Oprit-rood, zwart, warm wit, Exo en Roboto.
 * Terugdraaien: mu-plugin deoprit-productconfigurator.php weghalen. */

:root{--dpc-rood:#B20000;--dpc-rood-d:#8C0000;--dpc-zwart:#111;--dpc-grijs:#5C5C5C;--dpc-lijn:#E4E4E4;--dpc-warm:#FBF4EA;--dpc-warm-lijn:#EBD9C0;
  --dpc-kop:'Exo','Exo 2',Arial,sans-serif;--dpc-tekst:'Roboto','Libre Franklin',Arial,sans-serif}

/* terug naar de menukaart: op alle breedtes zichtbaar */
html body.single-product p.dmk-terug{display:block;margin:0 0 6px;font:500 15px var(--dpc-tekst)}
html body.single-product p.dmk-terug a{color:var(--dpc-grijs)!important;text-decoration:none}
html body.single-product p.dmk-terug a:hover,html body.single-product p.dmk-terug a:focus-visible{color:var(--dpc-rood)!important;text-decoration:underline}

html body.dpc .single-product .site-content .wrap,html body.dpc.single-product .site-content .wrap{padding-top:18px}
@media(min-width:600px){html body.dpc.single-product .site-content .wrap{padding-top:26px}}

/* ----- kop van het product: naam, omschrijving, prijs ----- */
html body.dpc.single-product .product_title{margin:0 0 4px;font-size:30px;line-height:1.2}
@media(max-width:600px){html body.dpc.single-product .product_title{font-size:26px}}
html body.dpc.single-product form.cart{margin:10px 0 0!important}
html body.dpc .single_variation{margin:0}
html body.dpc .woocommerce-variation-description,html body.dpc .woocommerce-variation-description p,html body.dpc .woocommerce-product-details__short-description,html body.dpc .woocommerce-product-details__short-description p{margin:0 0 6px;font-size:16px;line-height:1.5}
html body.dpc .woocommerce-variation-price{padding:0!important;margin:2px 0 0}
html body.dpc .woocommerce-variation-price .price,html body.dpc.single-product p.price{font:700 24px/1.2 var(--dpc-kop)!important;margin:2px 0 0!important}
html body.dpc .woocommerce-variation-availability,html body.dpc .woocommerce-variation-availability p.stock{margin:0}
html body.dpc.single-product p.stock{margin:0 0 4px}
html body.dpc .product_meta{display:none}

/* volgorde bij een variabel product: omschrijving en prijs, dan de baguettekeuze, dan de PPOM-groepen (alleen met css, geen verplaatste elementen) */
html body.dpc form.variations_form{display:flex!important;flex-direction:column}
html body.dpc form.variations_form>.single_variation_wrap{display:contents!important}
html body.dpc form.variations_form .single_variation{order:1}
html body.dpc form.variations_form>table.variations,html body.dpc form.variations_form>.reset_variations_alert{order:2}
html body.dpc form.variations_form .woocommerce-variation-add-to-cart{order:3;display:block}

/* baguette (variatiekeuze): label links boven de keuzelijst, compact */
html body.dpc table.variations{margin:14px 0 0!important}
html body.dpc table.variations label{margin:0 0 6px;font:700 16px var(--dpc-kop)}
html body.dpc table.variations select,html body.dpc .single-product select,html body.dpc select.dpc-select{height:50px;font:500 16px var(--dpc-tekst)}
html body.dpc a.reset_variations{display:none!important}

/* ----- groepen ----- */
html body.dpc .ppom-wrapper{margin:12px 0 0}
html body.dpc .ppom-wrapper .ppom-field-wrapper{padding:0!important;border-top:1px solid var(--dpc-lijn)}
html body.dpc .ppom-wrapper .ppom-field-wrapper:first-child{border-top:0}
html body.dpc .ppom-wrapper .form-group{margin:0!important;padding:0}
html body.dpc .ppom-wrapper .ppom-field-wrapper.dpc-plain,html body.dpc .ppom-wrapper .ppom-field-wrapper.dpc-chips,html body.dpc .ppom-wrapper .ppom-field-wrapper.dpc-selectmode{padding:14px 0 12px!important}
/* titel van een gewone groep: kleiner, geen dikke lijn erboven */
html body.dpc .ppom-wrapper .form-control-label,html body.dpc .ppom-wrapper .form-group label.form-control-label,html body.dpc .ppom-input-zonder .form-control-label,html body.dpc .ppom-input-extra_ingredi_nten .form-control-label,html body.dpc .ppom-input-extra_saus .form-control-label,html body.dpc .ppom-input-saus .form-control-label,html body.dpc .ppom-input-potje_saus .form-control-label{margin:0 0 8px!important;padding:0!important;border:0!important;font:700 17px/1.3 var(--dpc-kop)!important;color:var(--dpc-zwart)!important}
html body.dpc .ppom-wrapper .show_required::after{margin-left:8px;font-size:10.5px;line-height:1.6}
html body.dpc .ppom-wrapper .ppom-input-desc,html body.dpc .ppom-wrapper .show_description{margin:0 0 8px;font-size:14px!important}

/* keuzelijst voor lange verplichte keuzes (saus): de echte radioknoppen blijven in het formulier, maar uit beeld */
html body.dpc .dpc-selectmode .form-check,html body.dpc .dpc-selectmode .form-check-inline{display:none!important}
html body.dpc .dpc-selectwrap{margin:0}
html body.dpc select.dpc-select{display:block;width:100%!important;max-width:none!important;padding:0 44px 0 14px;border:2px solid var(--dpc-zwart)!important;border-radius:0!important;background-color:#fff!important;color:var(--dpc-zwart)!important;box-shadow:none}
html body.dpc select.dpc-select:focus{border-color:var(--dpc-rood)!important;outline:3px solid rgba(178,0,0,.25);outline-offset:0}

/* korte keuzes (radio, 5 of minder): compacte keuzeknoppen naast elkaar */
html body.dpc .dpc-chips .form-group{display:flex;flex-wrap:wrap;gap:8px}
html body.dpc .dpc-chips .form-group>*:not(.form-check):not(.form-check-inline){flex:0 0 100%}
html body.dpc .dpc-chips .form-check,html body.dpc .dpc-chips .form-check-inline{display:block!important;width:auto!important;flex:0 0 auto;border:0!important}
html body.dpc .dpc-chips .form-check-label{position:relative;display:inline-flex!important;align-items:center;width:auto;min-height:44px;padding:0 16px!important;border:1.5px solid #BDBDBD;background:#fff;font:500 16px var(--dpc-tekst);cursor:pointer}
html body.dpc .dpc-chips .form-check-label:has(input:checked){border-color:var(--dpc-rood);background:#FFF5F5;font-weight:700}
html body.dpc .dpc-chips .form-check-label:has(input:focus-visible){outline:3px solid var(--dpc-rood);outline-offset:2px}
html body.dpc .dpc-chips input[type=radio]{position:absolute;opacity:0;width:1px!important;height:1px!important;pointer-events:none}
html body.dpc .dpc-chips .ppom-input-option-label{flex:none;gap:10px}

/* checkboxlijsten: lage rijen, op breed scherm twee kolommen */
html body.dpc .ppom-wrapper .form-check,html body.dpc .ppom-wrapper .form-check-inline{border-bottom:1px solid var(--dpc-lijn)}
html body.dpc .ppom-wrapper .form-check-label{min-height:46px;padding:6px 0;gap:12px;font-size:16px}
html body.dpc .ppom-wrapper .ppom-input-option-label{font-size:16px}
html body.dpc .ppom-wrapper .ppom-option-label-price{font-size:14px}
html body.dpc .ppom-wrapper input[type=checkbox],html body.dpc .ppom-wrapper input[type=radio]{width:24px!important;height:24px!important}
html body.dpc .dpc-plain:not(.dpc-chips) .form-group,html body.dpc .dpc-acc .form-group{display:grid;grid-template-columns:minmax(0,1fr)}
@media(min-width:640px){
  html body.dpc .dpc-plain:not(.dpc-chips) .form-group,html body.dpc .dpc-acc .form-group{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px}
  html body.dpc .dpc-plain:not(.dpc-chips) .form-group>*:not(.form-check):not(.form-check-inline),html body.dpc .dpc-acc .form-group>*:not(.form-check):not(.form-check-inline){grid-column:1/-1}
  html body.dpc .dpc-acc.dpc-text .form-group{display:block}
}
/* tekstvelden */
html body.dpc .ppom-wrapper input[type=text],html body.dpc .ppom-field-wrapper input[type=text]{height:48px;margin-top:0;max-width:none!important;font-size:16px}
html body.dpc .ppom-wrapper textarea,html body.dpc .ppom-field-wrapper textarea{min-height:72px;margin-top:0;font-size:16px}
html body.dpc .dpc-acc .form-group{padding:0 0 12px}

/* ----- uitklapbare sectie ----- */
html body.dpc .dpc-acc .form-control-label{display:none!important}
html body.dpc .dpc-acc.dpc-dicht>.dpc-body{display:none!important}
html body.dpc button.dpc-kop{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t chev" "s chev";align-items:center;column-gap:12px;width:100%;min-height:54px;margin:0;padding:9px 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--dpc-zwart)!important;font:inherit;letter-spacing:0!important;text-align:left;text-transform:none!important;cursor:pointer;text-shadow:none}
html body.dpc button.dpc-kop:hover{background:var(--dpc-warm)!important}
html body.dpc button.dpc-kop:focus-visible{outline:3px solid var(--dpc-rood);outline-offset:-3px}
html body.dpc .dpc-t{grid-area:t;font:700 17px/1.3 var(--dpc-kop)}
html body.dpc .dpc-opt{margin-left:10px;font:400 13px var(--dpc-tekst);color:var(--dpc-grijs)}
html body.dpc .dpc-s{grid-area:s;display:flex;align-items:baseline;gap:8px;min-width:0;font:400 14px/1.4 var(--dpc-tekst);color:var(--dpc-grijs)}
html body.dpc .dpc-s:empty{display:none}
html body.dpc .dpc-n{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--dpc-rood);color:#fff;font:700 12px/1 var(--dpc-kop)}
html body.dpc .dpc-lijst{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dpc-zwart);font-weight:500}
html body.dpc .dpc-meer{flex:none;margin-left:auto;font:700 14px var(--dpc-kop);color:var(--dpc-zwart);white-space:nowrap}
html body.dpc .dpc-meer.is-korting{color:var(--dpc-rood)}
html body.dpc .dpc-vanaf{color:var(--dpc-grijs)}
html body.dpc .dpc-chev{grid-area:chev;width:11px;height:11px;margin:0 4px 0 0;border-right:2.5px solid var(--dpc-zwart);border-bottom:2.5px solid var(--dpc-zwart);transform:rotate(45deg) translate(-2px,-2px);transition:transform .15s}
html body.dpc .dpc-acc:not(.dpc-dicht)>.dpc-kop .dpc-chev{transform:rotate(-135deg) translate(-2px,-2px)}
html body.dpc .dpc-acc:not(.dpc-dicht)>.dpc-kop .dpc-s{display:none}
@media(prefers-reduced-motion:reduce){html body.dpc .dpc-chev{transition:none}}

/* ----- fouten ----- */
html body.dpc .ppom-wrapper .ppom-field-wrapper.dpc-fout{background:#FFF5F5;box-shadow:inset 3px 0 0 var(--dpc-rood);padding-left:14px!important;padding-right:10px!important}
html body.dpc .dpc-fout .dpc-kop{color:var(--dpc-rood)!important}
html body.dpc .dpc-fout select.dpc-select,html body.dpc .dpc-fout input[type=text],html body.dpc .dpc-fout textarea{border-color:var(--dpc-rood)!important}
html body.dpc p.dpc-fouttekst{grid-column:1/-1;margin:0 0 8px;font:700 15px/1.4 var(--dpc-tekst);color:var(--dpc-rood)}

/* ----- PPOM-prijstabel: PPOM rekent nog steeds, de uitkomst staat in de totaalbalk ----- */
html body.dpc #ppom-price-container{display:none!important}
html body.dpc #ppom-error-container:empty{display:none}

/* ----- onderaan: aantal en totaalbalk ----- */
html body.dpc.single-product .quantity{margin:14px 0 0!important;gap:12px;align-items:center}
html body.dpc.single-product .quantity:has(input.qty:not([type=hidden]))::before{font:700 16px var(--dpc-kop)}
html body.dpc.single-product .quantity .qty,html body.dpc.single-product form.cart input.qty{width:56px!important;height:44px;border-left:0!important;border-right:0!important;font-size:17px;-moz-appearance:textfield;appearance:textfield}
html body.dpc.single-product .quantity input.qty::-webkit-outer-spin-button,html body.dpc.single-product .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
html body.dpc.single-product .quantity .qty,html body.dpc.single-product form.cart input.qty{border-top:2px solid var(--dpc-zwart)!important;border-bottom:2px solid var(--dpc-zwart)!important}
html body.dpc button.dpc-stap{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-height:0;margin:0;padding:0!important;border:2px solid var(--dpc-zwart)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;color:var(--dpc-zwart)!important;font:600 22px/1 var(--dpc-kop)!important;letter-spacing:0!important;cursor:pointer}
html body.dpc button.dpc-stap:hover{background:var(--dpc-zwart)!important;color:#fff!important}
html body.dpc button.dpc-stap:focus-visible{outline:3px solid var(--dpc-rood);outline-offset:2px}
html body.dpc .quantity:has(input.qty:not([type=hidden])){order:0}

html body.dpc .dpc-bestel{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:14px 0 0;padding:14px 0 0;border-top:2px solid var(--dpc-zwart);background:#fff}
html body.dpc .dpc-totaal{flex:none;display:flex;flex-direction:column;line-height:1.15}
html body.dpc .dpc-totaal-l{font:500 13px var(--dpc-tekst);color:var(--dpc-grijs)}
html body.dpc .dpc-totaal-bedrag{font:700 26px/1.15 var(--dpc-kop);color:var(--dpc-zwart)}
html body.dpc p.dpc-barfout{flex:0 0 100%;margin:0;font:700 14.5px/1.35 var(--dpc-tekst);color:var(--dpc-rood)}
html body.dpc.single-product .dpc-bestel .single_add_to_cart_button{flex:1 1 220px;width:auto!important;min-width:0;min-height:54px;margin:0;position:static!important;box-shadow:none!important;font-size:17px!important}

/* telefoon: de balk blijft onderaan het scherm staan (de bestaande knop zelf, dus geen dubbele knop) */
@media(max-width:899px){
  html:has(body.dpc.single-product){scroll-padding-bottom:110px}
  html body.dpc .dpc-bestel{position:sticky;bottom:0;z-index:30;margin:12px -16px 0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--dpc-lijn);box-shadow:0 -1px 0 rgba(17,17,17,.06);flex-wrap:nowrap}
  html body.dpc .dpc-bestel:has(.dpc-barfout:not([hidden])){flex-wrap:wrap}
  html body.dpc .dpc-totaal-bedrag{font-size:22px}
  html body.dpc.single-product .dpc-bestel .single_add_to_cart_button{flex:1 1 0;min-height:50px;padding:0 10px!important;font-size:16px!important}
}
@media(max-width:360px){html body.dpc.single-product .dpc-bestel .single_add_to_cart_button{font-size:14.5px!important}}

/* de bestaande soepenkeuze (dos) en andere velden buiten PPOM blijven zoals ze zijn, alleen minder ruimte */
html body.dpc .dos{margin:14px 0 0}



/* ===== Ronde 2 (16 nov 2026): twee kolommen op desktop =====
 * config.js maakt in het bestaande formulier (binnen .ppom-wrapper) twee houders: .dpc-links (keuzegroepen) en
 * .dpc-rechts (tekstvelden, aantal, totaal, knop). De kolommen komen hier uit css-grid op het formulier zelf.
 * Telefoon (onder 900 px): de houders zijn onzichtbaar (display:contents), alles staat onder elkaar met de balk onderaan. */
html body.dpc .dpc-links,html body.dpc .dpc-rechts{display:contents}
html body.dpc .dpc-rechts-t{display:none}
html body.dpc .ppom-wrapper .form-row:not(:has(*)){display:none}

@media(min-width:900px){
  /* inhoudsbreedte: niet smal (720) en niet eindeloos, evenwichtig op 1440 en 1920 */
  html body.dpc.single-product .content-area,html body.dpc.single-product #primary{float:none!important;width:100%!important;max-width:1052px!important;margin:0 auto!important}
  html body.dpc.single-product .summary,html body.dpc.single-product .entry-summary,html body.dpc.single-product p.dmk-terug{float:none!important;width:100%!important;max-width:none!important}
  html body.dpc.single-product .site-main{max-width:none}

  html body.dpc form.dpc-2k{display:grid!important;grid-template-columns:minmax(0,1fr) 360px;grid-template-rows:auto auto 1fr;column-gap:48px;align-items:start;margin:6px 0 40px!important}
  html body.dpc form.dpc-2k .woocommerce-variation-add-to-cart,html body.dpc form.dpc-2k .ppom-wrapper,html body.dpc form.dpc-2k .single_variation_wrap{display:contents!important}
  html body.dpc form.dpc-2k .single_variation{grid-column:1/-1;grid-row:1;margin:0 0 4px}
  html body.dpc form.dpc-2k .woocommerce-variation-description,html body.dpc.single-product .woocommerce-product-details__short-description{max-width:680px}
  html body.dpc form.dpc-2k>table.variations{grid-column:1;grid-row:2;order:0;margin:14px 0 0!important;width:100%}
  html body.dpc form.dpc-2k .dpc-links{display:block;grid-column:1;grid-row:3;min-width:0}
  html body.dpc form.dpc-2k .dpc-links.dpc-leeg{display:none}
  html body.dpc form.dpc-2k>*:not(.dpc-rechts):not(.single_variation):not(table.variations){grid-column:1}
  html body.dpc form.dpc-2k .ppom-wrapper>div:empty{display:none}

  /* besteloverzicht rechts: eigen achtergrond, blijft in beeld bij lange keuzelijsten (binnen zijn eigen vak, dus nooit over de voettekst) */
  html body.dpc form.dpc-2k .dpc-rechts{display:block;grid-column:2;grid-row:2/span 2;position:sticky;top:104px;min-width:0;padding:20px 22px 22px;background:#F6F2EB;border:1px solid #E3DACB;border-top:3px solid var(--dpc-rood)}
  html body.dpc .dpc-rechts-t{display:block;margin:0 0 6px;padding:0;font:700 19px/1.3 var(--dpc-kop)!important;color:var(--dpc-zwart)!important;text-transform:none;letter-spacing:0}
  html body.dpc form.dpc-2k .dpc-rechts .ppom-field-wrapper{border-top:1px solid #E3DACB}
  html body.dpc form.dpc-2k .dpc-rechts .ppom-field-wrapper:first-of-type{border-top:0}
  html body.dpc form.dpc-2k .dpc-rechts .ppom-field-wrapper.dpc-plain{padding:12px 0 10px!important}
  html body.dpc form.dpc-2k .dpc-rechts input[type=text],html body.dpc form.dpc-2k .dpc-rechts textarea{height:44px;background:#fff;border:1.5px solid #8C8C8C;border-radius:0;box-shadow:none}
  html body.dpc form.dpc-2k .dpc-rechts textarea{height:auto;min-height:84px}
  html body.dpc form.dpc-2k .dpc-rechts button.dpc-kop:hover{background:rgba(255,255,255,.6)!important}
  html body.dpc form.dpc-2k .dpc-rechts .dpc-acc .form-group{padding:0 0 12px;display:block}
  html body.dpc form.dpc-2k .dpc-rechts .dpc-n{display:none}
  html body.dpc form.dpc-2k .dpc-rechts .quantity{margin:12px 0 0!important;padding-top:12px;border-top:1px solid #E3DACB}
  html body.dpc form.dpc-2k .dpc-rechts .quantity .qty{background:#fff}
  html body.dpc form.dpc-2k .dpc-rechts .dpc-bestel{position:static;margin:14px 0 0;padding:14px 0 0;background:none;border-top:2px solid var(--dpc-zwart);gap:10px 0}
  html body.dpc form.dpc-2k .dpc-rechts .dpc-totaal{flex:0 0 100%;flex-direction:row;justify-content:space-between;align-items:baseline}
  html body.dpc form.dpc-2k .dpc-rechts .dpc-totaal-l{font:500 15px var(--dpc-tekst);color:var(--dpc-grijs)}
  html body.dpc form.dpc-2k .dpc-rechts .dpc-totaal-bedrag{font-size:28px}
  html body.dpc.single-product form.dpc-2k .dpc-rechts .dpc-bestel .single_add_to_cart_button{flex:1 1 100%;width:100%!important;min-height:50px;font-size:16px!important}
}
/* tussen 900 en 1100 px: iets smaller rechts */
@media(min-width:900px) and (max-width:1099px){
  html body.dpc form.dpc-2k{grid-template-columns:minmax(0,1fr) 320px;column-gap:32px}
}

/* PRODUCTCONFIGURATOR-2026 einde */
