/*
// Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
*/
x-overlay-ng::part(dialog) {
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: transparent;
  outline: none;
}
x-overlay-ng {
  overflow: visible;
  position: fixed;
  display: contents;
  top: 0;
  width: 0;
  contain: strict;
  max-height: 0;
  max-width: 0;
}
x-overlay-ng > *:not(:first-child) {
  display: none !important;
}

x-overlay-ng > *:first-child, x-overlay-ng > lynx-wrapper > *:first-child {
  display: flex;
  top: 0;
  left: 0;
  position: absolute;
}

x-overlay-ng [event-through] {
  pointer-events: none;
}

x-overlay-ng:not([level]), x-overlay-ng[level="1"] {
  z-index: 4;
}
x-overlay-ng[level="2"] {
  z-index: 3;
}
x-overlay-ng[level="3"] {
  z-index: 2;
}
x-overlay-ng[level="4"] {
  z-index: 1;
}
