.select2-selection__choice__remove {
    position: relative !important;
}

.select2-selection__rendered li {
    position: relative !important;
}

form select.invalid~.select2 .select2-selection {
    border-color: #ff3e1d;
}
.select2-container--default{
    width: 100% !important;
}

form select.is-invalid~.select2 .select2-selection {
    border-color: #ff3e1d !important;
}

/* span.select2-container {
    z-index:1050;
} */
.chat-container {
    max-width: 600px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background-color: var(--bs-primary);
    color: #fff;
    padding: 15px;
    text-align: center;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.message {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.message.self {
    background-color: var(--bs-primary);
    color: white;
    align-self: flex-end;
    width: 75%;
    float: right;
    position: relative;
}

.message.self::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--bs-primary);
    right: -8px;
    left: auto;
    top: 7px;
    transform: rotate(180deg);
}

.message.sender {
    background-color: var(--bs-secondary);
    color: white;
    width: 75%;
    float: left;
    position: relative;
}

.message.sender::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--bs-secondary);
    left: -8px;
    top: 7px;
    transform: rotate(180deg);
}

.chat-user-name{
    font-size: 9px;
    color: white;
}

.btnCancel{
    z-index: 5 !important;
}

#message-main-body{
    background-repeat: repeat-y;
    min-height: 30vh;
}
#ms-scroll-able::-webkit-scrollbar {
    width: 0; /* For Chrome, Safari, and Opera */
}

.loader {
    width: 75px;
    aspect-ratio: 1;
    display:grid;
    -webkit-mask: conic-gradient(from 15deg,#0000,#000);
    animation: l26 1s infinite steps(12);
  }
  .loader,
  .loader:before,
  .loader:after{
    background:
      radial-gradient(closest-side at 50% 12.5%,
       var(--bs-primary) 96%,var(--bs-secondary)) 50% 0/20% 80% repeat-y,
      radial-gradient(closest-side at 12.5% 50%,
       var(--bs-primary) 96%,var(--bs-secondary)) 0 50%/80% 20% repeat-x;
  }
  .loader:before,
  .loader:after {
    content: "";
    grid-area: 1/1;
    transform: rotate(30deg);
  }
  .loader:after {
    transform: rotate(60deg);
  }
  
  @keyframes l26 {
    100% {transform:rotate(1turn)}
  }

  #loading_modal{
    z-index: 1999;
  }

  .loader-content {
    background-color: transparent !important; /* Remove background color */
    border: none; /* Remove border */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full height of viewport */
  }

  #loading_modal.modal .modal-backdrop.show {
    opacity: 0 !important; /* Remove backdrop */
  }