
/* Copyright 2026 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* #css_wrapper_metadata_start
 * #type=style-lit
 * #scheme=relative
 * #css_wrapper_metadata_end */

:host {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: space-between;
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:host([selected]) {
  font-weight: bold;
}

.sort-arrows {
  display: inline-flex;
  flex-direction: column;
  margin-inline-start: 5px;
  vertical-align: middle;
}

.sort-arrows button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  height: 12px;
  margin: 0;
  padding: 0;
  width: 12px;
  opacity: 0.3;
}

.sort-arrows button[active] {
  opacity: 1;
}

.sort-up-arrow {
  background-image: url(chrome://resources/images/icon_expand_less_old.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

.sort-down-arrow {
  background-image: url(chrome://resources/images/icon_expand_more_old.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

:host-context([webui-rounded-icons]) .sort-up-arrow {
  background-image: url(chrome://resources/images/icon_expand_less.svg);
}

:host-context([webui-rounded-icons]) .sort-down-arrow {
  background-image: url(chrome://resources/images/icon_expand_more.svg);
}

@media (pointer: coarse) {
  .sort-arrows button {
    height: 48px;
    width: 48px;
  }
}
