.rfq-assistant {
  position: fixed;
  right: max(18px, calc((100vw - 1536px) / 2 + 28px));
  bottom: 24px;
  z-index: 90;
}

.assistant-launcher {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 229, 184, 0.95), transparent 31%),
    linear-gradient(145deg, #e6a052, #c77728);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(55, 34, 15, 0.24);
}

.rfq-assistant.open .assistant-launcher {
  display: none;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  width: min(420px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(154, 103, 50, 0.24);
  background: #fffaf1;
  box-shadow: 0 28px 80px rgba(43, 29, 16, 0.25);
}

.assistant-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: rgba(51, 33, 20, 0.96);
}

.assistant-header strong {
  color: #fff;
  font-size: 16px;
}

.assistant-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.assistant-header button,
.assistant-actions button,
.assistant-prompts button,
.assistant-input button {
  border: 1px solid var(--line);
  background: var(--cream-2);
  color: var(--ink);
}

.assistant-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 16px;
}

.assistant-message {
  max-width: 88%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.assistant-message.visitor {
  justify-self: end;
  background: var(--cream);
}

.assistant-message p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.assistant-actions,
.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.assistant-actions {
  padding: 10px 0 0;
}

.assistant-actions button,
.assistant-prompts button,
.assistant-input button,
.assistant-header button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.assistant-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 16px 16px;
}
