/* Lightweight Cookie Banner Styles */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-banner-visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #374151;
}

.cookie-banner-text p:first-child {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.cookie-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.cookie-btn-secondary {
  background: white;
  border-color: #d1d5db;
  color: #374151;
}

.cookie-btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Cookie Configuration Panel */
.cookie-config {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.cookie-config-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.cookie-categories {
  margin-bottom: 1.5rem;
}

.cookie-category {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category-header {
  margin-bottom: 0.5rem;
}

.cookie-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 0.5rem;
}

.cookie-checkbox input[type="checkbox"] {
  display: none;
}

.cookie-checkbox input[type="checkbox"]:disabled + .checkmark {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cookie-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #2563eb;
  border-color: #2563eb;
}

.cookie-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cookie-category-description {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
  margin-left: 1.625rem;
}

.cookie-config-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  
  .cookie-banner-text {
    text-align: center;
  }
  
  .cookie-banner-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
  
  .cookie-config {
    padding: 1rem;
  }
  
  .cookie-config-actions {
    justify-content: stretch;
  }
  
  .cookie-config-actions .cookie-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .cookie-banner-text p {
    font-size: 0.8125rem;
  }
  
  .cookie-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  .cookie-category-description {
    font-size: 0.75rem;
    margin-left: 1.5rem;
  }
}

/* Print styles */
@media print {
  .cookie-banner {
    display: none !important;
  }
}
