.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
  gap: 10px;
  margin-top: 20px;
   justify-content: center;
}

.calendar-cell {
  box-sizing: border-box;
  width: 100%;
  background-color: #fff;
  text-align: center;
  border: 1px solid #eaebef;
  border-radius: 20px;
  padding: 20px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.calendar-cell.unavailable {
  background-color: #eaebef;
  color: #a0a0a0;
  box-shadow: none;
  cursor: not-allowed;
}

.calendar-cell.available:hover {
  background-color: #7031a0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.calendar-cell:hover { background-color: #7031a0; }
.calendar-cell.selected {
  background-color: #7031a0;
  color: #ffffff;
  border-color: #7031a0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.time-slots-container { margin-top: 20px; }

#time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px); 
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.slot-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: #fff;
  color: #000;
  border: 1px solid #eaebef;
  border-radius: 20px;
  padding: 20px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.slot-pill:hover {
  background-color: #7031a0;
  color: #fff;
  transform: translateY(-2px);
}

.slot-pill.selected {
  background-color: #7031a0;
  color: #fff;
  border-color: #7031a0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.confirm-booking-button {
  background-color: #7031a0;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
}
.confirm-booking-button:hover { background-color: #eaebef; }

.date-card-day   { font-size: 14px; }
.date-card-num   { font-size: 22px; }
.date-card-month { font-size: 12px; }

.no-available-dates {
  grid-column: 1 / -1;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}



.slot-count {
  margin-top: 6px;
  font-size: 13px;
  text-align: center;
}
.slot-count:hover { color: #fff !important; }

@media (max-width: 784px) {
  .calendar {
    gap: 6px; 
  }

  .calendar-cell {
    padding: 12px 6px;
    border-radius: 14px;
  }

  .date-card-day   { font-size: 12px; }
  .date-card-num   { font-size: 18px; }
  .date-card-month { font-size: 11px; }

  .slot-count { font-size: 11px; }

.time-slots {
    gap: 6px;        
    margin-top: 6px;
  }

  .slot-pill {
    font-size: 14px !important;  
    padding: 6px 10px;
    margin: 3px;
  }

  .confirm-booking-button {
    font-size: 14px;
    padding: 8px 12px;
    margin: 4px;
  }
}

.time-slots-scroll,
.date-slot-scroll {
  max-height: 35vh;           
  overflow: auto;            
  padding: 0 4px 20px;    
  scrollbar-gutter: stable;   
}

@media (max-width: 784px) {
  .time-slots-scroll,
  .date-slot-scroll {
    max-height: 45vh;
	  padding: 0 4px 20px;
  }
}

.time-slots-scroll::-webkit-scrollbar,
.date-slot-scroll::-webkit-scrollbar {
  width: 8px;
}

.time-slots-scroll::-webkit-scrollbar-thumb,
.date-slot-scroll::-webkit-scrollbar-thumb {
  background: #cfcfd6;
  border-radius: 8px;
}

.time-slots-scroll::-webkit-scrollbar-thumb:hover,
.date-slot-scroll::-webkit-scrollbar-thumb:hover {
  background: #b7b7c0;
}
