.tvqyp-ui {
  display: grid;
  gap: 8px;
}

/* Validation Message Styles */
#tvq_day_selection_validation {
  color: #d32f2f !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-top: 8px !important;
  padding: 8px 12px !important;
  background: #ffebee !important;
  border: 1px solid #ffcdd2 !important;
  border-radius: 4px !important;
  display: block !important;
}

/* Hide validation message when not needed */
#tvq_day_selection_validation[style*="display: none"],
#tvq_day_selection_validation[style*="visibility: hidden"] {
  display: none !important;
  visibility: hidden !important;
}

/* After School Day Selection Validation Message */
#asa_day_selection_validation {
  color: #d32f2f !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-top: 8px !important;
  padding: 8px 12px !important;
  background: #ffebee !important;
  border: 1px solid #ffcdd2 !important;
  border-radius: 4px !important;
  display: block !important;
}

/* Hide After School validation message when not needed */
#asa_day_selection_validation[style*="display: none"] {
  display: none !important;
}

/* Disabled Add to Cart Button */
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background: #ccc !important;
  border-color: #ccc !important;
  color: #666 !important;
  pointer-events: none !important;
}

.single_add_to_cart_button.disabled:hover,
.single_add_to_cart_button:disabled:hover {
  background: #ccc !important;
  border-color: #ccc !important;
  color: #666 !important;
  transform: none !important;
}

/* Enabled Add to Cart Button - Ensure proper styling when enabled */
.single_add_to_cart_button:not(.disabled):not(:disabled) {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Override any WooCommerce disabled styling for enabled buttons */
.single_add_to_cart_button:not(.disabled):not(:disabled):hover {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Pricing Summary Display */
.tvqyp-summary {
  background: var(--tvqyp-card-bg);
  border: 1px solid var(--tvqyp-card-border);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 2px 8px var(--tvqyp-shadow-light);
  transition: all 0.3s ease;
}

.tvqyp-summary:hover {
  box-shadow: 0 4px 16px var(--tvqyp-shadow-medium);
  transform: translateY(-1px);
}

.tvqyp-summary .tvqyp-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tvqyp-card-header-bg);
}

.tvqyp-summary .tvqyp-summary-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tvqyp-summary .tvqyp-summary-header h4::before {
  content: "";
  font-size: 20px;
}

.tvqyp-summary .tvqyp-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.tvqyp-summary .tvqyp-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--tvqyp-gray-50);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tvqyp-summary .tvqyp-summary-item:hover {
  background: var(--tvqyp-white);
  border-color: var(--tvqyp-border-medium);
  box-shadow: 0 2px 8px var(--tvqyp-shadow-light);
}

.tvqyp-summary .tvqyp-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--tvqyp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tvqyp-summary .tvqyp-summary-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
}

.tvqyp-summary .tvqyp-summary-value.tvqyp-total {
  color: var(--tvqyp-primary);
  font-size: 18px;
}
/* Start Date Field Styling */
#tvq_start_date {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--tvqyp-input-border);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--tvqyp-input-bg);
}

#tvq_start_date:focus {
  outline: none;
  border-color: var(--tvqyp-input-focus-border);
  background: var(--tvqyp-white);
  box-shadow: 0 0 0 3px var(--tvqyp-input-focus-shadow);
}

#tvq_start_date::placeholder {
  color: var(--tvqyp-input-placeholder);
}

/* Combined Schedule & Date Selection Container (Adult packages) */
.tvqyp-schedule-selection-container {
  background: var(--tvqyp-card-bg);
  border: 1px solid var(--tvqyp-card-border);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 2px 8px var(--tvqyp-shadow-light);
  transition: all 0.3s ease;
}

.tvqyp-schedule-selection-container:hover {
  box-shadow: 0 4px 16px var(--tvqyp-shadow-medium);
  transform: translateY(-1px);
}

.tvqyp-schedule-selection-container .tvqyp-schedule-selection-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tvqyp-card-header-bg);
}

.tvqyp-schedule-selection-container .tvqyp-schedule-selection-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tvqyp-schedule-selection-container
  .tvqyp-schedule-selection-header
  h4::before {
  content: "";
  font-size: 20px;
}

.tvqyp-schedule-selection-container .tvqyp-schedule-selection-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Start Date Container (now nested) */
.tvqyp-start-date-container {
  background: var(--tvqyp-gray-50);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
  padding: 16px;
  margin: 0;
  box-shadow: none;
  transition: all 0.2s ease;
  display: none; /* Hidden by default */
}

.tvqyp-start-date-container:hover {
  box-shadow: 0 2px 8px var(--tvqyp-shadow-light);
  transform: none;
}

.tvqyp-start-date-container .tvqyp-start-date-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tvqyp-border-medium);
}

.tvqyp-start-date-container .tvqyp-start-date-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tvqyp-start-date-container .tvqyp-start-date-header h4::before {
  content: "";
  font-size: 16px;
}

.tvqyp-start-date-container .tvqyp-start-date-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tvqyp-start-date-container .tvqyp-start-date-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tvqyp-text-secondary);
  margin-bottom: 4px;
}

/* Schedule & Date Selection Empty State */
.tvqyp-schedule-selection-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--tvqyp-text-muted);
  font-style: italic;
  background: var(--tvqyp-gray-50);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
}

/* Available Days Header */
.tvqyp-day-selection-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tvqyp-border-medium);
}

.tvqyp-day-selection-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tvqyp-day-selection-header h4::before {
  content: "";
  font-size: 16px;
}

/* Sessions Page Styles */
.tvq-sessions-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.tvq-sessions-page h2 {
  color: var(--tvqyp-text-primary);
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.tvq-sessions-page h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tvqyp-border-light);
}

/* Empty State */
.tvq-sessions-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  border: 2px dashed var(--tvqyp-border-light);
}

