.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.cookie-consent-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent-modal {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.cookie-consent-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.cookie-consent-header h2 {
  margin-bottom: var(--spacing-sm);
}

.cookie-consent-content {
  margin-bottom: var(--spacing-xl);
}

.cookie-category {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.cookie-category-header {
  margin-bottom: var(--spacing-sm);
}

.cookie-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  user-select: none;
}

.cookie-label input[type="checkbox"] {
  display: none;
}

.cookie-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cookie-label input[type="checkbox"]:checked + .cookie-checkbox {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
}

.cookie-label input[type="checkbox"]:checked + .cookie-checkbox::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cookie-label input[type="checkbox"]:disabled + .cookie-checkbox {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: var(--font-size-lg);
}

.cookie-description {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}

.cookie-consent-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
}

.cookie-consent-actions > * {
  width: 100%;
}

.cookie-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cookie-btn-accept {
  background: var(--gradient-primary);
  color: white;
}

.cookie-btn-save {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cookie-btn-optout {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  text-align: center;
}

.cookie-btn:hover,
.cookie-btn-optout:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .cookie-consent-modal {
    padding: var(--spacing-xl);
  }
  
  .cookie-consent-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
