*{ box-sizing: border-box }
*::-webkit-scrollbar{width: 8px;}
*::-webkit-scrollbar{ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0)}
*::-webkit-scrollbar-thumb{ background-color: rgba(0,0,0,0.4)}
*::selection{
    background-color: #524848a3;
    color: #fbfbfb;
}
.dg-chat-bot{
	--color-1: #eb3563;
	--color-1-low-opacity: #eb356352;
	--color-border: #a5a5a5;

	position: fixed;
	right: 5px;
	bottom: 5px;
	backdrop-filter: blur(4px);
	width: 80px;
	height: 80px;
	z-index: 99999;
	border-radius: 15px;
	overflow: hidden;
	transition: opacity 0.3s ease-out;
	font-family: system-ui, sans-serif;

	display: flex;
	flex-flow: column nowrap;
    justify-content: flex-end;

    transition: 0.1s ease-in-out;
}
.dg-chat-bot.open{
	width: clamp(0px, 400px, 100vw);
	height: clamp(100px, 500px, calc(100vh - 10px));
	border: solid 1px var(--color-border);
}


.open-button{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	cursor: pointer;
	outline: 0;
/*	background: var(--color-1);*/
	background: white;
	border: solid 3px var(--color-1);
	fill: var(--color-1);
	border-radius: 20px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    transition: 0.1s ease-in-out;
}
.open-button svg{
	fill: var(--color-1);
}
.open-button:hover{
	background: var(--color-1);
}
.open-button:hover svg{
	fill: white;
}

.square-button{
	top: 0;
	position: fixed;
	border: 0;
	outline: 0;
	width: 50px;
	height: 50px;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: #ffffff;
	color: #43434e;
	transition: 0.1s ease;
	opacity: 0.5;
	z-index: 3;

	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.17);
}

.close-button{
	left: 0;
	border-radius: 0px 0px 15px 0px;
}
.clear-button{
	right: 0;
	border-radius: 0px 0px 0px 15px;
}
.square-button:hover{
	opacity: 1;
	color: var(--color-1);
	fill: var(--color-1);
}

.square-button svg{
	transition: 0.1s ease-in-out;
}
.square-button:hover svg{
	transform: scale(1.5);
}

.clear-button:hover svg{
	fill: #03c3ec !important;
}


.chat-window{
	padding: 10px;
	background: #24354245;
	overflow-y: auto;
	overflow-x: hidden;
	scroll-behavior: smooth;
	transition: 0.07s ease;

	display: flex;
	flex-flow: column nowrap;
	gap: 20px;
	flex: 1;

	padding-top: 60px;
}
.chat-window .message{
	display: flex;
	flex-flow: row nowrap;
}
.chat-window .message .message-contents {
	position: relative;
	width: auto;
	min-width: 100px;
	max-width: 80%;
	background: white;
	border-radius: 10px;
	padding: 7px 10px;
	box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
	font-size: 0.8em;
	cursor: default;
	transition: 0.1s ease;

	user-select: none;
}




.chat-window .message:not(.user) {
	justify-content: right;
	text-align: left;
}
.chat-window .message.user {
	justify-content: left;
	text-align: left;
}
.chat-window .message.user .message-contents {
	background: var(--color-1);
	color: white;
}
/*.chat-window .message:not(.user) .message-contents:hover {
	transform: translateX(-5px);
}
.chat-window .message.user .message-contents:hover {
	transform: translateX(5px);
}*/


@keyframes left-to-right {
	from {
		right: 270px;
		opacity: 0;
	}
	to {
		right: 0px;
		opacity: 1;
	}
}
@keyframes right-to-left {
	from {
		left: 270px;
		opacity: 0;
	}
	to {
		left: 0px;
		opacity: 1;
	}
}
.chat-window .message.user .message-contents {
	animation-name: right-to-left;
	animation-duration: 0.2s;
	animation-timing-function: ease-out;
}
.chat-window .message:not(.user) .message-contents {
	animation-name: left-to-right;
	animation-duration: 0.2s;
	animation-timing-function: ease-out;
}




.input-form{
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	padding: 10px;
	gap: 10px;
	background: #24354229;
}
.input-form textarea{
	border-radius: 20px;
	outline: none;
	padding: 5px 10px;
	background: white;
	border: solid 1px #d5d5d5;
	font-family: system-ui;
	transition: 0.05s ease;
	font-family: system-ui, sans-serif;
	resize: none;
	flex: 1;
}
.input-form textarea:hover{ border: solid 1px var(--color-1-low-opacity); }
.input-form textarea:focus{ border: solid 1px var(--color-1); }

.input-form button{
	border-radius: 20px;
	background: var(--color-1);
	border: solid 1px var(--color-1);
	padding: 5px;

	width: 50px;
	cursor: pointer;
	outline: none;
	transition: 0.1s ease;
	font-size: 2em;
	color: white;
	font-family: system-ui, sans-serif;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
}
.input-form button > svg{
	height: 15px;
	margin-bottom: -3px;
	fill: white;
	transition: 0.1s ease;
}
.input-form button:hover, .input-form button:focus{
	background: white;
	color: var(--color-1);
}
.input-form button:hover > svg, .input-form button:focus > svg{
	fill: var(--color-1);
}


pre:has( > code){
	background: #07566f14;
	padding: 10px 15px;
	border-radius: 10px;
	box-shadow: 0px 1px 15px rgba(0, 0, 0, 0.1) inset;
	white-space: pre-line;
}
code{
	font-size: 1.1em;
	color: #3d324b;
}