.temeto-szichip-ai {
  max-width: 900px;
  margin: 24px auto;
  border: 1px solid #cfead7;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(12, 107, 53, 0.14);
  font-family: Arial, sans-serif;
}

.temeto-szichip-ai__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #0c7a3d, #25b967);
  color: #fff;
}

.temeto-szichip-ai__header span {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  opacity: 0.92;
}

.temeto-szichip-ai__header h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.1;
}

.temeto-szichip-ai__header strong {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.temeto-szichip-ai__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 340px;
  max-height: 540px;
  overflow: auto;
  padding: 20px;
  background: #f7fcf8;
}

.temeto-szichip-ai__bubble {
  max-width: 78%;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.45;
  font-size: 15px;
}

.temeto-szichip-ai__bubble--ai {
  align-self: flex-start;
  border: 1px solid #d9efdf;
  background: #fff;
  color: #153421;
}

.temeto-szichip-ai__bubble--user {
  align-self: flex-end;
  background: #0c7a3d;
  color: #fff;
}

.temeto-szichip-ai__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #d9efdf;
  background: #fff;
}

.temeto-szichip-ai__form textarea {
  min-height: 58px;
  width: 100%;
  resize: vertical;
  border: 1px solid #bfe0c8;
  border-radius: 10px;
  padding: 12px;
  background: #fbfffc;
  color: #153421;
  font: inherit;
}

.temeto-szichip-ai__form button {
  min-width: 112px;
  border: 0;
  border-radius: 10px;
  background: #0c7a3d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.temeto-szichip-ai__form button:hover {
  background: #096633;
}

.temeto-szichip-ai__status {
  margin: 0;
  padding: 0 16px 16px;
  color: #49715b;
  font-size: 13px;
}

@media (max-width: 640px) {
  .temeto-szichip-ai__header,
  .temeto-szichip-ai__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .temeto-szichip-ai__bubble {
    max-width: 94%;
  }
}