.tvq-sessions-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.tvq-sessions-empty h3 {
  color: var(--tvqyp-text-primary);
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
}

.tvq-sessions-empty p {
  color: var(--tvqyp-text-secondary);
  font-size: 16px;
}

/* Sessions List */
.tvq-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Month Groups */
.tvq-sessions-month {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--tvqyp-border-light);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tvq-sessions-month-title {
  background: var(--tvqyp-primary);
  color: white;
  margin: 0;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
}

.tvq-sessions-month-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Session Items */
.tvq-session-item {
  background: white;
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.tvq-session-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.tvq-session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tvq-session-date {
  color: var(--tvqyp-text-primary);
  font-weight: 600;
  font-size: 16px;
}

.tvq-session-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tvq-status-scheduled {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.tvq-status-completed {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.tvq-status-cancelled {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.tvq-status-pending {
  background: var(--tvqyp-gray-100);
  color: var(--tvqyp-text-muted);
  border: 1px solid var(--tvqyp-border-light);
}

/* Attendance status colors for session cards */
.tvq-status-present {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.tvq-status-absent {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.tvq-status-late {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.tvq-status-excused {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.tvq-session-details {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 12px;
  width: 100%;
}

.tvq-session-details > div {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--tvqyp-text-secondary);
  font-size: 14px;
  min-width: 0;
}

.tvq-session-details i {
  color: var(--tvqyp-primary);
  width: 16px;
  text-align: center;
}

.tvq-session-footer {
  border-top: 1px solid var(--tvqyp-border-light);
  padding-top: 12px;
  margin-top: 12px;
}

.tvq-session-order {
  font-size: 12px;
  color: var(--tvqyp-text-muted);
  font-style: italic;
}

.tvq-session-term {
  font-size: 12px;
  color: var(--tvqyp-text-muted);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .tvq-sessions-page {
    padding: 16px;
  }

  .tvq-session-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tvq-session-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Session Progress Summary */
.tvq-sessions-summary {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--tvqyp-border-light);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tvq-sessions-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.tvq-stat-item {
  text-align: center;
  padding: 16px;
  background: var(--tvqyp-gray-50);
  border-radius: 8px;
  border: 1px solid var(--tvqyp-border-light);
}

.tvq-stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--tvqyp-primary);
  margin-bottom: 4px;
}

.tvq-stat-label {
  font-size: 14px;
  color: var(--tvqyp-text-secondary);
  font-weight: 500;
}

/* Session Progress Dots */
.tvq-sessions-progress h3 {
  color: var(--tvqyp-text-primary);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

.tvq-progress-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}

.tvq-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--tvqyp-border-light);
  background: var(--tvqyp-gray-100);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tvq-dot:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tvq-dot-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--tvqyp-text-secondary);
}

/* Dot States */
.tvq-dot-upcoming {
  background: var(--tvqyp-gray-100);
  border-color: var(--tvqyp-border-medium);
}

.tvq-dot-completed {
  background: var(--tvqyp-gray-200);
  border-color: var(--tvqyp-border-medium);
}

/* Attendance status colors using data attributes - Higher specificity */
.tvq-progress-dots .tvq-dot[data-attendance="present"] {
  background: #d4edda !important;
  border-color: #28a745 !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="present"] .tvq-dot-number {
  color: #155724 !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="absent"] {
  background: #f8d7da !important;
  border-color: #dc3545 !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="absent"] .tvq-dot-number {
  color: #721c24 !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="late"] {
  background: #fff3cd !important;
  border-color: #ffc107 !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="late"] .tvq-dot-number {
  color: #856404 !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="excused"] {
  background: #d1ecf1 !important;
  border-color: #17a2b8 !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="excused"] .tvq-dot-number {
  color: #0c5460 !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="completed"] {
  background: var(--tvqyp-gray-200) !important;
  border-color: var(--tvqyp-border-medium) !important;
}

.tvq-progress-dots .tvq-dot[data-attendance="upcoming"] {
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
}

/* Progress Legend */
.tvq-progress-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tvq-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--tvqyp-text-secondary);
}

.tvq-legend-item .tvq-dot {
  width: 20px;
  height: 20px;
  cursor: default;
}

.tvq-legend-item .tvq-dot-number {
  display: none;
}

/* Responsive for progress dots */
@media (max-width: 768px) {
  .tvq-sessions-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .tvq-stat-number {
    font-size: 24px;
  }

  .tvq-progress-dots {
    gap: 6px;
  }

  .tvq-dot {
    width: 36px;
    height: 36px;
  }

  .tvq-dot-number {
    font-size: 11px;
  }

  .tvq-progress-legend {
    gap: 16px;
  }
}

/* End Date Field (Adult packages) */
#tvq_end_date {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--tvqyp-input-border);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--tvqyp-input-bg);
  color: var(--tvqyp-text-secondary);
  cursor: not-allowed;
}

#tvq_end_date:focus {
  outline: none;
  border-color: var(--tvqyp-input-border);
  background: var(--tvqyp-input-bg);
  box-shadow: none;
}

