

/* chat */
/* Button to open chat search */

.theo-chat-button {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  border-radius: .5rem;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  font-size: 1.5em;
  margin-right: 1em;
  margin-left: 0.6em;
  padding: 0.4em 0.75em;
}

.theo-chat-button > .md-search__icon {
  color: white;
}

.theo-chat-button-text {
  align-content: center;
  margin-left: 0.7em;
  margin-right: 0.1em;
}

/* Hide text on mobile devices */
@media (max-width: 960px) {
  .theo-chat-button-text {
    display: none;
  }

  .theo-chat-button {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0.25em;
    width: auto;
    min-width: auto;
    min-height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .theo-chat-button > .md-search__icon {
    color: white;
    margin: 0;
  }
}

.theo-search-text {
  align-content: center;
  margin-left: 0.7em;
  margin-right: 0.1em;
}

/* wraps the chat button at the bottom of content pages */
.theo-wrap-chat {
  border-top: 1px solid #eee;
  padding: 1em 0 0 0;
  margin-top: 2em;
}

.theo-wrap-chat > .theo-chat-button {
  justify-content: center;
  width: 100%;
}

.theo-wrap-chat > button > span.md-search__icon.md-icon {
align-self: anchor-center;
}

.theo-wrap-chat > button > span.md-search__icon.md-icon > svg {
  border: none;
  display: inline;
}

/* Modal overlay and container */
.theo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* backdrop-filter: blur(3px); */
}

.theo-modal-overlay.hidden {
  display: none;
}

.theo-modal-container {
  background-color: white;
  border-radius: 0.5em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 80vh;
  max-height: 600px;
}

.theo-modal-headline {
  margin: 0;
  padding: 0.75em 1em;
  font-size: 1.75em;
  color: #333;
  font-weight: 600;
  line-height: 2.5em;
}

.theo-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  background-color: transparent;
  border: none;
  font-size: 2.5em;
  cursor: pointer;
  color: #666;
  width: 3em;
  height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 0;
  line-height: 1;
}

.theo-modal-close:hover {
  color: #000;
}

.theo-modal-separator {
  margin: 0 1em 0 1em;
  border: none;
  border-top: 1px solid #eee;
}

.theo-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5em;
  display: block;
  margin-bottom: 5px;
}
