@use '../utils/box-shadow_variables';
@use '../utils/size_variables';

/**
 * Copyright IBM Corp. 2016, 2025
 * SPDX-License-Identifier: BUSL-1.1
 */

.box {
  background-color: hsl(0, 0%, 100%);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(var(--token-color-palette-neutral-500), 0.3);
  color: var(--token-color-palette-neutral-600);
  display: block;
  padding: size_variables.$spacing-18;

  &:not(:last-child) {
    margin-bottom: 1.5rem;
  }

  &.is-fullwidth {
    padding-left: 0;
    padding-right: 0;
  }

  &.no-padding-top {
    padding-top: 0;
  }

  &.has-slim-padding {
    padding: 9px 0;
  }

  &.no-top-shadow {
    box-shadow: inset 0 -1px 0 0 rgba(hsl(0, 0%, 4%), 0.1);
  }

  &.has-container {
    box-shadow: 0 4px 4px rgba(hsl(0, 0%, 4%), 0.25);
    border: box-shadow_variables.$base-border;
    padding: size_variables.$spacing-24;
  }
}