/* Date Fields Grid (Adult packages) */
.tvqyp-date-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .tvqyp-date-fields-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* TVQ Youth Pricing - CSS Variables */
:root {
  /* Brand Colors */
  --tvqyp-brand-red: #ca3031;
  --tvqyp-brand-yellow: #f2b90c;
  --tvqyp-brand-blue: #0f438f;
  --tvqyp-brand-dark: #231f20;

  /* Primary Color Palette (Brand Red) */
  --tvqyp-primary: #ca3031;
  --tvqyp-primary-hover: #b02a2b;
  --tvqyp-primary-light: #f8e6e6;
  --tvqyp-primary-transparent: rgba(202, 48, 49, 0.1);
  --tvqyp-primary-lighter: #fdf2f2;

  /* Secondary Color Palette (Brand Yellow) */
  --tvqyp-secondary: #f2b90c;
  --tvqyp-secondary-hover: #d4a70b;
  --tvqyp-secondary-light: #fdf4d9;
  --tvqyp-secondary-lighter: #fefbf0;

  /* Accent Color Palette (Brand Blue) */
  --tvqyp-accent: #0f438f;
  --tvqyp-accent-hover: #0d3a7a;
  --tvqyp-accent-light: #e8f0f9;
  --tvqyp-accent-lighter: #f5f9fc;

  /* Neutral Color Palette */
  --tvqyp-white: #ffffff;
  --tvqyp-gray-50: #fafafa;
  --tvqyp-gray-100: #f8f9fa;
  --tvqyp-gray-200: #e9ecef;
  --tvqyp-gray-300: #dee2e6;
  --tvqyp-gray-400: #ced4da;
  --tvqyp-gray-500: #adb5bd;
  --tvqyp-gray-600: #6c757d;
  --tvqyp-gray-700: #495057;
  --tvqyp-gray-800: #343a40;
  --tvqyp-gray-900: #212529;

  /* Status Colors (Using Brand Colors) */
  --tvqyp-success: #e8f5e8;
  --tvqyp-success-text: #0d4f0d;
  --tvqyp-warning: #fdf4d9;
  --tvqyp-warning-text: #8b6b00;
  --tvqyp-danger: #f8e6e6;
  --tvqyp-danger-text: #8b1a1a;
  --tvqyp-info: #e8f0f9;
  --tvqyp-info-text: #0d3a7a;

  /* Special Colors */
  --tvqyp-unassigned-border: #ca3031;
  --tvqyp-unassigned-bg: #fdf2f2;

  /* Shadow Colors (Using Brand Colors) */
  --tvqyp-shadow-light: rgba(0, 0, 0, 0.08);
  --tvqyp-shadow-medium: rgba(0, 0, 0, 0.12);
  --tvqyp-shadow-primary: rgba(202, 48, 49, 0.15);
  --tvqyp-shadow-primary-hover: rgba(202, 48, 49, 0.25);
  --tvqyp-shadow-secondary: rgba(242, 185, 12, 0.2);
  --tvqyp-shadow-accent: rgba(15, 67, 143, 0.15);

  /* Border Colors */
  --tvqyp-border-light: #e1e5e9;
  --tvqyp-border-medium: #e9ecef;
  --tvqyp-border-dark: #dee2e6;
  --tvqyp-border-primary: #ca3031;
  --tvqyp-border-secondary: #f2b90c;
  --tvqyp-border-accent: #0f438f;

  /* Text Colors */
  --tvqyp-text-primary: #231f20;
  --tvqyp-text-secondary: #495057;
  --tvqyp-text-muted: #6c757d;
  --tvqyp-text-light: #adb5bd;
  --tvqyp-text-white: #ffffff;
  --tvqyp-text-brand: #ca3031;

  /* Form Colors */
  --tvqyp-input-bg: #f8f9fa;
  --tvqyp-input-border: #e9ecef;
  --tvqyp-input-focus-border: #ca3031;
  --tvqyp-input-focus-shadow: rgba(202, 48, 49, 0.1);
  --tvqyp-input-placeholder: #adb5bd;

  /* Button Colors */
  --tvqyp-btn-primary-bg: #ca3031;
  --tvqyp-btn-primary-hover: #b02a2b;
  --tvqyp-btn-secondary-bg: #f2b90c;
  --tvqyp-btn-secondary-hover: #d4a70b;
  --tvqyp-btn-accent-bg: #0f438f;
  --tvqyp-btn-accent-hover: #0d3a7a;
  --tvqyp-btn-text: #ffffff;

  /* Card Colors */
  --tvqyp-card-bg: #ffffff;
  --tvqyp-card-border: #e1e5e9;
  --tvqyp-card-header-bg: #f8f9fa;
  --tvqyp-card-header-border: #e9ecef;
  --tvqyp-card-primary: #fdf2f2;
  --tvqyp-card-secondary: #fefbf0;
  --tvqyp-card-accent: #f5f9fc;

  /* Player Info Card Colors */
  --tvqyp-player-info-bg: #ca3031;
  --tvqyp-player-info-text: #ffffff;
  --tvqyp-player-badge-bg: rgba(255, 255, 255, 0.15);
  --tvqyp-player-badge-border: rgba(255, 255, 255, 0.2);
  --tvqyp-player-value-bg: rgba(255, 255, 255, 0.1);
  --tvqyp-player-note-bg: rgba(255, 255, 255, 0.08);
  --tvqyp-player-note-border: rgba(255, 255, 255, 0.15);
}

/* Account page card layout styles */
.tvqyp-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.tvqyp-package-card {
  background: var(--tvqyp-card-bg);
  border: 1px solid var(--tvqyp-card-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--tvqyp-shadow-light);
  overflow: hidden;
  transition: all 0.3s ease;
}

.tvqyp-package-card:hover {
  box-shadow: 0 4px 16px var(--tvqyp-shadow-medium);
  transform: translateY(-2px);
}

.tvqyp-package-card.tvqyp-unassigned {
  border-left: 4px solid var(--tvqyp-unassigned-border);
  background: var(--tvqyp-unassigned-bg);
}

/* Package title */
.tvqyp-package-title {
  padding: 12px 24px 16px;
  border-bottom: 1px solid var(--tvqyp-border-light);
}

.tvqyp-package-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--tvqyp-heading-color);
  line-height: 1.4;
}

/* Card header */
.tvqyp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  background: var(--tvqyp-card-header-bg);
  border-bottom: 1px solid var(--tvqyp-card-header-border);
}

