#ndDsrCalcWrap{
  --nd-dsr-primary: var(--wp--preset--color--primary, #1e63d8);
  --nd-dsr-muted: #f8fafc;
  --nd-dsr-border: #e5e7eb;
  --nd-dsr-text: #0f172a;

  max-width:1100px;
  margin:40px auto;
  padding:0 16px;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--nd-dsr-text);
  line-height:1.5
}
#ndDsrCalcWrap *{box-sizing:border-box}
#ndDsrCalc{
  background:#fff;
  border:1px solid var(--nd-dsr-border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(2,6,23,.08)
}
#ndDsrCalc header{
  background:linear-gradient(135deg,#1e63d8 0%, #16a34a 100%);
  color:#fff;
  padding:18px
}
#ndDsrCalc .head{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;text-align:center}
#ndDsrCalc .logo{width:54px;height:54px;border-radius:999px;background:rgba(255,255,255,.2);padding:6px;border:2px solid rgba(255,255,255,.7);flex:0 0 auto}
#ndDsrCalc .logo img{width:100%;height:100%;object-fit:contain;display:block}
#ndDsrCalc h2{margin:0;font-size:22px}
#ndDsrCalc .sub{margin:4px 0 0;font-size:13px;opacity:.92}

.hide{display:none!important}
.mt10{margin-top:10px}
.mt16{margin-top:16px}
.note{font-size:13px;color:#475569}
.panel{border:1px solid var(--nd-dsr-border);border-radius:14px;padding:14px;background:#fafafa}
.resultbox{border:1px solid var(--nd-dsr-border);border-radius:14px;padding:14px;background:#fff}

.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grid3{display:grid;grid-template-columns:1fr 1fr 160px;gap:10px}
@media (max-width:720px){
  .grid2{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
}

#ndDsrCalc input, #ndDsrCalc select, #ndDsrCalc textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  font-size:14px;
  outline:none;
  background:#fff
}
#ndDsrCalc input:disabled{background:#f1f5f9}

#ndDsrCalc button{
  border:1px solid #1e63d8;
  background:var(--nd-dsr-primary);
  color:#fff;
  border-radius:12px;
  padding:12px 14px;
  font-weight:700;
  cursor:pointer
}
#ndDsrCalc button.ghost{
  background:#fff;
  color:#1e63d8
}
#ndDsrCalc button.small{padding:8px 10px;border-radius:10px;font-size:13px;font-weight:700}
#ndDsrCalc button:disabled{opacity:.55;cursor:not-allowed}

.btns{display:flex;justify-content:space-between;gap:10px;margin-top:18px;align-items:center}
.btns span{flex:1}

.stepper{display:flex;gap:0}
.steps{
  width:220px;
  border-right:1px solid var(--nd-dsr-border);
  background:var(--nd-dsr-muted);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px
}
.steps .step{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--nd-dsr-border);
  background:#fff;
  color:var(--nd-dsr-text);
  font-weight:800;
  cursor:pointer
}
.steps .step span{
  width:28px;height:28px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(15,23,42,.08);color:var(--nd-dsr-text);font-weight:900
}
.steps .step.active{
  border-color:var(--nd-dsr-primary);
  background:rgba(30,99,216,.10)
}
.steps .step.active span{background:var(--nd-dsr-primary);color:#fff}
.content{flex:1;padding:18px}
@media (max-width:900px){
  .stepper{flex-direction:column}
  .steps{width:auto;flex-direction:row;overflow:auto;border-right:none;border-bottom:1px solid #e5e7eb}
  .steps .step{min-width:180px}
}

.roomCounts{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.roomCountRow{
  display:flex;justify-content:space-between;align-items:center;
  border:1px solid var(--nd-dsr-border);border-radius:14px;padding:12px;background:#fff
}
.roomCountLabel{font-weight:800}
.roomCountCtrl{display:flex;align-items:center;gap:8px}
.circle{
  width:40px;height:40px;border-radius:999px;padding:0;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;line-height:1
  cursor:pointer
  touch-action:manipulation
  -webkit-tap-highlight-color:transparent
}
.count{width:48px!important;text-align:center;font-weight:900;background:#f8fafc}

.roomDetail{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.roomTypeTabs{display:flex;gap:8px;flex-wrap:wrap}
.pill{
  background:#fff;color:var(--nd-dsr-text);border:1px solid var(--nd-dsr-border);
  padding:8px 10px;border-radius:999px;font-weight:800;font-size:13px
  cursor:pointer
  touch-action:manipulation
  -webkit-tap-highlight-color:transparent
}
.pill.active{border-color:var(--nd-dsr-primary);background:var(--nd-dsr-primary);color:#fff}
.roomDetailHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.roomDetailActions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.instanceTabs{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  background:#fff;color:var(--nd-dsr-text);border:1px solid var(--nd-dsr-border);
  padding:8px 10px;border-radius:12px;font-weight:900;min-width:42px
  cursor:pointer
  touch-action:manipulation
  -webkit-tap-highlight-color:transparent
}
.chip.active{border-color:var(--nd-dsr-primary);background:var(--nd-dsr-primary);color:#fff}

.optBlock{border:1px solid var(--nd-dsr-border);border-radius:14px;padding:12px;background:#fff}
.optTitle{font-weight:900;margin-bottom:10px}
.optRow{display:flex;gap:8px;flex-wrap:wrap}
.opt{
  background:#fff;color:var(--nd-dsr-text);border:1px solid var(--nd-dsr-border);
  padding:10px 12px;border-radius:12px;font-weight:800;font-size:13px
  cursor:pointer
  touch-action:manipulation
  -webkit-tap-highlight-color:transparent
}
.opt.active{border-color:var(--nd-dsr-primary);background:var(--nd-dsr-primary);color:#fff}

.weekHost{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.weekBtn{
  background:#fff;color:var(--nd-dsr-text);border:1px solid var(--nd-dsr-border);
  padding:10px 12px;border-radius:999px;font-weight:900
  cursor:pointer
  touch-action:manipulation
  -webkit-tap-highlight-color:transparent
}
.weekBtn.active{border-color:var(--nd-dsr-primary);background:var(--nd-dsr-primary);color:#fff}

.priceGrid{margin-top:12px}
.priceGridInner{display:flex;flex-direction:column;gap:10px}
.pgHeader,.pgRow{display:grid;grid-template-columns:120px repeat(7, 1fr);gap:10px}
.pgCorner{display:flex;align-items:center;justify-content:center}
.pgDayHead{
  border:1px solid var(--nd-dsr-border);border-radius:14px;background:var(--nd-dsr-muted);padding:10px;
  text-align:center
}
.pgDayHead .dow{font-weight:900}
.pgDayHead .date{font-size:12px;color:#475569;margin-top:2px}
.pgRowLabel{display:flex;align-items:center;justify-content:center;font-weight:900;color:#334155}
.slotCard{
  border:1px solid var(--nd-dsr-border);border-radius:14px;background:#fff;
  padding:10px;text-align:center;color:#0f172a
}
.slotCard .price{font-weight:950}
.slotCard .meta{font-size:11px;color:#475569;margin-top:4px}
.slotCard .statusNote{margin-top:6px;font-size:11px;color:#b91c1c;font-weight:900}
.slotCard.warn{border-color:#fecaca}
.slotCard.active{border-color:var(--nd-dsr-primary);box-shadow:0 0 0 3px rgba(30,99,216,.12)}
.slotCard:disabled{background:#f1f5f9;color:#64748b}

.summaryGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:900px){.summaryGrid{grid-template-columns:1fr}}
.kv{display:flex;justify-content:space-between;gap:10px}
.kv span{color:#475569}
.roomList{margin:0;padding-left:18px}
.roomList li{margin:6px 0}

.status{margin-top:12px;font-weight:800}
.status.ok{color:#166534}
.status.bad{color:#b91c1c}

.chk{display:flex;align-items:center;gap:10px;font-weight:800}


.pill:focus-visible,.opt:focus-visible,.chip:focus-visible,.weekBtn:focus-visible,.circle:focus-visible{
  outline:3px solid rgba(30,99,216,.25);
  outline-offset:2px
}

.pill:hover,.opt:hover,.chip:hover,.weekBtn:hover,.circle:hover{filter:brightness(.98)}

/* ==========================
   v1.2.5 UX fixes (scoped)
   Why: theme CSS collisions on generic classnames (.steps/.step/.content)
   ========================== */
#ndDsrCalcWrap .stepper{display:flex;gap:0}
#ndDsrCalcWrap .steps{
  width:240px;
  flex:0 0 240px;
  border-right:1px solid var(--nd-dsr-border);
  background:var(--nd-dsr-muted);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
#ndDsrCalcWrap .steps .step{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--nd-dsr-border);
  background:#fff;
  font-weight:900;
  font-size:14px;
  line-height:1.2;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
}
#ndDsrCalcWrap .steps .step span{
  width:28px;
  height:28px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.08);
  color:var(--nd-dsr-text);
  font-weight:900;
  flex:0 0 28px;
}
#ndDsrCalcWrap .steps .step.active{
  border-color:var(--nd-dsr-primary);
  background:var(--nd-dsr-primary);
  color:#fff;
}
#ndDsrCalcWrap .steps .step.active span{background:#fff;color:#1e63d8}

#ndDsrCalcWrap .content{flex:1;padding:18px;min-width:0}

@media (max-width:900px){
  #ndDsrCalcWrap .stepper{flex-direction:column}
  #ndDsrCalcWrap .steps{
    width:auto;
    flex:0 0 auto;
    flex-direction:row;
    overflow:auto;
    border-right:none;
    border-bottom:1px solid #e5e7eb;
  }
  #ndDsrCalcWrap .steps .step{min-width:170px;white-space:nowrap}
}

/* Readable selectable controls */
#ndDsrCalcWrap .pill,
#ndDsrCalcWrap .opt,
#ndDsrCalcWrap .chip,
#ndDsrCalcWrap .weekBtn{
  font-size:14px;
  line-height:1.15;
}

#ndDsrCalcWrap .pill.active,
#ndDsrCalcWrap .opt.active,
#ndDsrCalcWrap .chip.active,
#ndDsrCalcWrap .weekBtn.active,
#ndDsrCalcWrap .slotCard.active{
  background:var(--nd-dsr-primary);
  color:#fff;
  border-color:var(--nd-dsr-primary);
}

#ndDsrCalcWrap .pill.active::after,
#ndDsrCalcWrap .opt.active::after,
#ndDsrCalcWrap .chip.active::after,
#ndDsrCalcWrap .weekBtn.active::after,
#ndDsrCalcWrap .slotCard.active::after{
  content:"✓";
  margin-left:8px;
  font-weight:950;
}

/* Calendar sizing */
#ndDsrCalcWrap .priceGrid{margin-top:12px;overflow-x:auto;-webkit-overflow-scrolling:touch}
#ndDsrCalcWrap .pgHeader,
#ndDsrCalcWrap .pgRow{
  grid-template-columns:120px repeat(7, minmax(120px, 1fr));
}
#ndDsrCalcWrap .slotCard{
  min-height:74px;
  padding:12px 10px;
}
#ndDsrCalcWrap .slotCard .price{font-size:18px}
#ndDsrCalcWrap .slotCard .meta{font-size:12px}
#ndDsrCalcWrap .slotCard.active .meta{color:rgba(255,255,255,.9)}
#ndDsrCalcWrap .slotCard.active .statusNote{color:rgba(255,255,255,.95)}

/* Step 4: per-ruimte flow + foto's */
.roomProgress{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 12px;border:1px solid var(--nd-dsr-border);border-radius:14px;
  background:var(--nd-dsr-muted);margin-bottom:10px
}
.roomProgressBtns{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.roomWarn{margin-top:10px}
.okMsg{padding:10px 12px;border-radius:14px;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.25);font-weight:700}
.badMsg{padding:10px 12px;border-radius:14px;background:rgba(239,68,68,.10);border:1px solid rgba(239,68,68,.22);font-weight:700}
.photoControls{display:flex;flex-direction:column;gap:8px}
.photoGrid{display:grid;grid-template-columns:repeat(auto-fill, minmax(86px, 1fr));gap:10px;margin-top:10px}
.photoCard{position:relative;border:1px solid var(--nd-dsr-border);border-radius:12px;overflow:hidden;background:#fff}
.photoCard img{display:block;width:100%;height:86px;object-fit:cover}
.photoDel{
  position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:999px;
  border:none;background:rgba(15,23,42,.78);color:#fff;cursor:pointer;font-weight:900
}
.slotCard.disabled{opacity:.45}

/* ===== Mobile fixes (<=600px): prevent horizontal scroll, make stepper grid ===== */
@media (max-width:600px){
  #ndDsrCalcWrap{margin:18px auto;padding:0 12px}

  #ndDsrCalcWrap #ndDsrCalc{border-radius:16px}

  /* Stepper: 2-column grid instead of horizontal scroll */
  #ndDsrCalcWrap .steps{
    overflow:visible !important;
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    padding:10px;
  }
  #ndDsrCalcWrap .steps .step{
    min-width:0 !important;
    white-space:normal !important;
    flex-direction:column;
    justify-content:center;
    text-align:center;
    gap:6px;
    padding:10px 10px;
  }
  #ndDsrCalcWrap .steps .step span{flex:0 0 auto}

  /* Chips/pills should wrap text, never overflow */
  #ndDsrCalcWrap .pill,
  #ndDsrCalcWrap .opt,
  #ndDsrCalcWrap .chip,
  #ndDsrCalcWrap .weekBtn{
    max-width:100%;
    white-space:normal;
  }

  /* iOS: prevent input zoom */
  #ndDsrCalcWrap input,
  #ndDsrCalcWrap select,
  #ndDsrCalcWrap textarea{
    font-size:16px;
  }

  /* Button rows stack nicely */
  #ndDsrCalcWrap .btns{
    flex-direction:column;
    align-items:stretch;
  }
  #ndDsrCalcWrap .btns > *{width:100%}
}
