.am-assist {
  --am-bg: #1c2b24;
  --am-panel: #f7f3ea;
  --am-accent: #2f6b4f;
  --am-text: #1a1a1a;
  font-family: inherit;
}
.am-assist__btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 11000;
  border: 0;
  border-radius: 999px;
  background: var(--am-accent);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.am-assist__panel {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 11001;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  display: none;
  flex-direction: column;
  background: var(--am-panel);
  color: var(--am-text);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.am-assist__panel.is-open {
  display: flex;
}
.am-assist__head {
  background: var(--am-bg);
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
}
.am-assist__head small {
  display: block;
  opacity: 0.75;
  font-size: 11px;
  margin-top: 4px;
}
.am-assist__log {
  flex: 1;
  overflow: auto;
  padding: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.am-assist__msg {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
}
.am-assist__msg--user {
  background: #e4efe8;
}
.am-assist__products {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.am-assist__products li {
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid #ddd4c4;
  border-radius: 8px;
  background: #fff;
}
.am-assist__products a {
  color: var(--am-accent);
  font-weight: 600;
}
.am-assist__why {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}
.am-assist__form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e2dacb;
}
.am-assist__form textarea {
  flex: 1;
  min-height: 44px;
  resize: none;
  border: 1px solid #d5ccbc;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
}
.am-assist__form button {
  border: 0;
  background: var(--am-accent);
  color: #fff;
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
}
.am-assist__note {
  font-size: 11px;
  color: #666;
  padding: 0 12px 10px;
}
