import { css } from '//resources/lit/v3_0/lit.rollup.js';
import 'chrome://resources/cr_elements/cr_shared_vars.css.js';
let instance = null;
export function getCss() {
    return instance || (instance = [...[], css `
:host {
  --chip-disabled-background-color: var(--google-grey-100);
  --filter-border-color: var(--google-grey-300);
}

@media (prefers-color-scheme: dark) {
  :host {
    --chip-disabled-background-color: var(--google-grey-900);
    --filter-border-color: var(--google-grey-700);
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--filter-border-color);
  border-radius: 24px;
  padding: 4px 12px;
  gap: 4px;
}

.chip {
  align-items: center;
  color: var(--cr-primary-text-color);
  background-color: var(--cr-fallback-color-tonal-container);
  border-radius: 8px;
  border: none;
  box-sizing: border-box;
  display: flex;
  height: 28px;
  overflow: hidden;
  position: relative;
  padding-left: 10px;
  padding-right: 32px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.chip[disabled] {
  opacity: var(--cr-disabled-opacity);
  background-color: var(--chip-disabled-background-color);
  color: var(--cr-secondary-text-color);
  border: 1px solid var(--cr-fallback-color-on-primary-container);
}

.chip:focus-visible {
  outline: solid 2px var(--cr-focus-outline-color);
  outline-offset: 2px;
}

.chip .hover-layer {
  display: none;
}

.chip:hover .hover-layer {
  background: var(--cr-hover-on-subtle-background-color);
  display: block;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.chip cr-ripple {
  color: var(--cr-active-neutral-on-subtle-background-color);
}

.chip-wrapper cr-icon-button {
  position: absolute;
  right: 6px;
  margin: 0;
  padding: 2px;
  --cr-icon-button-icon-size: 16px;
  --cr-icon-button-size: 20px;
  --cr-icon-button-stroke-color: currentColor;
  --cr-icon-button-fill-color: currentColor;
}

.chip-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#add-filter-button {
  font-family: inherit;
  font-size: inherit;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--filter-border-color);
  cursor: pointer;
  margin: 0;
  display: inline-flex;
  align-items: center;
  background-color: var(--cr-card-background-color);
  border-color: var(--filter-border-color);
  color: var(--cr-secondary-text-color);
  height: 32px;
  box-sizing: border-box;
}

#add-filter-button:hover {
  background-color: var(--cr-hover-background-color);
}

.filter-icon {
  fill: var(--cr-secondary-text-color);
  flex-shrink: 0;
}

#clear-filters-button {
  background: none;
  border: none;
  color: var(--cr-secondary-text-color);
  cursor: pointer;
  margin-inline-start: auto;
  padding: 0;
  font-weight: bold;
  font-size: 1.5em;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#clear-filters-button:hover {
  /* Use hover state color */
  background-color: var(--cr-hover-background-color);
}`]);
}
