import { css } from '//resources/lit/v3_0/lit.rollup.js';
let instance = null;
export function getCss() {
    return instance || (instance = [...[], css `
:host {
  display: flex;
  align-items: center;
  width: auto;
  --toolbar-chip-font-family:
      var(--omnibox-primary-body-3-emphasis-font-family);
  --toolbar-chip-font-size: var(--omnibox-primary-body-3-emphasis-font-size);
  --toolbar-chip-font-weight:
      var(--omnibox-primary-body-3-emphasis-font-weight);
  line-height: var(--omnibox-primary-body-3-emphasis-line-height);

  /* Omnibox specific colors to override generic toolbar defaults */
  --toolbar-chip-bg-color: transparent;
  /* TODO(crbug.com/489109708): Fix color mismatch with C++ views. */
  --toolbar-chip-fg-color: var(--color-omnibox-results-icon, currentColor);
  --toolbar-chip-ink-drop-hover-color:
      var(--color-omnibox-icon-hover, transparent);
  --toolbar-chip-ink-drop-ripple-color:
      var(--color-omnibox-icon-pressed, transparent);
  --explanatory-text-width: 200px;
}

#icon {
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

#label {
  max-width: 0;
  margin-inline-start: 0;
  overflow: hidden;
  white-space: nowrap;
}

:host([animating]) #label {
  /* TODO(crbug.com/501447940): The highlight isn't centered on the icon during
     animation due to this rule. It also causes a jarring shift at the end of
     the animation. */
  margin-inline-start: var(--location-bar-child-internal-spacing);
  /* TODO(crbug.com/534766201): Opening the bubble is supposed to pause
     animation. */
  animation: slide-in-out 3s;
}

@keyframes slide-in-out {
  0% {
    max-width: 0;
    animation-timing-function: ease-out;
  }
  20% {
    max-width: var(--explanatory-text-width);
  }
  80% {
    max-width: var(--explanatory-text-width);
    animation-timing-function: ease-out;
  }
  100% {
    max-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :host([animating]) #label {
    animation: pop-in-out 3s;
    max-width: var(--explanatory-text-width);
  }

  @keyframes pop-in-out {
    from {
      max-width: var(--explanatory-text-width);
    }
    to {
      max-width: var(--explanatory-text-width);
    }
  }
}`]);
}
