@charset "UTF-8";
/**
* Root-level entry point for consuming @limetech/lime-elements SCSS utilities.
*
* This file enables the clean import path:
* `@use '@limetech/lime-elements' as lime-elements;`
*
* It simply forwards everything from the built exports file.
*/
/**
* Public SCSS exports for consumers of @limetech/lime-elements.
*
* This file provides reusable styling utilities.
*
* Import this file using:
* `@use '@limetech/lime-elements' as lime-elements;`
*
* For detailed documentation of each utility, its parameters,
* and usage examples, refer to the respective source files.
*/
/**
* Note! This file is forwarded via `src/style/exports.scss`
* and exposed to consumers through the root `index.scss`.
*
* Consumers import it using:
* `@use '@limetech/lime-elements' as lime-elements;`
*
* Legacy import paths (`dist/scss/mixins`) are maintained
* for backward compatibility via copy rules in the Stencil config.
*/
/**
* Neutralizes the user-agent styles that browsers apply to `<button>` elements
* (their default background, border, padding, font, etc.), without stripping
* the useful defaults that `all: unset;` would also remove
* (such as `display`, `cursor`, and focus behavior).
*
* Prefer this mixin over `all: unset;` on `<button>` elements, then layer
* the styling you want on top — often one of the `is-*-clickable` mixins.
*/
/**
* This can be used on a trigger element that opens a dropdown menu or a popover.
*/
/**
 * This mixin will mask out the content that is close to
 * the edges of a scrollable area.
 * - If the scrollable content has `overflow-y`, use `vertically`
 * as an argument for `$direction`.
 - If the scrollable content has `overflow-x`, use `horizontally`
 * as an argument for `$direction`.
 *
 * For the visual effect to work smoothly, we need to make sure that
 * the size of the fade-out edge effect is the same as the
 * internal paddings of the scrollable area. Otherwise, content of a
 * scrollable area that does not have a padding will fade out before
 * any scrolling has been done.
 * This is why this mixin already adds paddings, which automatically
 * default to the size of the fade-out effect.
 * This size defaults to `1rem`, but to override the size use
 * `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
 * when `vertically` argument is set, and use
 * `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
 * when `horizontally` argument is set.
 * Of course you can also programmatically increase and decrease the
 * size of these variables for each edge, based on the amount of
 * scrolling that has been done by the user. In this case, make sure
 * to add a custom padding where the mixin is used, to override
 * the paddings that are automatically added by the mixin in the
 * compiled CSS code.
 */
/**
* This mixin will add an animated underline to the bottom of an `a` elements.
* Note that you may need to add `all: unset;` –depending on your use case–
* before using this mixin.
*/
/**
* This mixin creates a cross-browser font stack.
* - `sans-serif` can be used for the UI of the components.
* - `monospace` can be used for code.
*
* ⚠️ If we change the font stacks, we need to update
* 1. the consumer documentation in `README.md`, and
* 2. the CSS variables of `--kompendium-example-font-family`
* in the `<style>` tag of `index.html`.
*/
/**
* This mixin is a hack, using old CSS syntax
* to enable you to truncate a piece of text,
* after a certain number of lines.
*/
/**
* This mixin will add a chessboard background pattern,
* typically used to visualize transparency.
*/
/**
* Make a container resizable by the user.
* This is used in the documentations and examples
* of some components, to demonstrate how the component
* behaves in a resizable container.
*/
/**
 * Drag to reorder mixins
 */
/**
 * The breakpoints below are used to create responsive designs
 * in Lime's products. Therefore, they are here to get distributed
 * to all components in other private repos, which rely on this `mixins`
 * file, to create consistent styles.
 *
 * :::important
 * In very rare cases you should used media queries!
 * Nowadays, there are many better ways of achieving responsive design
 * without media queries. For example, using CSS Grid, Flexbox, and their features.
 * :::
 */
/**
  * Media query mixins for responsive design based on screen width.
  * Note that these mixins do not detect the device type!
  */
/**
* @mixin action-bar-interactions($item-selector)
* This mixin applies styles for the action bar interactions.
* For example, it animates the height of the action bar from `0` to `auto`.
*
* :::note
* The consumer should set:
* `--limebb-promoted-action-bar-grid-template-rows: 0fr;`
* when the action bar is not supposed to be visible.
* :::
*
* @param {string} $item-selector - The consumer component's tag name for the item that displays the action bar.
*/
* {
  box-sizing: border-box;
}

:host(limebb-chat-item) {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  min-height: 0;
  max-width: calc(100% - 2rem);
}

.bubble-content {
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  min-height: 0;
}

:host(limebb-chat-item:hover) .helper-text,
:host(limebb-chat-item:hover) .timestamp,
:host(limebb-chat-item:focus-within) .helper-text,
:host(limebb-chat-item:focus-within) .timestamp {
  opacity: 1;
}

