
/* Bestellen: nabouw van de handgebouwde bestelwidget op mrgift.nl/bestellen (mg- tokens) */
.xp-bestellen{
  --xb-orange:var(--o);--xb-fill:var(--ol);--xb-fill-h:var(--olh);--xb-orange-dark:var(--oh);--xb-orange-text:var(--oh);--xb-orange-soft:var(--soft);
  --xb-cream:var(--bg);--xb-white:#FFFFFF;--xb-black:#111827;--xb-grey:#5b6472;--xb-line:#dcdcdc;
  --xb-green:var(--ok);--xb-red:#D64545;--xb-radius:var(--r);--xb-top:24px;
  --xb-font:Gilroy,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--xb-black);font-family:var(--xb-font);
  -webkit-text-stroke:0;font-weight:400;overflow-x:clip;
}
.xp-bestellen,.xp-bestellen *,.xp-bestellen *::before,.xp-bestellen *::after{box-sizing:border-box}
.xp-bestellen button,.xp-bestellen input,.xp-bestellen textarea{-webkit-text-stroke:0;font-family:var(--xb-font)}
.xp-bestellen strong{font-weight:700;-webkit-text-stroke:0}
.xp-bestellen [hidden]{display:none!important}
.xp-bestellen .xb-wrap{max-width:1200px;margin:0 auto;padding:0 24px}

