/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
.toolbar-popover {
  --safe-triangle-cursor-y: 6.25rem;
  --safe-triangle-cursor-x: 6.25rem;
  --safe-triangle-submenu-start-x: var(--admin-toolbar-sidebar-width);
  --safe-triangle-submenu-start-y: 5vh;
  --safe-triangle-submenu-end-x: var(--admin-toolbar-sidebar-width);
  /* TODO: Replace with calculated value of popover content height. */
  --safe-triangle-submenu-end-y: 66vh;

  border-radius: var(--admin-toolbar-space-8);
}
.toolbar-popover--expanded {
  background-color: var(--admin-toolbar-color-expanded);
}
.toolbar-popover__control {
  inline-size: 100%;
}
.toolbar-popover__control:hover [data-toolbar-popover-safe-triangle] {
  display: block;
}
[data-toolbar-popover-wrapper] {
  position: fixed;
  z-index: var(--admin-toolbar-z-index-popover);
  display: grid;
  overflow: auto;
  grid-auto-rows: max-content;
  padding: var(--admin-toolbar-space-12) var(--admin-toolbar-space-16) var(--admin-toolbar-space-16);
  transition:
    transform var(--admin-toolbar-transition),
    opacity var(--admin-toolbar-transition);
  transform: translateX(-100%);
  transform-origin: 0;
  opacity: 0;
  background-color: var(--admin-toolbar-color-white);
  inline-size: var(--admin-toolbar-sidebar-width);
  block-size: 100vh;
  gap: var(--admin-toolbar-space-8);
  inset-block-start: var(--admin-toolbar-sidebar-header);
  inset-inline-start: 0;
  /* Hide the drop-shadow on the left side. */
  clip-path: inset(0 -10rem 0 0);
}
[dir="rtl"] [data-toolbar-popover-wrapper] {
  /* Hide the drop-shadow on the right side. */
  clip-path: inset(0 0 0 -10rem);
  transform: translateX(0);
}
@media (min-width: 64rem) {
  [data-toolbar-popover-wrapper] {
    --admin-toolbar-z-index-popover: var(--drupal-admin-z-index-popover, -1);

    padding-block-start: var(--admin-toolbar-space-16);
    transform: translateX(0);
    box-shadow:
      0 0 72px rgba(0, 0, 0, 0.2),
      0 0 8px rgba(0, 0, 0, 0.04),
      0 0 40px rgba(0, 0, 0, 0.06);
    inline-size: var(--admin-toolbar-popover-width);
    inset-block-start: 0;
    inset-inline-start: 1px;
  }
}
[data-toolbar-popover-safe-triangle] {
  position: fixed;
  display: none;
  content: "";
  inset: 0;
  clip-path: polygon(var(--safe-triangle-cursor-x, 0) var(--safe-triangle-cursor-y, 0), var(--safe-triangle-submenu-start-x, 0) var(--safe-triangle-submenu-start-y, 0), var(--safe-triangle-submenu-end-x, 0) max(var(--safe-triangle-submenu-end-y, 0), var(--safe-triangle-cursor-y, 0), 66vh));
}
[data-toolbar-popover-control][aria-expanded="true"] + [data-toolbar-popover-wrapper] {
  transform: translateX(0);
  opacity: 1;
}
@media (min-width: 64rem) {
  [data-toolbar-popover-control][aria-expanded="true"] + [data-toolbar-popover-wrapper] {
    transform: translateX(var(--admin-toolbar-sidebar-width));
  }

  [dir="rtl"] :is([data-toolbar-popover-control][aria-expanded="true"] + [data-toolbar-popover-wrapper]) {
    transform: translateX(calc(var(--admin-toolbar-sidebar-width) * -1));
  }
}
[data-admin-toolbar="collapsed"] [data-toolbar-popover-wrapper] {
  transform: translateX(calc((16 * var(--admin-toolbar-rem) * -1) + var(--drupal-displace-offset-left, var(--admin-toolbar-space-72))));
}
[dir="rtl"] :is([data-admin-toolbar="collapsed"] [data-toolbar-popover-wrapper]) {
  transform: translateX(calc((16 * var(--admin-toolbar-rem)) + var(--drupal-displace-offset-right, var(--admin-toolbar-space-72))));
}
