/*
 * This file belongs to Hoist, an application development toolkit
 * developed by Extremely Heavy Industries (www.xh.io | info@xh.io)
 *
 * Copyright © 2026 Extremely Heavy Industries Inc.
 */

.xh-toast-container {
  &--anchored {
    position: absolute;
  }

  .xh-toast {
    color: white !important;
    padding-left: var(--xh-pad-half-px);

    &__title {
      margin-bottom: var(--xh-pad-half-px);
      display: block;
      font-size: var(--xh-font-size-large-px);
    }

    &__body {
      font-size: var(--xh-font-size-px);
    }

    &__trace-id {
      display: block;
      margin-top: var(--xh-pad-half-px);
      font-size: var(--xh-font-size-small-px);
      opacity: 0.7;
    }

    &__icon {
      align-self: center;
      margin: 0 0 0 var(--xh-pad-half-px);
    }

    .bp6-toast-message {
      overflow-wrap: break-word;
    }

    // High level of specificity here required to override built-in BP styles
    &.bp6-toast .bp6-button {
      background: none !important;
      color: white !important;

      .bp6-icon {
        color: white !important;
      }
    }
  }
}