.tvqyp-order-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tvqyp-order-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--tvqyp-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tvqyp-order-link:hover {
  color: var(--tvqyp-primary-hover);
  text-decoration: underline;
}

.tvqyp-order-date {
  font-size: 14px;
  color: var(--tvqyp-text-muted);
  font-weight: 500;
}

.tvqyp-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tvqyp-status-completed {
  background: var(--tvqyp-success);
  color: var(--tvqyp-success-text);
}

.tvqyp-status-processing {
  background: var(--tvqyp-warning);
  color: var(--tvqyp-warning-text);
}

.tvqyp-status-on-hold {
  background: var(--tvqyp-danger);
  color: var(--tvqyp-danger-text);
}

.tvqyp-status-cancelled {
  background: var(--tvqyp-danger);
  color: var(--tvqyp-danger-text);
}

.tvqyp-status-refunded {
  background: var(--tvqyp-info);
  color: var(--tvqyp-info-text);
}

.tvqyp-status-failed {
  background: var(--tvqyp-danger);
  color: var(--tvqyp-danger-text);
}

/* Card body */
.tvqyp-card-body {
  padding: 24px;
}

/* Info grid */
.tvqyp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tvqyp-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tvqyp-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--tvqyp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tvqyp-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--tvqyp-text-primary);
}

/* Schedule section */
.tvqyp-schedule-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.tvqyp-schedule-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--tvqyp-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tvqyp-schedule-title::before {
  content: "";
  font-size: 18px;
}

.tvqyp-schedule-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tvqyp-text-secondary);
}

.tvqyp-schedule-content br {
  margin-bottom: 8px;
}

/* Product Page Schedule Display */
#tvq_schedule {
  background: var(--tvqyp-gray-50);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
  padding: 16px;
  margin: 0;
  box-shadow: none;
  transition: all 0.2s ease;
}

#tvq_schedule:hover {
  box-shadow: 0 2px 8px var(--tvqyp-shadow-light);
  transform: none;
}

#tvq_schedule .tvqyp-schedule-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tvqyp-border-medium);
}

#tvq_schedule .tvqyp-schedule-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

#tvq_schedule .tvqyp-schedule-header h4::before {
  content: "";
  font-size: 20px;
}

#tvq_schedule .tvqyp-schedule-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#tvq_schedule .tvqyp-schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--tvqyp-gray-50);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

#tvq_schedule .tvqyp-schedule-item:hover {
  background: var(--tvqyp-white);
  border-color: var(--tvqyp-border-medium);
  box-shadow: 0 2px 8px var(--tvqyp-shadow-light);
}

#tvq_schedule .tvqyp-schedule-day {
  min-width: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#tvq_schedule .tvqyp-schedule-time {
  flex: 1;
  font-size: 14px;
  color: var(--tvqyp-text-secondary);
  font-weight: 500;
  position: relative;
}

#tvq_schedule .tvqyp-schedule-time::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--tvqyp-border-medium) 0,
    var(--tvqyp-border-medium) 2px,
    transparent 2px,
    transparent 4px
  );
}

/* Empty state */
#tvq_schedule .tvqyp-schedule-empty {
  text-align: center;
  padding: 24px 20px;
  color: var(--tvqyp-text-muted);
  font-style: italic;
  background: var(--tvqyp-gray-50);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
  margin: 16px 0;
}

/* Pricing section */
.tvqyp-pricing-section {
  background: var(--tvqyp-gray-100);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--tvqyp-border-medium);
}

.tvqyp-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tvqyp-price-item:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--tvqyp-border-medium);
}

.tvqyp-price-item.tvqyp-total-price .tvqyp-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--tvqyp-primary);
}

.tvqyp-price {
  font-weight: 600;
  color: var(--tvqyp-primary);
}

/* Responsive design */
@media (max-width: 768px) {
  .tvqyp-packages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
  }

  .tvqyp-card-header {
    padding: 16px 20px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tvqyp-card-body {
    padding: 20px;
  }

  .tvqyp-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tvqyp-schedule-section,
  .tvqyp-pricing-section {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .tvqyp-package-card {
    border-radius: 8px;
  }

  .tvqyp-card-header {
    padding: 12px 16px 8px;
  }

  .tvqyp-card-body {
    padding: 16px;
  }

  .tvqyp-order-link {
    font-size: 16px;
  }

  .tvqyp-value {
    font-size: 14px;
  }
}

/* Child Management Form Styles */
.tvqyp-child-manage {
  margin: 24px 0;
  display: grid;
}

/* Player Info Card */
.tvqyp-player-info-card {
  background: var(--tvqyp-player-info-bg);
  border-radius: 12px;
  padding: 24px;
  color: var(--tvqyp-player-info-text);
  box-shadow: 0 4px 16px var(--tvqyp-shadow-primary);
}

.tvqyp-player-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tvqyp-player-info-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--tvqyp-player-info-text);
}

.tvqyp-player-id-badge {
  background: var(--tvqyp-player-badge-bg);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--tvqyp-player-badge-border);
}

.tvqyp-player-info-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tvqyp-info-row {
  display: flex;
  align-items: center;
  gap: 16px; /* Increased from 12px for better label-value separation */
  margin-bottom: 16px; /* Added bottom margin for row separation */
}

.tvqyp-info-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--tvqyp-white, #ffffff) !important; /* Ensure white text */
  opacity: 0.9;
  min-width: 80px;
}

.tvqyp-info-value {
  background: rgba(
    255,
    255,
    255,
    0.15
  ) !important; /* Semi-transparent white background */
  background: var(
    --tvqyp-player-badge-bg
  ) !important; /* Ensure semi-transparent background */
  padding: 8px 16px; /* Increased from 6px 12px for better internal spacing */
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--tvqyp-white, #ffffff) !important; /* Ensure white text */
  border: 1px solid var(--tvqyp-player-badge-border, rgba(255, 255, 255, 0.2)) !important; /* Ensure semi-transparent border */
}

