#chatgpt-container {
  max-width: 960px; /* увеличили ширину */
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 10px;
  background: #f9f9f9;
  font-family: system-ui, sans-serif;
}

#chatgpt-messages {
  height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
}

.chatgpt-msg {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chatgpt-user { background: #dfffdc; text-align: right; }
.chatgpt-bot { background: #ececec; }
.chatgpt-bot.error { color: #b30000; }

#chatgpt-input-area {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#chatgpt-input {
  flex: 1;
  resize: none;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-height: 38px;
}

#chatgpt-send {
  padding: 6px 12px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  height: 38px;
  line-height: 1.2;
}

#chatgpt-send:hover { background: #005f8a; }

.chatgpt-thumb {
  display: block;
  max-width: 150px;
  margin: 5px 0 5px auto;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Плюсик кнопка */
.chatgpt-file-btn {
  width: 38px;
  height: 38px;
  background: #0073aa;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 22px;
  user-select: none;
  position: relative;
}

.chatgpt-file-btn .plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.chatgpt-file-btn:hover { background: #005f8a; }

/* Индикатор GPT печатает */
.typing .dots::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  margin-right: 2px;
  background: #555;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.typing .dots::after:nth-child(2) { animation-delay: 0.2s; }
.typing .dots::after:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}
.chatgpt-file-btn .plus {
    font-size: 30px;
    font-weight: 500;
}
textarea#chatgpt-input {
	height: 3rem;
}@media screen and (min-width: 1000px) {
    .chatgpt-file-btn .plus {
        margin-top: -3px;
    }
}
