/*
 * Copyright (c) 2019-present Sonatype, Inc.
 * This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License 2.0 which accompanies this
 * distribution and is available at https://www.eclipse.org/legal/epl-2.0/.
 */
@use '../../scss-shared/nx-container-helpers';
@use '../../scss-shared/nx-text-helpers';
@use '../../scss-shared/nx-mask-helpers';

.nx-submit-mask {
  @include nx-mask-helpers.background-mask(var(--nx-z-index-submit-mask));

  .nx-submit-mask__message {
    margin-top: 200px;
  }
}

.nx-submit-mask__message {
  @include nx-text-helpers.semi-bold;

  background-color: var(--nx-color-component-background);
  border-radius: var(--nx-border-radius);
  box-sizing: border-box;
  margin: 0;
  padding: var(--nx-spacing-6x);
  text-align: center;
  min-width: 124px;
  max-width: 250px;

  @include nx-container-helpers.container-horizontal;
  @include nx-container-helpers.container-vertical;
}

.nx-submit-mask--success {
  .nx-submit-mask__message {
    color: var(--nx-color-success);
  }
}