.tvqyp-info-value.tvqyp-no-data {
  color: rgba(
    255,
    255,
    255,
    0.7
  ) !important; /* Semi-transparent white for "not set" */
  font-style: italic;
  opacity: 0.8;
  background: rgba(
    255,
    255,
    255,
    0.08
  ) !important; /* Very light semi-transparent background */
  background: var(
    --tvqyp-player-note-bg
  ) !important; /* Ensure very light background */
  border-color: var(
    --tvqyp-player-note-border,
    rgba(255, 255, 255, 0.15)
  ) !important; /* Ensure semi-transparent border */
}

.tvqyp-info-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tvqyp-white, #ffffff) !important; /* Ensure white text */
  opacity: 0.9;
  margin-top: 24px; /* Increased from 8px for better separation from fields */
  padding: 16px; /* Increased from 12px for better internal spacing */
  background: rgba(
    255,
    255,
    255,
    0.08
  ) !important; /* Very light semi-transparent background */
  background: var(
    --tvqyp-player-note-bg
  ) !important; /* Ensure very light background */
  border-radius: 8px;
  border: 1px solid var(--tvqyp-player-note-border, rgba(255, 255, 255, 0.15)) !important; /* Ensure semi-transparent border */
}

.tvqyp-note-icon {
  font-size: 16px;
}

/* Form Cards */
.tvqyp-form-card {
  background: var(--tvqyp-card-bg);
  border-bottom: 1px solid var(--tvqyp-card-border);
  padding: 24px;
  transition: all 0.3s ease;
}

.tvqyp-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--tvqyp-card-header-bg);
}

.tvqyp-form-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--tvqyp-text-secondary);
}

.tvqyp-form-icon {
  font-size: 20px;
}

/* Player ID Information Styles */
.tvqyp-player-id-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tvqyp-id-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--tvqyp-gray-50);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
}

.tvqyp-id-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tvqyp-text-secondary);
  min-width: 120px;
}

.tvqyp-id-value-display {
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--tvqyp-text-primary);
  background: var(--tvqyp-white);
  padding: 8px 16px;
  border-radius: 6px;
  border: 2px solid var(--tvqyp-border-medium);
  letter-spacing: 1px;
}

.tvqyp-id-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--tvqyp-text-tertiary);
  line-height: 1.4;
  padding: 12px;
  background: var(--tvqyp-player-note-bg);
  border-radius: 6px;
  border: 1px solid var(--tvqyp-player-note-border);
}

/* Player Profile Styles */
.tvqyp-player-profile {
  background: var(--tvqyp-white);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--tvqyp-shadow-light);
}

.tvqyp-profile-info {
  background: var(
    --tvqyp-primary,
    #ca3031
  ) !important; /* Ensure brand red background */
  color: var(--tvqyp-white, #ffffff) !important; /* Ensure white text */
  padding: 32px; /* Increased from 24px for better breathing room */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(202, 48, 49, 0.2);
  /* margin: 24px 0; */
}

.tvqyp-profile-info h3 {
  margin: 0 0 28px 0; /* Increased from 20px for better separation */
  font-size: 20px;
  font-weight: 600;
  color: var(--tvqyp-white, #ffffff) !important; /* Ensure white text */
  padding-bottom: 16px; /* Increased from 12px for better border spacing */
  border-bottom: 2px solid var(--tvqyp-white, #ffffff) !important; /* Ensure white border */
}

/* Form Elements */
.tvqyp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tvqyp-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tvqyp-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tvqyp-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tvqyp-required {
  color: #dc3545;
  font-weight: 700;
}

.tvqyp-form-input {
  padding: 12px 16px;
  border: 2px solid var(--tvqyp-input-border);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--tvqyp-input-bg);
}

.tvqyp-form-input:focus {
  outline: none;
  border-color: var(--tvqyp-input-focus-border);
  background: var(--tvqyp-white);
  box-shadow: 0 0 0 3px var(--tvqyp-input-focus-shadow);
}

.tvqyp-form-input::placeholder {
  color: var(--tvqyp-input-placeholder);
}

.tvqyp-form-help {
  font-size: 12px;
  color: var(--tvqyp-text-muted);
  margin-top: 4px;
}

/* Checkbox Styling */
.tvqyp-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tvqyp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tvqyp-text-secondary);
}

.tvqyp-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--tvqyp-primary);
}

.tvqyp-checkbox-text {
  flex: 1;
  margin-top: 1px;
}

/* Form Actions */
.tvqyp-form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.tvqyp-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.tvqyp-btn-primary {
  background: var(--tvqyp-btn-primary-bg);
  color: var(--tvqyp-btn-text);
}

.tvqyp-btn-primary:hover {
  background: var(--tvqyp-btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--tvqyp-shadow-primary-hover);
}

.tvqyp-btn-secondary {
  background: var(--tvqyp-btn-secondary-bg);
  color: var(--tvqyp-btn-text);
}

.tvqyp-btn-secondary:hover {
  background: var(--tvqyp-btn-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--tvqyp-shadow-secondary);
}

/* Player Header Styles */
.tvqyp-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--tvqyp-white);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 12px 12px 0 0;
  padding: 24px;
  margin-bottom: 0;
  border-bottom: none;
}

.tvqyp-player-name {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--tvqyp-text-primary);
  line-height: 1.2;
}

.tvqyp-player-id {
  font-size: 16px;
  font-weight: 600;
  color: var(--tvqyp-text-secondary);
  background: var(--tvqyp-gray-100);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--tvqyp-border-light);
}

.tvqyp-id-label {
  font-weight: 600;
  color: var(--tvqyp-text-secondary);
}

