.forBot{
    border-radius: 50%;
    position: fixed;
    bottom: 1vw;
    right: 1vw;
    width: 2vw;
    height: 2vw;
    font-size: 1vw;
}

.chat-container {
    width: 400px;
    max-width: 100%;
    height: 600px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: none;
    position: fixed;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    bottom: 1vw;
    right: 1vw;
}

.chat-header {
  background: #535353;
  color: white;
  padding: 15px;
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  position: relative;
}

.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background: inherit;
}

.chat-form {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  background: #fafafa;
}

.chat-form input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
}

.chat-form input:focus {
  border-color: #c4c4c4;
}

.chat-form button {
  background: #a09f9f;
  border: none;
  color: white;
  padding: 0 20px;
  margin-left: 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.chat-form button:hover {
  background: #a09f9f;
}

/* Сообщения */

.message {
  margin-bottom: 10px;
  max-width: 75%;
  padding: 10px 15px;
  border-radius: 20px;
  clear: both;
}

.message.user {
  background: #a09f9f;
  color: white;
  float: right;
  border-bottom-right-radius: 0;
}

.message.bot {
  background: #ddd;
  color: #333;
  float: left;
  border-bottom-left-radius: 0;
}

#close-btnC {
    position: absolute;
    top: 0px;
    right: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
}

@media(max-width: 1000px){
    .chat-container{
        width: 50vw;
        height: 50vh;
        bottom: 0;
        right: 0;
    }
    .forBot{
        width: 40px;
        height: 40px;
        font-size: 0.7em;
    }
}
@media(max-width: 600px){
    .chat-container{
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
    }
    .forBot{
        width: 20px;
        height: 20px;
        font-size: 0.7em;
    }
}