#chat {
  font-size: 15px;
    color:rgb(255, 255, 255);
    position: fixed;
    display: flex;
    flex-direction: column;
    height: 50%;
    width:100%;
    max-width: inherit;
    bottom:0;
    z-index:2;
    display: none;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
  }
  .chat-content::-webkit-scrollbar {
    width: 2px;
  }
  .chat-content {
    
    user-select: none;
    font-weight: bold;
    display: grid;

    align-items: end;
    justify-content: start;
    flex-grow: 1;
    padding: 15px 20px 24px 10px;
    overflow: auto;
    background: none;
    overscroll-behavior-y: contain;
    scroll-snap-type: y proximity;
  }
  .chat-content .chat-message:last-child {
    scroll-snap-align: end;
  }
  .chat-message {
    user-select: none;
    position: relative;
    text-align: left;
    padding: 3px 0;
    max-width: 560px;
    width:fit-content;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
  }
  
  .chat-message:hover .chat-message-button,
  .chat-message:focus .chat-message-button {
    visibility: visible;
  }
  
  .chat-message:focus-within .chat-message-button {
    visibility: visible;
  }
  
  .chat-message .room_chat_avatar{
    width: 31px;
    border-radius: 50%;
  }
  .chat-message .c_col{
    display: table-cell;
    vertical-align: middle;
  }
  .chat-message-name {
    margin-bottom: 0px;
    line-height: 1;
    color: #dfdfdf;
    border-radius: 10px;
    padding: 0 1px;
    background: linear-gradient(180deg, rgba(18,18,18,0) 0%, rgba(0,0,0,0.05) 70%, rgb(0 0 0 / 0%) 100%);
    width:fit-content;
  }
  .chat-message-text {
    margin: 0;
    background: linear-gradient(180deg, rgba(18,18,18,0) 0%, rgba(0,0,0,0.05) 70%, rgb(0 0 0 / 0%) 100%);
    border-radius: 10px;
    padding: 0 1px;
    line-height: 1.5; 
    width:fit-content;
  }
  .chat-message-button {
    position: absolute;
    width: 18px;
    height: 18px;
    top: -5px;
    right: -5px;
    padding: 0;
    visibility: hidden;
    background-color: #ffffff;
    background-image: url("https://htmlacademy.ru/assets/courses/303/icon-cross.svg");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 50%;
    font: inherit;
    font-size: 0;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
  }
  
  .chat-message + .chat-message {
    margin-top: 5px;
  }  
  .chat-form {
    display: flex;
    align-items: center;
    padding: 6px;
  }
  .chat-form .svg-icon.svg-icon-muted{
    color:white;
  }
  .chat-form-input {
    flex-grow: 1;
    border:0;
    box-sizing: border-box;
    margin: 6px;
    padding: 10px 20px 9px 11px;
    color:white;
    background-color: #847e7769;
    font-weight: 600;
    font-size: 16px;
  }
  
  .chat-form-input::placeholder {
    color: #cccccc;
  }
  
  .chat-form-input:hover {
    outline: none;
  }
  
  .chat-form-input:focus {
    outline: none;
    border:0;
  }
  
  .chat-form-input,
  .chat-form-button {
    border-radius: 50px;
  }
  
  .chat-form-button {
    flex-shrink: 0;
    padding: 14px 10px;
    color: #ffffff;
    background-color: #1f1f1f;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
  
    user-select: none;
    outline: none;
    touch-action: manipulation;
    cursor: pointer;
  }
  
  .chat-form-button:hover {
    background-color: #000000;
    box-shadow: 0 8px 4px rgba(0, 0, 0, 0.15);
  }
  
  .chat-form-button:focus {
    border-color: 2px solid #9edcff;
  }
  
  .chat-form-button:active {
    background-color: #208b44;
    box-shadow: none;
  }
  .chat_btn{
    cursor:pointer;
    margin:0 4px;
    width:40px;
    height:40px;
    user-select: none;
  }
  .chat_btn .cbtn_icon{
    width: 25px;
    margin: auto;
  }
  .chat_btn img{
    width:100%;
  }
  .chat_btn .cbtn_name{
    color:white;
    font-size: 12px;
    margin: auto;
  }
  #chat_submit_btn{
    display:none;
  }