:host(limebb-chat-item.mine) {
  margin-left: auto;
}
:host(limebb-chat-item.mine) .item {
  border-bottom-right-radius: 0.125rem;
  background-color: rgb(var(--color-sky-default), 0.2);
}
:host(limebb-chat-item.mine) .bubble-content {
  justify-content: end;
}
:host(limebb-chat-item.mine) .icon-picture {
  order: 2;
}

:host(limebb-chat-item.theirs) {
  margin-right: auto;
}
:host(limebb-chat-item.theirs) .item {
  border-bottom-left-radius: 0.125rem;
  background-color: rgb(var(--contrast-300), 0.7);
}

.item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 1.25rem;
  padding: 0 0.25rem 0.25rem 0.25rem;
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}

.icon-picture {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.icon-picture:has(.author-avatar) limel-icon {
  width: 1.25rem;
  padding: 0.125rem;
}

.icon {
  --icon-background-color: rgb(var(--contrast-500), 0.5);
  flex-shrink: 0;
  padding: 0.375rem;
  width: 2.25rem;
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
}

limel-ai-avatar.author-avatar {
  background-color: rgb(var(--color-glaucous-darker));
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2rem;
  padding-left: 0.5rem;
}
header:not(:has(.unpromoted-actions-menu)) {
  padding-right: 0.5rem;
}

.body-text {
  padding: 0.25rem 0.5rem;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.5rem;
  font-size: x-small;
}
footer:not(:empty) {
  padding: 0 0.25rem 0.125rem 0.5rem;
}
footer * {
  transition: opacity 0.2s ease;
  opacity: 0.4;
}

.timestamp {
  margin-left: auto;
}

.author-avatar {
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(var(--contrast-600));
}

.author {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  text-decoration: none;
}

a.author {
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
  color: var(--mdc-theme-primary);
}
a.author:before {
  transition: opacity 0.2s ease, transform 0.3s ease-out;
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  width: calc(100% - 0.5rem);
  margin: auto;
  height: 0.125rem;
  border-radius: 1rem;
  background-color: currentColor;
  opacity: 0;
  transform: scale(0.6);
}
a.author:hover {
  color: rgb(var(--color-teal-light));
}
a.author:hover:before {
  opacity: 0.3;
  transform: scale(1);
}

limel-action-bar {
  --action-bar-item-height: 1.75rem;
  transition: opacity 0.2s ease;
  justify-content: flex-start;
  opacity: 0.8;
}

.action-bar {
  display: grid;
  transition: grid-template-rows var(--limebb-promoted-action-bar-grid-template-rows-transition-speed, 0.2s) cubic-bezier(1, 0.09, 0, 0.89) var(--limebb-promoted-action-bar-grid-template-rows-transition-delay, 0s);
  grid-template-rows: var(--limebb-promoted-action-bar-grid-template-rows, 1fr);
}

.action-bar-hider {
  overflow: hidden;
}

limel-action-bar {
  transition: padding var(--limebb-promoted-action-bar-grid-template-rows-transition-speed) cubic-bezier(1, 0.09, 0, 0.89) var(--limebb-promoted-action-bar-grid-template-rows-transition-delay);
  padding-top: 0;
  padding-bottom: 0.75rem;
}

:host(limebb-chat-item:hover) .action-bar,
:host(limebb-chat-item:focus-within) .action-bar,
:host(limebb-chat-item:focus-visible) .action-bar {
  --limebb-promoted-action-bar-grid-template-rows: 1fr;
  will-change: grid-template-rows;
}
:host(limebb-chat-item:hover) limel-action-bar,
:host(limebb-chat-item:focus-within) limel-action-bar,
:host(limebb-chat-item:focus-visible) limel-action-bar {
  will-change: opacity;
  opacity: 1;
}

:host(limebb-chat-item:hover),
:host(limebb-chat-item:focus-within) {
  --limebb-promoted-action-bar-grid-template-rows-transition-speed: 0.46s;
  --limebb-promoted-action-bar-grid-template-rows-transition-delay: 0.7s;
}

.action-bar {
  min-width: 0;
  width: calc(100% - calc(2rem + 0.25rem));
}
:host(limebb-chat-item.theirs) .action-bar {
  margin-left: calc(2rem + 0.25rem);
}

:host(limebb-chat-item[has-error]:not([has-error=false])) .bubble-content {
  cursor: help;
}
:host(limebb-chat-item[has-error]:not([has-error=false])) .item {
  border: 1px solid rgb(var(--color-red-default));
}
:host(limebb-chat-item[has-error]:not([has-error=false])) .error-sign {
  color: rgb(var(--color-red-default));
  flex-shrink: 0;
  width: 1.25rem;
  align-self: center;
}

:host(limebb-chat-item.mine[has-error]:not([has-error=false])) .action-bar {
  padding-left: 1.25rem;
}
:host(limebb-chat-item.mine[has-error]:not([has-error=false])) .helper-text {
  opacity: 1;
  color: rgb(var(--color-red-default));
}