.wz-chat-wrapper {
  position: fixed;
  z-index: 9999;
}

.fill-black {
  fill: #130e07;
}

.fill-brown {
  fill: #684d22;
}

.fill-gold {
  fill: #d9bd90;
}

.wz-main {
  background-color: #d9bd90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 200ms ease-out;
}

.wz-main:hover {
  transform: scale(1.1);
}

.wz-chat-svg {
  width: 35px;
  height: 35px;
}

.wz-chat-second-svg,
.wz-chat-svg.inactive,
.wz-resize-btn-small.inactive,
.wz-resize-btn-big.inactive,
.wz-resize-btn-small {
  display: none;
}

.wz-chat-second-svg.active,
.wz-resize-btn-small.active {
  display: block;
}

.wz-essentifai-chat {
  position: fixed;
  bottom: 10%;
  right: 2%;
  width: 340px;
  height: 650px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: width 0.2s ease, height 0.2s ease;
  animation: wz-close 500ms cubic-bezier(0.2, 1.1, 0.4, 1) forwards;
}

.wz-essentifai-chat.full {
  width: 98%;
  height: calc(89% - 10px);
  right: 1%;
}

.wz-essentifai-chat.active {
  display: flex;
  animation: wz-open 500ms cubic-bezier(0.2, 1.1, 0.4, 1) forwards;
}

.wz-chat-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#wz-chat-input:focus,
#wz-send-btn:focus {
  outline: none;
}

.wz-chat-footer {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin: 0;
}

.wz-chat-date {
  text-align: center;
  font-size: 12px;
  color: rgb(117, 117, 117);
  margin: 10px 0;
}

.wz-spin-fade {
  animation: spinAndFade 1s forwards;
}

.wz-chat-input-area {
  border: 1px solid #d9bd90;
  border-radius: 50px;
  padding: 10px;
  height: 37px;
  display: flex;
}

#wz-chat-input {
  flex-grow: 1;
  padding: 8px;
  border-radius: 5px;
  border: none;
  color: #a9a9a9;
}

#wz-send-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding-right: 10px;
}

#wz-send-btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.wz-user-msg {
  display: flex;
  justify-content: end;
}

.wz-user-msg p {
  background-color: #d9bd90;
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  margin: 0;
  font-size: 15px;
  max-width: 75%;
}

.wz-ai-msg,
.wz-ai-error-msg {
  word-break: break-word;
  font-size: 15px;
  max-width: 75%;
  display: flex;
  justify-content: start;
}

.wz-ai-msg p,
.wz-ai-error-msg p {
  background-color: #684d22;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px;
  margin: 15px 0;
}

.wz-chat-header {
  background-color: #130e07;
  color: #d9bd90;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  padding-left: 20px;
}

.header-svg {
  flex-grow: 1;
}

#wz-chat-messages {
  flex-grow: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wz-resize-btn {
  cursor: pointer;
}

.wz-essentifai-chat.full .wz-chat-body {
  padding: 30px 40px 10px 40px;
  border: 1px solid #d9bd90;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.wz-ai-error-msg p {
	color: white;
	background-color: #ff0000b8;
}

@keyframes spinAndFade {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes wz-open {
  from {
    transform: scale(0.65);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes wz-close {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.65);
    opacity: 0;
  }
}