/* ===== Widget layout ===== */
.xp-bestellen .xb-order{padding:0 0 clamp(56px,7vw,90px);font-size:17px;line-height:1.55}
.xp-bestellen .xb-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:28px;align-items:start;margin:0}
.xp-bestellen .xb-panel{background:var(--xb-white);border:1px solid var(--line);border-radius:var(--xb-radius);padding:38px;box-shadow:0 4px 25px rgba(0,0,0,.04)}
.xp-bestellen .xb-main{position:relative}
.xp-bestellen .xb-step{margin-bottom:38px}
.xp-bestellen .xb-step:last-child{margin-bottom:0}
.xp-bestellen .xb-step-head{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.xp-bestellen .xb-step-head.mb{margin-bottom:20px}
.xp-bestellen .xb-step-num{
  flex:none;width:36px;height:36px;border-radius:50%;background:var(--xb-fill);color:#111827;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;
}
.xp-bestellen .xb-step h2{font-family:var(--xb-font);font-size:22px;font-weight:800;line-height:1.3;margin:0;color:var(--xb-black)}
.xp-bestellen .xb-hint{margin:0 0 18px 50px;color:var(--xb-grey);font-size:15.5px;line-height:1.55}

/* chips */
.xp-bestellen .xb-chips{display:flex;flex-wrap:wrap;gap:10px;margin-left:50px}
.xp-bestellen .xb-chip{
  border:1px solid var(--xb-line);background:#fff;border-radius:100px;min-height:44px;
  padding:10px 20px;font-weight:700;font-size:16px;line-height:1.3;cursor:pointer;color:var(--ink2);
  transition:border-color .12s,background .12s,color .12s;
}
.xp-bestellen .xb-chip:hover{border-color:var(--xb-orange);color:var(--oh)}
.xp-bestellen .xb-chip.active,.xp-bestellen .xb-chip.active:hover{background:var(--xb-fill);border-color:var(--xb-fill);color:#111827}
.xp-bestellen .xb-chip:focus-visible{outline:3px solid rgba(255,112,0,.45);outline-offset:2px}
.xp-bestellen .xb-custom{margin:14px 0 0 50px;display:none;align-items:center;gap:10px;flex-wrap:wrap}
.xp-bestellen .xb-custom.show{display:flex}
.xp-bestellen .xb-custom label{font-weight:600;font-size:15px;color:var(--xb-grey)}

/* velden */
.xp-bestellen .xb-field{
  display:block;font-size:16.5px;line-height:1.4;color:var(--xb-black);border:1px solid var(--field,#767676);border-radius:14px;
  padding:13px 16px;background:#fff;width:100%;margin:0;transition:border-color .12s;font-weight:400;
}
.xp-bestellen .xb-field::placeholder{color:#8a8a8a;opacity:1}
.xp-bestellen .xb-field:focus{outline:none;border-color:var(--xb-orange)}
.xp-bestellen .xb-field:focus-visible{outline:3px solid rgba(255,112,0,.35);outline-offset:1px}
.xp-bestellen .xb-field.small{width:150px;scroll-margin-bottom:140px}
.xp-bestellen .xb-field.invalid{border-color:var(--xb-red)}
.xp-bestellen textarea.xb-field{resize:vertical;min-height:96px}

/* keuzekaarten */
.xp-bestellen .xb-choices{display:grid;gap:14px;margin-left:50px}
.xp-bestellen .xb-choice{
  position:relative;display:flex;gap:16px;align-items:flex-start;border:1px solid var(--xb-line);border-radius:22px;
  background:#fff;padding:20px 22px;cursor:pointer;transition:border-color .12s,background .12s;font-weight:400;
}
.xp-bestellen .xb-choice:hover{border-color:var(--xb-orange)}
.xp-bestellen .xb-choice input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;margin:0}
.xp-bestellen .xb-choice:has(input:focus-visible){outline:3px solid rgba(255,112,0,.45);outline-offset:2px}
.xp-bestellen .xb-radio{flex:none;width:24px;height:24px;border-radius:50%;border:2px solid var(--xb-line);margin-top:2px;position:relative;transition:border-color .12s}
.xp-bestellen .xb-choice.active{border-color:rgba(255,112,0,.55);background:var(--xb-orange-soft);box-shadow:0 6px 24px rgba(255,112,0,.08)}
.xp-bestellen .xb-choice.active .xb-radio{border-color:var(--xb-orange)}
.xp-bestellen .xb-choice.active .xb-radio::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--xb-orange)}
.xp-bestellen .xb-choice-t{display:block;font-size:17.5px;font-weight:800;line-height:1.4;margin-bottom:4px}
.xp-bestellen .xb-desc{display:block;color:var(--xb-grey);font-size:15.5px;line-height:1.45}
.xp-bestellen .xb-tag{
  display:inline-block;background:var(--xb-fill);color:#111827;border-radius:100px;font-size:12px;font-weight:800;
  letter-spacing:.05em;text-transform:uppercase;padding:4px 12px;margin-left:10px;vertical-align:2px;white-space:nowrap;line-height:1.3;
}
.xp-bestellen .xb-tag.neutral{background:#fff;color:var(--xb-orange-text);border:1px solid rgba(255,112,0,.4)}

/* contactformulier */
.xp-bestellen .xb-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-left:50px}
.xp-bestellen .xb-form .full{grid-column:1 / -1}
.xp-bestellen .xb-form label{display:block;font-weight:600;font-size:15px;margin-bottom:7px;line-height:1.4}
.xp-bestellen .xb-form label .opt{color:var(--xb-grey);font-weight:400}

/* knop en meldingen */
.xp-bestellen .xb-submit{margin:26px 0 0 50px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.xp-bestellen .xb-submit .btn{flex:none;width:auto;align-self:center}
.xp-bestellen .xb-submit-note{color:var(--xb-grey);font-size:14.5px;max-width:330px;line-height:1.5}
.xp-bestellen .xb-msg{margin:18px 0 0 50px;border-radius:16px;padding:15px 20px;font-weight:600;display:none}
.xp-bestellen .xb-msg.ok{display:block;background:#E9F7EE;color:var(--xb-green)}
.xp-bestellen .xb-msg.err{display:block;background:#FBEAEA;color:#B23232}

/* samenvatting */
.xp-bestellen .xb-summary{position:sticky;top:var(--xb-top)}
.xp-bestellen .xb-summary .xb-panel{padding:30px}
.xp-bestellen .xb-summary h3{font-family:var(--xb-font);margin:0 0 20px;font-size:21px;font-weight:800;color:var(--xb-black)}
.xp-bestellen .xb-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;font-size:16.5px;line-height:1.45}
.xp-bestellen .xb-line .k{color:var(--xb-grey)}
.xp-bestellen .xb-line .v{font-weight:600;text-align:right}
.xp-bestellen .xb-line.discount .v,.xp-bestellen .xb-line.discount .k{color:var(--xb-green);font-weight:600}
.xp-bestellen .xb-line .strike{text-decoration:line-through;color:var(--xb-grey);font-weight:500}
.xp-bestellen .xb-total{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding:16px 18px;border-radius:18px;background:var(--soft);border:1px solid rgba(255,112,0,.3)}
.xp-bestellen .xb-total .k{font-weight:700;font-size:17px}
.xp-bestellen .xb-total .v{font-weight:800;font-size:28px;color:var(--xb-orange-dark);line-height:1.2;text-align:right}
.xp-bestellen .xb-shopfee{display:none;padding:8px 0 0;font-size:14.5px;color:var(--xb-grey);line-height:1.5}
.xp-bestellen .xb-shopfee.show{display:block}
.xp-bestellen .xb-note{margin-top:18px;background:var(--xb-cream);border:1px solid var(--line);border-radius:18px;padding:15px 18px;font-size:14.5px;color:#444;line-height:1.5}
.xp-bestellen .xb-usps{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:10px}
.xp-bestellen .xb-usps li{display:flex;gap:10px;align-items:flex-start;font-size:15px;font-weight:600;color:var(--ink2);line-height:1.5}
.xp-bestellen .xb-usps svg{flex:none;margin-top:2px;width:18px;height:18px;color:var(--ok)}

/* mobiele prijsbalk (alleen < 1021px): plakt onderaan zolang je door de stappen scrolt, staat daarna gewoon boven de knop */
.xp-bestellen .xb-bar{display:none}
@media (max-width:1020px){
  .xp-bestellen .xb-bar{
    display:block;position:sticky;bottom:12px;z-index:5;margin:28px 0 0 50px;background:#fff;border:1px solid rgba(255,112,0,.5);
    border-radius:22px;padding:12px 12px 12px 18px;box-shadow:0 10px 28px -10px rgba(20,20,19,.28);
  }
  .xp-bestellen .xb-main.typing .xb-bar{position:relative;bottom:auto}
  .xp-bestellen .xb-bar-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .xp-bestellen .xb-bar-k{display:block;font-size:14px;color:var(--xb-grey);line-height:1.3}
  .xp-bestellen .xb-bar-p{display:block;font-size:22px;font-weight:700;color:var(--xb-orange-dark);line-height:1.2}
  .xp-bestellen .xb-bar-s{display:block;font-size:14px;color:var(--xb-grey);line-height:1.35}
  .xp-bestellen .xb-bar-t{
    flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 16px;border-radius:100px;
    border:1px solid var(--xb-line);background:#fff;color:var(--xb-black);font-weight:700;font-size:15px;cursor:pointer;
  }
  .xp-bestellen .xb-bar-t:hover{border-color:var(--xb-orange)}
  .xp-bestellen .xb-bar-t:focus-visible{outline:3px solid rgba(255,112,0,.45);outline-offset:2px}
  .xp-bestellen .xb-bar-t svg{display:block;transition:transform .15s}
  .xp-bestellen .xb-bar-t[aria-expanded="true"] svg{transform:rotate(180deg)}
  .xp-bestellen .xb-bar-d{border-top:2px solid var(--xb-line);margin-top:10px;padding:4px 6px 0 0;max-height:46vh;overflow:auto}
  .xp-bestellen .xb-bar-d .xb-line{padding:7px 0;font-size:15.5px}

  .xp-bestellen .xb-grid{grid-template-columns:1fr}
  .xp-bestellen .xb-summary{position:static}
}
@media (max-width:760px){
  .xp-bestellen .xb-panel{padding:26px 20px}
  .xp-bestellen .xb-chips,.xp-bestellen .xb-choices,.xp-bestellen .xb-form,.xp-bestellen .xb-custom,.xp-bestellen .xb-submit,
  .xp-bestellen .xb-msg,.xp-bestellen .xb-hint,.xp-bestellen .xb-bar,.xp-bestellen .xb-done{margin-left:0}
  .xp-bestellen .xb-form{grid-template-columns:1fr}
  
  .xp-bestellen .xb-chip{padding:10px 18px}
  .xp-bestellen .xb-choice{padding:18px 16px;gap:12px}
  .xp-bestellen .xb-tag{margin-left:0;margin-top:6px;display:table}
  .xp-bestellen .xb-bar{padding:10px 10px 10px 14px}
  .xp-bestellen .xb-summary .xb-panel{padding:26px 20px}
}
@media (max-width:360px){
  .xp-bestellen .xb-wrap{padding:0 14px}
  .xp-bestellen .xb-panel{padding:22px 16px}
  .xp-bestellen .xb-bar-p{font-size:20px}
  .xp-bestellen .xb-bar-t{padding:8px 12px}
}

/* bevestiging (prototype: vervangt de POST naar /api/bestelling) */
.xp-bestellen .xb-done{margin-left:50px}
.xp-bestellen .xb-done:focus{outline:none}
.xp-bestellen .xb-done-icon{width:56px;height:56px;border-radius:50%;background:#E9F7EE;display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.xp-bestellen .xb-done h2{font-family:var(--xb-font);font-size:28px;font-weight:800;line-height:1.2;margin:0 0 10px;color:var(--xb-black)}
.xp-bestellen .xb-done-lead{font-size:17px;line-height:1.55;color:#333;margin:0 0 6px;overflow-wrap:anywhere}
.xp-bestellen .xb-done-lead strong{font-weight:700}
.xp-bestellen .xb-done h3{font-family:var(--xb-font);font-size:18px;font-weight:700;margin:26px 0 6px;color:var(--xb-black)}
.xp-bestellen .xb-done dl{margin:0;border-top:2px solid var(--xb-line)}
.xp-bestellen .xb-done dl > div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--xb-line);font-size:16px;line-height:1.45}
.xp-bestellen .xb-done dt{color:var(--xb-grey);flex:none;max-width:45%}
.xp-bestellen .xb-done dd{margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere;white-space:pre-line}
.xp-bestellen .xb-done dl > div.disc dt,.xp-bestellen .xb-done dl > div.disc dd{color:var(--xb-green)}
.xp-bestellen .xb-done dl > div.tot dt{color:var(--xb-black);font-weight:700}
.xp-bestellen .xb-done dl > div.tot dd{color:var(--xb-orange-dark);font-size:22px;font-weight:700}
.xp-bestellen .xb-done-fee{font-size:14.5px;color:var(--xb-grey);margin:8px 0 0}
.xp-bestellen .xb-proto{margin:24px 0 0;padding:12px 16px;border:2px dashed var(--xb-line);border-radius:14px;background:var(--xb-cream);font-size:14px;color:#444;line-height:1.5}
.xp-bestellen .xb-done-actions{margin-top:22px}
/* Gilroy is hier alleen als regular (100 tot 649) en bold (650 tot 900) geladen; semibold (600) zoals live benaderen met een dunne stroke */
.xp-bestellen .xb-chip,.xp-bestellen .xb-custom label,.xp-bestellen .xb-form label,.xp-bestellen .xb-line .v,
.xp-bestellen .xb-line.discount .k,.xp-bestellen .xb-msg,.xp-bestellen .xb-bar-t,.xp-bestellen .xb-done dd{-webkit-text-stroke:.45px currentColor}
.xp-bestellen .xb-form label .opt,.xp-bestellen .xb-line .strike{-webkit-text-stroke:0}
@media (max-width:760px){.xp-bestellen .xb-done h2{font-size:24px}.xp-bestellen .xb-done dl > div{flex-direction:column;gap:2px}.xp-bestellen .xb-done dt{max-width:none}.xp-bestellen .xb-done dd{text-align:left}}
