/**
 * Alternative Quotes Modal Styles
 */

#alternative-quotes-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.alternative-quotes-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.alternative-quotes-header {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alternative-quotes-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-quotes-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.close-quotes-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.alternative-quotes-body {
  padding: 30px;
}

.alternative-quotes-info {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #1e40af;
}

.quotes-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.quotes-table thead {
  background: #f3f4f6;
}

.quotes-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.quotes-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.quotes-table tbody tr {
  transition: background 0.2s;
}

.quotes-table tbody tr:hover {
  background: #f9fafb;
}

.quotes-table tbody tr.best-quote {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
}

.quotes-table tbody tr.best-quote:hover {
  background: #dcfce7;
}

.select-manufacturer-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-primary {
  background: #16a34a;
  color: white;
}

.btn-primary:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .alternative-quotes-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .alternative-quotes-header {
    border-radius: 0;
    padding: 15px 20px;
  }
  
  .alternative-quotes-body {
    padding: 20px 15px;
  }
  
  .quotes-table {
    font-size: 0.85rem;
  }
  
  .quotes-table th,
  .quotes-table td {
    padding: 10px 8px;
  }
  
  .select-manufacturer-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Loading state */
.quotes-loading {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.quotes-loading::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top-color: #dc2626;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.quotes-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.quotes-empty::before {
  content: '📋';
  display: block;
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}
