#chatbot{
	position: fixed; 
	background: rgba(255, 255, 255, .2);  
	padding: 20px 20px 5px 20px; 
	border-radius: 10px;
	display: flex; 
	flex-direction: column; 
	right: 3vw; 
	bottom: 3vw;
	font-size: 1.3rem;
	transition-duration: 1s;
	overflow: hidden;
}

#chatbot [handle]{
	position: relative;
	background: rgb(10, 104, 230); 
	color: white; 
	padding: 10px; 
	border-radius: 20px;
	display: flex;
	gap:20px;
	align-items: center;
	width: min( calc(100vw - 20px), 400px);
}

#chatbot [arrow]{
	position: absolute;
	right: 10px;
}


#chatbot [curtainWrapper]{
	position: relative;
}

#chatbot_output{
	display: flex;
	height: 30dvh; 
	margin-top: 10px; 
	background: #212121; 
	overflow-y: scroll;
	flex-direction: column; 
	gap: 10px; 
	padding: 2px;
	isolation: isolate;
	position: relative;
	box-shadow: 0 0 1px 0 rgba(255,255,255, .3) inset; 
	overscroll-behavior: none;
}

.input_wrapper{
	display: flex;
	align-items: center;
	position: relative;
	margin: 20px 0 10px 0;
	background: #303030;
	border-radius: 20px;
	padding-right: 40px;
	--input-height: 2rem
}

#chatbot_input{
	resize: none; 
	width: 100%; 
	padding: 0 20px;
	font-size: 1rem;
	background: rgba(0,0,0,0);
	color: white;
	line-height: var(--input-height);
	height: var(--input-height);
	border: none;
}
#chatbot_input:active, #chatbot_input:focus{
	outline: none;
}

.chatbot_message{
	padding: 10px;
	box-shadow: 0 0 1px 0 rgba(255,255,255, .3) inset; 
	border-radius: 10px;
	width: 80%;
	white-space: pre-line;
	font-size: 1rem;
}

.bot_message{
	margin: 0 auto 0 0;
	background: black;
	color: white;
}

.user_message{
	margin: 0 0 0 auto;
	background: #532d8d;
	color: white;
}

#aiMessageSend{
	height: calc(var(--input-height) * 1.4);
	width: calc(var(--input-height) * 1.4);
	border-radius: 200px;
	background-color: #059781;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	font-size: 0.8rem;
	color: #0c4df0;
	font-family: 'Clash Grotesk Semibold';
	line-height: 150%;
	font-weight: 600;
	position: absolute;
	right: 0;
	top: calc(50% - var(--input-height) * 1.4 / 2);
	cursor: pointer;
}

#aiMessageSend img{
	transform: scale(.55);
}


.chatbot-loading-wrapper{
	position: absolute;
	display: none;
	bottom: 0;
	left: 0;
	width: 100%;
	height:100%;
	background: rgba(0,0,0, .3);
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(5px);
	z-index: 100;
}

.chatbot-loading{
  display: inline-flex;
  gap: 6px;
  padding: 6px 10px;
  background: #f1f1f1;
  border-radius: 10px;
  width: fit-content;
}

.chatbot-loading span{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  animation: chatbotDots 1.4s infinite ease-in-out;
}

.chatbot-loading span:nth-child(2){
  animation-delay: .2s;
}

.chatbot-loading span:nth-child(3){
  animation-delay: .4s;
}

@keyframes chatbotDots{
  0%, 80%, 100%{
    transform: scale(0.4);
    opacity: .3;
  }
  40%{
    transform: scale(1);
    opacity: 1;
  }
}

@media screen and (max-width: 750px) {
	#chatbot{
		width: min-content;
	}
	#chatbot [handle]{
		width: min-content;
	}
	#chatbot [handle] p, #chatbot [handle] [arrow]{
		display: none;
	}
}