/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiNotificationEventMeta {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-right: $ouiSizeXS;
  min-height: $ouiSizeL; // ensures the same size of the read button to properly center align

  &--hasContextMenu {
    padding-right: $ouiSizeL;
  }

  &__contextMenuWrapper {
    position: absolute;
    top: 0;
    right: 0;
  }

  &__section {
    margin-right: $ouiSizeS;

    &:first-child {
      display: flex;
      flex: 1;
      align-items: center;
    }
  }

  &__icon {
    margin-right: $ouiSizeS;
  }

  &__badge {
    max-width: 100%;
    display: inline-grid; // forces truncation of the badge
  }

  &__time {
    font-size: $ouiFontSizeXS;
    color: $ouiTextSubduedColor;
  }
}
