/* Styles for app-root are defined here since we can't use Shadow DOM there */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

.deprecation-notice {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: red;
  color: white;
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #555;
  z-index: 999;
}

.deprecation-notice a, .deprecation-notice a:link .deprecation-notice a:visited {
  color: white;
}

app-root {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
}

.loading-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side {
  color: #eee;
  border-left: 1px solid #aaa;
  display: flex;
  position: fixed;
  top: 70px;
  right: 0;
  bottom: 0;
  flex-direction: column;
  width: 500px;
}

.header, .footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px;
  background-color: #f7f7f7;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

.header {
  justify-content: space-between;
  min-height: 40px;
}

.header h2 {
  color: black;
  font-size: 1.2rem;
  margin: 0;
}

.header-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.header-options .buttons {
  display: flex;
}

.header-options .buttons > * {
  margin-left: 4px;
}

.footer {
  justify-content: center;
  align-items: center;
  min-height: 16px;
  font-size: 0.8rem;
}

.footer a {
  color: #555;
}

.footer .seperator {
  display: inline-block;
  height: 12px;
  margin: 0 10px;
  border-left: 1px solid #dddddd;
}

.settings mwc-select {
  width: calc(100% - 16px);
  margin: 12px 8px 0 8px;
}

.variables {
  padding: 12px;
  height: 440px;
  overflow: scroll;
}

.variables generic-input {
  margin-bottom: 8px;
}

.variables .variable {
  gap: 8px;
  width: 480px;
}

.variables .variable-inner {
  display: flex;
}

.variables .name-text {
  width: 160px;
}

.CodeMirror {
  position: relative;
  width: 500px;
  height: 100%;
}

block-editor {
  width: calc(100% - 500px - 32px);
  padding: 16px;
  margin-top: 70px;
  max-width: 900px;
}

.errors {
  margin: 0;
  padding: 0;
  padding-bottom: 1rem;
  vertical-align: text-top;
  font-size: 0.8rem;
  color: red;
}
