:root {
    --sidebar-background: #FFFFFF;
    --content-background: #F6F7FB;
    --hover-background: #F8F8F8;
    --title-black: #1B1E25;
    --text-black: #222327;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --main: #6255F4;
    --black: #0b1224;
    --border: #EBEBEB;

}


.ai-box {
	position: fixed;
	bottom: 0;
	right: 50px;
	background: #fff;
	width: 360px;
	height: 86px;
	box-shadow: 1px 1px 16px #00000017;
	box-sizing: border-box;
	border-radius: 25px 25px 0 0;
	transition: 0.2s;
	overflow: hidden;
	z-index: 100000;
}
.ai-box ul, .ai-box  ol {
	padding-left: 18px;
}
.ai-box p {
	padding-bottom: 10px;
}
.ai-box strong {
	color: inherit;
}
.ai-box__head {
	height: 72px;
	box-sizing: border-box;
	border-bottom: 1px solid #E8E8E8;
}
.ai-head {
	padding: 22px;
	position: relative;
	padding-bottom: 17px;
	cursor: pointer;	
	height: 100%;
	padding-bottom: 24px;
}
.ai-head__title {
	font-family: Manrope, sans-serif;
	font-size: 18px;
	font-weight: 500;
	padding-left: 48px;
	line-height: 1;
}
.ai-head__subtitle {
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: -4%;
	color: #808080;
	padding-left: 48px;
	padding-top: 10px;
}
.ai-head::before {
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	top: 34px;
	left: 35px;
	background: #6255F4;
	border-radius: 50%;
	z-index: 2;
}
.ai-head::after {
	content: "";
	z-index: 1;
	position: absolute;
	width: 32px;
	height: 32px;
	top: 23px;
	left: 24px;
	background: #DDDEFF;
	border-radius: 50%;
}
.ai-head__link {
	display: none;
	width: 32px;
	height: 32px;
	margin-left: auto;
	border-radius: 50%;
}
.ai-head__link.ai-head__link--close {
	margin-left: 8px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.ai-head__link svg {
	margin: auto;
}
.ai-box.ai-box--active {
	height: 620px;
}
.ai-box--active .ai-head__link {
	display: flex;
}
.ai-box--active .ai-head {
	height: 72px;
}
.ai-box--active .ai-box__title-2 {
	display: none;
}
.ai-box--active .ai-head__subtitle {
	display: none;
}
.ai-box--active .ai-head {
	display: flex;
	align-items: center;
}
.ai-box--active .ab-box__body {
	height: 584px;
}
.ab-box__body {
	height: 0;	
}
.ai-body {
	background: #F6F7FB;
	font-family: Manrope,sans-serif;
	padding: 16px;
	box-sizing: border-box;
}
.ai-greatings__title {
	padding-top: 35px;
	text-align: center;
	font-size: 25px;
	color: #222327;
	margin-left: -10px;
	line-height: 1.2;
	font-weight: 500;
	margin-right: -5px;
}
.ai-greatings__subtitle {
	text-align: center;
	font-size: 16px;
	margin-top: 10px;
}
.ai-greatings__title span {
	color: #6255F4;
}
.ai-greatings__tags {
	margin-top: 24px;
}
.ai-greatings__tag {
	display: inline-block;
	font-family: inherit;
	text-decoration: none;
	font-size: 14px;
	padding: 10px 18px;
	border: 1px solid;
	color: #6255F4;
	border-radius: 20px;
	margin-bottom: 8px;
	transition: 0.4s;
	font-weight: 500;
	background: #fff;
	cursor: pointer;
}
.ai-greatings__tag:hover,
.ai-greatings__tag:focus {
	background: #6255F4;
	color: #fff;
	border:1px solid #6255F4;
}
.ai-body__message {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 400px;
}
.ai-body__answer {
	margin-top: 10px;
}
.ai-body__question {
	display: block;
	width: 100%;
	min-height: 80px;
	background: #fff;
	color: #5D6068;
	border: 0;
	border-radius: 24px;
	padding: 20px;
	box-sizing: border-box;
	outline: 0;
	margin-top: 10px;
	font: inherit;
	padding-right: 65px;
	resize: none;
}
.ai-body__hint {
	font-size: 12px;
    margin-top: 10px;
    text-align: right;
    color: #b4b5b9;
    margin-right: 17px;
}
.ai-body__submit {
	display: inline-flex;
	border: 0;
	width: 40px;
	height: 40px;
	background: #6255F4;
	border-radius: 50%;
	cursor: pointer;
	position: absolute;
	top: 18px;
    right: 24px;
	transition: 0.4s;
}
.ai-body__submit:hover,
.ai-body__submit:focus {
	background: #000;
}
.ai-body__submit  svg {
	margin: auto;
}
.ai-body__chat-wrapper {
	position: relative;
}
.ai-mobile-button {
	display: none;
	/*width: 150px;
	height: 150px;*/
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: none;
	border: 0;
}
.ai-mobile-button svg {
	margin: auto;
}
@media (max-width: 600px) {
	.ai-mobile-button {
		display: flex;
	}
	.ai-box {
			width:0;
			height:0;
			overflow: hidden;
			
        border-radius: 25px 0 0 0;
	}
	.ai-mobile-button--active {
		display: none;
	}
	.ai-box.ai-box--active {
		right: 0;
		width: 320px;
	}
}
.ai-author {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 6px;
    margin-left: 4px;
}

.ai-msg-footer {
    max-width: 600px;
    font-size: 12px;
    color: #9aa4b2;
    margin-top: 4px;
}


.ai-bubble {
    position: relative;
    padding: 12px 16px;
    line-height: 1.5;
    font-size: 15px;
    background-color: white;
    transition: all .1s ease-in;
}

.ai-bubble.user {
    border-radius: 16px
}

.ai-bubble.ai {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.ai-bubble.ai {
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    background: var(--main);
    color: #FFF;
}

.ai-bubble.reveal {
    width: fit-content;
    max-width: 600px;
    min-width: min-content;
    word-break: break-word;
}


.ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: .6;
    animation: jump 1.2s ease-in-out infinite;
}

.ai-dot:nth-child(2) {
    animation-delay: .15s;
}

.ai-dot:nth-child(3) {
    animation-delay: .3s;
}

.ai-typing {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

@keyframes jump {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
}

.ai-message > .ai-avatar {
    margin-right: 8px;
}

.ai-message.user > .ai-content {
    margin-left: 8px;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.ai-message.user.enter .ai-msg-footer {
    justify-content: end;
    padding-right: 8px;
}

.bubble {
  position: relative;
  width: 110px;
  height: 110px;
  background-repeat: no-repeat;
  background-position: center;
  animation: chatFrames 0.8s steps(300) infinite;
  animation-duration: 3.5s;
			 
}

@keyframes chatFrames {
  0%    { background-image: url("../images/5.svg"); }
  30%   { background-image: url("../images/2.svg"); }
  40%   { background-image: url("../images/3.svg"); }
  50%   { background-image: url("../images/4.svg"); }
  60%   { background-image: url("../images/3.svg"); }
  70%  	{ background-image: url("../images/2.svg"); }
  80%  { background-image: url("../images/2.svg"); }
  100%  { background-image: url("../images/5.svg"); }
}

.bubble::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 85, 244, 0.2), transparent 65%);   
  pointer-events: none;
}
.ai-bubble.ai.reveal a {
	color: #fff;
	text-decoration: underline;
}
