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

.slds-truncate {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  a:focus-visible {
    outline-offset: 0;
  }
}

/**
 * @summary Truncates text at 25% of its parent container
 *
 * @selector .slds-truncate_container_25
 * @modifier
 */
.slds-truncate_container_25 {
  max-width: 25%;
}

/**
  * @summary Truncates text at 50% of its parent container
  */
.slds-truncate_container_50 {
  max-width: 50%;
}

/**
  * @summary Truncates text at 75% of its parent container
  */
.slds-truncate_container_75 {
  max-width: 75%;
}

/**
  * @summary Truncates text at 33% of its parent container
  */
.slds-truncate_container_33 {
  max-width: 33%;
}

/**
  * @summary Truncates text at 66% of its parent container
  */
.slds-truncate_container_66 {
  max-width: 66%;
}
