/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
@use '@material/theme/theme';
@use '@material/theme/custom-properties';
@use '@material/menu-surface/mixins';
@use '@material/menu/mixins' as menu-mixins;
@use '@material/menu/variables' as menu-variables;
@use '@material/menu-surface/variables';

@include mixins.core-styles;

:host(:not([open])) {
  display: none;
}

.mdc-menu-surface {
  $z-index: custom-properties.create(--mdc-menu-z-index, variables.$z-index);
  @include theme.property(z-index, $z-index);
  @include menu-mixins.min-width(menu-variables.$min-width);
}
