import { css } from '//resources/lit/v3_0/lit.rollup.js';
import 'chrome://resources/cr_elements/cr_shared_vars.css.js';
import { getCss as getMwbElementSharedStyleLit } from 'chrome://resources/cr_elements/mwb_element_shared_style_lit.css.js';
import 'chrome://resources/cr_elements/mwb_shared_vars.css.js';
let instance = null;
export function getCss() {
    return instance || (instance = [...[getMwbElementSharedStyleLit()], css `
:host(:focus) {
  outline: none;
}

#primaryText,
.domain-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-text {
  /* Elide hostname from the front to prevent URL spoofing. */
  direction: rtl;
  flex-shrink: 1;
  min-width: 0;
}

#primaryText {
  color: var(--cr-primary-text-color);
  font-size: var(--mwb-primary-text-font-size);
  font-weight: var(--mwb-primary-text-font-weight);
  margin-bottom: 3px;
}

#secondaryTextContainer {
  align-items: center;
  color: var(--cr-secondary-text-color);
  display: flex;
  font-size: var(--mwb-secondary-text-font-size);
  font-weight: var(--mwb-secondary-text-font-weight);
}

.text-container {
  flex-grow: 1;
  overflow: hidden;
  user-select: none;
}

.separator {
  margin-inline-end: 4px;
  margin-inline-start: 4px;
}

#iconContainer {
  align-items: center;
  background: var(--color-list-item-url-favicon-background);
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  margin-inline-end: 16px;
  width: 40px;
}

.split-favicons {
  display: flex;
  gap: 2px;
  height: 34px;
  width: 34px;
}

.split-favicon {
  background-color: var(--color-list-item-url-favicon-background);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  border-radius: 4px;
}

.split-favicons.side-by-side {
  flex-direction: row;
}

.split-favicons.side-by-side .split-favicon {
  height: 34px;
  width: 16px;
}

.split-favicons.stacked {
  flex-direction: column;
}

.split-favicons.stacked .split-favicon {
  height: 16px;
  width: 34px;
}

#timestamp {
  flex-shrink: 0;
}

#groupSvg {
  flex-shrink: 0;
  height: 8px;
  margin-inline-end: 6px;
  width: 8px;
}

#groupDot {
  fill: var(--group-dot-color);
}

:host(:is(.hovered, .selected)) .button-container {
  height: auto;
  overflow: visible;
  visibility: visible;
  width: auto;
}

.button-container {
  height: 0;
  margin-inline-start: 2px;
  overflow: hidden;
  width: 0;
}

.button-container cr-icon-button {
  --cr-icon-button-fill-color: var(--mwb-icon-button-fill-color);
}

cr-icon-button {
  --cr-icon-button-margin-end: 0;
  --cr-icon-button-margin-start: 0;
}

cr-tooltip {
  white-space: nowrap;
}

#primaryContainer {
  display: flex;
  align-items: center;
  gap: 3px;
}

.media-alert {
  -webkit-mask: center / contain no-repeat;
  flex-shrink: 0;
  height: var(--mwb-icon-size);
  margin-inline-end: 8px;
  margin-inline-start: 4px;
  width: var(--mwb-icon-size);
}

.media-alert.media-recording,
.media-alert.audio-recording,
.media-alert.video-recording {
  -webkit-mask-image: url(alert_indicators/tab_media_recording.svg);
  background-color: var(
      --media-recording-icon-color,
      var(--color-tab-search-media-recording-icon));
}

.media-alert.audio-playing {
  -webkit-mask-image: url(alert_indicators/tab_audio_rounded.svg);
  background-color: var(
      --audio-icon-color,
      var(--color-tab-search-media-icon));
}

.media-alert.audio-muting {
  -webkit-mask-image: url(alert_indicators/tab_audio_muting_rounded.svg);
  background-color: var(
      --audio-icon-color,
      var(--color-tab-search-media-icon));
}`]);
}