.tvqyp-id-value {
  font-family: monospace;
  font-weight: 700;
  color: var(--tvqyp-text-primary);
  background: var(--tvqyp-white);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--tvqyp-border-medium);
}

.tvqyp-copy-btn {
  background: #ca3031 !important; /* Brand red color with fallback */
  background: var(--tvqyp-primary) !important; /* Ensure brand red color */
  color: var(--tvqyp-white, #ffffff) !important; /* Ensure white text */
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tvqyp-copy-btn:hover {
  background: #b02a2b !important; /* Brand red hover color with fallback */
  background: var(
    --tvqyp-primary-hover
  ) !important; /* Ensure brand red hover color */
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--tvqyp-shadow-primary);
}

.tvqyp-copy-btn.tvqyp-copy-success {
  background: var(--tvqyp-success);
  animation: tvqypCopySuccess 0.3s ease;
}

@keyframes tvqypCopySuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Tabbed Interface Styles */
.tvqyp-tabs {
  background: var(--tvqyp-white);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  margin-top: 0;
}

.tvqyp-tab-nav {
  display: flex;
  background: var(--tvqyp-card-header-bg);
  border-bottom: 1px solid var(--tvqyp-card-header-border);
}

.tvqyp-tab-btn {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--tvqyp-text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tvqyp-tab-btn:hover {
  background: var(--tvqyp-gray-100);
  color: var(--tvqyp-text-primary);
}

.tvqyp-tab-btn.tvqyp-tab-active {
  background: var(--tvqyp-white);
  color: var(--tvqyp-primary);
  border-bottom-color: var(--tvqyp-primary);
}

.tvqyp-tab-content {
  position: relative;
}

.tvqyp-tab-pane {
  display: none;
  padding: 24px;
  animation: tvqypFadeIn 0.3s ease;
}

.tvqyp-tab-pane.tvqyp-tab-active {
  display: block;
}

@keyframes tvqypFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Packages Section Styles */
.tvqyp-packages-section {
  background: var(--tvqyp-white);
}

.tvqyp-packages-section h3,
.tvqyp-sessions-section h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tvqyp-border-light);
}

.tvq-sessions-empty h3 {
  border-bottom: none;
  padding-bottom: 0;
}
.tvqyp-packages-content {
  margin-top: 16px;
}

/* Responsive Tab Design */
@media (max-width: 768px) {
  .tvqyp-player-header {
    padding: 20px;
  }

  .tvqyp-player-name {
    font-size: 24px;
  }

  .tvqyp-player-id {
    font-size: 14px;
    padding: 6px 12px;
    gap: 8px;
  }

  .tvqyp-copy-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .tvqyp-tab-nav {
    flex-direction: column;
  }

  .tvqyp-tab-btn {
    padding: 12px 20px;
    border-bottom: 1px solid var(--tvqyp-border-light);
    border-right: none;
  }

  .tvqyp-tab-btn.tvqyp-tab-active {
    border-bottom-color: var(--tvqyp-primary);
    border-right: 3px solid var(--tvqyp-primary);
  }

  .tvqyp-tab-pane {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .tvqyp-player-header {
    padding: 16px;
  }

  .tvqyp-player-name {
    font-size: 20px;
  }

  .tvqyp-player-id {
    font-size: 13px;
    padding: 5px 10px;
    gap: 6px;
  }

  .tvqyp-copy-btn {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .tvqyp-id-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tvqyp-id-label {
    min-width: auto;
  }

  .tvqyp-id-value-display {
    font-size: 16px;
    padding: 6px 12px;
  }

  .tvqyp-tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .tvqyp-tab-pane {
    padding: 16px;
  }
}

/* Adult Package Day Selection */
.tvqyp-day-selection {
  background: var(--tvqyp-gray-50);
  border: 1px solid var(--tvqyp-border-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.tvqyp-day-selection label {
  font-weight: 600;
  color: var(--tvqyp-text-primary);
  margin-bottom: 8px;
  display: block;
}

.tvqyp-checkbox-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.tvqyp-checkbox-group input[type="checkbox"] {
  margin: 0;
  accent-color: var(--tvqyp-primary);
}

.tvqyp-checkbox-group label {
  font-weight: 500;
  color: var(--tvqyp-text-secondary);
  margin: 0;
  cursor: pointer;
  font-size: 14px;
}

.tvqyp-checkbox-group input[type="checkbox"]:disabled + label {
  color: var(--tvqyp-text-muted);
  cursor: not-allowed;
}

/* Adult Package Date Fields */
.tvqyp-ui input[readonly] {
  background-color: var(--tvqyp-gray-50);
  color: var(--tvqyp-text-secondary);
  cursor: not-allowed;
  border-color: var(--tvqyp-border-light);
}

.tvqyp-ui input[readonly]:focus {
  outline: none;
  border-color: var(--tvqyp-border-light);
  box-shadow: none;
}

/* Exception: Start date fields should have text cursor even when readonly (they open date pickers) */
.tvqyp-ui input[readonly]#tvq_start_date,
.tvqyp-ui input[readonly]#asa_starting_date {
  cursor: text !important;
}

/* WooCommerce Blocks Cart: Reorder After School product details */
/* Blocks renders variations and item_data in separate <ul> elements */
/* We need to display them in the correct order using flexbox */
.wc-block-components-product-metadata {
  display: flex !important;
  flex-direction: column !important;
}

/* Move the second <ul> (variation attributes) before the first <ul> (custom data) */
.wc-block-components-product-metadata
  .wc-block-components-product-details:nth-child(2) {
  order: -1 !important;
}

/* Ensure both lists have consistent styling */
.wc-block-components-product-metadata .wc-block-components-product-details {
  margin: 0 !important;
  padding: 0 !important;
}

/* Adult Package Start Date Field - Always Enabled Appearance */
.tvqyp-ui input.adult-package {
  background-color: var(--tvqyp-white) !important;
  color: var(--tvqyp-text-primary) !important;
  cursor: text !important;
  border-color: var(--tvqyp-border) !important;
  opacity: 1 !important;
}

/* Override any disabled styling for adult packages */
.tvqyp-ui input[disabled].adult-package,
.tvqyp-ui input.disabled.adult-package {
  background-color: var(--tvqyp-white) !important;
  color: var(--tvqyp-text-primary) !important;
  cursor: text !important;
  border-color: var(--tvqyp-border) !important;
  opacity: 1 !important;
}

/* Enabled Start Date Field - Adult Packages Only */
.tvqyp-ui input:not([disabled]):not([readonly]).adult-package {
  background-color: var(--tvqyp-white);
  color: var(--tvqyp-text-primary);
  cursor: text;
  border-color: var(--tvqyp-border);
  opacity: 1;
}

/* Youth Package Start Date Field - Override disabled styling */
.tvqyp-ui input[disabled]:not(.adult-package) {
  background-color: var(--tvqyp-white) !important;
  color: var(--tvqyp-text-primary) !important;
  cursor: text !important;
  border-color: var(--tvqyp-border) !important;
  opacity: 1 !important;
}

.tvqyp-ui input.disabled:not(.adult-package) {
  background-color: var(--tvqyp-white) !important;
  color: var(--tvqyp-text-primary) !important;
  cursor: text !important;
  border-color: var(--tvqyp-border) !important;
  opacity: 1 !important;
}

/* More specific override for youth package start date */
#tvq_start_date:not(.adult-package) {
  background-color: var(--tvqyp-white) !important;
  color: var(--tvqyp-text-primary) !important;
  cursor: text !important;
  border-color: var(--tvqyp-border) !important;
  opacity: 1 !important;
}

#tvq_start_date:not(.adult-package)[disabled] {
  background-color: var(--tvqyp-white) !important;
  color: var(--tvqyp-text-primary) !important;
  cursor: text !important;
  border-color: var(--tvqyp-border) !important;
  opacity: 1 !important;
}

#tvq_start_date:not(.adult-package).disabled {
  background-color: var(--tvqyp-white) !important;
  color: var(--tvqyp-text-primary) !important;
  cursor: text !important;
  border-color: var(--tvqyp-border) !important;
  opacity: 1 !important;
}

