import { css } from 'lit'

export default css`
  .api-description marked-highlight {
    margin: 20px 0;
    padding: 0;
  }

  .endpoint-url {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: var(--md-sys-shape-corner-medium);
    padding: 16px;

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

    display: flex;
    align-items: center;
    flex-direction: row;
  }

  .endpoint-url .http-label {
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
  }

  .endpoint-url .url-value {
    flex: 1;
    margin-left: 12px;
    word-break: break-all;
  }

  .property-item {
    margin: 20px 0;
  }

  .params-section {
    margin: 20px 0;
    border-radius: var(--md-sys-shape-corner-medium);
    box-shadow: var(--md-sys-elevation-1);
    padding: 12px;
  }

  .inner-section {
    margin: 20px 0;
    padding: 12px;
  }

  .params-title {
    display: flex;
    align-items: center;
    flex-direction: row;

    cursor: default;
    user-select: none;
  }

  .params-title .label {
    display: block;

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

  .section-toggle {
    margin-left: auto;
  }

  .toggle-icon {
    transition: transform 0.23s linear;
  }

  .opened .toggle-icon {
    transform: rotate(180deg);
  }

  .media-type {
    margin: 12px 0;
  }

  .media-type span {
    font-weight: 500;
  }

  .amf-media-types {
    margin: 12px 0;
  }

  .deprecated {
    text-decoration: line-through;
  }

  .deprecated-message {
    font-weight: bold;
    margin: 12px 0;
    padding: 12px 8px;
    background-color: var(--deprecated-message-background-color, #ffc107);
    color: var(--deprecated-message-color, #000);
    display: flex;
    align-items: center;
    border-radius: 4px;
  }

  .deprecated-message .message {
    margin-left: 12px;
  }

  .empty-info {
    font-size: 1.1rem;
    margin-left: 24px;
    padding: 12px 0;
  }

  .example-description {
    margin: 12px 0;
  }

  .text-selectable {
    user-select: text;
  }

  .markdown-body {
    max-width: 900px;
  }

  .array-form-item {
    padding-left: 8px;
    margin-bottom: 20px;
  }

  .array-title > .label {
    font-family: var(--md-sys-typescale-label-large-font);
    font-weight: var(--md-sys-typescale-label-large-weight);
    font-size: var(--md-sys-typescale-label-large-size);
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
    line-height: var(--md-sys-typescale-label-large-height);
  }

  .array-title {
    margin-bottom: 12px;
  }
`
