/* public/assets/css/booking-flexible.css — Widget de reservas ALTERNATIVO
 * (shortcode [reservas-flexible]): casillas libres (servicio/peluquero/
 * fecha en el orden que sea) en una sola página, igual que en el alta
 * manual del panel de admin. Va a mayores del widget de siempre
 * (booking.css / [reservas]); todas las clases llevan el prefijo "bkf-"
 * para no pisar nunca las del widget clásico si conviven en la misma
 * página. */
.bkf-widget { max-width: 900px; margin: 0 auto; font-family: -apple-system, 'Segoe UI', sans-serif; color: #1f2937; }

.bkf-panel { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04); margin-bottom: 20px; }
.bkf-panel h3 { margin-top: 0; font-size: 16px; }

.bkf-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .bkf-fields-grid { grid-template-columns: 1fr; } }

.bkf-date-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bkf-date-row input[type=date] { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }

.bkf-staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.bkf-staff-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bkf-staff-avatar { width: 30px; height: 30px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bkf-staff-avatar-photo { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.bkf-staff-col-name { font-size: 14px; font-weight: 600; }
.bkf-staff-col-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.bkf-staff-col-slot { border: 1px solid #4f46e5; color: #4f46e5; background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 13px; cursor: pointer; font-weight: 600; }
.bkf-staff-col-slot:hover { background: #eef2ff; }
.bkf-staff-col-empty { font-size: 13px; color: #9ca3af; }

.bkf-days-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-bottom: 20px; }
.bkf-day-pill { border: 1.5px solid #d1d5db; border-radius: 10px; padding: 9px 6px; text-align: center; background: #fff; cursor: pointer; }
.bkf-day-pill:hover { border-color: #a5b4fc; }
.bkf-day-pill:disabled { border-color: #f1f5f9; color: #d1d5db; cursor: default; }
.bkf-day-pill-weekday { font-size: 11px; text-transform: uppercase; color: #6b7280; }
.bkf-day-pill-num { font-size: 16px; font-weight: 700; margin: 2px 0; }
.bkf-day-pill-status { font-size: 10px; color: #059669; }
.bkf-day-pill:disabled .bkf-day-pill-weekday, .bkf-day-pill:disabled .bkf-day-pill-num, .bkf-day-pill:disabled .bkf-day-pill-status { color: #d1d5db; }

.bkf-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bkf-slot { border: 1px solid #4f46e5; color: #4f46e5; background: #fff; border-radius: 8px; padding: 9px 14px; font-size: 14px; cursor: pointer; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bkf-slot-staff { font-size: 10px; font-weight: 500; opacity: .75; }
.bkf-slot:hover { background: #eef2ff; }
.bkf-slot.selected { background: #4f46e5; color: #fff; }
.bkf-empty { color: #9ca3af; text-align: center; padding: 24px 0; }
.bkf-status-msg { font-size: 13px; padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; display: inline-block; }
.bkf-status-free { background: #dcfce7; color: #166534; }
.bkf-status-partial { background: #fef9c3; color: #854d0e; }
.bkf-status-full { background: #fee2e2; color: #991b1b; }
.bkf-break { flex-basis: 100%; display: flex; align-items: center; gap: 10px; color: #9ca3af; font-size: 12px; margin: 4px 0; }
.bkf-break::before, .bkf-break::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.bkf-field { margin-bottom: 16px; }
.bkf-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.bkf-field-hint { font-weight: 400; color: #9ca3af; font-size: 12px; }
.bkf-field input, .bkf-field select { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; box-sizing: border-box; background: #fff; }
.bkf-checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.bkf-checkbox-row input { width: auto; }

.bkf-summary { background: #f9fafb; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.bkf-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.bkf-summary-row strong { font-weight: 700; }
.bkf-summary-row-highlight { margin-top: 6px; padding-top: 12px; border-top: 1px dashed #d1d5db; font-size: 15px; }
.bkf-summary-row-highlight strong { color: #4f46e5; font-size: 17px; }

.bkf-gateway-options { display: flex; flex-direction: column; gap: 8px; }
.bkf-gateway-option { display: flex; align-items: center; gap: 10px; border: 2px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.bkf-gateway-option:hover { border-color: #c7d2fe; background: #f5f5ff; }
.bkf-gateway-option.checked { border-color: #4f46e5; background: #eef2ff; }
.bkf-gateway-option input { width: auto; margin: 0; }
.bkf-gateway-option-single { cursor: default; border-color: #4f46e5; background: #eef2ff; }
.bkf-gateway-option-single:hover { border-color: #4f46e5; background: #eef2ff; }

.bkf-nav { display: flex; justify-content: flex-end; margin-top: 24px; }
.bkf-btn { border: none; border-radius: 8px; padding: 12px 24px; font-weight: 600; font-size: 15px; cursor: pointer; }
.bkf-btn-primary { background: #4f46e5; color: #fff; }
.bkf-btn-primary:disabled { background: #c7d2fe; cursor: not-allowed; }
.bkf-btn-outline { background: #fff; border: 1px solid #d1d5db; color: #374151; }

.bkf-success { text-align: center; padding: 24px 0; }
.bkf-success-icon { font-size: 52px; margin-bottom: 16px; }
.bkf-error-box { background: #fef2f2; color: #991b1b; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
