@use "../../assets/mixins.scss" as *;

.pl-block-page {
  --pl-block-page-body-padding: var(--main-spacing, 24px);

  background-color: var(--bg-elevated-01);
  height: 100%;
  max-width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);

  &.noBodyGutters {
    --pl-block-page-body-padding: 0;
  }

  &__title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;

    &__default {
      flex: 1;
      min-width: 0;
      max-width: 100%;
      margin: 0;
      color: var(--txt-01);
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 12px;

      > span {
        font-size: 28px;
        font-weight: 500;
        line-height: 36px;
        letter-spacing: -0.56px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        max-width: 100%;
        display: inline-block;
      }
    }

    &__append {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 2px;

      &__teleport {
        display: contents;
      }
    }
  }

  &__body {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-v);
    padding: var(--pl-block-page-body-padding);
    @include scrollbar(true, true);
  }
}
