* {
  box-sizing: border-box;
}

.demo-a {
  font-weight: 500;
  color: #0c19fe;
  text-decoration: inherit;
}

.demo-body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #d9d9d9;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 320px;
  min-height: 100vh;
}

.demo-h1 {
  align-content: center;
  font-size: 3.2em;
  line-height: 1.1;
  color: black;
}

.demo-h3 {
  font-size: 1.2em;
  line-height: 1.1;
  color: black;
}

.demo-input {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  color: black;
  background-color: transparent;
}

.demo-select-backend-url {
  flex: 1 1 auto;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  color: black;
  background-color: transparent;
}

.demo-select-gms-client {
  flex: 0 0 auto;
  padding: 12px 20px;
  margin: 8px 0 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  color: black;
  background-color: transparent;
}

.demo-button {
  background-color: #008857;
  color: white;
  padding: 14px 20px;
  margin: 8px 8px 0 0;
  border: none;
  border-radius: 4px;
  width: fit-content;
}

.demo-button:disabled {
  background-color: #baf8e2;
  color: white;
}

.demo-button:hover:enabled {
  cursor: pointer;
  opacity: 0.8;
}

#auth-token-visible,
#user-id-generate,
#user-id-zero {
  background: none;
  padding: 0px;
  margin: 0px;
  margin-left: 10px;
  border: none;
  cursor: pointer;
  width: fit-content;
  font-size: 40px;
}

.strike-through {
  text-decoration: line-through;
  text-decoration-thickness: 6px;
  text-decoration-color: black;
}

.container {
  padding: 16px;
  margin: auto;
  max-width: 800px;
}

.demo-label {
  color: black;
}

.demo-p {
  color: black;
}

.demo-div {
  background-color: transparent;
}

.flex-row-container {
  background-color: transparent;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.flex-column-container {
  background-color: transparent;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#auth-token-container,
#user-id-container,
#chat-contols-container {
  margin: auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#chat-button-container {
  margin: auto;
  max-width: 800px;
  padding: 16px 0;
  display: none;
  flex-direction: column;
  justify-content: center;
}

#chat-button-flex-container {
  margin: auto;
  max-width: 800px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#button-container {
  background-color: transparent;
  padding: 16px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#chat-window-container {
  margin: 0;
  padding: 0;
  width: 600px;
  height: 800px;
  display: none;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  resize: both;
  overflow: auto;
}

#login-form {
  background-color: transparent;
}

.ui-options-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 8px;
}

.demo-checkbox {
  margin-right: 10px;
}

.demo-p {
  text-align: center;
  font-size: 12px;
  margin-bottom: 20px;
}

#chat-events-container {
  margin-top: 20px;
  width: 800px;
  max-height: 200px;
  overflow-y: auto;
}

#chat-context-container {
  margin: 20px 0 20px 0;
}

#chat-context-textarea {
  color: black;
  background-color: transparent;
  width: 100%;
  resize: none;

  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;

  margin: 8px 0 0 0;
  padding: 12px 20px;
  border: 1px solid #ccc;
  align-self: stretch;

  &:focus-visible {
    border: 2px solid #007aff;
    outline: 1px solid white;
  }
  &::placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/*
From https://fonts.sage.com/sage-ui.css
and/or https://brand.sage.com/

We don't build these fonts into our web component
to avoid blowing out the size. However because
we are integrating into other Sage products where
these fonts are present, we can use them, and fall
back to Arial where they are not.
*/
/* Sage UI font family */
@font-face {
  font-family: "Sage UI";
  src: url("./Sage_UI-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sage UI";
  src: url("./Sage_UI-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sage UI";
  src: url("./Sage_UI-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
