:root {
	--1: #111;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body,
* {
	font-family: 'Inter', sans-serif;
}

#chat-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	background: var(--1);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateX(200%);
	transition: .6s
}

	#chat-button.visible {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
	}

#chat-button svg {
	width: 24px;
	height: 24px;
}

#chat-button svg#closeIcon {
	display: none;
}

#chat-button #chatIcon * {
	fill: #fff;
}

#chat-button.active #chatIcon {
	display: none;
}

#chat-button.active svg#closeIcon {
	display: block;
}

#chat-box {
	position: fixed;
	bottom: 90px;
	right: 20px;
	width: 360px;
	height: 500px;
	max-height: calc(100vh - 60px - 80px);
	background: white;
	border-radius: 12px;
	box-shadow: rgba(150, 150, 150, 0.2) 0px 10px 30px 0px, rgba(150, 150, 150, 0.2) 0px 0px 0px 1px;
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 1000;
}

#chat-box.active {
	display: flex !important;
}

#chat-header {
	background: linear-gradient(0deg, rgba(255, 255, 255, 0) 29.14%, rgba(255, 255, 255, 0.16) 100%), #000000;
	color: white;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	z-index: 3;
	position: relative;
}

#chat-header .logo-wrap {
	display: flex;
	align-items: center;
	font-size: 14px;
}

#chat-header .logo-wrap .logo {
	background: var(--1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
	border-radius: 50px;
	height: auto;
	width: 80px;
}

#chat-header .logo-wrap .logo svg {
	width: 100%;
}

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

.message {
	max-width: calc(100% - 60px);
	display: flex;
	align-items: flex-end;
	position: relative;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.message .content {
	padding: 16px 20px;
	border-radius: 20px;
	line-height: 1.4;
	font-size: 14px;
	font-weight: 400;
}

.message.visible {
	opacity: 1;
	transform: translateY(0);
}

.message.user {
	align-self: flex-end;
	margin-bottom: 12px;
	margin-top: 12px;
}

.message.user .content {
	background: var(--1);
	color: white;
	padding: 8px 16px;
	border-bottom-right-radius: 4px;
}

.message.bot .content {
	background: #f1f1f1;
	color: var(--1);
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.message.bot .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 8px;
	padding: 6px;
}

.message.bot .avatar svg {
	width: 100%;
}

.typing-indicator {
	display: flex;
	gap: 6px;
	align-self: flex-start;
	background: #f1f1f1;
	color: var(--1);
	border-radius: 20px;
	border-bottom-left-radius: 4px;
	padding: 16px 20px;
}

.typing-indicator span {
	width: 6px;
	height: 6px;
	background: #999;
	border-radius: 50%;
	animation: blink 1.2s infinite;
}

.typing-indicator span:nth-child(2) {
	animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes blink {

	0%,
	80%,
	100% {
		opacity: 0;
	}

	40% {
		opacity: 1;
	}
}

#chat-input-area {
	display: flex;
	align-items: center;
	border-top: 1px solid #eaeaea;
	padding: 12px 16px;
	flex-shrink: 0;
}

#chat-input {
	flex: 1;
	border: none;
	padding: 12px 0;
	height: 48px;
	font-size: 16px;
	font-weight: 400;
	outline: none !important;
}

#chat-send {
	background: transparent;
	border: none;
	font-size: 18px;
	color: var(--1);
	cursor: pointer;
	height: 48px;
	width: 24px;
	align-items: center;
	display: flex;
	justify-content: center;
}

#chat-send svg {
	width: 100%;
	height: 100%;
}

.footer-chat {
	padding: 8px 16px;
	font-size: 12px;
	text-align: center;
	background-color: #f7f7f7;
	color: #999;
}

.footer-chat a {
	color: #999;
}

.scrolldown-btn {
	position: absolute;
	bottom: 120px;
	right: 16px;
	width: 40px;
	height: 40px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 50px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	transform: translateY(20px);
	opacity: 0;
	visibility: hidden;
	transition: .4s;
}

.scrolldown-btn.visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

#chat-reset {
	background-color: rgba(255,255,255,0.2);
	border: none;
	padding: 0 12px;
	height: 26px;
	border-radius: 50px;
	color: #fff;
	cursor: pointer;
}

#chat-box #chat-input-area,
#chat-box .footer-chat {
	transition: .5s;
}

#chat-box.contact-active #chat-input-area,
#chat-box.contact-active .footer-chat{
	height: 0;
	transform: translateY(400%);
}

#chat-box.contact-active #contact-form:before {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: #111;
	opacity: .7;
}

#contact-form {
	margin-bottom: -41px;
	z-index: 3
}

#contact-form .contact-form-wrap {
	position: relative;
	padding: 20px;
	border-top: 1px solid #eaeaea;
	background-color: #fff;
}

.contact-form__title {
	font-weight: 500;
	font-size: 14px;
}

.contact-form__grid {
	margin: 20px 0;
	display: flex;
	flex-wrap: wrap;
	row-gap: 10px;
}

.contact-form__grid input,
.contact-form__grid textarea{
	width: 100%;
	border-radius: 12px;
	border: 1px solid #aaa;
	padding: 12px 24px;
}

.contact-form__actions {
	display: flex;
	justify-content: center;
	column-gap: 12px;
}

.contact-form__actions button {
	border-radius: 50px;
	border: none;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	background-color: var(--1);
	color: #fff;
	cursor: pointer;
}

.contact-form__actions button#cf-cancel {
	color: var(--1);
	background-color: #ddd;
}

.contact-form__hint {
	text-align: center;
	margin-top: 20px;
	font-size: 12px;
	color: #999;
}