.account-chat-layout {
	min-height: 560px;
}

.account-chat-list {
	max-height: min(680px, calc(100vh - 220px));
	overflow-y: auto;
}

.account-chat-window {
	display: flex;
	flex-direction: column;
	height: min(680px, calc(100vh - 294px));
	min-height: 420px;
	overflow: hidden;
}

.account-chat-messages {
	flex: 1;
	overflow-y: auto;
}

.account-chat-form {
	flex-shrink: 0;
}

#account-chat-message {
	overflow: hidden;
	resize: none;
	padding-right: 86px;
}

.account-chat-attach {
	color: #777;
}

.account-chat-attach:hover,
.account-chat-attach:focus {
	color: var(--bs-body-color);
}

.account-chat-subject-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
}

.account-chat-subject-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 30px;
}

.account-chat-message {
	display: flex;
	margin-bottom: 12px;
}

.account-chat-message-customer {
	justify-content: flex-end;
}

.account-chat-message-admin {
	justify-content: flex-start;
}

.account-chat-message-inner {
	max-width: 78%;
}

.account-chat-message-customer .account-chat-message-inner {
	background: #d9f2ff;
}

.account-chat-message-text {
	word-break: break-word;
}

.account-chat-message-date {
	margin-top: 4px;
	font-size: 11px;
	color: #777;
	text-align: right;
}

.account-chat-images {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.account-chat-images:empty,
.account-chat-files:empty {
	display: none;
}

.account-chat-image-link img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
}

.account-chat-file {
	display: flex;
	gap: 10px;
	align-items: center;
	min-width: 220px;
	margin-bottom: 8px;
}

.account-chat-file-icon {
	position: relative;
	width: 36px;
	text-align: center;
	color: var(--bs-dark);
}

.account-chat-file-icon i {
	font-size: 32px;
}

.account-chat-file-icon span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
	color: white;
}

.account-chat-file-body {
	min-width: 0;
}

.account-chat-file-name {
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-chat-file-meta {
	font-size: 11px;
	color: #777;
}

@media (max-width: 991.98px) {
	.account-chat-layout {
		position: relative;
		display: block;
		height: calc(100dvh - var(--header-height) - var(--footer-bar-height) - calc(1.328125rem + 0.9375vw) - 10px - .5rem);
		overflow: hidden;
	}

	.account-chat-list-panel,
	.account-chat-window-panel {
		position: absolute;
		inset: 0;
		width: 100%;
		padding: 0;
		transition: transform .25s ease;
	}

	.account-chat-list-panel {
		transform: translateX(-105%);
	}

	.account-chat-window-panel {
		transform: translateX(0);
	}

	.account-chat-layout.account-chat-show-list .account-chat-list-panel {
		transform: translateX(0);
	}

	.account-chat-layout.account-chat-show-list .account-chat-window-panel {
		transform: translateX(105%);
	}

	.account-chat-list,
	.account-chat-window {
		height: calc(100% - 14px);
		max-height: none;
		min-height: 0;
		border: 0;
		border-radius: 0;
	}


}

.account-chat-offcanvas-wrap .offcanvas-body,
.account-chat-offcanvas {
	height: 100%;
}

.account-chat-offcanvas {
	position: relative;
	display: block;
	min-height: 0;
	overflow: hidden;
}

.account-chat-offcanvas .account-chat-list-panel,
.account-chat-offcanvas .account-chat-window-panel {
	position: absolute;
	inset: 0;
	width: 100%;
	padding: 0;
	transition: transform .25s ease;
}

.account-chat-offcanvas .account-chat-list-panel {
	transform: translateX(-105%);
}

.account-chat-offcanvas .account-chat-window-panel {
	transform: translateX(0);
}

.account-chat-offcanvas.account-chat-show-list .account-chat-list-panel {
	transform: translateX(0);
}

.account-chat-offcanvas.account-chat-show-list .account-chat-window-panel {
	transform: translateX(105%);
}

.account-chat-offcanvas .account-chat-list,
.account-chat-offcanvas .account-chat-window {
	height: 100%;
	max-height: none;
	min-height: 0;
	border: 0;
	border-radius: 0;
}

.account-chat-offcanvas .account-chat-back {
	display: block !important;
}

@media (max-width: 991px) {
	
	.route-2-chat {
		height: 100dvh;
		display: flex;
		flex-wrap: wrap;
		flex-direction: column;
	}
	.route-2-chat .footer-bar {
		position: relative !important;
		order: 10;
	}
	.route-2-chat main {
		width: 100%;
		height: calc(100dvh - var(--footer-bar-height) - var(--header-height));
		position: relative;
	}
	#account-chat-message {
		
	}
	
}
@media (min-width: 992px){
	.account-chat-messages {
		background-color: rgba(var(--bs-light-rgb), 0.3);
	}
	.account-chat-message-inner {
		background-color: var(--bs-white);
	}
}
.route-2-chat footer {
	display: none;
}
