
:root {
  --AIAssistantAccent: #2563eb;
  --AIAssistantAccent-hover: #1d4ed8;
}

/* the button to lauch the AI assistant */
.AIAssistant-Button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--AIAssistantAccent);
  color: #fff;
  cursor: pointer;
  box-shadow: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.AIAssistant-Button:hover {
  background: var(--AIAssistantAccent-hover);
  transform: scale(1.05);
}

.AIAssistant-Button:focus-visible {
  outline: 2px solid var(--AIAssistantAccent);
  outline-offset: 3px;
}

.AIAssistant-Button[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.AIAssistant-Button svg {
  width: 26px;
  height: 26px;
}

/* the AI assistant panel */
.AIAssistant-Panel {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1001;
  width: min(320px, calc(100vw - 2.5rem));
  border: 1px solid #000000;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85);
  background: #FFFFFF;
  pointer-events: none;
}

.AIAssistant-Panel.is-open {
  transform: scale(1);
  /* opacity: 1; */
  pointer-events: auto;
}

.AIAssistant-PanelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
}

.AIAssistant-PanelClose {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.AIAssistant-PanelClose:hover {
  background: #e2e8f0;
}

.AIAssistant-PanelClose:focus-visible {
  outline: 2px solid var(--AIAssistantAccent);
  outline-offset: 0;
}

.AIAssistant-PanelBody {
  padding: 1rem;
}

.AIAssistant-PanelBody label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.AIAssistant-PanelBody input[type="text"] {
  width: 90%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.AIAssistant-PanelBody input:focus {
  outline: none;
  border-color: var(--AIAssistantAccent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.AIAssistant-Result {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.9rem;
  word-break: break-word;
  min-height: 2.75rem;
}

.AIAssistant-ResultLabel {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.AIAssistant-ResultValue {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.AIAssistant-ResultValue:empty::before {
  content: "";
  font-weight: 400;
}
