.agreement-editor {
  background: #fff;
  border: 1px solid rgb(10 10 10 / 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(10 10 10 / 0.04);
  overflow: visible;
}

.agreement-editor lexxy-toolbar {
  backdrop-filter: blur(6px);
  background: rgb(255 255 255 / 0.92);
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 0.375rem 0.75rem;
  position: sticky;
  top: 4.5rem;
  z-index: 10;
}

.agreement-editor .lexxy-editor__content {
  min-height: 32rem;
  padding: 2rem 2rem 4rem;
}

.agreement-editor .lexxy-prompt-menu {
  border: 1px solid rgb(10 10 10 / 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgb(10 10 10 / 0.14), 0 2px 6px rgb(10 10 10 / 0.06);
  font-size: 0.875rem;
  max-block-size: 22rem;
  max-inline-size: min(24rem, calc(100% - 2ch));
  overflow-y: auto;
  padding: 0.375rem;
  inline-size: 24rem;
}

.agreement-editor .lexxy-prompt-menu__item {
  border-radius: 0.5rem;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
}

.agreement-editor .lexxy-prompt-menu__item[aria-selected] {
  background: rgb(223 227 227);
}

.agreement-editor .insertion {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agreement-editor .insertion__label {
  color: rgb(23 23 23);
  font-weight: 500;
  line-height: 1.25rem;
}

.agreement-editor .insertion__text {
  color: rgb(115 115 115);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1rem;
}

.agreement-editor .insertion__hint {
  background: rgb(245 245 245);
  border-radius: 999px;
  color: rgb(82 82 82);
  flex-shrink: 0;
  font-size: 0.6875rem;
  line-height: 1rem;
  padding: 0.125rem 0.5rem;
  white-space: nowrap;
}

.agreement-editor .lexxy-prompt-menu__item[aria-selected] .insertion__hint {
  background: #fff;
}
