@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
	font-style: normal;
}

@font-face {
    font-family: "Teko";
    src: url("../fonts/Teko-Medium.woff2") format("woff2");
	font-style: normal;
}

body {
    margin: 0;
    text-rendering: auto;
    text-rendering: optimizeLegibility;
    background-color: #f9f9f9;
	background-image: url(../images/background.jpg);
	background-size: cover;
    font-family: 'Montserrat', sans-serif;
	font-smoothing: antialiased;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
	-webit-text-rendering: optimizelegibility;
    padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.custom-link{
    color: #231f20!important;
    text-underline: #231f20!important;
}


.logo {
    width: 100%;
    height: 220px;
    position: relative;
    display: block;
	background-image: url(../images/logo-desktop-800x220.svg), url(../images/header-desktop-800x220.jpg);
    background-size: cover;			
	background-position: left top, center top;			
    z-index: 0;
    border-top-left-radius: 0rem;
    border-top-right-radius: 0rem;
	background-color: transparent;
}

.chat-title {
    border-bottom: 1px solid rgb(241, 241, 240);
    font-family: 'Teko', sans-serif;
    padding: 14px 0px 14px 0px;
    font-size: 24px;
    line-height: 24px;	
    text-align: left;
	margin: 0 24px;
	color: #231f20;
}

.chat-container {
	width: 100%;
    max-width: 800px;
    height: calc((100dvh));
    border: 0px solid rgb(229, 231, 235);
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 0rem;
	-webkit-box-shadow: 0 0 1.875rem 0 rgba(0,0,0,.2);
	box-shadow: 0 0 1.875rem 0 rgba(0,0,0,.2);
	margin: 0 auto;
}

.chat-history {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.chat-input {
    padding: 24px;
    display: flex;
    align-items: center;	
}

.chat-input input  {
    font-family: 'Montserrat', sans-serif;
	font-smoothing: antialiased;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
	-webit-text-rendering: optimizelegibility;
	font-size: 16px;
	line-height: 24px;	
    flex: 1;
    padding: 12px 12px 12px 16px;
	background: white;
	border: 1px solid rgb(0,0,0,0.2);
	border-right: 0px;
    border-radius: 0px;
	z-index: 99;
	color: #231f20;
}

.chat-input .blink-input  {
    animation: blink-border 2s ease-in-out 0s 2; /* Blinking animation */
}

@keyframes blink-border {
    0%, 100% {
        border-color: #4CAF50; /* Initial and final border color */
    }
    50% {
        border-color: #FF0000; /* Border color during the blink */
    }
}

.chat-input input:focus{
	outline: none;
}

.chat-history-reload-holder{
    position: relative;
}

#chat-history-reload {
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 0;
    top: -22px;
	transition: transform 0.9s ease-in-out;
}

#chat-history-reload:hover {
	transform: rotate(180deg);
}

.chat-input button {
	font-size: 34px;
	line-height: 30px;
	height: 50px;
	padding: 8px 14px;
	background-color: #bddc04;
    color: #231f20;
    cursor: pointer;
    transition: color 0.3s;
	z-index: 100;
	border: 0px solid rgb(0,0,0,0.2);
	border-left: 0;
}

.chat-input button:hover {
    color: #000000;
}

.chat-input button:disabled {
    background-color: #A9A9A9; /* Grey */
    cursor: not-allowed;
}

.message {
	color: #231f20;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
	font-size: 16px;
	line-height: 24px;
    background-color: rgb(241, 241, 240);
    border-radius: 12px 12px 12px 0px;
    padding: 12px 16px;
	margin-right: 10%;
}

.message-content p {
	margin-block-start: 0;
	margin-block-end: 0;
}

.message-content a {
    color: #bddc04;
	text-decoration: underline;
}

.message-content a:hover {
    color: #231f20;
}

.message-content table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #231f20;
	font-size: 80%;
	margin-top: 10px;
	margin-bottom: 10px;
}

.message-content table td {
	padding: 2px;
	border: 1px solid #231f20;
}

.message-content table tr:nth-child(even) {
	background-color: #f9f9f9;
}

.message-content table tr:nth-child(odd) {
	background-color: #e9e9e9;
}

.message-content table tr:hover {
	background-color: #ddd;
}

.message-content table th {
	padding: 2px;
	text-align: left;
	background-color: #bddc04;
	color: #231f20;
	border: 1px solid #231f20;
}

.message.user .message-content {
	background-color: #bddc04;
    border-radius: 12px 12px 0px 12px;	
    color: white;
	margin-right: 0;
	margin-left: 10%;
}

.message.user {
    color: white;
	border-radius: 12px 0px 12px 12px !important;	
}

.loader {
    border: 5px solid #f3f3f3;  /* Light grey */
    border-top: 5px solid #3498db;  /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;  /* Centered */
}

.disclaimer {
	text-align: center;
	color: rgb(120, 123, 128);
	font-size: 10px;
	line-height: 14px;
	padding: 0 20px 20px;
}

.disclaimer a {
	color: rgb(120, 123, 128);
	text-decoration: underline;
}

.disclaimer a:hover {
	text-decoration: none;
}	

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.linear-loader {
    width: 100%;
    height: 4px;
    background-color: #f3f3f3;  /* Light grey background */
    position: relative;
}

.bar {
    position: absolute;
    height: 100%;
    width: 0%;  /* Start at 0% width */
    background-color: #bddc04;  /* Blue bar color */
    animation: loading 1s infinite;  /* Animation to move bar */
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.qc-cmp2-persistent-link {
	font-size: 10px;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	padding: 8px 10px;
	background-color: #000000;
}

@media only screen and (max-width: 600px) { 

	body {
	    padding: 0;
	}
	
	.logo {
		height: 140px;
		background-image: url(../images/logo-mobile-600x140.svg), url(../images/header-mobile-600x140.jpg);
        background-size: cover;			
		background-position: left top, center top;			
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}	
	
	.chat-title {
		border-bottom: 1px solid rgb(241, 241, 240);
		font-family: 'Teko', sans-serif;
		padding: 12px 0px;
		font-size: 22px;
		line-height: 22px;	
		text-align: left;
		margin: 0 12px;
	}	

	.message-content {
		font-size: 15px;
		line-height: 20px;
		background-color: rgb(241, 241, 240);
		border-radius: 12px 12px 12px 0px;		
		padding: 12px 16px;
		margin-right: 10%;
	}
	
	.chat-input input  {
		font-size: 15px;
		line-height: 20px;	
    	padding: 12px 12px 12px 16px;		
	}	
	
	.chat-input button {
		font-size: 24px;
		line-height: 40px;
		height: 46px;
		padding: 8px 10px;
		background-color: #bddc04;
		color: #ffffff;
		cursor: pointer;
		transition: color 0.3s;
		z-index: 100;
		border: 0px solid rgb(0,0,0,0.2);
		border-left: 0;
	}
	
	.chat-history {
		padding: 12px;
	}	
	
	.chat-input {
		padding: 12px;
	}	
	
	.chat-container {
		height: 100dvh;
		border-radius: 0rem;
	}	

	.disclaimer {
		text-align: left;
		color: rgb(120, 123, 128);
		font-size: 8.25px;
		line-height: 14px;
		padding: 0 12px 12px;
	}	
}