.chart-box .open-button {
    background-color: #555;
    color: white;
    padding: 8px 10px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 1px;
    right: 28px;
    width: 192px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: 36px;
    font-size: 0.915rem;
}

.chart-box .form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 1px rgba(13,110,253,.25) !important;
}

.chart-box .form-control {
	margin: 10px auto !important;
}

/* The popup chat - hidden by default */
.chart-box .chat-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 5px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    z-index: 9;
    width: 312px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    /*overflow-y: scroll;*/
}


.chart-box .chat-popup.carea {
    display: none;
    position: fixed;
    bottom: 0;
    right: 5px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    z-index: 9;
    width: 312px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    height: 85vh !important;
	background: #fff;
}

.chart-box .chat-popup-static {
    display: block;
    position: fixed;
    bottom: 0;
    right: 5px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    z-index: 9;
    width: 312px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    height: 85vh !important;
	background: #fff;
}

/* Add styles to the form container */
.chart-box .form-container {
    max-width: 312px;
    padding: 10px;
    background-color: white;
}

/* Full-width textarea */
.chart-box .form-container textarea {
  width: 100%;
  padding: 15px;
  margin: 5px 0 10px 0;
  border: none;
  background: #f1f1f1;
  resize: none;
      min-height: fit-content;
    max-height: 78px;
}

/* When the textarea gets focus, do something */
.chart-box .form-container textarea:focus {
  background-color: #ddd;
  outline: none;
}



/* Set a style for the submit/send button */
.chart-box .form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    opacity: 0.8;
}

.chart-box .close-minimize-btn span{
	font-size: 19px !important;
	vertical-align: middle  !important;
}

.chart-box .chat-title {
	font-size: 16px;
}

.chart-box ::placeholder {
  font-size: 14px;
}

/* Add a red background color to the cancel button */
.chart-box .form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.chart-box .form-container .btn:hover, .chart-box .open-button:hover {
  opacity: 1;
}

#chatboxcontainer{
	transition: transform 0.4s ease-out;
}

.chart-box button i.bi.bi-send::before {
    transform: rotate(45deg);
}

.chart-box .chat-body-area {
    font-size: 13px;
    height: 308px;
    top: 38px;
    max-height: 308px;
    overflow-y: scroll;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.chart-box .user-img img{
    height: 36px;
    width: 36px;
    display: inline-flex;
    vertical-align: middle;
	border-radius: 50%;
	margin: 2px 5px;
}


.chart-box .user-name{
font-size: 13px;
    margin-left: 10px;
   text-wrap: nowrap;
}


.chart-box .mgs-time{
font-size: 11px;
    font-weight: 600;
    font-style: italic;
    margin-left: 10px;
   text-wrap: nowrap;
}

.chart-box .mgs-time-right{
font-size: 11px;
    font-weight: 600;
    font-style: italic;
    margin-right: 10px;
   text-wrap: nowrap;
}

.chart-box .user-chat-left {
display: inline-flex;
    width: 80%;
    vertical-align: middle;
    background-color: #f5f5f5 !important;
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%) !important;
    border: 1px solid #ddd !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 0 18px 18px 18px!important;
    font-size: 13.45px !important;
    white-space: break-spaces !important;
    text-align: start;
   margin: 6px auto !important;
}

.chart-box .user-chat-right {
display: inline-flex;
    width: 80%;
    vertical-align: middle;
    background-color: #f5f5f5 !important;
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%) !important;
    border: 1px solid #ddd !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 18px 0px 18px  18px !important;
    font-size: 13.45px !important;
    white-space: break-spaces !important;
    text-align: start;
   margin: 6px auto !important;
}


.chart-box .chat-error {
	font-size: 13px;
	display:block;
	padding: 9px 15px;
	background: #fff;
	color: red;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width:60%;
}