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

@scope to (devtools-widget > *) {
  :scope,
  .comments-overlay-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* Needs to be above regular panel widgets (e.g. flame chart at z-index 2000) but below floating glass panes (which start at z-index 3000). */
    z-index: 2500;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
  }

  .comment-pin {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease;
    transform-origin: center center;
      will-change: transform;
  }

  .comment-pin:hover {
    transform: scale(1.15);
  }

    .comment-cursor {
      display: flex;
      width: var(--sys-size-9);
      height: var(--sys-size-9);
      box-sizing: border-box;
      padding: 0;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      flex-shrink: 0;
      box-shadow: var(--sys-elevation-level2);
      border-radius: 100px 100px 100px var(--sys-shape-corner-extra-small, 4px);
      background: var(--sys-color-primary);
      color: var(--sys-color-on-primary);
      font-family: var(--default-font-family);
      font-size: var(--sys-typescale-body5-size);
      font-weight: var(--ref-typeface-weight-bold, 600);
      line-height: 1;
    }

  .comment-anchor-highlight {
    position: absolute;
    pointer-events: none;
    border: var(--sys-size-2) dashed var(--sys-color-primary);
    background-color: color-mix(in srgb, var(--sys-color-primary), transparent 90%);
    box-sizing: border-box;
  }

  .comment-hover-highlight {
    position: absolute;
    pointer-events: none;
    border: var(--sys-size-2) solid var(--sys-color-primary);
    background-color: color-mix(in srgb, var(--sys-color-primary), transparent 85%);
    box-sizing: border-box;
  }
}
