.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.cookie-banner-text h3 {
  color: var(--text-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cookie-banner-text p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text-heading);
  transform: translateY(-2px);
}

.cookie-link {
  color: var(--primary);
  font-size: 0.875rem;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: var(--primary-light);
}

.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cookie-preferences.show {
  display: flex;
}

.cookie-preferences-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-preferences-content h3 {
  color: var(--text-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cookie-preferences-content > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cookie-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cookie-category-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.cookie-category-header input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-category-header label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-heading);
  font-size: 1rem;
  cursor: pointer;
  flex: 1;
}

.cookie-category-header label:has(input:disabled) {
  cursor: not-allowed;
}

.required-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-category p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-preferences-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.cookie-preferences-actions .btn {
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .cookie-banner-text {
    text-align: center;
  }

  .cookie-banner-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-preferences {
    padding: 1rem;
  }

  .cookie-preferences-content {
    padding: 1.5rem;
    max-height: 90vh;
  }

  .cookie-category {
    padding: 1rem;
  }

  .cookie-preferences-actions {
    flex-direction: column;
  }

  .cookie-preferences-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-banner-content {
    padding: 1rem;
  }

  .cookie-banner-text h3 {
    font-size: 1rem;
  }

  .cookie-banner-text p {
    font-size: 0.8125rem;
  }

  .cookie-preferences-content {
    padding: 1rem;
  }

  .cookie-preferences-content h3 {
    font-size: 1.25rem;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cookie-category-header label {
    gap: 0.5rem;
  }
}