@charset "UTF-8";
/**
* Note! This file is exported to `dist/scss/` in the published
* node module, for consumer projects to import.
* That means this file cannot import from any file that isn't
* also exported, keeping the same relative path.
*
* Or, just don't import anything, that works too.
*/
/**
* 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!
  */
:host(limel-email-viewer) {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

.email {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding-bottom: 0.5rem;
  box-shadow: var(--shadow-depth-8);
}

.email-headers {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.email-headers dl,
.email-headers dt,
.email-headers dd {
  margin: 0;
}
.email-headers dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}
.email-headers dl:nth-child(even) {
  background-color: rgb(var(--contrast-800), 0.1);
}
.email-headers dl dt {
  opacity: 0.6;
  min-width: 3rem;
}
.email-headers dl dt::after {
  content: ":";
}
.email-headers dl dd:not(:last-child)::after {
  content: ",";
  opacity: 0.6;
}
.email-headers dl.subject dd {
  font-weight: bold;
}
.email-headers dl.date {
  position: absolute;
  right: 0.25rem;
  transform: translateY(-50%);
  font-size: 0.625rem;
  border-radius: 9rem;
  padding: 0.25rem 0.5rem;
  background-color: rgb(var(--contrast-100), 0.3);
}
.email-headers dl.date dt {
  position: absolute;
  width: 0;
  height: 0;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.attachments {
  flex-shrink: 0;
  padding: 0.5rem;
  border-bottom: 1px dashed rgba(var(--contrast-700));
}
.attachments span {
  padding-left: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.6;
}
.attachments span:first-child::after {
  content: ":";
}
.attachments ul {
  all: unset;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.attachments li {
  all: unset;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.6875rem;
  line-height: normal;
  padding: 0.5rem 0.5rem 1rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--contrast-600));
  background-color: rgba(var(--contrast-400));
}
.attachments .attachment-filename {
  font-weight: 500;
}
.attachments .attachment-mime-type {
  opacity: 0.7;
}
.attachments limel-badge {
  --badge-max-width: auto;
  --badge-background-color: rgb(var(--contrast-1000), 0.7);
  --badge-text-color: rgb(var(--color-white));
  position: absolute;
  bottom: 0.125rem;
  right: 0.125rem;
  box-shadow: var(--shadow-brighten-edges-outside);
}

section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px dashed rgba(var(--contrast-700));
  min-height: 2rem;
  overflow-y: auto;
}

limel-collapsible-section {
  --closed-header-background-color: var(
      --lime-elevated-surface-background-color
  );
  flex-grow: 1;
  flex-shrink: 0;
  margin: 0.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-depth-8);
}
limel-collapsible-section button {
  all: unset;
  flex-shrink: 0;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: var(--limel-theme-small-font-size);
  margin: 0 0.5rem;
}
limel-collapsible-section button.load-images {
  transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
  cursor: pointer;
  color: var(--lime-primary-color, var(--limel-theme-primary-color));
  background-color: var(--lime-elevated-surface-background-color);
  box-shadow: var(--button-shadow-normal);
}
limel-collapsible-section button.load-images:hover, limel-collapsible-section button.load-images:focus, limel-collapsible-section button.load-images:focus-visible {
  will-change: color, background-color, box-shadow, transform;
}
limel-collapsible-section button.load-images:hover, limel-collapsible-section button.load-images:focus-visible {
  transform: translate3d(0, -0.04rem, 0);
  color: var(--limel-theme-on-surface-color);
  background-color: var(--lime-elevated-surface-background-color);
  box-shadow: var(--button-shadow-hovered);
}
limel-collapsible-section button.load-images:active {
  --limel-clickable-transform-timing-function: cubic-bezier(
      0.83,
      -0.15,
      0.49,
      1.16
  );
  transform: translate3d(0, 0.05rem, 0);
  box-shadow: var(--button-shadow-pressed);
}
limel-collapsible-section button.load-images:hover, limel-collapsible-section button.load-images:active {
  --limel-clickable-transition-speed: 0.2s;
  --limel-clickable-transform-speed: 0.16s;
}
limel-collapsible-section limel-markdown {
  padding: 0.5rem;
}

.body {
  flex-grow: 1;
  max-width: 100%;
  padding: 0.75rem;
}
.body.plain-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-family: inherit;
}
.body img {
  max-width: 100% !important;
}