/* Responsive Form Design */
@media (max-width: 768px) {
  .tvqyp-child-manage {
    gap: 16px;
    margin: 16px 0;
  }

  .tvqyp-player-info-card,
  .tvqyp-form-card {
    padding: 20px;
  }

  .tvqyp-player-info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tvqyp-player-id-badge {
    align-self: flex-start;
  }

  .tvqyp-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tvqyp-info-label {
    min-width: auto;
  }

  .tvqyp-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tvqyp-form-actions {
    flex-direction: column;
  }

  .tvqyp-btn {
    width: 100%;
  }

  /* Product page responsive */
  .tvqyp-schedule-selection-container {
    padding: 16px;
  }

  .tvqyp-schedule-selection-container .tvqyp-schedule-selection-content {
    gap: 16px;
  }

  #tvq_schedule {
    padding: 12px;
  }

  #tvq_schedule .tvqyp-schedule-list {
    gap: 8px;
  }

  #tvq_schedule .tvqyp-schedule-item {
    padding: 10px 12px;
    gap: 12px;
  }

  #tvq_schedule .tvqyp-schedule-day {
    min-width: 80px;
    font-size: 13px;
  }

  #tvq_schedule .tvqyp-schedule-time {
    font-size: 13px;
  }

  .tvqyp-summary {
    padding: 16px;
  }

  .tvqyp-summary .tvqyp-summary-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tvqyp-summary .tvqyp-summary-item {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .tvqyp-player-info-card,
  .tvqyp-form-card {
    padding: 16px;
  }

  .tvqyp-player-info-header h3 {
    font-size: 18px;
  }

  .tvqyp-form-header h4 {
    font-size: 16px;
  }

  .tvqyp-form-input {
    padding: 10px 14px;
    font-size: 14px;
  }

  .tvqyp-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .tvqyp-profile-info {
    padding: 20px;
  }

  .tvqyp-profile-info h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .tvqyp-profile-info {
    padding: 16px;
  }

  .tvqyp-profile-info h3 {
    font-size: 16px;
  }
}

