/* RGXYZ Booking Lite – core styling */

.rgxyz-bl-wrap {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #261106;
}

.rgxyz-bl-wrap h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.rgxyz-bl-meta {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #5a4330;
}

.rgxyz-bl-meta a {
  color: #753b0e;
  text-decoration: underline;
}

/* Fields and layout */

.rgxyz-bl-field {
  margin-bottom: 1rem;
}

.rgxyz-bl-field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #3a2514;
}

.rgxyz-bl-field input,
.rgxyz-bl-field select,
.rgxyz-bl-field textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.rgxyz-bl-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 1rem;
}

/* Note text */

.rgxyz-bl-note {
  font-size: 0.9rem;
  background: #fffaf3;
  border-left: 4px solid #ffad04;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Slots layout */

.rgxyz-bl-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 2.5rem;
}

.rgxyz-bl-slots .hint {
  font-size: 0.9rem;
  color: #7a6451;
}

/* Base style for each time slot button */

.rgxyz-bl-slots button.slot {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  color: #261106;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

/* Hover for available slots */

.rgxyz-bl-slots button.slot:not(.taken):not(.short):not(:disabled):hover {
  background: #ffad04;
  border-color: #ffad04;
  color: #261106;
}

/* Selected slot */

.rgxyz-bl-slots button.slot.selected {
  background: #ffad04;
  border-color: #ffad04;
  color: #261106;
}

/* Booked / taken slots */

.rgxyz-bl-slots button.slot.taken,
.rgxyz-bl-slots button.slot.taken:disabled {
  background: #eeeeee;
  border-color: #cccccc;
  color: #888888;
  cursor: not-allowed;
  opacity: 0.7;
}

/* “Short” slots – not enough room for a 60-minute class */

.rgxyz-bl-slots button.slot.short,
.rgxyz-bl-slots button.slot.short:disabled {
  background: #f5f5f5;
  border-color: #dddddd;
  color: #aaaaaa;
  cursor: not-allowed;
  opacity: 0.65;
}

/* Generic disabled fallback */

.rgxyz-bl-slots button.slot:disabled {
  cursor: not-allowed;
}

/* Actions and messages */

.rgxyz-bl-actions {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rgxyz-bl-actions button#rgxyz_bl_book_btn {
  background: #753b0e;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.rgxyz-bl-actions button#rgxyz_bl_book_btn:hover {
  background: #5b2c09;
  transform: translateY(-1px);
}

#rgxyz_bl_msg {
  font-size: 0.9rem;
}

#rgxyz_bl_msg.ok {
  color: #1b7c3c;
}

#rgxyz_bl_msg.err {
  color: #b0382b;
}

/* Buttons in “you must log in” view */

.rgxyz-bl-btn {
  display: inline-block;
  background: #753b0e;
  color: #ffffff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.rgxyz-bl-btn:hover {
  background: #5b2c09;
}