/**
 * Frontend chat widget styles.
 * Used by the chat UI on public pages. Colors are overridden dynamically by the AI/Look & Feel system.
 * Do NOT add admin panel styles here - use admin.css instead.
 */

.user-message {
	background-color: #d1ecf1;
	color: #0c5460;
	padding: 8px 12px;
	border-radius: 15px;
	max-width: 75%;
	margin-left: auto;
	text-align: right;
}

.ai-message {
	background-color: #e2e3e5;
	color: #383d41;
	padding: 8px 12px;
	border-radius: 15px;
	max-width: 75%;
	margin-right: auto;
	text-align: left;
}

.thumbsdown {
	width: 25px;
	height: 25px;
}

#recordButton {
	width: 50px;
	height: 50px;
	position: absolute;
	right: -11px;
	top: -62px;
}

.downvote {
	background: #d79797;
	border-radius: 5px;
	border: 1px solid #491d1d;
	padding: 5px;
	cursor: pointer;
}

#chatContainer {
	background-color: rgb(255, 255, 255);
	background-clip: border-box;
	background-origin: padding-box;
	background-position: 0% 0%;
	background-repeat: repeat;
	background-size: auto;
	background-attachment: scroll;
	background-image: none;

	border: 1px solid rgba(0, 0, 0, 0.176);
	border-radius: 6px !important;

	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	color: rgb(33, 37, 41);

	display: flex;
	flex-direction: column;

	font-family: 'SansPro', Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px !important;

	height: 400px;
	width: 350px;
	max-width: 95%;
	min-width: 0;
	margin-top: 20px;
	padding: 0;

	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99999;

	outline: none;
	overflow-wrap: break-word;
	text-align: start;
	text-size-adjust: 100%;
	unicode-bidi: isolate;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#chatContainer .card {
	--bs-card-group-margin: 10px;
	font-size: 17px !important;
}

#chatContainer .card-header {
	background-color: #f8f9fa;
	padding: 10px 15px !important;
	border-bottom: 1px solid #ddd;
	font-weight: 600;
	display: flex;

	border-top-right-radius: 6px !important;
	border-top-left-radius: 6px !important;
	justify-content: space-between;
	align-items: center;
}

#chatContainer .card-header span {
	font-family: 'Source Sans Pro', Arial, sans-serif !important;
	font-size: 17px !important;
	font-weight: 400 !important;
}

.btn-group {
	border-radius: var(--bs-border-radius);
}

.btn-group,
.btn-group-vertical {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
}

#chatContainer .btn-secondary {
	background-color: rgb(54, 115, 249);
	border: 1px solid rgb(108, 117, 125);
	border-radius: 4px;
	box-sizing: border-box;
	color: rgb(255, 255, 255);
	cursor: pointer;
	flex: 1 1 auto;
	font-family: 'SansPro', Arial, sans-serif;
	font-size: 12.4px;
	font-style: normal;
	font-weight: 400;
	height: 28.6px;
	letter-spacing: normal;
	line-height: 18.6px;
	margin: 0 2px;
	overflow-wrap: break-word;
	padding: 4px 6.4px;
	position: relative;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition: all 0.3s ease 0s;
	user-select: none;
	vertical-align: middle;
	width: 27.2px;
	word-spacing: 0px;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#chatContainer .btn-danger {
	background-color: rgb(255, 0, 0);
	border: 1px solid rgba(0, 0, 0, 0);
	border-radius: 4px;
	box-sizing: border-box;
	color: rgb(255, 255, 255);
	cursor: pointer;
	display: block;
	flex: 1 1 auto;
	font-family: 'SansPro', Arial, sans-serif;
	font-size: 12.4px;
	font-style: normal;
	font-weight: 400;
	height: 28.6094px;
	letter-spacing: normal;
	line-height: 18.6px;
	margin: 0 5px;
	overflow-wrap: break-word;
	padding: 4px 6.4px;
	position: relative;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition: all 0.3s ease 0s;
	user-select: none;
	vertical-align: middle;
	width: 22.0312px;
	word-spacing: 0px;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#chatContainer input.form-control {
	border: 1px solid #ced4da;
	border-radius: 5px !important;
	padding: 10px 20px !important;
	box-shadow: none;
	outline: none;
	position: relative;
	flex: 1 1 auto;
	width: 1%;
	min-width: 0;
	min-height: 30px;
	background-color: #fff;
	color: #2c3338;
	display: block;
	margin: 0;
	cursor: text;
	height: 38px;
	letter-spacing: normal;
	line-height: 24px;
	margin: 0;
	font-family: 'SansPro', Arial, sans-serif;
	font-size: 17px !important;
	font-style: normal;
	font-weight: 400;
}

#chatContainer .card-footer {
	padding: 6px 12px !important;
}

#chatContainer .card-footer:last-child {
	border-radius: 0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius);
}

#chatContainer .card-body {
	padding-top: 3px;
	font-family: 'Source Sans Pro', Arial, sans-serif !important;
	font-size: 17px !important;
	font-weight: 400 !important;
}

#chatContainer .input-group {
	align-items: stretch;
	box-sizing: border-box;
	color: rgb(33, 37, 41);
	display: flex;
	flex-wrap: wrap;
	font-family: 'SansPro', Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	height: 38px;
	line-height: 24px;
	outline: none;
	overflow-wrap: break-word;
	position: relative;
	text-align: start;
	text-size-adjust: 100%;
	unicode-bidi: isolate;
	width: 100%;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#chatContainer .btn-primary {
	background-color: rgb(13, 110, 253);
	border: 1px solid rgba(0, 0, 0, 0);
	border-radius: 4px;
	box-sizing: border-box;
	color: rgb(255, 255, 255);
	cursor: pointer;
	display: block;
	font-family: 'SansPro', Arial, sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	height: 38px;
	letter-spacing: normal;
	line-height: 21px;
	margin: 0 0 0 -1px;
	overflow-wrap: break-word;
	padding: 4px 8px;
	position: relative;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition: all 0.3s ease 0s;
	user-select: none;
	vertical-align: middle;
	width: 50.7031px;
	word-spacing: 0px;
	z-index: 3;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#chatContainer #sendMessageBtn {
	min-width: 50px;
	flex: 0 0 auto !important;
	width: 50px !important;
	white-space: nowrap !important;
}

#chatContainer .text-muted {
	font-size: 17px !important;
}
