import { css } from 'lit'

export default css`
  :host {
    display: block;
  }

  .container {
    position: relative;
    box-sizing: content-box;
  }

  .suggestions {
    position: fixed;
    z-index: 100;
    transform: scaleY(0);
    transform-origin: center top;
    transition: transform 120ms cubic-bezier(0.4, 0, 0.6, 1);
    background-color: var(--md-sys-color-surface);
    box-shadow: var(--md-sys-elevation-1);
    border-radius: 0 0 8px 8px;

    display: flex;
    flex-direction: column;
  }

  .suggestions.opened {
    transform: scaleY(1);
  }

  .url-autocomplete {
    box-sizing: border-box;
    overflow: auto;
    flex: 1;
  }

  .input-wrapper {
    display: flex;
    align-items: center;
    color: inherit;
    /* background-color: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant); */
  }

  .main-input {
    flex: 1;
    height: 40px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: inherit;
    background-color: transparent;

    font-family: var(--md-sys-typescale-body-medium-font);
    font-weight: var(--md-sys-typescale-body-medium-weight);
    font-size: var(--md-sys-typescale-body-medium-size);
    letter-spacing: var(--md-sys-typescale-body-medium-tracking);
    line-height: var(--md-sys-typescale-body-medium-height);
  }

  .clear-all-history-label,
  .remove-suggestion {
    cursor: pointer;
  }

  .clear-all-history-label:hover,
  .remove-suggestion:hover {
    text-decoration: underline;
  }

  .clear-all-history {
    padding: 0 20px;
    display: flex;
    flex-direction: row-reverse;

    font-family: var(--md-sys-typescale-body-medium-font);
    font-weight: var(--md-sys-typescale-body-medium-weight);
    font-size: var(--md-sys-typescale-body-medium-size);
    letter-spacing: var(--md-sys-typescale-body-medium-tracking);
    line-height: var(--md-sys-typescale-body-medium-height);
  }
`
