
:host {
  display: block;
  background-color: var(--c-surface-bg);
}

:host([data-expanded=false]) .body {
  display: none;
}

:host([data-expanded=true]) [name=header] {
  display: none;
}

:host(.stretch) {
  display: flex;
  flex-direction: column;
}
:host(.stretch) .body {
  flex: 1;
}
:host(.stretch) ::slotted([slot=body]) {
  height: 100%;
}

::slotted([slot=actions]) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  max-height: 3rem;
  align-items: center;
}

::slotted([slot=body]) {
  padding: 0.5rem;
}

.header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
}

::slotted([slot=header]) {
  width: 100%;
}

.header-body {
  border-bottom: solid 1px var(--c-border);
}

h2 {
  font-size: var(--font-size-base);
  line-height: 1.69rem;
  color: var(--c-subheading);
  font-weight: normal;
  margin: 0 0.5rem;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

:host(.body-no-padding) .pragma-group-body {
  padding: 0;
}

.body {
  background: var(--c-surface-bg);
}

.expand-button svg {
  fill: var(--c-subheading);
}

.expand-button {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.expand-button:hover {
  background: var(--c-hover);
}

.expand-button:active {
  background: var(--c-hover);
}

.expand-button[aria-disabled=true] {
  pointer-events: none;
  background: var(--c-disabled);
}

.expand-button:focus {
  box-shadow: inset 0 0 0 0.1rem var(--c-focus);
  outline: none;
}

svg {
  pointer-events: none;
}
