.main {
  --box-radius: 5px;

  max-width: 900px;
  box-sizing: border-box;
  position: sticky;
  left: 0;
  background: var(--white) !important;

  &.fluid {
    max-width: none;
    position: inherit;
  }

  .box {
    box-shadow: 0px 0px 1px rgba(40, 41, 61, 0.08), 0px 0.5px 2px rgba(96, 97, 112, 0.16),
      0px 0px 1px rgba(40, 41, 61, 0.08), 0px 0.5px 2px rgba(96, 97, 112, 0.16);
    border-radius: var(--box-radius);
  }

  .viewer {
    padding-bottom: var(--spacing-xsmall) !important;

    :global {
      .wmde-markdown .anchor {
        display: none;
      }
    }

    .deleted {
      padding: var(--spacing-xsmall) var(--spacing-small) !important;
      background-color: var(--grey-50) !important;
      color: var(--grey-350) !important;
      border: 1px solid var(--grey-100);
      display: inline-block;
      border-radius: var(--box-radius);
    }

    .outdated {
      background: #fcf4e3 !important;
      color: #c05809 !important;
      border: 1px solid var(--yellow-300) !important;
      padding: 4px 6px !important;
      border-radius: 4px !important;
      font-weight: 700;
      font-size: 10px;
      line-height: 15px;
      text-transform: uppercase;
    }
  }

  .replyPlaceHolder {
    background: var(--grey-50);
    border-top: 1px solid var(--grey-100);
    align-items: center;
    border-bottom-left-radius: var(--box-radius);
    border-bottom-right-radius: var(--box-radius);

    > div:last-of-type {
      flex-grow: 1;
      padding: 0;
      margin: 0;
    }
  }

  .newCommentContainer {
    background: var(--grey-50) !important;
    border-radius: 5px;

    &.hasThread {
      border-top: 1px solid var(--grey-100);
      border-top-left-radius: 0;
      border-top-right-radius: 0;
    }
  }

  .editCommentContainer {
    padding: var(--spacing-small) !important;
    border-radius: var(--box-radius);
  }

  .outletTopOfFirstOfComment {
    padding-bottom: var(--spacing-large) !important;
    overflow: auto;
    max-width: calc(100vw - 660px);

    &.standalone {
      max-width: calc(100vw - 600px); // TODO: Recalculate this value in standalone version
    }
  }
}

.optionMenuIcon {
  > .bp3-icon {
    padding-right: var(--spacing-xlarge);
  }
}

.deleteIcon {
  > .bp3-icon {
    padding-right: var(--spacing-xlarge);
  }
  span[data-icon='main-trash'] {
    > svg {
      height: 14px;
      width: 13px;
    }
  }

  :global(.bp3-text-overflow-ellipsis) {
    padding-top: 2px !important;
  }
}
