/* Cookie Consent Banner Styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: 1px solid #e5e7eb;
}

.cookie-consent-banner.hidden {
  display: none;
}

.cookie-consent-banner h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.cookie-consent-banner p {
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.cookie-consent-banner a {
  color: #059669;
  text-decoration: none;
}

.cookie-consent-banner a:hover {
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent-button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 120px;
}

.cookie-consent-button.accept-all {
  background: linear-gradient(135deg, #059669, #0d9488);
  color: white;
}

.cookie-consent-button.accept-all:hover {
  background: linear-gradient(135deg, #047857, #0f766e);
  transform: translateY(-1px);
}

.cookie-consent-button.reject {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.cookie-consent-button.reject:hover {
  background: #e5e7eb;
}

.cookie-consent-button.preferences {
  background: transparent;
  color: #059669;
  border: 1px solid #059669;
}

.cookie-consent-button.preferences:hover {
  background: #f0fdf4;
}

/* Cookie Icon */
.cookie-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.cookie-icon:hover {
  background: #047857;
  transform: scale(1.05);
}

.cookie-icon.hidden {
  display: none;
}

.cookie-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
}

.cookie-preferences-modal.hidden {
  display: none;
}

.cookie-preferences-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-preferences-content h2 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
}

.cookie-type {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

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

.cookie-type h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.cookie-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-toggle.active {
  background: #059669;
}

.cookie-toggle.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-toggle.active .cookie-toggle-slider {
  transform: translateX(24px);
}

.cookie-type p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.preferences-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
  
  .cookie-consent-buttons {
    flex-direction: column;
  }
  
  .cookie-preferences-content {
    padding: 24px;
    margin: 10px;
  }
  
  .preferences-buttons {
    flex-direction: column;
  }
}
