.rsb-booking-widget {
  max-width: 640px;
}
.rsb-booking-widget label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.rsb-booking-widget input,
.rsb-booking-widget select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}
.rsb-booking-widget .rsb-room-select {
  max-width: 320px;
}
.rsb-single-room-name {
  font-weight: 700;
  font-size: 1.15em;
  margin: 0 0 12px;
}
.rsb-hidden-select {
  display: none;
}
.rsb-room-desc {
  background: #faf3e0;
  border: 1px solid #ecdfc0;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 12px 0 20px;
}
.rsb-room-desc h4 {
  margin: 0 0 8px;
  font-size: 0.95em;
  color: #6b5a2a;
}
.rsb-room-desc p {
  margin: 0;
  white-space: pre-line;
  color: #4a4a4a;
  font-size: 0.92em;
}
.rsb-auth-status-text {
  background: #f0f6f9;
  border: 1px solid #d5e6ee;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.9em;
  margin: 0 0 16px;
}
.rsb-auth-status-text a {
  color: #3a87ad;
}
.rsb-booking-widget .rsb-submit {
  background: #3a87ad;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
}
.rsb-booking-widget .rsb-submit:hover {
  background: #2e6b87;
}
.rsb-success {
  color: #1a7f37;
  margin-top: 10px;
}
.rsb-error {
  color: #b32d2e;
  margin-top: 10px;
}
.rsb-info {
  color: #3a87ad;
  margin-top: 10px;
}

/* Navegación de mes */
.rsb-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 8px;
  font-weight: 600;
  font-size: 1.1em;
}
.rsb-cal-nav button {
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1em;
  line-height: 1;
}
.rsb-cal-nav button:hover {
  background: #e0e0e0;
}

/* Grid del calendario */
.rsb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.rsb-cal-head {
  text-align: center;
  font-weight: 600;
  padding: 6px 0;
  font-size: 0.85em;
  color: #555;
}
.rsb-cal-cell {
  position: relative;
  min-height: 56px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
  background: #fff;
}
.rsb-cal-cell:hover {
  background: #f5f9fb;
}
.rsb-cal-cell.rsb-cal-empty {
  border: none;
  cursor: default;
  background: transparent;
}
.rsb-cal-daynum {
  font-size: 0.9em;
}
.rsb-cal-today .rsb-cal-daynum {
  font-weight: 700;
  color: #3a87ad;
}
.rsb-cal-selected {
  border-color: #3a87ad;
  box-shadow: 0 0 0 1px #3a87ad;
}

/* Ocupación del día: parcial = gris clarito, lleno = negro */
.rsb-cal-cell.rsb-cal-partial {
  background: #e2e2e2;
}
.rsb-cal-cell.rsb-cal-partial:hover {
  background: #d5d5d5;
}
.rsb-cal-cell.rsb-cal-full {
  background: #1a1a1a;
}
.rsb-cal-cell.rsb-cal-full .rsb-cal-daynum {
  color: #fff;
}
.rsb-cal-cell.rsb-cal-full:hover {
  background: #000;
}

/* Días ya pasados: no se pueden reservar */
.rsb-cal-cell.rsb-cal-past {
  background: #c0392b;
  cursor: not-allowed;
}
.rsb-cal-cell.rsb-cal-past .rsb-cal-daynum {
  color: #fff;
}
.rsb-cal-cell.rsb-cal-past:hover {
  background: #c0392b;
}

/* Leyenda de colores */
.rsb-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.8em;
  color: #555;
}
.rsb-cal-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rsb-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #ccc;
}
.rsb-legend-past {
  background: #c0392b;
  border-color: #c0392b;
}
.rsb-legend-partial {
  background: #e2e2e2;
}
.rsb-legend-full {
  background: #1a1a1a;
  border-color: #1a1a1a;
}
.rsb-legend-free {
  background: #fff;
}

/* Panel de día seleccionado */
.rsb-day-panel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}
.rsb-day-panel h4 {
  margin: 0 0 8px;
}
.rsb-day-panel .description {
  color: #666;
  font-size: 0.9em;
  margin-top: 0;
}

/* Selector de franjas horarias */
.rsb-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  margin: 12px 0 18px;
}
.rsb-slot {
  padding: 8px 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85em;
  text-align: center;
}
.rsb-slot:hover {
  border-color: #3a87ad;
}
.rsb-slot-busy {
  background: #eee;
  color: #aaa;
  border-color: #eee;
  cursor: not-allowed;
}
.rsb-slot-selected {
  background: #3a87ad;
  color: #fff;
  border-color: #3a87ad;
}
.rsb-slot-past {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
  cursor: not-allowed;
}
.rsb-slot-past:hover {
  border-color: #c0392b;
}
.rsb-booking-widget .rsb-submit:disabled {
  background: #a9c6d6;
  cursor: not-allowed;
}

/* Login / registro dentro del panel de día */
.rsb-auth-box {
  max-width: 360px;
  margin-top: 8px;
}
.rsb-auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.rsb-tab {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9em;
}
.rsb-tab-active {
  background: #3a87ad;
  color: #fff;
  border-color: #3a87ad;
}

/* Mis reservas */
#rsb-my-bookings {
  max-width: 800px;
}
#rsb-my-bookings h3 {
  margin: 24px 0 8px;
}
#rsb-my-bookings h3:first-child {
  margin-top: 0;
}
.rsb-my-bookings-table {
  width: 100%;
  border-collapse: collapse;
}
.rsb-my-bookings-table th,
.rsb-my-bookings-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9em;
}
.rsb-cancel-booking {
  background: #fff;
  border: 1px solid #b32d2e;
  color: #b32d2e;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.85em;
}
.rsb-cancel-booking:hover {
  background: #b32d2e;
  color: #fff;
}
.rsb-cancel-booking:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
