.mcb-wrap{font-family:inherit}
.mcb-steps{display:flex;gap:8px;margin:0 0 14px 0;flex-wrap:wrap}
.mcb-step{padding:8px 10px;border:1px solid #e3e3e3;border-radius:999px;background:#fafafa;font-size:13px;color:#444}
.mcb-step.is-active{background:#111;color:#fff;border-color:#111}
.mcb-panel{margin-top:10px}
.mcb-nav{margin-top:12px;display:flex;gap:10px;justify-content:flex-end}
.mcb-next{background:#111;color:#fff;border-color:#111}
@media (max-width: 640px){
  .mcb-nav{justify-content:space-between}
}


/* v1.0.6 checkout-style summary */
.mcb-layout{display:block}
.mcb-summary{margin-top:14px}
.mcb-summary-card{border:1px solid #e6e6e6;border-radius:14px;background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.04);padding:14px}
.mcb-summary-title{font-weight:700;margin-bottom:10px}
.mcb-summary-lines{display:flex;flex-direction:column;gap:8px}
.mcb-line{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.mcb-line strong{font-weight:700}
.mcb-sep{height:1px;background:#eee;margin:6px 0}
.mcb-total{font-size:14px}
.mcb-summary-note{margin-top:10px;color:#666;font-size:12px}
@media (min-width: 980px){
  .mcb-layout{display:grid;grid-template-columns: 1fr 340px;gap:18px;align-items:start}
  .mcb-summary{margin-top:0;position:sticky;top:16px}
}

/* v1.0.8 force grid on desktop */
@media (min-width: 980px){
  .mcb-layout{display:grid !important; grid-template-columns: 1fr 360px !important;}
  .mcb-summary{position:sticky !important; top:24px;}
}

/* v1.0.9: Divi-proof right overlay */
@media (min-width: 980px){
  .mcb-summary{
    position: fixed !important;
    right: 24px;
    top: 160px;
    width: 360px;
    max-width: calc(100vw - 48px);
    z-index: 9999;
  }
  /* keep wrap from hiding behind overlay */
  .mcb-wrap{
    max-width: 980px !important;
  }
}
@media (max-width: 979px){
  .mcb-summary{position: static !important; width:auto !important}
}

/* v1.1.0: collapsible right drawer (Divi-proof) */
.mcb-summary-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mcb-summary-toggle{
  appearance:none;border:1px solid #e6e6e6;background:#fff;border-radius:10px;
  width:36px;height:30px;cursor:pointer;font-size:18px;line-height:1;
}
.mcb-summary.is-collapsed .mcb-summary-toggle{transform:rotate(180deg)}
@media (min-width: 980px){
  .mcb-summary{
    transition: transform .18s ease;
    will-change: transform;
  }
  /* reserve space so it does NOT cover the form */
  html.mcb-summary-open .mcb-wrap{padding-right: 380px !important;}
  html.mcb-summary-collapsed .mcb-wrap{padding-right: 56px !important;}
  .mcb-summary.is-collapsed{
    transform: translateX(calc(100% - 52px));
  }
}

/* v1.1.2: drawer tab (always clickable) */
.mcb-drawer-tab{
  appearance:none;border:0;cursor:pointer;
  background:#111;color:#fff;
  border-radius:14px 0 0 14px;
  padding:10px 8px;
  font-weight:700;
  box-shadow:0 2px 10px rgba(0,0,0,.12);
}
@media (min-width: 980px){
  .mcb-summary{ position: fixed !important; right: 24px; top: 160px; width: 360px; z-index: 9999; }
  .mcb-drawer-tab{
    position:absolute;
    left:-46px;
    top:18px;
    width:46px;
    height:160px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display:flex;
    align-items:center;
    justify-content:center;
    letter-spacing:.4px;
  }
  html.mcb-summary-open .mcb-wrap{padding-right: 406px !important;}
  html.mcb-summary-collapsed .mcb-wrap{padding-right: 70px !important;}
  .mcb-summary{transition: transform .18s ease; will-change: transform;}
  .mcb-summary.is-collapsed{ transform: translateX(calc(100% - 46px)); }
}
@media (max-width: 979px){
  .mcb-drawer-tab{display:none;}
  html.mcb-summary-open .mcb-wrap, html.mcb-summary-collapsed .mcb-wrap{padding-right: 18px !important;}
}


/* v1.1.7 tab radius fix */
@media (min-width: 980px){
  .mcb-drawer-tab{
    border-radius:0 14px 14px 0 !important; /* round right side instead of left */
    left:-46px;
  }
  .mcb-summary.is-collapsed .mcb-drawer-tab{
    border-radius:0 14px 14px 0 !important;
  }
}


/* Mobile bottom-sheet for kassabon/overzicht */
.mcb-drawer-tab{display:none}
.mcb-summary-backdrop{display:none}

@media (max-width: 900px){
  .mcb-summary{
    position:fixed;
    left:0; right:0; bottom:0;
    margin:0;
    z-index:9999;
    transform: translateY(calc(100% - 56px));
    transition: transform .22s ease;
    padding:0 12px 12px 12px;
    max-height: 80vh;
  }
  .mcb-summary.is-collapsed{
    transform: translateY(calc(100% - 56px));
  }
  .mcb-summary:not(.is-collapsed){
    transform: translateY(0);
  }

  .mcb-drawer-tab{
    display:flex;
    width:100%;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    height:56px;
    padding:0 14px;
    border:1px solid #e6e6e6;
    border-bottom:0;
    border-radius:16px 16px 0 0;
    background:#fff;
    box-shadow:0 -6px 18px rgba(0,0,0,.10);
    font-weight:700;
    cursor:pointer;
  }
  .mcb-tab-label{font-weight:700}
  .mcb-tab-total{font-weight:800}

  .mcb-summary-card{
    border-radius:0 0 16px 16px;
    box-shadow:0 -6px 18px rgba(0,0,0,.10);
    border-top-left-radius:0;
    border-top-right-radius:0;
  }

  .mcb-summary-backdrop{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.25);
    opacity:0;
    pointer-events:none;
    transition: opacity .18s ease;
    z-index:9998;
  }
  .mcb-summary-backdrop.is-visible{
    opacity:1;
    pointer-events:auto;
  }
}


/* Calendar */
.mcb-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.mcb-cal-dow{font-size:12px;opacity:.7;text-align:center;padding:4px 0}
.mcb-cal-empty{height:38px}
.mcb-cal-day{
  height:38px;
  border:1px solid #d7d7d7;
  border-radius:6px;
  background:#fff;
  font-weight:700;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.mcb-cal-day:active{transform:scale(.98)}
.mcb-cal-day:focus-visible{outline:2px solid rgba(0,0,0,.25); outline-offset:2px}
.mcb-cal-day.is-free{background:#f2fbf5;border-color:#c6e5cf;color:#0f3b1f}
.mcb-cal-day.is-booked{background:#ffecec;border-color:#f3b0b0;color:#7a1f1f;cursor:not-allowed}
.mcb-cal-day.is-inrange{background:#dff3e6;border-color:#b9dec6}
.mcb-cal-day.is-start,.mcb-cal-day.is-end{background:#1f7a3a;border-color:#1f7a3a;color:#fff}
.mcb-cal-day.is-hoverrange{background:#e8f7ee;border-color:#cfead9}
.mcb-cal-day.is-hoverend{border-color:#1f7a3a}
.mcb-cal-day:disabled{opacity:1}

.mcb-cal-hint{font-weight:600}


/* Extras buttons */
.mcb-extra-row{display:flex;gap:12px;align-items:center;padding:10px 12px;border:1px solid #e6e6e6;border-radius:12px;background:#fff}
.mcb-extra-toggle{padding:10px 14px;border-radius:10px;border:1px solid #ddd;background:#2eaadc;color:#fff;font-weight:700;cursor:pointer}
.mcb-extra-toggle.mcb-btn-add{background:#2eaadc;border-color:#2eaadc}
.mcb-extra-toggle.mcb-btn-remove{background:#d63638;border-color:#d63638}
.mcb-extra-toggle.mcb-btn-included{background:#e9f8ee;border-color:#9bd1aa;color:#1a7f37}



/* Calendar availability badge (for stock > 1) */
.mcb-cal-day{position:relative}
.mcb-cal-badge{
  position:absolute;
  top:6px;
  right:6px;
  font-size:11px;
  line-height:1;
  padding:3px 5px;
  border-radius:8px;
  background:rgba(0,0,0,0.06);
  color:#111;
}
.mcb-cal-day.is-booked .mcb-cal-badge{
  background:rgba(214,54,56,0.12);
  color:#9b1c1f;
}
