# CSS Customization

For more control over the embed's appearance, you can use CSS to target specific parts of the widget. The embed exposes two customizable parts: expanded and minimized. Add this CSS to your website to customize the embed

```
/* Customize the expanded (open) state */
hallway-embed::part(expanded) {
  height: 400px;
  ...
}

/* Customize the minimized (closed) state */
hallway-embed::part(minimized) {
  bottom: 40px;
  ...
}


/* Mobile styles */
@media (max-width: 768px) {
  hallway-embed::part(expanded) {
     height: 200px...
  }
}
```

The CSS ::part() selector allows you to style the embed while respecting the component's internal structure.\
\
If there are things you are looking to customize that can't be changed with a dashboard setting or css reach out to us on Discord.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hallway.gitbook.io/embed/basics/styling-the-embed/css-customization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
