/* Homebody Yoga Widget Styles - For Squarespace Custom CSS */

/* Widget Container */
#scheduling-widget .schedule-widget-container {
  font-family: 'Poppins ExtraLight', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: #F8F5F0 !important;
  padding: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Schedule Grid */
#scheduling-widget .schedule-grid {
  display: grid !important;
  grid-template-columns: 140px repeat(7, 1fr) !important;
  gap: 0 !important;
  background: white !important;
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Day Headers */
#scheduling-widget .day-header {
  font-family: 'Home Body Yoga', 'Poppins', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  text-align: center !important;
  padding: 15px 10px !important;
  border-bottom: 1px solid #d0d0d0 !important;
  border-right: 1px solid #f0f0f0 !important;
  background: white !important;
  letter-spacing: 0.5px !important;
}

#scheduling-widget .day-date {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #666 !important;
  margin-top: 4px !important;
}

#scheduling-widget .day-header:last-child {
  border-right: none !important;
}

/* Time Labels */
#scheduling-widget .time-label {
  font-family: 'Home Body Yoga', 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  padding: 30px 15px !important;
  text-align: left !important;
  align-self: stretch !important;
  border-bottom: 1px solid #f0f0f0 !important;
  border-right: 1px solid #f0f0f0 !important;
  background: white !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

#scheduling-widget .time-label:last-child {
  border-bottom: none !important;
}

/* Class Cells */
#scheduling-widget .class-cell {
  min-height: 100px !important;
  padding: 15px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  border-right: 1px solid #f0f0f0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: white !important;
  position: relative !important;
}

#scheduling-widget .class-cell:last-child {
  border-right: none !important;
}

/* Remove bottom border from last row cells */
#scheduling-widget .time-label:last-child,
#scheduling-widget .class-cell:nth-child(8n),
#scheduling-widget .class-cell:nth-child(8n-1),
#scheduling-widget .class-cell:nth-child(8n-2),
#scheduling-widget .class-cell:nth-child(8n-3),
#scheduling-widget .class-cell:nth-child(8n-4),
#scheduling-widget .class-cell:nth-child(8n-5),
#scheduling-widget .class-cell:nth-child(8n-6) {
  border-bottom: none !important;
}

/* Class Info */
#scheduling-widget .class-info {
  text-align: center !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
  padding: 8px !important;
  border-radius: 6px !important;
  transition: background-color 0.2s !important;
}

#scheduling-widget .class-info:hover {
  background-color: #f5f5f5 !important;
}

#scheduling-widget .class-time {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 4px !important;
  color: #333 !important;
}

#scheduling-widget .class-name {
  font-family: 'Home Body Yoga', 'Poppins', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #333 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: text-decoration 0.2s !important;
}

#scheduling-widget .class-info:hover .class-name {
  text-decoration: underline !important;
}

#scheduling-widget .class-duration {
  font-family: 'Poppins ExtraLight', 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #666 !important;
  margin-top: 2px !important;
}

#scheduling-widget .class-location {
  font-family: 'Poppins ExtraLight', 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #666 !important;
  margin-top: 2px !important;
}

/* Corner Cell */
#scheduling-widget .corner-cell {
  border-right: 1px solid #f0f0f0 !important;
  border-bottom: 1px solid #d0d0d0 !important;
  background: white !important;
}

/* Evening row specific - allow for two classes */
#scheduling-widget .evening-cell {
  min-height: 120px !important;
  justify-content: space-evenly !important;
}

/* Mobile responsive design */
@media (max-width: 640px) {
  #scheduling-widget .schedule-widget-container {
    padding: 20px !important;
  }
  
  #scheduling-widget .schedule-grid {
    display: none !important;
  }
  
  #scheduling-widget .schedule-mobile {
    display: block !important;
  }
  
  #scheduling-widget .day-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
  
  #scheduling-widget .day-card-header {
    font-family: 'Home Body Yoga', 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    letter-spacing: 0.5px !important;
  }
  
  #scheduling-widget .day-card-header span {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
    color: #666 !important;
  }
  
  #scheduling-widget .day-card-empty {
    font-family: 'Poppins ExtraLight', 'Poppins', sans-serif !important;
    text-align: center !important;
    color: #999 !important;
    font-size: 14px !important;
    padding: 20px !important;
  }
  
  #scheduling-widget .mobile-class-item {
    display: block !important;
    padding: 12px !important;
    margin: 0 -8px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 6px !important;
    transition: background-color 0.2s !important;
  }
  
  #scheduling-widget .mobile-class-item:hover {
    background-color: #f5f5f5 !important;
  }
  
  #scheduling-widget .mobile-class-item:last-child {
    border-bottom: none !important;
  }
  
  #scheduling-widget .mobile-class-time {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #666 !important;
    margin-bottom: 4px !important;
  }
  
  #scheduling-widget .mobile-class-name {
    font-family: 'Home Body Yoga', 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  
  #scheduling-widget .mobile-class-duration {
    font-family: 'Poppins ExtraLight', 'Poppins', sans-serif !important;
    font-size: 13px !important;
    color: #999 !important;
    margin-top: 2px !important;
  }
  
  #scheduling-widget .mobile-class-location {
    font-family: 'Poppins ExtraLight', 'Poppins', sans-serif !important;
    font-size: 13px !important;
    color: #666 !important;
    margin-top: 2px !important;
  }
}

/* Desktop only styles */
@media (min-width: 641px) {
  #scheduling-widget .schedule-mobile {
    display: none !important;
  }
}

/* Loading State */
#scheduling-widget .loading {
  font-family: 'Poppins ExtraLight', 'Poppins', sans-serif !important;
  text-align: center !important;
  padding: 40px !important;
  font-size: 16px !important;
  color: #666 !important;
}