/* LocalBeautys Booking Widget */
.lb-booking-root { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.lb-w-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Step bar */
.lb-w-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.lb-w-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.lb-w-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #eee; color: #999; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.lb-w-step.active .lb-w-step-dot { background: #E8537A; color: #fff; }
.lb-w-step.done .lb-w-step-dot   { background: #2D7D52; color: #fff; }
.lb-w-step-label { font-size: 10px; color: #999; white-space: nowrap; }
.lb-w-step.active .lb-w-step-label { color: #E8537A; font-weight: 600; }
.lb-w-step.done .lb-w-step-label   { color: #2D7D52; }
.lb-w-step-line { flex: 1; height: 1px; background: #eee; min-width: 12px; margin: 0 4px; margin-bottom: 14px; }

/* Title */
.lb-w-title { font-size: 18px; font-weight: 700; color: #1A1523; margin: 0 0 16px; }

/* Back button */
.lb-w-back {
  background: none; border: none; color: #999; font-size: 13px;
  cursor: pointer; padding: 0 0 12px; display: block;
}
.lb-w-back:hover { color: #E8537A; }

/* Service cards */
.lb-w-service-list { display: flex; flex-direction: column; gap: 8px; }
.lb-w-service-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid #eee; border-radius: 12px;
  background: #fff; cursor: pointer; text-align: left;
  transition: all .15s; width: 100%;
}
.lb-w-service-card:hover { border-color: #E8537A; background: #FDF0F3; }
.lb-w-svc-color { width: 8px; height: 40px; border-radius: 4px; flex-shrink: 0; }
.lb-w-svc-info { flex: 1; }
.lb-w-svc-name { font-size: 14px; font-weight: 600; color: #1A1523; }
.lb-w-svc-meta { font-size: 12px; color: #888; margin-top: 2px; }
.lb-w-svc-price { font-size: 15px; font-weight: 700; color: #E8537A; }

/* Staff cards */
.lb-w-staff-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-w-staff-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px; border: 1.5px solid #eee; border-radius: 12px;
  background: #fff; cursor: pointer; min-width: 90px;
  transition: all .15s;
}
.lb-w-staff-card:hover { border-color: #E8537A; background: #FDF0F3; }
.lb-w-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.lb-w-staff-name { font-size: 12px; font-weight: 500; color: #1A1523; text-align: center; }

/* Calendar */
.lb-w-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; font-weight: 600; font-size: 15px;
}
.lb-w-cal-nav-btn {
  background: #f5f5f5; border: none; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 18px;
}
.lb-w-cal-nav-btn:hover { background: #E8537A; color: #fff; }
.lb-w-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.lb-w-cal-head { text-align: center; font-size: 11px; color: #999; padding: 4px 0; font-weight: 600; }
.lb-w-cal-day {
  aspect-ratio: 1; border: none; border-radius: 8px;
  background: #f5f5f5; color: #ccc; font-size: 13px; cursor: default;
}
.lb-w-cal-day.available { background: #E8F5EE; color: #2D7D52; cursor: pointer; font-weight: 600; }
.lb-w-cal-day.available:hover { background: #E8537A; color: #fff; }
.lb-w-cal-day.past { background: #f5f5f5; color: #ddd; }
.lb-w-cal-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #888; margin-top: 10px; }
.lb-w-cal-avail-dot { width: 10px; height: 10px; border-radius: 3px; background: #E8F5EE; border: 1px solid #2D7D52; }

/* Slots */
.lb-w-slot-group { margin-bottom: 20px; }
.lb-w-slot-label { font-size: 12px; color: #888; margin-bottom: 8px; }
.lb-w-slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-w-slot {
  padding: 10px 16px; border: 1.5px solid #E8537A; border-radius: 8px;
  background: #fff; color: #E8537A; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.lb-w-slot:hover { background: #E8537A; color: #fff; }

/* İki kademeli saat seçimi — saat butonları */
.lb-w-hour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.lb-w-hour {
  padding: 12px 8px; border: 1.5px solid #E8537A; border-radius: 8px;
  background: #fff; color: #E8537A; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .15s; text-align: center;
}
.lb-w-hour:hover { background: #FCE8EF; }
.lb-w-hour.sel { background: #E8537A; color: #fff; }

/* Form */
.lb-w-summary {
  background: #F7F5F9; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px;
}
.lb-w-summary-item { display: flex; align-items: center; gap: 12px; }
.lb-w-summary-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.lb-w-summary-label { font-weight: 600; font-size: 14px; }
.lb-w-summary-sub { font-size: 12px; color: #888; }

.lb-w-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lb-w-field { margin-bottom: 14px; }
.lb-w-field label { display: block; font-size: 12px; font-weight: 600; color: #5E5668; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.lb-w-field input, .lb-w-field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px;
  font-family: inherit; font-size: 14px; color: #1A1523; box-sizing: border-box;
  transition: border-color .15s; outline: none;
}
.lb-w-field input:focus, .lb-w-field textarea:focus { border-color: #E8537A; }
.lb-w-field textarea { resize: vertical; min-height: 64px; }

/* Payment */
.lb-w-payment { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.lb-w-pay-opt {
  flex: 1; min-width: 140px; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 10px;
  cursor: pointer; transition: all .15s;
}
.lb-w-pay-opt input { display: none; }
.lb-w-pay-opt.selected { border-color: #E8537A; background: #FDF0F3; }
.lb-w-pay-icon { font-size: 20px; }
.lb-w-pay-label { font-size: 13px; font-weight: 600; }
.lb-w-pay-sub { font-size: 12px; color: #888; }

/* Buttons */
.lb-w-btn-primary {
  width: 100%; padding: 14px; background: #E8537A; color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.lb-w-btn-primary:hover { background: #B83A5D; }
.lb-w-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.lb-w-btn-outline {
  width: 100%; padding: 12px; background: #fff; color: #1A1523;
  border: 1.5px solid #ddd; border-radius: 10px; font-size: 14px;
  cursor: pointer; transition: all .15s; font-family: inherit; margin-top: 10px;
}
.lb-w-btn-outline:hover { border-color: #E8537A; color: #E8537A; }

/* Confirmation */
.lb-w-confirm { text-align: center; }
.lb-w-confirm-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #E8F5EE;
  color: #2D7D52; font-size: 28px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.lb-w-confirm-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.lb-w-confirm-sub { color: #888; font-size: 14px; margin: 0 0 24px; }
.lb-w-confirm-card {
  background: #F7F5F9; border-radius: 12px; padding: 16px;
  text-align: left; margin-bottom: 20px;
}
.lb-w-confirm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #eee; font-size: 14px;
}
.lb-w-confirm-row:last-child { border-bottom: none; }
.lb-w-confirm-row span { color: #888; }

/* Loader */
.lb-w-loader { display: flex; justify-content: center; padding: 40px; }
.lb-w-spinner {
  width: 28px; height: 28px; border: 2px solid #eee;
  border-top-color: #E8537A; border-radius: 50%;
  animation: lb-spin .7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

/* Error */
.lb-w-error { background: #FCEBEB; color: #A32D2D; padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-top: 12px; }
.lb-w-empty { text-align: center; padding: 32px; color: #888; font-size: 14px; }

/* Mobile */
@media (max-width: 480px) {
  .lb-w-form-row { grid-template-columns: 1fr; }
  .lb-w-staff-list { justify-content: center; }
}

/* Birleşik tarih+saat layout */
.lb-w-wide { max-width: 700px !important; }
.lb-w-dateslot { display: flex; gap: 16px; margin-top: 16px; }
.lb-w-cal-col  { flex: 0 0 280px; }
.lb-w-slot-col { flex: 1; min-height: 200px; }
.lb-w-date-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--ink,#1A1523); }
.lb-w-cal-day.sel { background: #E8537A !important; color: #fff !important; }
.lb-w-slot-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; }

/* Staff seçili durumu */
.lb-w-staff-card.selected { border-color: #E8537A; background: #FDF0F3; }
.lb-w-staff-card.selected .lb-w-staff-name { color: #E8537A; font-weight: 700; }

/* Randevu şube bilgisi */
.lb-w-appt-location { font-size: 11px; color: #888; margin-top: 2px; }

@media (max-width: 560px) {
  .lb-w-dateslot { flex-direction: column; }
  .lb-w-cal-col  { flex: none; }
}
