@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
	font-family: "Poppins", serif;
	text-align: center;
}

#chat-container {
	display: none;
	/* margin-top: 20px; */
}
#chat-box,
#auth-container {
	/* border-top: 1px solid #dddddd;
	border-bottom: 1px solid #dddddd; */
	padding: 10px;
	height: 300px;
	overflow-y: auto;
	box-sizing: border-box;
}
#chat-box {
	height: calc(300px - 152px);
}
div#auth-container {
	display: flex;
	flex-direction: column;
	/* justify-content: space-between; */
	justify-content: flex-end;
	padding: 0;
}
.input-wrapper {
	display: flex;
	align-items: center;
}
.chat-wrapper .input-wrapper #user_input {
	width: calc(100% - 80px);	
	margin: 0;		
	border-radius: 6px 0 0 6px;
}
.chat-wrapper .input-wrapper .primary-btn {
	width: auto;
	border-radius: 0 6px 6px 0;
}
.form-input {		
	width: 100%;
	padding: 8.5px 12px;
	border: 1px solid #dddddd;
	font-size: 16px;
	font-weight: 400;
	border-radius: 6px;
	color: #000000;
	box-sizing: border-box;
	margin-top: 15px;
	font-family: "Poppins", serif;
}
.form-input::placeholder {
	font-size: 16px;
	font-weight: 400;
}
.form-input:focus {
	outline: none;
}
.cl_cursor {
	cursor: pointer;
	line-height: 30px;
}
.cl_user {
	color: #0000FF;
	line-height: 25px;
	margin: 6px 0;
	background: #E6E6FF;
	padding: 10px;
	border-radius: 12px 12px 0 12px;
	display: block;
	margin-left: auto;
}
.popup-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup {
	background: #fff;
	padding: 20px;
	width: 350px;
	text-align: center;
	border-radius: 10px;
	box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
	transform: translateY(-50px);
	transition: transform 0.3s ease;
}
.popup h2 {
	margin-bottom: 10px;
	font-size: 24px;
	border-bottom: 1px solid #dddddd;
}
.popup p {
	font-size: 16px;
	color: #555;
	margin-bottom: 15px;
}
.popup button {
	padding: 10px 15px;
	border: none;
	background: #007BFF;
	color: white;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s;
}
.popup button:hover {
	background: #0056b3;
}
.popup .close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 20px;
	cursor: pointer;
	color: #777;
}
.popup .close-btn:hover {
	color: black;
}
.popup-container.active {
	opacity: 1;
	visibility: visible;
}
.popup-container.active .popup {
	transform: translateY(0);
}
	#loader {
	/* display: flex; */
	background: rgba(255, 255, 255, 0.8);
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}
.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid rgba(0, 0, 0, 0.2);
	border-top: 5px solid #007BFF;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}
/* New CSS */		
.chat {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	right: 10px;
	bottom: 10px;
}
.chat .background {
	background-color: rgb(52, 20, 235);
	border-radius: 50%;
	box-shadow: 0 2.1px 1.3px rgba(0, 0, 0, 0.044),
	0 5.9px 4.2px rgba(0, 0, 0, 0.054), 0 12.6px 9.5px rgba(0, 0, 0, 0.061),
	0 25px 20px rgba(0, 0, 0, 0.1);			
	position: absolute;
	height: 80px;
	width: 80px;
}
.chat-bubble {
	cursor: pointer;
	position: relative;
}
.bubble {
	transform-origin: 50%;
	transition: transform 500ms cubic-bezier(0.17, 0.61, 0.54, 0.9);
}
.line {
	fill: none;
	stroke: rgb(255, 255, 255);
	stroke-width: 2.75;
	stroke-linecap: round;
	transition: stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line1 {
	stroke-dasharray: 60 90;
	stroke-dashoffset: -20;
}
.line2 {
	stroke-dasharray: 67 87;
	stroke-dashoffset: -18;
}
.circle {
	fill: rgb(255, 255, 255);
	stroke: none;
	transform-origin: 50%;
	transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.active .bubble {
	transform: translateX(24px) translateY(4px) rotate(45deg);
}
.active .line1 {
	stroke-dashoffset: 21;
}
.active .line2 {
	stroke-dashoffset: 30;
}
.active .circle {
	transform: scale(0);
}
.chat-wrapper {
	display: none;
	width: 100%;
	max-width: 300px;
	margin-left: auto;
	box-shadow: 0 0 10px #dddddd;
	border-radius: 15px;
	position: absolute;
	right: 20px;
	bottom: 120px;
	padding: 20px;
	padding: 20px;
}
.chat-outer-wrapper { 
	position: relative;
}
.chat-active .chat-wrapper {
	display: block;
}
.title {
	/* font-size: 22px;
	font-weight: 700; */
	font-size: 18px;
    font-weight: 500;
	padding: 0 0 10px;
	margin: 0 0 20px 0;
	border-bottom: 1px solid #dddddd;
}
.primary-btn {
	width: 100%;
	font-size: 16px;
	font-weight: 600;
	background: #3414eb;
	color: #ffffff;
	border: none;
	padding: 13px 20px;
	border-radius: 6px;
	transition: .3s ease-in-out;
	cursor: pointer;
}
.primary-btn:hover {
	background-color: #3820c2;
}
#msg_div {
	color: red;
	font-size: 16px;
	margin: 10px 0;
	display: inline-block;
}
#chat-box::-webkit-scrollbar {
	width: 6px;
	border-radius: 20px;
}
#chat-box::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 20px;
}
#chat-box::-webkit-scrollbar-thumb {
	background: #3414eb;
	border-radius: 20px;
}
.top-text {
    background: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 10px 15px;
}
iframe {
    height: 400px;
    border-radius: 10px;
    border: none;
}

@media(max-width: 767px) {
	.chat .background {
		height: 60px;
		width: 60px;
	}
	svg.chat-bubble {
		width: 80px;
		height: 80px;
	}	
	.chat-wrapper {
		width: auto;
		max-width: 100%;
		bottom: 100px;
		/* right: 10px; */
		right: 5px;
		padding: 20px 10px;
	}
}