.rd-rb-wrapper{
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:16px;
  max-width:720px;
  font-size:14px;
  background:#fff;
}
.rd-rb-step{display:none;}
.rd-rb-step.is-active{display:block;}

.rd-rb-h-step1,
.rd-rb-h-step2{margin-top:0;margin-bottom:12px;font-size:16px;font-weight:600;}

.rd-rb-date-time{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:flex-start;
}
.rd-rb-date,
.rd-rb-times{
  flex:1 1 200px;
  min-width:0;
}
.rd-rb-date label,
.rd-rb-times label{
  display:block;
  margin-bottom:4px;
  font-weight:500;
}
.rd-rb-date-input{
  width:100%;
  box-sizing:border-box;
  padding:6px 8px;
  border-radius:8px;
  border:1px solid #d1d5db;
}

.rd-rb-times-list{
  min-height:60px;
  border:1px dashed #d1d5db;
  padding:6px;
  border-radius:8px;
}

.rd-rb-time{
  display:inline-block;
  margin:4px;
  padding:4px 8px;
  border:1px solid #d1d5db;
  border-radius:999px;
  cursor:pointer;
  font-size:13px;
  background:#f9fafb;
}
.rd-rb-time.is-selected{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.rd-rb-spinner{
  width:28px;
  height:28px;
  border-radius:50%;
  margin:10px auto;
  border:3px solid #e5e7eb;
  border-top:3px solid #9ca3af;
  animation:rd-rb-spin 1s linear infinite;
}
@keyframes rd-rb-spin{to{transform:rotate(360deg);}}

.rd-rb-summary{
  padding:8px 10px;
  border-radius:8px;
  background:#f9fafb;
  margin-bottom:12px;
}
.rd-rb-summary p{margin:0 0 4px;}

.rd-rb-fields label{
  display:block;
  margin-top:8px;
  margin-bottom:2px;
  font-weight:500;
}
.rd-rb-fields input,
.rd-rb-fields textarea,
.rd-rb-fields select{
  width:100%;
  box-sizing:border-box;
  padding:6px 8px;
  border-radius:8px;
  border:1px solid #d1d5db;
}

.rd-rb-extras{
  margin-top:12px;
}
.rd-rb-extras-title{
  margin:0 0 6px;
  font-weight:600;
}
.rd-rb-extra-field{
  margin-bottom:8px;
}
.rd-rb-extra-field label{
  display:block;
  margin-bottom:2px;
  font-weight:500;
}
.rd-rb-extra{
  width:100%;
  box-sizing:border-box;
  padding:6px 8px;
  border-radius:8px;
  border:1px solid #d1d5db;
}

.rd-rb-actions{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:16px;
}
.rd-rb-btn{
  flex:1;
  padding:9px 12px;
  border-radius:8px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  cursor:pointer;
  font-weight:500;
}
.rd-rb-btn-confirm{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.rd-rb-message{
  margin-top:10px;
  padding:10px;
  border-radius:8px;
  font-size:13px;
}
.rd-rb-error{
  background:#fee2e2;
  border:1px solid #ef4444;
}
.rd-rb-success{
  background:#dcfce7;
  border:1px solid #22c55e;
}

/* Responsive tweaks */
@media (max-width:600px){
  .rd-rb-wrapper{padding:12px;}
  .rd-rb-date-time{flex-direction:column;}
}

/* Mini month calendar (Bookly-like, but compact) */
.rd-rb-calendar{
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:8px;
  min-width:260px;
  background:#f9fafb;
}
.rd-rb-cal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
  font-size:13px;
  font-weight:500;
}
.rd-rb-cal-nav{
  display:flex;
  gap:4px;
}
.rd-rb-cal-nav button{
  border:1px solid #d1d5db;
  background:#fff;
  border-radius:4px;
  padding:2px 6px;
  cursor:pointer;
  font-size:11px;
}
.rd-rb-cal-weekdays,
.rd-rb-cal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:2px;
  font-size:11px;
}
.rd-rb-cal-weekdays span{
  text-align:center;
  font-weight:500;
  color:#6b7280;
}
.rd-rb-cal-day{
  text-align:center;
  padding:4px 0;
  border-radius:6px;
  cursor:pointer;
  border:1px solid transparent;
  background:#fff;
}
.rd-rb-cal-day.rd-disabled{
  cursor:not-allowed;
  color:#d1d5db;
  background:#f3f4f6;
}
.rd-rb-cal-day.rd-today{
  border-color:#9ca3af;
}
.rd-rb-cal-day.rd-selected{
  background:#111827;
  color:#fff;
  border-color:#111827;
}


.rd-rb-step-2{
  position:relative;
}

.rd-rb-overlay{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(255,255,255,0.75);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:20;
}

.rd-rb-overlay.is-active{
  display:flex;
}

.rd-rb-overlay-backdrop{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
}

.rd-rb-overlay-inner{
  position:relative;
}

.rd-rb-spinner-overlay{
  width:28px;
  height:28px;
  border-radius:50%;
  border:3px solid #e5e7eb;
  border-top:3px solid #9ca3af;
  animation:rd-rb-spin 1s linear infinite;
}
