.chat-sidebar h2{
    font-size: 23px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    color: #2271b1;
}
.chat-item{
        font-size: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    color: #50575e !important;
    font-weight: 500 !important;
        padding: 14px 24px !important;
}
.head-chatss{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}
.person-chat{
    font-size: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
      font-style: normal !important;
}
.person-chat em{
       font-size: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
        font-style: normal !important;
         font-weight: 400 !important;
}
.chat-main h2{
font-size: 23px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    color: #2271b1;
}
.chat-main small{
    color: #50575e;
    font-size: 16px;
}
.user-chat-sidebar {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius:8px ;
    border: 1px solid #ddd; padding: 10px; 
     overflow-y: auto;
}
.user-chat-sidebar .property-item {
    padding: 10px; border-bottom: 1px solid #eee; cursor: pointer;
}
.user-chat-sidebar .property-item.active {
    background: #18355D; font-weight: bold;
        border-radius: 10px;
    color:#fff;
}
.user-chat-main {
    flex-grow: 1; border: 1px solid #ccc; padding: 15px; background: #fff;
  
}
.chat-wrapper,
.chat-bubble,
.chat-text,
.chat-name,
.chat-file {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
   /* default WP admin text color */
}
.chat-box {  overflow-y: auto;  padding: 10px; margin-bottom: 10px; }
.chat-message { margin-bottom: 10px; }
.chat-message strong { display: block; color: #555; }
.chat-message small { font-size: 11px; color: #888; }
            
.user-chat-main {
  
  border: 1px solid #ddd;
  border-radius: 10px;
 
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-box {
  flex: 1;
  padding: 15px;
  height: 350px;
  overflow-y: auto;
}

.chat-file img{
    width: 100% !important;
}

#admin-reply-form {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #ccc;
  
  gap: 10px;
  flex-wrap: wrap;
}

#admin-reply-form textarea {
  flex: 1;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  resize: none;
  height: 44px;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  background-color: white;
}

#admin-reply-form input[type="file"] {
  display: none;
}

.file-label {
  cursor: pointer;
  margin-left: 10px;
  color: #555;
}

.send-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #18355D;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.send-button:hover {
  background-color: #1DA851;
}

.send-button svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.chat-message {
    margin-bottom: 15px;
}
.chat-message strong {
    display: block;
    font-weight: bold;
    margin-bottom: 2px;
}
.chat-message small {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}
.bubble {
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
    max-width: 80%;
    word-wrap: break-word;
}

.user-msg .bubble {
    background-color:#18355D;
    color: #fff;
  
    border-top-left-radius: 0;
}

.admin-msg .bubble {
    background-color: #d84c4d;
    color: #fff;
    border-top-right-radius: 0;
    margin-left: auto;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    max-width: fit-content;
    margin: 10px;
    padding: 10px 15px;
    border-radius: 15px;
    background: #f1f1f1;
    position: relative;
    clear: both;
}



.chat-meta {
    text-transform: capitalize;
    font-size: 18px;
    color: #000;
    margin-bottom: 5px;
}

.chat-text {
    font-size: 14px;
    color: #fff;
}

.chat-file {
    margin-top: 5px;
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    margin: 10px;
    
    border-radius: 12px;
    padding: 20px;
    background: aliceblue;
}

.chat-wrapper.user {
    align-self: flex-start;
    text-align: left;
}

.chat-wrapper.admin {
    align-self: flex-end;
    text-align: right;
}
.chat-wrapper.user .chat-bubble{
    background-color:#18355D !important;
}
.chat-name {
    text-transform: capitalize;
    font-size: 18px;
    color: #000;
    margin-bottom: 0;
}
.chat-name small { font-size: 12px;
    color: #000;
    margin-bottom: 0;
}
.chat-name i {
    font-size: 25px;
   
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    background: #f1f1f1;
    word-wrap: break-word;
    position: relative;
}

.chat-wrapper.user .chat-bubble {
    background-color:#18355D !important;
    border-top-left-radius: 0;
    
}

.chat-wrapper.admin .chat-bubble {
    width: fit-content;
    background-color: #d84c4d !important;
    border-top-right-radius: 0;
   margin-left: auto;
  margin-right: 0;
 
}



.chat-file {
    margin-top: 5px;
}

.file-preview-wrapper {
    position: relative;
    display: inline-block;
}

.preview-close {
    display: inline-block;
    color: #d00;
    margin-left: 10px;
}