.sbs-booking-widget {
  max-width: 520px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}

.sbs-row { margin-bottom: 12px; }
.sbs-row label { display:block; font-weight: 600; margin-bottom: 6px; }

.sbs-row input, .sbs-row select {
  width: 100%;
  padding: 8px 10px;
}

#sbs_msg { margin-top: 10px; }
#sbs_msg.is-error { color: #b32d2e; }

.sbs-date-blocked a {
  background: #eee !important;
  color: #999 !important;
}
.sbs-date-disabled a {
  opacity: .55;
}


/* Inline datepicker tweaks */
.sbs-datepicker-inline {
  margin: 8px 0 10px;
}
.sbs-selected-date {
  margin-top: 6px;
}

/* Grey out known no-slot days */
.sbs-date-noslots a {
  background: #f3f3f3 !important;
  color: #a0a0a0 !important;
}


/* SBS Date & Time UI v2 */
.sbs-dt-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 10px 0 4px;
}
.sbs-calendar-panel {
  flex: 0 0 auto;
}
.sbs-times-panel {
  flex: 1 1 220px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.sbs-times-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.sbs-times-sub {
  font-size: 12px;
  color: #6b7280;
}
.sbs-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
}
.sbs-times-empty {
  font-size: 13px;
  color: #6b7280;
  padding: 8px 2px;
}
.sbs-time {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.02s ease, background 0.12s ease, border-color 0.12s ease;
  color: #000000
}
.sbs-time:hover {
  background: #f3f4f6;
  color: #000000
}
.sbs-time:active {
  transform: translateY(1px);
}
.sbs-time.is-selected {
  background: #D09A40;
  color: #fff;
  border-color: #FBF1E3;
}
.sbs-time:focus {
  outline: 2px solid rgba(0,0,0,0.9);
  outline-offset: 2px;
}

/* Make the inline datepicker feel modern */
.sbs-datepicker-inline .ui-datepicker {
  width: 280px;
  aspect-ratio: 1 / 1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.sbs-datepicker-inline .ui-datepicker-header {
  border: none;
  background: transparent;
  padding: 6px 6px 10px;
}
.sbs-datepicker-inline .ui-datepicker-title {
  font-weight: 600;
}
.sbs-datepicker-inline .ui-datepicker-prev,
.sbs-datepicker-inline .ui-datepicker-next {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.sbs-datepicker-inline .ui-datepicker-prev:hover,
.sbs-datepicker-inline .ui-datepicker-next:hover {
  background: #f9fafb;
}
.sbs-datepicker-inline .ui-datepicker-calendar th {
  font-weight: 600;
  color: #6b7280;
  padding: 4px 0;
}
.sbs-datepicker-inline .ui-state-default {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  text-align: center;
  padding: 8px 0;
}
.sbs-datepicker-inline .ui-state-hover {
  background: #f3f4f6;
}
.sbs-datepicker-inline .ui-state-active {
  background: #D09A40 !important;
  color: #fff !important;
  border: 1px solid #000000;
  border-radius: 10px;
}
/* Disabled days */
.sbs-date-disabled a,
.sbs-date-blocked a,
.sbs-date-noslots a {
  background: #f3f4f3 !important;
  color: #a0a0a0 !important;
}
/* Slightly different tint for blocked days */
.sbs-date-blocked a {
  background: #e5e7eb !important;
}
/* Responsive */
@media (max-width: 720px) {
  .sbs-dt-layout {
    flex-direction: column;
  }
}
