/** Used by hosted widget only, won't be shown on customer sites */
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 0;
  background-color: #fafafa; /* light teal background */
}

.bold {
  font-weight: bold;
}

main.entire-window {
  height: 100vh;
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#brand-logo {
  display: block;
  max-width: 360px;
  width: 60%;
  height: auto;
  margin: 0px auto 24px auto;
}

/** Default styles for embedded widget */
#tomis-chat-widget.loaded {
  box-shadow: 0px 0px 36px 0px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  flex: 1;
  max-height: 700px;
  max-width: 800px;
  min-height: 400px;
  min-width: 300px;
}

#intro {
  margin-top: 0;
  text-align: center;
}

#explanation {
  text-align: center;
}

/* Approximate Chat UI Button styles in plain CSS */

.tomis-button {
  border: 0;
  padding: 0 12px;
  height: 36px; /* sm */
  border-radius: 8px; /* radii[1] */
  font-weight: 600; /* fontWeights[2] */
  font-size: 15px; /* fontSizes[2] */
  color: #41544d; /* requested color */
  background-color: transparent; /* subtle */
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    color 150ms ease;
  margin: 0;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
}

.tomis-button:hover {
  cursor: pointer;
  background-color: rgba(48, 159, 135, 0.08);
}

.tomis-button:focus {
  outline: 0;
}

.tomis-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  main.entire-window {
    padding: 16px;
  }

  /* Make floating toggle button less intrusive on mobile */
  .tomis-button {
    height: 32px;
    padding: 0 10px;
    font-size: 14px;
    top: calc(env(safe-area-inset-top) + 8px);
    right: calc(env(safe-area-inset-right) + 8px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }

  /* Ensure logo clears the floating button */
  #brand-logo {
    margin-top: calc(env(safe-area-inset-top) + 36px);
  }
}
