/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

.untrusted-link-label {
  text-decoration: underline dashed;
}

.message-assistant {
  a {
    --smartwindow-assistant-link-color: light-dark(var(--color-violet-50), var(--color-violet-20));
    --smartwindow-assistant-link-color-hover: light-dark(var(--color-violet-90), var(--color-violet-50));
    --smartwindow-assistant-link-color-visited: light-dark(var(--color-violet-70), var(--color-violet-40));
    --smartwindow-assistant-link-color-active: light-dark(var(--color-violet-90), var(--color-violet-50));
    --smartwindow-assistant-accent-color-focus: light-dark(var(--color-violet-70), var(--color-violet-40));
    color: var(--smartwindow-assistant-link-color);
  }

  a:visited {
    color: var(--smartwindow-assistant-link-color-visited);
  }

  a:hover {
    color: var(--smartwindow-assistant-link-color-hover);
  }

  a:active {
    color: var(--smartwindow-assistant-link-color-active);
  }

  a:focus-visible {
    accent-color: var(--smartwindow-assistant-accent-color-focus);
    outline-style: inset;
  }
}

.message-user p {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* stylelint-disable-next-line media-query-no-invalid */
@media -moz-pref("browser.smartwindow.nova.enabled") {
  .message-assistant {
    a {
      --smartwindow-assistant-link-color-active: light-dark(var(--color-violet-80), var(--color-violet-50));
      --smartwindow-assistant-accent-color-focus: light-dark(var(--color-violet-50), var(--color-violet-20));
    }
  }
}
