import { css } from 'lit';
export default css `
  :host {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    cursor: text;
    min-width: 200px;
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    letter-spacing: var(--md-sys-typescale-body-large-tracking);
    line-height: var(--md-sys-typescale-body-large-height);
  }

  .surface {
    height: auto;
    min-height: 56px;
    position: relative;
    display: flex;
    align-items: flex-start;
    cursor: inherit;
    border-radius: var(--md-sys-shape-corner-extra-small);
  }

  .container {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline);
    outline: 0px solid var(--md-sys-color-primary);
    outline-offset: -1px;
    transition:
      border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
      outline-width 150ms cubic-bezier(0.4, 0, 0.2, 1),
      outline-offset 150ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .content {
    height: inherit;
    min-height: inherit;
    display: flex;
    align-items: flex-start;
    justify-content: start;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    flex: 1;
    cursor: inherit;
    padding: 16px;
  }

  .body {
    flex: 1;
    box-sizing: border-box;
    position: relative;
    cursor: inherit;
    min-height: 24px;
  }

  .label {
    color: var(--md-sys-color-on-surface-variant);
    position: absolute;
    top: 0px;
    left: 0px;
    max-width: calc(100% - 32px);
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 3;
    font-family: var(--md-sys-typescale-body-large-font);
    font-weight: var(--md-sys-typescale-body-large-weight);
    font-size: var(--md-sys-typescale-body-large-size);
    letter-spacing: var(--md-sys-typescale-body-large-tracking);
    line-height: var(--md-sys-typescale-body-large-height);
    transform-origin: left center;
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--md-sys-color-surface);
    padding: 0 4px;
    margin-left: -4px;
  }

  .label.floating {
    transform: translateY(-28px) scale(0.75);
    color: var(--md-sys-color-primary);
  }

  .editor {
    width: 100%;
    min-height: 24px;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    color: var(--md-sys-color-on-surface);
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    cursor: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    resize: none;
  }

  .editor:empty::before {
    content: attr(data-placeholder);
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.6;
  }

  .mention-chip {
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
    vertical-align: baseline;
    user-select: none;
  }

  .mention-chip ui-chip {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .suggestions-popover {
    position: fixed;
    border: none;
    margin: 0;
    padding: 0;
    background: var(--md-sys-color-surface-container);
    box-shadow: var(--md-sys-elevation-2);
    border-radius: var(--md-sys-shape-corner-medium);
    max-height: 300px;
    overflow-y: auto;
    min-width: 200px;
    max-width: 400px;
    /* Popover API handles z-index and layering automatically */
  }

  .suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--md-sys-color-on-surface);
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .suggestion-item:hover {
    background-color: var(--md-sys-color-surface-container-highest);
  }

  .suggestion-item.selected {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
  }

  .suggestion-content {
    flex: 1;
    min-width: 0;
  }

  .suggestion-headline {
    font-weight: var(--md-sys-typescale-label-large-weight);
    font-size: var(--md-sys-typescale-label-large-size);
    line-height: var(--md-sys-typescale-label-large-height);
    margin-bottom: 2px;
  }

  .suggestion-supporting-text {
    font-weight: var(--md-sys-typescale-body-small-weight);
    font-size: var(--md-sys-typescale-body-small-size);
    line-height: var(--md-sys-typescale-body-small-height);
    color: var(--md-sys-color-on-surface-variant);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .suggestion-suffix {
    margin-left: 8px;
    font-weight: var(--md-sys-typescale-body-small-weight);
    font-size: var(--md-sys-typescale-body-small-size);
    line-height: var(--md-sys-typescale-body-small-height);
    color: var(--md-sys-color-on-surface-variant);
    flex-shrink: 0;
  }

  .supporting-text {
    margin-top: 4px;
    padding: 0 16px;
    color: var(--md-sys-color-on-surface-variant);
    font-family: var(--md-sys-typescale-body-small-font);
    font-weight: var(--md-sys-typescale-body-small-weight);
    font-size: var(--md-sys-typescale-body-small-size);
    letter-spacing: var(--md-sys-typescale-body-small-tracking);
    line-height: var(--md-sys-typescale-body-small-height);
  }

  /* Hover state */
  :host(:hover:not(:focus-within):not([disabled])) .container {
    border-color: var(--md-sys-color-on-surface);
  }

  /* Focus states */
  :host(:focus-within) .container {
    border-color: var(--md-sys-color-primary);
    outline-width: 2px;
    outline-offset: -2px;
  }

  :host(:focus-within) .label {
    color: var(--md-sys-color-primary);
  }

  /* Disabled state */
  :host([disabled]) {
    pointer-events: none;
    opacity: 0.38;
  }

  :host([disabled]) .container {
    border-color: var(--md-sys-color-on-surface);
    opacity: 0.12;
  }

  :host([disabled]) .label,
  :host([disabled]) .editor {
    color: var(--md-sys-color-on-surface);
    opacity: 0.38;
  }

  /* Invalid state */
  :host([invalid]) .container {
    border-color: var(--md-sys-color-error);
  }

  :host([invalid]:focus-within) .container {
    outline-color: var(--md-sys-color-error);
  }

  :host([invalid]) .label,
  :host([invalid]:focus-within) .label {
    color: var(--md-sys-color-error);
  }

  :host([invalid]) .supporting-text {
    color: var(--md-sys-color-error);
  }

  /* Empty state for label floating */
  .label:not(.floating) {
    opacity: 1;
  }

  .has-content .label:not(.floating) {
    opacity: 0;
  }
`;
//# sourceMappingURL=MentionTextArea.styles.js.map