// 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/.
//
// Copyright (c) KALEIDOS INC Sucursal en España SL

@use "ds/typography.scss" as t;
@use "refactor/common-refactor.scss" as deprecated;

.token-set-context-menu {
  position: absolute;
  z-index: deprecated.$z-index-4;
}

.context-list {
  @include deprecated.menu-shadow;

  display: grid;
  width: deprecated.$s-240;
  padding: deprecated.$s-4;
  border-radius: deprecated.$br-8;
  border: deprecated.$s-2 solid var(--panel-border-color);
  background-color: var(--menu-background-color);
  max-height: 100vh;
  overflow-y: auto;
}

.context-menu-item {
  @include t.use-typography("body-small");

  color: var(--menu-foreground-color);
  display: flex;
  align-items: center;
  height: deprecated.$s-28;
  width: 100%;
  padding: deprecated.$s-6;
  border-radius: deprecated.$br-8;
  cursor: pointer;

  &:hover {
    background-color: var(--menu-background-color-hover);
  }
}
