:root {
  --color-bg: #195365;
  --color-fg: #ffffff;
  --color-text-fg: #355464;
  --color-border: #919DA2;
}

.block-ai-chatbot {
  margin-top: 50px;
  * {
    box-sizing: border-box;
    color: var(--color-text-fg);
  }
}


.ai-deepchat--open {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1;

  button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px;
    border: 0;
    border-radius: 50% 50% 0 50%;
    color: var(--color-text-fg);
    background-color: var(--color-bg);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 6px 1px;
    cursor: pointer;

    span {
      font-weight: bold;
      line-height: 20px;
    }
  }

  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(180deg);
    }
  }

  .animation-rotate {
    animation: 4s linear 0s infinite alternate rotate;
    transform-origin: 17.56px 17.84px;
  }

  .animation-rotate-reverse {
    animation: 4s linear 0s infinite reverse rotate;
    transform-origin: 17.56px 17.84px;
  }
}

.ai-deepchat.chat-container {
  margin-bottom: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  color: var(--color-text-fg);
  width: 100%;
  position: fixed;
  z-index: 1258;
  bottom: 0;
  height: inherit;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

  @media (min-width: 768px) {
    right: 20px;
    width: 50%;
  }

  @media (min-width: 1200px) {
    width: 550px;
  }

  .chat-element {
    display: flex;
    flex-direction: column;
    justify-content: end;

    button.chat-element--close {
      background: none;
      cursor: pointer;
      padding: 3px 5px;
      width: 38px;
      height: 38px;
      line-height: 10px;
      border: none;
    }
  }

  &.chat-collapsed {
    height: 0;
    padding: 0;
  }
}

.ai-deepchat--label-header {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-fg);
  border-bottom: 1px solid rgba(104, 150, 168, 0.20);

  h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.26px;
    color: #195365;
  }
  .animation-rotate {
    display: none;
  }

  .animation-rotate-reverse {
    display: none;
  }

}

.ai-deepchat--label-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-deepchat.chat-container footer {
  background-color: var(--color-fg);
  display: flex;
  align-items: center;
  padding: 12px 16px 16px;
  * {
    font-size: 11px;
    line-height: 18px;
  }
  p {
    margin: 0;
    color: #000;
  }
}


#start-new-chat--wrapper {
  text-align: right;
  background-color: white;
  width: 200px;
  /*padding-right: 65px;*/
  /*padding-bottom: 15px;*/

  #chat-button--start-new-chat {
    font-size: 12px;
    font-weight: 600;
    background: none;
    border: none;
    text-align: right;
    padding: 0 0 1px 0;
    cursor: pointer;
    transition: border-bottom-color 0.1s;
    border-bottom: 1px solid var(--color-text-fg);

    &:hover {
      border-bottom-color: transparent;
    }
  }
}
