/*
 * Copyright (c) 2026, Salesforce, Inc.,
 * All rights reserved.
 * For full license text, see the LICENSE.txt file
 */

/**
 * Global margin that can be applied to any element
 */
.slds-has-buffer {
  margin: var(--slds-g-spacing-3);
}

/**
 * Global margin reset that can be applied to any element
 */
.slds-has-full-bleed {
  margin: 0;
}

/**
 * Assumes element below is connected
 */
.slds-has-bottom-magnet {
  margin-block-end: 0 !important;
  border-end-start-radius: 0 !important;
  border-end-end-radius: 0 !important;
}

/**
 * Assumes element above is connected
 */
.slds-has-top-magnet {
  margin-block-start: 0 !important;
  border-start-start-radius: 0 !important;
  border-start-end-radius: 0 !important;
}

.slds-has-top-magnet.slds-has-buffer {
  margin-block-end: 0;
  border-radius: 0;
  border-block-start: 0;
  box-shadow: none;
}
