:host(limebb-lime-query-order-by-editor) {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgb(var(--contrast-1000));
}

.order-by-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgb(var(--contrast-300));
  border-radius: 0.25rem;
  background-color: rgb(var(--contrast-50));
  min-height: 4rem;
}

.order-by-item {
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}
.order-by-item:hover {
  background-color: rgb(var(--contrast-100));
}

.actions {
  display: flex;
  width: 100%;
}

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgb(var(--contrast-300));
}
.summary .count {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--contrast-900));
}

limel-header.is-narrow {
  --header-top-right-left-border-radius: 0;
  width: calc(100% + var(--limebb-lime-query-builder-visual-mode-padding) * 2);
  margin-left: calc(var(--limebb-lime-query-builder-visual-mode-padding) * -1);
}

.empty-state {
  padding: 0 2rem;
  text-align: center;
  color: rgb(var(--contrast-700));
}