@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

@media screen and (max-width: 1024px) {
  .block-scroll-on-mobile {
    overflow: hidden;
  }
}

.display-hidden {
  display: none !important;
}

.visibly-hidden {
  visibility: hidden;
}

#chat-root {
  font-family: "Poppins";
  font-weight: 400;
}

#chat-bubble {
  background: #ffc331;

  padding: 12px 16px 12px 16px;
  gap: 8px;
  border-radius: 24px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  height: 48px;

  position: fixed;
  right: 32px;
  bottom: 32px;

  z-index: 99;

  transition: opacity 0.3s ease-in-out;

  font-weight: 600;
}

#chat-bubble:hover {
  cursor: pointer;
}

#chat-view {
  position: fixed;
  left: 0;
  top: 0;

  z-index: 9999;

  width: 100%;
  height: 100%;

  background: #f0f4f8;

  /* transition: 
    top 0.5s ease-in-out, 
    left 0.5s ease-in-out, 
    width 0.5s ease-in-out, 
    height 0.5s ease-in-out; */
}

@media screen and (min-width: 1024px) {
  #chat-view {
    right: 32px;
    bottom: 92px;

    left: auto;
    top: auto;

    max-width: 460px;
    max-height: 480px;

    border-radius: 16px;

    box-shadow: 0px 0px 8px 0px #15213833;
  }
}

/* #chat-view.visibly-hidden {
  top: calc(100vh - 48px - 32px);
  left: calc(100vw - 96px - 32px);

  width: 96px;
  height: 48px;
} */

#chat-vet-portrait {
  position: absolute;
  top: 13px;
  left: 18px;
}

#chat-vet-assistant-box {
  position: absolute;
  top: 13px;
  left: 73px;
}

#chat-vet-assistant-box-header {
  color: #070b12;
  font-family: "Poppins";
  font-weight: 600;
  line-height: 24px;
}

#chat-vet-assistant-box-footer {
  display: flex;
  align-items: center;
  gap: 4px;
}

#chat-vet-assistant-box-footer-label {
  color: #1561d3;
  font-family: "Poppins";
  font-weight: 400;
  line-height: 20px;
}

#chat-view-header {
  height: 72px;
}

#close-chat-element {
  position: absolute;
  top: 24px;
  right: 24px;
}

#close-chat-element:hover {
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
  #close-chat-element {
    display: none;
  }
}

#chat-main-input-box {
  height: 56px;
  margin: 0 16px;
  width: calc(100% - 32px);

  background: #fdfdfc;

  border: 1px solid #7aa7d7;
  border-radius: 100px;

  position: absolute;
  bottom: 8px;

  padding: 8px;
  gap: 8px;

  display: flex;
  align-items: center;
}

#chat-main-input {
  all: unset;
  width: calc(100% - 56px);
  margin-left: 8px;
}

#chat-main-input::placeholder {
  font-family: "Poppins";
  font-weight: 400;
  color: #5e6779;
  line-height: 20px;
}

#chat-main-input-send-button {
  all: unset;

  position: absolute;
  right: 8px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffc331;
  border-radius: 50%;
}

#chat-main-input-send-button:hover {
  cursor: pointer;
}

#chat-main-input-send-button:disabled {
  cursor: not-allowed !important;
  background: #ccc !important;
}

.chat-message-entry {
  max-width: 80%;
  width: fit-content;

  background: #fdfdfc;

  border-radius: 16px;
  padding: 8px 16px;
  gap: 10px;
}

.chat-message-entry a {
  color: #1561d3;
}

.chat-message-entry img {
  width: 40px;
  float: left;
  margin: 0 8px;
}

.chat-message-entry li {
  margin: 8px 0;
}

.chat-message-entry ul {
  padding-left: 0;
  margin: 0;
}

.chat-message-entry li::marker {
  content: "";
}

.chat-message-entry a:hover {
  text-decoration: underline;
}

.chat-message-entry.user-message {
  margin-left: auto;
  border-bottom-right-radius: 0 !important;
  background: #1561d3;
  color: #fdfdfc;
}

.chat-message-entry.user-message p {
  color: inherit;
}

.chat-message-entry.ai-message {
  border-bottom-left-radius: 0 !important;
}

#chat-message-banner {
  width: 100%;

  color: #576275;

  font-family: "Poppins";
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 2%;
  text-align: center;
}

#chat-main-message-list {
  padding: 8px;
  gap: 8px;

  display: flex;
  flex-direction: column;

  max-height: calc(100% - 144px);
  overflow-y: auto;
}

#chat-main-suggestion-list {
  display: flex;

  flex-direction: row;
  flex-wrap: wrap;

  gap: 8px;

  align-items: center;
  justify-content: center;

  position: absolute;
  bottom: 80px;
  padding: 0 16px;

  width: 100%;
}

.suggestion-box {
  background: #cce2ff;

  border-radius: 8px;

  padding: 6px 12px;

  color: #1355b9;

  font-family: "Poppins";
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  vertical-align: middle;
}

.suggestion-box:hover {
  cursor: pointer;
}
