import { css } from '//resources/lit/v3_0/lit.rollup.js';
import { getCss as getCrHiddenStyleLit } from '//resources/cr_elements/cr_hidden_style_lit.css.js';
import '//resources/cr_elements/cr_shared_vars.css.js';
import { getCss as getSpSharedStyle } from './sp_shared_style.css.js';
let instance = null;
export function getCss() {
    return instance || (instance = [...[getCrHiddenStyleLit(), getSpSharedStyle()], css `
:host {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  height: 36px;
}

:host([compact]) {
  height: 36px;
}

#backButton,
::slotted(cr-icon-button[slot=buttons]) {
  --cr-icon-button-icon-size: 16px;
  --cr-icon-button-size: 24px;
}

#backButton {
  --cr-icon-button-fill-color: var(--cr-primary-text-color);
  margin: 0;
  margin-inline-start: -4px;
}

::slotted(cr-icon-button[slot=buttons]) {
  --cr-icon-button-fill-color: var(--cr-secondary-text-color);
  margin: 0;
}

::slotted([slot=heading]:is(h1, h2, h3, h4, h5, h6)) {
  color: var(--cr-primary-text-color);
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:host([compact]) ::slotted([slot=heading]:is(h1, h2, h3, h4, h5, h6)) {
  color: var(--cr-primary-text-color);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

::slotted([slot=metadata]) {
  color: var(--cr-secondary-text-color);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}`]);
}
