
#msp{
  box-sizing: border-box;
  width: 100%;
  border:1px solid #e5e7eb;
  padding:14px;
  border-radius:16px;
  margin: 16px 0;
  background:#fff;
}

/* Layout: wizard (left) + summary (right) */
#msp.msp-layout{
  display:flex;
  gap:16px;
  align-items:flex-start;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
}
#msp .msp-left{ flex: 1 1 auto; min-width: 0; }
#msp .msp-summary{ flex: 0 1 280px; max-width: 100%; position: sticky; top: 16px; }
@media (max-width: 1024px){
  #msp .msp-summary{ flex-basis: 240px; }
}
@media (max-width: 860px){
  #msp.msp-layout{ flex-direction: column; }
  #msp .msp-summary{ position: static; width: 100%; flex-basis: auto; }
}
#msp .msp-block{ padding: 10px 0 18px; border-top:1px solid #f1f5f9; }
#msp .msp-block:first-child{ border-top:none; }
#msp .msp-block-title{
  font-weight:700; font-size: 16px; margin: 0 0 10px;
}
#msp .msp-step{ display:none; padding: 12px; border:1px solid #eef2f7; border-radius:16px; background:#f8fafc; }
#msp .msp-step h3{ margin: 0 0 10px; font-size: 15px; }
#msp .msp-desc{ color:#64748b; font-size: 13px; margin: -4px 0 10px; }
#msp .msp-opt-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 0; }
#msp .msp-opt{ display:flex; align-items:center; gap:8px; margin: 0; }
#msp .msp-opt input{ margin: 0; }
#msp .msp-price{ color:#64748b; font-size: 12px; margin-left: 6px; }
#msp .msp-nav{ margin-top: 12px; display:flex; gap:10px; }

/* Buttons (small outline, consistent) */
#msp .msp-nav{ margin-top: 12px; display:flex; gap:10px; flex-wrap: wrap; }
#msp .msp-nav button{
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 0, 0.55);
  background: #fff;
  color: #ff7a00;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
#msp .msp-nav button:hover{
  background: rgba(255, 122, 0, 0.10);
  border-color: rgba(255, 122, 0, 0.75);
  transform: translateY(-1px);
}
#msp .msp-nav button:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
#msp .msp-input{ width: 100%; border-radius: 12px; padding: 10px 12px; }
#msp .msp-muted{ color:#64748b; font-size: 12px; margin: 6px 0 0; }

/* Summary card */
#msp .msp-summary-card{
  border: 1px solid #eef2f7;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,.07);
}
#msp .msp-summary-title{
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  margin: 0 0 10px;
}
#msp .msp-summary-rows{ display:flex; flex-direction: column; gap: 10px; }
#msp .msp-srow{ display:flex; align-items:center; justify-content: space-between; gap: 12px; color:#334155; }
#msp .msp-srow strong{ color:#0f172a; }
#msp .msp-srow-total{ padding-top: 10px; border-top: 1px dashed #e2e8f0; }
#msp .msp-summary-mini{ margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; color:#475569; font-size: 12px; }
#msp .msp-mini-line{ padding: 2px 0; }

/* Add-to-cart pulse after Finish */
form.cart .msp-pulse{ animation: mspPulse 1.1s ease-in-out; }
@keyframes mspPulse{ 0%{ transform: scale(1); } 40%{ transform: scale(1.03); } 100%{ transform: scale(1); } }


/* Ensure checkbox/radio always visible (theme-safe) */
#msp .msp-opt{
  position: relative;
}
#msp .msp-opt input.msp-choice{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
#msp .msp-mark{
  width:18px;
  height:18px;
  border:2px solid #cbd5e1;
  border-radius:4px;
  display:inline-block;
  flex:0 0 auto;
  box-sizing:border-box;
  margin-top:1px;
}
#msp .msp-step[data-type="radio"] .msp-mark{
  border-radius:999px;
}
#msp input.msp-choice:checked + .msp-mark{
  border-color:#ff6a00;
  background: radial-gradient(circle at center, #ff6a00 0 45%, transparent 46% 100%);
}
#msp .msp-step[data-type="checkbox"] input.msp-choice:checked + .msp-mark{
  background:#ff6a00;
}
#msp .msp-step[data-type="checkbox"] input.msp-choice:checked + .msp-mark::after{
  content:'';
  position:relative;
  display:block;
  width:6px;
  height:10px;
  border:2px solid #fff;
  border-top:0;
  border-left:0;
  transform: translate(5px,1px) rotate(45deg);
}
#msp .msp-label{
  line-height:1.3;
}
