/* Quick Checkout Page Styles */

@media (max-width: 768px) {
  .quick-checkout-flex {
    flex-direction: column-reverse !important;
  }
  .event-info-card {
    margin-bottom: 1rem;
    position: static !important;
    top: auto !important;
  }
 
  /* Ensure table buttons display horizontally on mobile */
  .d-flex.flex-wrap.gap-3 {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  
  /* More specific rule for table buttons to ensure horizontal display */
  .table-selection-section .d-flex.flex-wrap.gap-3 {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    display: flex !important;
  }
  
  /* Target the table buttons specifically */
  .table-selection-section .table-toggle {
    display: inline-block !important;
    margin: 0.25rem !important;
  }
  
  /* Ensure the table buttons container is properly configured */
  .table-selection-section .d-flex.flex-wrap.gap-3.mb-3 {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  
  /* Force table buttons to display horizontally and prevent any vertical stacking */
  .table-selection-section .btn.table-toggle {
    display: inline-block !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
  }
  
  /* Override any conflicting CSS that might force vertical display */
  .table-selection-section .d-flex.flex-wrap.gap-3.mb-3,
  .table-selection-section .d-flex.flex-wrap.gap-3 {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    display: flex !important;
    flex: 1 1 auto !important;
  } 
}

/* Enhanced availability display styling */
.alert-info .bg-success,
.alert-info .bg-danger {
  transition: all 0.3s ease;
}

/* Global Timer Popup Styles */
.global-timer-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 300px;
  width: 100%;
  animation: slideInRight 0.3s ease-out;
}

.timer-content {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.timer-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 16px;
  pointer-events: none;
}

.timer-header {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timer-body {
  padding: 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timer-countdown-display {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

.timer-message {
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile optimization for timer popup */
@media (max-width: 768px) {
  .global-timer-popup {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    width: calc(100% - 20px);
  }
  
  .timer-content {
    border-radius: 8px;
  }
  
  .timer-countdown-display {
    font-size: 1.5rem;
  }
  
  .timer-header {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .timer-body {
    padding: 12px;
  }
}

/* Selected Tables Summary Responsive Styling */
#selectedTablesSummary {
  transition: all 0.3s ease-in-out;
}

.selected-table-row {
  transition: all 0.3s ease;
}

.selected-table-row:last-child {
  border-bottom: none !important;
}

.selected-table-row .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.selected-table-row .small {
  font-size: 0.875rem;
}

.selected-table-row .fas {
  font-size: 0.875rem;
}

/* Mobile optimizations for selected tables summary */
@media (max-width: 768px) {
  .selected-table-row {
    padding: 0.5rem 0 !important;
  }
}

@media (max-width: 576px) {
  .selected-table-row {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem;
    padding: 0.5rem 0 !important;
  }
  
  .selected-table-row .d-flex.align-items-center:last-child {
    align-self: flex-end;
  }
  
  /* Header badge positioning for very small screens */
  #selectedTablesSummary .d-flex.align-items-center {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  #totalSelectedSeatsBadge {
    margin-left: 0 !important;
    margin-top: 0.25rem;
  }
}

/* Seat Type Selection Styles */
.seat-type-btn {
  transition: all 0.3s ease;
  border: 2px solid transparent !important;
}

.seat-type-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.seat-type-btn[data-seat-type="adult"]:hover {
  border-color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.1);
}

.seat-type-btn[data-seat-type="child"]:hover {
  border-color: #198754 !important;
  background-color: rgba(25, 135, 84, 0.1);
}

/* Seat Type Indicators */
.seat-adult {
  background-color: #0d6efd !important;
  color: white !important;
  border-color: #0d6efd !important;
}

.seat-child {
  background-color: #198754 !important;
  color: white !important;
  border-color: #198754 !important;
}

.seat-adult::after {
  content: "👤";
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
}

.seat-child::after {
  content: "👶";
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
}
