.CHB {
	margin: 0;
	padding: 5px 0 0
}

.CHB .L {
	background: #f6f7fb;
	padding: 30px 0 15px;
	width: 350px
}

.CHB .R {
	padding: 15px 15px 15px 0;
	width: calc(100% - 350px)
}

.avatar {
	background: url('img/user_bg.svg');
	background-size: cover;
	border-radius: 50%;
	height: 50px;
	margin: 0 auto;
	width: 50px
}

.top {
	margin: 0 0 15px;
	text-align: center
}

.top .avatar {
	height: 70px;
	width: 70px
}

.userN {
	font-size: 18px;
	padding: 5px 0 0
}

.chatB {
	display: flex;
	height: calc(100vh - 95px)
}

.searchB {
	padding: 0 15px;
	position: relative
}

.searchB i {
	position: absolute;
	right: 25px;
	top: 50%;
	transform: translateY(-50%)
}

.searchB input {
	background: #fbfcff;
	padding: 5px 30px 5px 10px
}

.C_list {
	height: calc(100vh - 300px);
	margin: 15px 0 0;
	overflow: auto;
	padding: 0 0 0 15px
}

.C_list li {
	align-items: center;
	border-bottom: 1px solid #c0c4d4;
	display: flex;
	gap: 10px;
	padding: 5px 25px 5px 10px;
	position: relative
}

.C_list li:hover {
	background: #fbfcff;
	cursor: pointer
}

.C_list li:last-child {
	border: none
}

.C_list .active, .C_list .active:hover {
	background: #fff
}

.C_list .p1 {
	font-size: 16px;
	font-weight: 600
}

.C_list .p2, .C_list .LT {
	color: #999
}

.C_list .p2 {
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap
}

.C_list b {
	align-items: center;
	display: inline-flex;
	background: #3abe3a;
	border-radius: 50%;
	color: #fff;
	height: 24px;
	justify-content: center;
	width: 24px
}

.C_list .n3 {
	text-align: end
}

.chatW {
	background: #fff;
	height: 100%;
	overflow: auto;
	padding: 15px
}

.tL {
	display: flex;
	gap: 10px
}

.chatW .avatar {
	height: 40px;
	width: 40px
}

.chatW .p1 {
	font-size: 16px
}

.chatW .p2 {
	background: #f6f7fb;
	border-radius: 10px;
	font-size: 15px;
	padding: 10px 15px;
	max-width: 85%;
	text-align: justify;
	width: fit-content
}

.chatW .p3 {
	color: #999;
	font-size: 12px
}

.tL .w {
	width: calc(100% - 50px)
}

.chatW .tR .p2 {
	background: #408efe;
	border-radius: 10px 0 10px 10px;
	color: #fff;
	margin: 0 0 0 auto
}
.chatW .tL .p2 {
    border-radius: 0 10px 10px 10px 
}

.tR .w {
	text-align: right
}

.tL, .tR {
	padding: 5px 0
}

.spinner {
	width: 24px;
	height: 24px;
	border: 3px solid #ccc;
	border-top: 3px solid #333;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

 @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
    #chat-window {
    width: 300px;
    max-height: 400px;
    border: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto;
    background-color: #f5f5f5;
    font-family: sans-serif;
  }

  .message {
    background-color: #fff;
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  .bot {
    background-color: #e0f0ff;
  }

  .typing-indicator {
    display: inline-block;
    height: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.4s infinite;
  }

  .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
  }

  @keyframes blink {
    0% { opacity: 0.2; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(-2px); }
    100% { opacity: 0.2; transform: translateY(0); }
  }
  
  
    .options {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .option-link {
      text-decoration: none;
    }

    .option-button {
      display: inline-block;
      padding: 10px 15px;
      background-color: #4CAF50;
      color: white;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .option-button:hover {
      background-color: #45a049;
    }