/* Copyright 2025 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* #css_wrapper_metadata_start
 * #type=style-lit
 * #scheme=relative
 * #css_wrapper_metadata_end */

:host {
  height: 100%;
  width: 100%;
}

.highlighted-line {
  background-color: var(--color-text-highlight);
  border-radius: 2px;
  opacity: 30%;
  position: absolute;
  z-index: 2;
  transition: background-color 200ms cubic-bezier(0.3, 0, 1, 1),
              opacity 100ms cubic-bezier(0.3, 0, 1, 1);
}

:host([has-actioned-text]) .highlighted-line {
  background-color: var(--color-text-highlight-actioned);
  opacity: 60%;
}

:host([hide-highlighted-lines]) .highlighted-line {
  opacity: 0;
}

/* Set styles for high contrast mode in Windows. */
@media (forced-colors: active) {
  .highlighted-line {
    /* Set the icon color to hcm (high contrast mode) value. */
    background-color: Highlight;
  }
}