#calendar-container {
  max-width: 1050px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

#my-calendar {
  border: 1px solid #ccc;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  user-select: none;
  border: #0099ff;
}

#service_description_header {
  margin: 0px;
  padding: 0px;
}

#min_spots_header {
  margin: 0;
  padding: 0;
}

#min_spots_description {
  margin-top: 0.5em;
  margin-bottom: 0.8em;
  font-weight: 400;
  color:#000000;
  font-size:large;
}

#terms_header {
  margin: 0;
  padding: 0;
}

#terms_description {
  margin-top: 0.5em;
  margin-bottom: 0.8em;
  font-weight: 400;
  color:#000000;
  font-size:large;
}


#code_div {
  margin-bottom: 1em;
}

#code_div_header {
  margin: 0px;
  padding: 0px;
}

#wild_body  {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 400;
  color:#000000;
  font-size:large;
}

#client-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1em;
}




#service_description {
  margin-top: 0.5em;
  margin-bottom: 0.8em;
  font-weight: 400;
  color:#000000;
  font-size:large;
}


.selection-rows {
    display: flex;    
    margin-bottom: 10px;
}

.selection-rows label {
    display: inline-block;
    width: 130px;
    font-weight: bold;  
    padding-bottom: 5px;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 0;
}

.calendar-header > div {
  border-right: 1px solid #ccc;
}

.calendar-header > div:last-child {
  border-right: none;
}

.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background-color: #fff;
  min-height: 300px;
}

.day-cell {
  border: 1px solid #eee;
  min-height: 140px;
  padding: 8px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  white-space: nowrap;
}

.day-cell.today {
  background-color: #e6feff;
  border: 1px solid #00BCB9;
}

.day-cell.empty {
  background: #f9f9f9;
  border: none;
}

.day-number {
  font-weight: bold;
  margin-bottom: 6px;
}

.slots-wrapper {
  border: 2px solid #07bcf3;
  border-radius: 8px;
  margin-top: 2px;
  overflow: hidden;
}

.slots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.slots-table td {
  padding: 4px 6px;
  border: none;
  position: relative;
  cursor: pointer;
}

.slots-table td.time-cell {
  padding: 4px 6px;
  border: none;
  position: relative;
  cursor: pointer;
  background-color: #90d3ff;
}

.slots-table td.spots {
  padding: 4px 6px;
  border: 1px;
  position: relative;
  cursor: pointer;
  background-color: #67c2ff;
}

.book-btn {
  border: none;
  border-radius: 4px;
  font-size: 11px;
  user-select: none;
  cursor: pointer;
}

.service-heading {
  font-size: 23px;
  margin-top: 10px;
  margin-bottom: 7px;
  text-decoration: underline;
}

#booking_summary table.booking-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

#booking_summary table.booking-table td {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#booking_summary table.booking-table td:nth-child(1) {
  width: 30%; /* Date */
}

#booking_summary table.booking-table td:nth-child(2) {
  width: 30%; /* Time */
}

#booking_summary table.booking-table td:nth-child(3) {
  width: auto; /* Cost */
  text-align: right;
}

#booking_summary table.booking-table td:nth-child(4) {
  width: auto; /* Delete button */
  text-align: right;
  min-width: 60px;
}

#booking_summary h2 {
  font-size: 30px !important;
  font-weight: bold;
  border-bottom: 2px solid black;
  padding-bottom: 5px;              
  margin: 10px 0 12px 0;
}

#booking_summary h3 {
  font-size: 30px !important;
  font-weight: bold;
  margin: 10px 0 5px 0;
  text-decoration: underline;
}

#booking_summary h4 {
  font-size: 22px !important;
  margin: 5px 0;
  text-decoration: none;
}


.booking-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.booking-table th, .booking-table td {
  text-align: left;
  padding-top: 0.5%;
}

.booking-total-table {
  width: 100%;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  margin-top: 15px;
  padding-top: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  border-collapse: collapse;
}

.total-label {
  text-align: left;
  padding: 10px 0;
}

.total-amount {
  text-align: right;
  padding: 10px 0;
}

.booked-wave {
  animation: wave-text 1s ease-in-out forwards;
  pointer-events: none;
  cursor: default;
  color: black !important; 
  background-color: yellow !important;
}

.checkout-btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #1e88e5;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.checkout-btn:hover {
  background-color: #1565c0;
}

@keyframes wave-text {
  0%, 100% {
    text-shadow: none;
  }
  50% {
    text-shadow:
      0 0 5px #b59f00,
      0 0 10px #b59f00,
      0 0 20px #b59f00;
  }
}


.book-btn {
  color: #0b3d0b; 
  font-weight: 600;
}

.book-btn:disabled {
  background-color: #0b3d0b;
  cursor: not-allowed;
}

.pcp-book-btn {
    display: inline-block;
    border: 2px solid #000000;
    border-radius: 6px;
    padding: 10px 20px;
    background-color: #4caf50;;
    color: #000000 !important;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;    
}

.pcp-book-btn:hover {
    background-color: #4caf50;
    color: #ffffff !important;
}


@media (max-width: 768px) {
  #calendar-container {
    max-width: 100%;
    padding: 0 10px;
  }

  .calendar-header,
  .calendar-body {
    grid-template-columns: repeat(7, 1fr);
  }

  .day-cell {
    min-height: 110px;
    font-size: 11px;
  }

  select {
    min-width: 140px;
  }
}

/* --- MOBILE FIXES --- */
@media (max-width: 900px) {

  .day-cell {
    min-height: auto;
    padding: 2px;
    font-size: 12px;
  }

  .slots-wrapper {
    margin-top: 2px;
    border-width: 1px;
  }
  

  .slots-table {
    display: block;
    width: 100%;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 6px;
    overflow: hidden;
  }

  .slots-table tr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px;
  }

  .slots-table td {
    display: block;
    width: 100%;
    padding: 2px 3px;
    text-align: left;
    border: none !important;
  }

  .slots-table td.time-cell {
    padding: 0px 1px;
    font-weight: bold;
    background: none;
    white-space: normal;
    font-size: 12px;
  }

  .slots-table td.spots {
    background: none;
    padding: 0px 1px;
    font-size: 12px;
  }


  .book-btn {
  position: relative !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: inline-block;          
  margin-top: 2px;
  padding: 0px 2px;              
  font-size: 12px !important;     
  white-space: normal;            
  max-width: 100%;                
  overflow: hidden;
  box-sizing: border-box;
}

label,
select {
  display: block;
}

#callback-ui div {
    max-width: 90%;
}

#callback-ui h3, #callback-ui p {
    font-size: 18px; 
}

}


.calendar-scroll-wrapper {
    overflow-x: auto;       
    -webkit-overflow-scrolling: touch; 
}

#calendar-container {
    min-width: 500px;      
}

 #timer-display {
      position: fixed; 
      top: 10%;           
      right: 10px;         
      background-color: rgba(0,0,0,0.7);
      color: #fff;
      padding: 8px 12px;
      border-radius: 5px;
      font-size: 18px;
      z-index: 9999;       
      font-family: monospace;
  }

