/**
 * room-booking-timeslot-check.css
 * prefix: rbtc
 */

#rbtc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#rbtc-overlay.rbtc-visible { opacity: 1; }

#rbtc-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  padding: 2rem 2.25rem 1.75rem;
  max-width: 480px;
  width: 92%;
  font-family: 'Noto Sans Thai', 'Sarabun', sans-serif;
  animation: rbtc-slide-in 0.22s ease;
}
@keyframes rbtc-slide-in {
  from { transform: translateY(-18px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

#rbtc-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
#rbtc-close:hover { color: #333; background: #f0f0f0; }

#rbtc-icon { font-size: 2.8rem; text-align: center; color: #e07b00; margin-bottom: 0.5rem; }
#rbtc-title { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 700; color: #c0392b; text-align: center; }

#rbtc-body p { margin: 0.4rem 0 0.6rem; font-size: 0.97rem; color: #333; line-height: 1.6; }
.rbtc-date-line { font-size: 1rem !important; }
.rbtc-date-line strong { color: #1a5276; }

.rbtc-booked-list, .rbtc-free-list {
  margin: 0.3rem 0 0.9rem 1.2rem;
  padding: 0;
  font-size: 0.95rem;
}
.rbtc-booked-list li { color: #c0392b; font-weight: 600; list-style: disc; line-height: 1.8; }
.rbtc-free-label { font-weight: 600; color: #1e8449; margin-top: 0.8rem !important; }
.rbtc-free-list li { color: #196f3d; list-style: disc; line-height: 1.8; }
.rbtc-no-free { color: #7b241c; font-weight: 600; background: #fdedec; border-radius: 6px; padding: 0.4rem 0.75rem; }
.rbtc-hint { font-size: 0.88rem !important; color: #666 !important; margin-top: 0.6rem !important; font-style: italic; }

#rbtc-actions { margin-top: 1.25rem; text-align: center; }
.rbtc-btn {
  display: inline-block;
  padding: 0.55rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.97rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.rbtc-btn:active { transform: scale(0.97); }
.rbtc-btn-primary { background: #2980b9; color: #fff; font-weight: 600; }
.rbtc-btn-primary:hover { background: #1f618d; }

.rbtc-loading { opacity: 0.65; cursor: wait !important; }