/* ===== CHECKOUT DISABLED FIELD STYLING ===== */
.tvqyp-disabled-field {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

.tvqyp-disabled-field:focus {
  box-shadow: none !important;
  border-color: #dee2e6 !important;
}

/* Add a visual indicator that the field is disabled */
.tvqyp-disabled-field::after {
  content: " (Account Email)";
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
}

/* ===== SESSION DATES TABLE FORMAT ===== */

/* Force the table container to display on its own line, not inline with label */
.woocommerce-cart-form__cart-item
  .wc-item-meta-li:has(.tvqyp-session-dates-table-container),
.woocommerce-checkout
  .wc-item-meta-li:has(.tvqyp-session-dates-table-container),
.order_details .wc-item-meta-li:has(.tvqyp-session-dates-table-container) {
  display: block !important;
  width: 100% !important;
}

/* Ensure the label displays on its own line */
.woocommerce-cart-form__cart-item
  .wc-item-meta-li:has(.tvqyp-session-dates-table-container)
  .wc-item-meta-label,
.woocommerce-checkout
  .wc-item-meta-li:has(.tvqyp-session-dates-table-container)
  .wc-item-meta-label,
.order_details
  .wc-item-meta-li:has(.tvqyp-session-dates-table-container)
  .wc-item-meta-label {
  display: block !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

/* Ensure the value (table) displays on its own line and takes full width */
.woocommerce-cart-form__cart-item
  .wc-item-meta-li:has(.tvqyp-session-dates-table-container)
  .wc-item-meta-value,
.woocommerce-checkout
  .wc-item-meta-li:has(.tvqyp-session-dates-table-container)
  .wc-item-meta-value,
.order_details
  .wc-item-meta-li:has(.tvqyp-session-dates-table-container)
  .wc-item-meta-value {
  display: block !important;
  width: 100% !important;
  margin-left: 0 !important;
}

/* Fallback for older browsers and additional selectors */
.woocommerce-cart-form__cart-item
  .wc-item-meta
  .tvqyp-session-dates-table-container,
.woocommerce-checkout .wc-item-meta .tvqyp-session-dates-table-container,
.order_details .wc-item-meta .tvqyp-session-dates-table-container,
.cart-item .wc-item-meta .tvqyp-session-dates-table-container,
.checkout-item .wc-item-meta .tvqyp-session-dates-table-container {
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

/* General fallback - ensure any dl/dt/dd containing the table displays properly */
dl:has(.tvqyp-session-dates-table-container),
dt:has(.tvqyp-session-dates-table-container),
dd:has(.tvqyp-session-dates-table-container) {
  display: block !important;
  width: 100% !important;
}

/* Direct parent of table should be full width */
.tvqyp-session-dates-table-container + *,
* + .tvqyp-session-dates-table-container {
  clear: both;
}

.tvqyp-session-dates-table-container {
  display: block;
  width: 100%;
  clear: both;
  box-sizing: border-box;
  margin: 8px 0;
  overflow-x: auto;
}

.tvqyp-session-dates-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
}

.tvqyp-session-dates-table thead {
  border-bottom: 1px solid #ddd;
}

.tvqyp-session-dates-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.tvqyp-table-month {
  width: 35%;
}

.tvqyp-table-dates {
  width: 65%;
}

.tvqyp-session-dates-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.tvqyp-session-dates-table td {
  padding: 8px 10px;
  vertical-align: top;
}

.tvqyp-table-month-cell {
  font-size: 14px;
  font-weight: 500;
}

.tvqyp-table-dates-cell {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tvqyp-session-dates-table tbody tr:last-child {
  border-bottom: none;
}

/* Responsive design for table format */
@media (max-width: 768px) {
  /* Ensure table stays on its own line on mobile */
  .woocommerce-cart-form__cart-item
    .wc-item-meta
    .tvqyp-session-dates-table-container,
  .woocommerce-checkout .wc-item-meta .tvqyp-session-dates-table-container,
  .order_details .wc-item-meta .tvqyp-session-dates-table-container {
    margin: 8px 0 !important;
    width: 100% !important;
  }

  .tvqyp-session-dates-table th {
    padding: 6px 8px;
    font-size: 13px;
  }

  .tvqyp-session-dates-table td {
    padding: 6px 8px;
  }

  .tvqyp-table-month-cell {
    font-size: 13px;
  }

  .tvqyp-table-dates-cell {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .tvqyp-session-dates-table th {
    padding: 5px 6px;
    font-size: 12px;
  }

  .tvqyp-session-dates-table td {
    padding: 5px 6px;
  }

  .tvqyp-table-month-cell {
    font-size: 12px;
  }

  .tvqyp-table-dates-cell {
    font-size: 12px;
  }

  .tvqyp-table-month {
    width: 40%;
  }

  .tvqyp-table-dates {
    width: 60%;
  }
}

/* ========================================
   Checkout - Date of Birth Field Styling
   ======================================== */

/* Date input styling for player DOB */
#player_dob_field input[type="date"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

#player_dob_field input[type="date"]:hover {
  border-color: #999;
}

#player_dob_field input[type="date"]:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
}

/* Style the calendar icon */
#player_dob_field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 5px;
  background-color: transparent;
  color: #007cba;
}

/* Firefox date input */
#player_dob_field input[type="date"]::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* ========================================
   Checkout - Radio Button Field Styling
   ======================================== */

/* CSS Variable for Google Grey */
:root {
  --google-grey: #f8f9fa;
}

/* Display radio buttons horizontally (inline) */
#player_born_in_qatar_field .woocommerce-input-wrapper,
.woocommerce-checkout #player_born_in_qatar_field .woocommerce-input-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

/* Make radio buttons and labels display inline */
#player_born_in_qatar_field input[type="radio"],
.woocommerce-checkout #player_born_in_qatar_field input[type="radio"] {
  display: inline-block;
  margin-right: 5px;
  position: relative;
  width: 24px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Custom radio button styling - unchecked state */
#player_born_in_qatar_field input[type="radio"]::before,
.woocommerce-checkout #player_born_in_qatar_field input[type="radio"]::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--google-grey);
  border: 1px solid;
  border-radius: 50px;
  top: 0;
  left: 0;
}

/* Custom radio button styling - checked state */
#player_born_in_qatar_field input[type="radio"]:checked::before,
.woocommerce-checkout
  #player_born_in_qatar_field
  input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--google-grey);
  border: 1px solid;
  border-radius: 50px;
  top: 0;
  left: 0;
}

#player_born_in_qatar_field input[type="radio"]:checked::after,
.woocommerce-checkout
  #player_born_in_qatar_field
  input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: black;
}

#player_born_in_qatar_field label.radio,
.woocommerce-checkout #player_born_in_qatar_field label.radio {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  cursor: pointer;
}

/* Hide required asterisk from individual radio option labels */
/* The main field label already has the asterisk, so we don't need it on each option */
#player_born_in_qatar_field label.radio .required,
.woocommerce-checkout #player_born_in_qatar_field label.radio .required {
  display: none !important;
}

/* Ensure the main field label still shows the asterisk */
#player_born_in_qatar_field > label .required,
.woocommerce-checkout #player_born_in_qatar_field > label .required {
  display: inline !important;
}
