.abs-gpt-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  font-family: inherit;
}

.abs-gpt-toggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #166064;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(22, 96, 100, 0.28);
}

.abs-gpt-panel {
  display: none;
  width: min(380px, calc(100vw - 28px));
  height: min(540px, calc(100vh - 120px));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #d7e2e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(19, 38, 50, 0.2);
}

.abs-gpt-open .abs-gpt-panel {
  display: flex;
  flex-direction: column;
}

.abs-gpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #e5ecef;
  background: #f7fafb;
}

.abs-gpt-title {
  color: #1b3440;
  font-size: 15px;
  font-weight: 700;
}

.abs-gpt-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #60737c;
  font-size: 20px;
  line-height: 1;
}

.abs-gpt-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: #ffffff;
}

.abs-gpt-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  color: #263942;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.abs-gpt-assistant {
  align-self: flex-start;
  background: #eef5f6;
}

.abs-gpt-user {
  align-self: flex-end;
  background: #166064;
  color: #fff;
}

.abs-gpt-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5ecef;
  background: #f7fafb;
}

.abs-gpt-input {
  min-height: 44px;
  max-height: 112px;
  resize: vertical;
  border: 1px solid #cbd8dc;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 14px;
}

.abs-gpt-submit {
  align-self: end;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #166064;
  color: #fff;
  font-weight: 700;
}

.abs-gpt-submit:disabled {
  opacity: 0.65;
}

@media (max-width: 575px) {
  .abs-gpt-widget {
    right: 14px;
    bottom: 14px;
  }

  .abs-gpt-panel {
    height: min(520px, calc(100vh - 100px));
  }
}
